#include "rs_snapper.h"
#include "vector.h"
+class ActionInterface;
+class RS_CommandEvent;
class Drawing;
class PaintInterface;
-class RS_EntityContainer;
-class RS_ActionInterface;
class RS_Entity;
-class RS_LineTypePattern;
-class RS_CommandEvent;
-class Vector;
-class RS_Preview;
+class RS_EntityContainer;
+class RS_EventHandler;
class RS_Grid;
+class RS_LineTypePattern;
class RS_Pen;
-class RS_EventHandler;
class GraphicView
{
void freezeZoom(bool freeze);
bool isZoomFrozen();
- void setDefaultAction(RS_ActionInterface * action);
- RS_ActionInterface * getDefaultAction();
- void setCurrentAction(RS_ActionInterface * action);
- RS_ActionInterface * getCurrentAction();
+ void setDefaultAction(ActionInterface * action);
+ ActionInterface * getDefaultAction();
+ void setCurrentAction(ActionInterface * action);
+ ActionInterface * getCurrentAction();
void killSelectActions();
void killAllActions();
void setSimulationRapid(bool r);
bool getSimulationRapid();
- //this is here because of crappy braindead infrastructure
- void SetPreviewMode(bool mode = true);
- void SetPreviewEntity(RS_Preview *);
- void SetPreviewOffset(Vector);
-//We can remove this now...
-// void SetSnapperDraw(bool);
-// void SetSnapperVars(Vector snapSpot, Vector snapCoord, bool showCrosshairs);
-
protected:
RS_EntityContainer * container;
RS_EventHandler * eventHandler;
RS_Snapper snapper;
RS_Preview preview;
- protected:
- // crap to make painting with update() possible
- RS_Preview * previewEntity;
- bool previewMode;
- Vector previewOffset;
-// bool snapperDraw;
-// Vector snapSpot1;
-// Vector snapCoord1;
-// bool showCrosshairs1;
-
//QG
protected:
int lastWidth;
QScrollBar * hScrollBar;
//! Vertical scrollbar.
QScrollBar * vScrollBar;
-// //! Layout used to fit in the view and the scrollbars.
-// QGridLayout * layout;
//! Label for grid spacing.
QLabel * gridStatus;
//! CAD mouse cursor
//! Hand mouse cursor
QCursor * curHand;
-//QC
+//QC was merged with QG
};
#endif // __GRAPHICVIEW_H__