+
+//QG
+
+
+//QC
+};
+
+#endif // __GRAPHICVIEW_H__
+
+#if 0
+class QG_GraphicView: public QWidget, public RS_GraphicView, //public Q3FilePreview,
+ public RS_LayerListListener, public RS_BlockListListener
+{
+ Q_OBJECT
+
+ public:
+ QG_GraphicView(QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0);
+ virtual ~QG_GraphicView();
+
+ virtual int getWidth();
+ virtual int getHeight();
+ virtual void redraw();
+ virtual void adjustOffsetControls();
+ virtual void adjustZoomControls();
+// virtual RS_Painter * createPainter();
+// virtual RS_Painter * createDirectPainter();
+#warning "!!! Need to scrub out all instances of createPainter and createDirectPainter !!!"
+// virtual PaintInterface * createPainter();
+// virtual PaintInterface * createDirectPainter();
+// virtual void destroyPainter();
+ virtual void setBackground(const RS_Color & bg);
+ virtual void setMouseCursor(RS2::CursorType c);
+ virtual void updateGridStatusWidget(const QString & text);
+
+ // Methods from RS_LayerListListener Interface:
+ virtual void layerEdited(RS_Layer *);
+ virtual void layerRemoved(RS_Layer *);
+ virtual void layerToggled(RS_Layer *);
+
+ protected:
+ virtual void emulateMouseMoveEvent();
+ virtual void mousePressEvent(QMouseEvent * e);
+ virtual void mouseReleaseEvent(QMouseEvent * e);
+ virtual void mouseMoveEvent(QMouseEvent * e);
+ virtual void tabletEvent(QTabletEvent * e);
+ virtual void leaveEvent(QEvent *);
+ virtual void enterEvent(QEvent *);
+ virtual void focusInEvent(QFocusEvent *);
+ virtual void focusOutEvent(QFocusEvent *);
+ virtual void wheelEvent(QWheelEvent * e);
+ virtual void keyPressEvent(QKeyEvent * e);
+ virtual void keyReleaseEvent(QKeyEvent * e);
+
+ void paintEvent(QPaintEvent *);
+ virtual void resizeEvent(QResizeEvent * e);
+
+#warning "!!! File preview needs porting to Qt4 !!!"
+// void previewUrl(const Q3Url &u);
+
+ private slots:
+ void slotHScrolled(int value);
+ void slotVScrolled(int value);
+
+ private:
+#warning "!!! Double buffering is not necessary anymore !!!"
+ //! Buffer for double-buffering
+ QPixmap * buffer;
+// int refCount;
+
+ protected:
+ int lastWidth;
+ int lastHeight;
+ //! Horizontal scrollbar.
+ QG_ScrollBar * hScrollBar;
+ //! Vertical scrollbar.
+ QG_ScrollBar * vScrollBar;
+ //! Layout used to fit in the view and the scrollbars.
+ QGridLayout * layout;
+ //! Label for grid spacing.
+ QLabel * gridStatus;
+ //! CAD mouse cursor
+ QCursor * curCad;
+ //! Delete mouse cursor
+ QCursor * curDel;
+ //! Select mouse cursor
+ QCursor * curSelect;
+ //! Magnifying glass mouse cursor
+ QCursor * curMagnifier;
+ //! Hand mouse cursor
+ QCursor * curHand;