public:
void DrawBackground(Painter *);
- void SetGridSize(uint32_t);
- void SetGridSize(double);
- void UpdateGridBackground(void);
- void UpdateGridBackgroundF(void);
+// void SetGridSize(uint32_t);
+// void SetGridSize(double);
+// void UpdateGridBackground(void);
+// void UpdateGridBackgroundF(void);
Point SnapPointToGrid(Point);
Point SnapPointToAngle(Point);
void RenderObjects(Painter *, VPVector &, int, bool ignoreLayer = false);
void HandlePenWidth(float);
void HandlePenStyle(int);
void HandlePenColor(uint32_t);
- void HandlePenStamp(void);
+ void HandlePenStamp(QAction *);
+ void HandlePenDropper(QAction *);
signals:
void ObjectHovered(Object *);
protected:
void focusOutEvent(QFocusEvent * event);
+ void focusInEvent(QFocusEvent * event);
void paintEvent(QPaintEvent * event);
void resizeEvent(QResizeEvent * event);
void mousePressEvent(QMouseEvent * event);
void keyReleaseEvent(QKeyEvent * event);
private:
+ void HandleLayerSwap(int, int, VPVector &);
void DrawSubGrid(Painter *, uint32_t, double, Vector, Vector);
QPoint GetAdjustedMousePosition(QMouseEvent * event);
QPoint GetAdjustedClientPosition(int x, int y);
QPixmap gridBackground;
double scale; // Window scaling factor
int32_t offsetX, offsetY; // Window offsets
+ bool supressSelected;
+ QCursor curMarker;
+ QCursor curDropper;
public:
Container document;
uint32_t gridPixels; // Grid size in pixels