IntelliPhoto  0.4
IntelliToolPlain.h
Go to the documentation of this file.
1 #ifndef INTELLITOOLFLOODFILLTOOL_H
2 #define INTELLITOOLFLOODFILLTOOL_H
3 
4 #include "IntelliTool.h"
5 #include "QColor"
6 
8 public:
10 
11  virtual void onMouseLeftPressed(int x, int y) override;
12  virtual void onMouseLeftReleased(int x, int y) override;
13  virtual void onMouseRightPressed(int x, int y) override;
14  virtual void onMouseRightReleased(int x, int y) override;
15 
16  virtual void onWheelScrolled(int value) override;
17 
18  virtual void onMouseMoved(int x, int y) override;
19 
20 };
21 
22 #endif // INTELLITOOLFLOODFILLTOOL_H
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
IntelliToolPlainTool::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: IntelliToolPlain.cpp:15
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition: IntelliTool.h:33
IntelliToolPlainTool
Definition: IntelliToolPlain.h:7
IntelliToolPlainTool::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: IntelliToolPlain.cpp:32
IntelliToolPlainTool::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: IntelliToolPlain.cpp:23
PaintingArea
Definition: PaintingArea.h:26
IntelliToolPlainTool::IntelliToolPlainTool
IntelliToolPlainTool(PaintingArea *Area, IntelliColorPicker *colorPicker)
Definition: IntelliToolPlain.cpp:5
IntelliToolPlainTool::onMouseLeftPressed
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition: IntelliToolPlain.cpp:9
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition: IntelliTool.h:13
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition: IntelliColorPicker.h:11
IntelliToolPlainTool::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: IntelliToolPlain.cpp:19
IntelliToolPlainTool::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Call this in child classes!
Definition: IntelliToolPlain.cpp:28