]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/qg_graphicview.h
In the middle of major refactoring...
[architektonas] / src / widgets / qg_graphicview.h
index 2a5c3a8d1848c465ec22fa7d17be423e697295dc..b870809af51e246809d768aaa13defae1bd895d3 100644 (file)
@@ -5,7 +5,6 @@
 #include "graphicview.h"
 #include "rs_layerlistlistener.h"
 #include "rs_blocklistlistener.h"
-#include "qg_scrollbar.h"
 
 class RS_Document;
 class PaintInterface;
@@ -18,9 +17,8 @@ class RS_Preview;
  * 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
+class QG_GraphicView: public QWidget, public GraphicView//, //public Q3FilePreview,
+//     public RS_LayerListListener, public RS_BlockListListener
 {
        Q_OBJECT
 
@@ -38,10 +36,12 @@ class QG_GraphicView: public QWidget, public GraphicView, //public Q3FilePreview
                virtual void setMouseCursor(RS2::CursorType c);
                virtual void updateGridStatusWidget(const QString & text);
 
+// This is just crap. Why have a klunky listener interface when we have slots/signals???
+// That's what I thought!!!
                // Methods from RS_LayerListListener Interface:
-               virtual void layerEdited(RS_Layer *);
-               virtual void layerRemoved(RS_Layer *);
-               virtual void layerToggled(RS_Layer *);
+//             virtual void layerEdited(RS_Layer *);
+//             virtual void layerRemoved(RS_Layer *);
+//             virtual void layerToggled(RS_Layer *);
 
        protected:
                virtual void emulateMouseMoveEvent();
@@ -70,19 +70,20 @@ class QG_GraphicView: public QWidget, public GraphicView, //public Q3FilePreview
                void slotHScrolled(int value);
                void slotVScrolled(int value);
 
-       private:
-#warning "!!! Double buffering is not necessary anymore !!!"
-               //! Buffer for double-buffering
-               QPixmap * buffer;
+//     private:
+//#warning "!!! Double buffering is not necessary anymore !!!"
+//             //! Buffer for double-buffering
+//             QPixmap * buffer;
 //             int refCount;
 
+#if 0
        protected:
                int lastWidth;
                int lastHeight;
                //! Horizontal scrollbar.
-               QG_ScrollBar * hScrollBar;
+               QScrollBar * hScrollBar;
                //! Vertical scrollbar.
-               QG_ScrollBar * vScrollBar;
+               QScrollBar * vScrollBar;
                //! Layout used to fit in the view and the scrollbars.
                QGridLayout * layout;
                //! Label for grid spacing.
@@ -97,6 +98,7 @@ class QG_GraphicView: public QWidget, public GraphicView, //public Q3FilePreview
                QCursor * curMagnifier;
                //! Hand mouse cursor
                QCursor * curHand;
+#endif
 };
 
 #endif