]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/qg_graphicview.h
Refactored CAD tool bars to use predefined actions.
[architektonas] / src / widgets / qg_graphicview.h
index af3528c14be074f90dbbcd916cc46a4985d81c08..2a5c3a8d1848c465ec22fa7d17be423e697295dc 100644 (file)
@@ -7,8 +7,9 @@
 #include "rs_blocklistlistener.h"
 #include "qg_scrollbar.h"
 
-class RS_Preview;
+class RS_Document;
 class PaintInterface;
+class RS_Preview;
 
 /**
  * This is the Qt implementation of a widget which can view a
@@ -25,6 +26,7 @@ class QG_GraphicView: public QWidget, public GraphicView, //public Q3FilePreview
 
        public:
                QG_GraphicView(QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0);
+               QG_GraphicView(RS_Document * doc, QWidget * parent = 0);
                virtual ~QG_GraphicView();
 
                virtual int getWidth();
@@ -61,6 +63,9 @@ class QG_GraphicView: public QWidget, public GraphicView, //public Q3FilePreview
 #warning "!!! File preview needs porting to Qt4 !!!"
 //             void previewUrl(const Q3Url &u);
 
+       private:
+               void CommonInitialization(void);
+
        private slots:
                void slotHScrolled(int value);
                void slotVScrolled(int value);