public:
void DrawBackground(Painter *);
- 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 AddHoveredToSelection(void);
VPVector GetSelection(void);
- VPVector GetHovered(void);
+ VPVector GetHovered(bool exclude = false);
void ToolHandler(int, Point);
void ToolDraw(Painter *);
void LineHandler(int, Point);
void DeleteCurrentLayer(int);
void HandleLayerToggle(void);
void HandleLayerSwap(int, int);
+ void HandleLayerSwap(int, int, VPVector &);
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);
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
};
#endif // __DRAWINGVIEW_H__
-