#include <QtGui>
#include "rs.h"
#include "rs_color.h"
+#include "rs_snapper.h"
#include "vector.h"
class Drawing;
class RS_Grid;
class RS_Pen;
class RS_EventHandler;
-class QG_ScrollBar;
class GraphicView
{
//! Last position (for rapid move)
Vector simulationLast;
+ public://for now
+ // We use this here instead of deriving ActionInterface from it because
+ // this makes more sense.
+ RS_Snapper snapper;
+
protected:
// crap to make painting with update() possible
RS_Preview * previewEntity;
int lastWidth;
int lastHeight;
//! Horizontal scrollbar.
- QG_ScrollBar * hScrollBar;
+ QScrollBar * hScrollBar;
//! Vertical scrollbar.
- QG_ScrollBar * vScrollBar;
- //! Layout used to fit in the view and the scrollbars.
- QGridLayout * layout;
+ QScrollBar * vScrollBar;
+// //! Layout used to fit in the view and the scrollbars.
+// QGridLayout * layout;
//! Label for grid spacing.
QLabel * gridStatus;
//! CAD mouse cursor