#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
* 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
{
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();
#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);