-#ifndef QC_MDIWINDOW_H
-#define QC_MDIWINDOW_H
+#ifndef __MDIWINDOW_H__
+#define __MDIWINDOW_H__
#include <QtGui>
#include "document.h"
#include "layerwidget.h"
#include "pentoolbar.h"
+//#include "qg_graphicview.h"
class EventHandler;
class QG_GraphicView;
* @author Andrew Mustun
*/
class MDIWindow: public QMdiSubWindow
+//class MDIWindow: public QG_GraphicView
{
Q_OBJECT
~MDIWindow();
void initDoc(Document * doc = NULL);
- void initView();
public slots:
void slotPenChanged(Pen p);
bool slotFileOpen(const QString & fileName, RS2::FormatType type);
bool slotFileSave(bool & cancelled);
bool slotFileSaveAs(bool & cancelled);
-//WAS: bool slotFileClose(bool force);
bool slotFileClose(void);
void slotFilePrint(void);
MDIWindow * getPrintPreview();
void setParentWindow(MDIWindow * p);
int getId();
-//WAS: bool closeMDI(bool force, bool ask = true);
bool CloseMDI(void);
-// void setForceClosing(bool on);
friend std::ostream & operator<<(std::ostream & os, MDIWindow & w);
Document * document;
/** Does the window own the document? */
bool owner;
- /**
- * List of known child windows that show blocks of the same drawing.
- */
+ /** List of known child windows that show blocks of the same drawing. */
QList<MDIWindow *> childWindows;
/**
* Pointer to parent window which needs to know if this window
* is closed or NULL.
*/
MDIWindow * parentWindow;
- /**
- * If flag is set, the user will not be asked about closing this file.
- */
-// bool forceClosing;
};
-#endif
+#endif // __MDIWINDOW_H__