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