X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmainapp%2Fmdiwindow.h;h=e532cc4474642ca088cb49dfc9679623484eaa06;hb=43c13b052d069ba435277d93867380d00c04931f;hp=4b6943b82932f301e7fdf4b1b87d3f779819607e;hpb=16354e0421b316a62c6b9f7b0b4f3b8cf6f06284;p=architektonas diff --git a/src/mainapp/mdiwindow.h b/src/mainapp/mdiwindow.h index 4b6943b..e532cc4 100644 --- a/src/mainapp/mdiwindow.h +++ b/src/mainapp/mdiwindow.h @@ -1,10 +1,11 @@ -#ifndef QC_MDIWINDOW_H -#define QC_MDIWINDOW_H +#ifndef __MDIWINDOW_H__ +#define __MDIWINDOW_H__ #include #include "document.h" #include "layerwidget.h" #include "pentoolbar.h" +//#include "qg_graphicview.h" class EventHandler; class QG_GraphicView; @@ -15,6 +16,7 @@ class QG_GraphicView; * @author Andrew Mustun */ class MDIWindow: public QMdiSubWindow +//class MDIWindow: public QG_GraphicView { Q_OBJECT @@ -24,7 +26,6 @@ class MDIWindow: public QMdiSubWindow ~MDIWindow(); void initDoc(Document * doc = NULL); - void initView(); public slots: void slotPenChanged(Pen p); @@ -32,21 +33,20 @@ class MDIWindow: public QMdiSubWindow bool slotFileOpen(const QString & fileName, RS2::FormatType type); bool slotFileSave(bool & cancelled); bool slotFileSaveAs(bool & cancelled); - bool slotFileClose(bool force); - void slotFilePrint(); + bool slotFileClose(void); + void slotFilePrint(void); public: QG_GraphicView * getGraphicView(); Document * getDocument(); - Drawing * getGraphic(); + Drawing * GetDrawing(); EventHandler * getEventHandler(); void addChildWindow(MDIWindow * w); void removeChildWindow(MDIWindow * w); MDIWindow * getPrintPreview(); void setParentWindow(MDIWindow * p); int getId(); - bool closeMDI(bool force, bool ask = true); - void setForceClosing(bool on); + bool CloseMDI(void); friend std::ostream & operator<<(std::ostream & os, MDIWindow & w); @@ -68,19 +68,13 @@ class MDIWindow: public QMdiSubWindow 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 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__