IntelliPhoto  0.4
IntelliToolRectangle.h
Go to the documentation of this file.
1 #ifndef INTELLIRECTANGLETOOL_H
2 #define INTELLIRECTANGLETOOL_H
3 
4 #include "IntelliTool.h"
5 
6 #include "QColor"
7 #include "QPoint"
8 
10  void drawRectangle(QPoint otherCornor);
11 
12  QPoint originCornor;
13  int alphaInner;
14  int edgeWidth;
15 public:
17  virtual ~IntelliToolRectangle() override;
18 
19  virtual void onMouseRightPressed(int x, int y) override;
20  virtual void onMouseRightReleased(int x, int y) override;
21  virtual void onMouseLeftPressed(int x, int y) override;
22  virtual void onMouseLeftReleased(int x, int y) override;
23 
24  virtual void onWheelScrolled(int value) override;
25 
26  virtual void onMouseMoved(int x, int y) override;
27 };
28 
29 #endif // INTELLIRECTANGLETOOL_H
IntelliToolRectangle::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event. A Positive Value means scrolling outwards. Call this in child c...
Definition: IntelliToolRectangle.cpp:61
IntelliToolRectangle::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click Released of a Mouse. Merging the Canvas to Active....
Definition: IntelliToolRectangle.cpp:37
IntelliTool::colorPicker
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition: IntelliTool.h:38
IntelliTool.h
IntelliToolRectangle::~IntelliToolRectangle
virtual ~IntelliToolRectangle() override
Definition: IntelliToolRectangle.cpp:11
IntelliToolRectangle::onMouseLeftPressed
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliToolRectangle.cpp:41
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:33
IntelliToolRectangle::onMouseRightPressed
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on....
Definition: IntelliToolRectangle.cpp:33
PaintingArea
Definition: PaintingArea.h:26
IntelliToolRectangle
Definition: IntelliToolRectangle.h:9
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
IntelliToolRectangle::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliToolRectangle.cpp:52
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition: IntelliColorPicker.h:11
IntelliToolRectangle::IntelliToolRectangle
IntelliToolRectangle(PaintingArea *Area, IntelliColorPicker *colorPicker)
Definition: IntelliToolRectangle.cpp:5
IntelliToolRectangle::onMouseLeftReleased
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click Released of a Mouse. Call this in child classes!
Definition: IntelliToolRectangle.cpp:48