#define QC_MDIWINDOW_H
#include <QtGui>
-#include "qg_layerwidget.h"
-#include "qg_pentoolbar.h"
#include "rs_document.h"
+#include "layerwidget.h"
+#include "pentoolbar.h"
class RS_EventHandler;
class QG_GraphicView;
public:
MDIWindow(RS_Document * doc, QWidget * parent, const char * name = NULL,
-// Qt::WindowFlags wflags = Qt::WDestructiveClose);
Qt::WindowFlags wflags = Qt::SubWindow);
~MDIWindow();
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);
static int idCounter;
/** Graphic view */
//let's see if we can get rid of this...
-// QC_GraphicView * graphicView;
QG_GraphicView * graphicView;
/** Document */
RS_Document * document;