X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmainapp%2Fmdiwindow.h;h=6b66aef8fedd100544c1ab91c658e75c66b45dd6;hb=f34fe4370628985ef1a4a4527cfa85165624e27c;hp=8335ba28dbfb0c8d5786f3037764940d5c18e274;hpb=27d4a138d23453e93a833e9347444b828a971cb4;p=architektonas diff --git a/src/mainapp/mdiwindow.h b/src/mainapp/mdiwindow.h index 8335ba2..6b66aef 100644 --- a/src/mainapp/mdiwindow.h +++ b/src/mainapp/mdiwindow.h @@ -2,10 +2,12 @@ #define QC_MDIWINDOW_H #include -#include "qc_graphicview.h" -#include "qg_layerwidget.h" -#include "qg_pentoolbar.h" #include "rs_document.h" +#include "layerwidget.h" +#include "pentoolbar.h" + +class RS_EventHandler; +class QG_GraphicView; /** * MDI document window. Contains a document and a view (window). @@ -18,7 +20,6 @@ class MDIWindow: public QMdiSubWindow public: MDIWindow(RS_Document * doc, QWidget * parent, const char * name = NULL, -// Qt::WindowFlags wflags = Qt::WDestructiveClose); Qt::WindowFlags wflags = Qt::SubWindow); ~MDIWindow(); @@ -35,19 +36,16 @@ class MDIWindow: public QMdiSubWindow void slotFilePrint(); public: - QC_GraphicView * getGraphicView(); + QG_GraphicView * getGraphicView(); RS_Document * getDocument(); Drawing * getGraphic(); RS_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); friend std::ostream & operator<<(std::ostream & os, MDIWindow & w); @@ -64,7 +62,8 @@ class MDIWindow: public QMdiSubWindow /** ID counter (class variable) */ static int idCounter; /** Graphic view */ - QC_GraphicView * graphicView; +//let's see if we can get rid of this... + QG_GraphicView * graphicView; /** Document */ RS_Document * document; /** Does the window own the document? */