X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fwidgets%2Fqg_graphicview.h;h=2b3293b10f155df4603e74c5fbde84a53b83c23a;hb=c5e595b3156fdf5f93ab6a1032dcc77e859ac6fa;hp=af3528c14be074f90dbbcd916cc46a4985d81c08;hpb=27d4a138d23453e93a833e9347444b828a971cb4;p=architektonas diff --git a/src/widgets/qg_graphicview.h b/src/widgets/qg_graphicview.h index af3528c..2b3293b 100644 --- a/src/widgets/qg_graphicview.h +++ b/src/widgets/qg_graphicview.h @@ -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 @@ -17,7 +18,6 @@ class PaintInterface; * Instances of this class can be linked to layer lists using * addLayerListListener(). */ -//class QG_GraphicView: public QWidget, public RS_GraphicView, //public Q3FilePreview, class QG_GraphicView: public QWidget, public GraphicView, //public Q3FilePreview, public RS_LayerListListener, public RS_BlockListListener { @@ -25,6 +25,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 +62,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);