IntelliPhoto
0.4
IntelliToolLine.h
Go to the documentation of this file.
1
#ifndef INTELLITOOLLINE_H
2
#define INTELLITOOLLINE_H
3
#include "
IntelliTool.h
"
4
5
#include "QPoint"
6
7
enum class
LineStyle
{
8
SOLID_LINE
,
9
DOTTED_LINE
10
};
11
12
class
IntelliToolLine
:
public
IntelliTool
{
13
QPoint start;
14
int
lineWidth;
15
LineStyle
lineStyle;
16
public
:
17
IntelliToolLine
(
PaintingArea
*
Area
,
IntelliColorPicker
*
colorPicker
);
18
virtual
~IntelliToolLine
()
override
;
19
20
21
virtual
void
onMouseRightPressed
(
int
x,
int
y)
override
;
22
virtual
void
onMouseRightReleased
(
int
x,
int
y)
override
;
23
virtual
void
onMouseLeftPressed
(
int
x,
int
y)
override
;
24
virtual
void
onMouseLeftReleased
(
int
x,
int
y)
override
;
25
26
virtual
void
onWheelScrolled
(
int
value)
override
;
27
28
virtual
void
onMouseMoved
(
int
x,
int
y)
override
;
29
};
30
31
#endif // INTELLITOOLLINE_H
IntelliTool::colorPicker
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition:
IntelliTool.h:38
LineStyle::SOLID_LINE
IntelliTool.h
LineStyle
LineStyle
Definition:
IntelliToolLine.h:7
IntelliToolLine::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Call this in child classes!
Definition:
IntelliToolLine.cpp:45
IntelliToolLine::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:
IntelliToolLine.cpp:37
IntelliToolLine::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:
IntelliToolLine.cpp:22
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition:
IntelliTool.h:33
IntelliToolLine::IntelliToolLine
IntelliToolLine(PaintingArea *Area, IntelliColorPicker *colorPicker)
Definition:
IntelliToolLine.cpp:6
LineStyle::DOTTED_LINE
PaintingArea
Definition:
PaintingArea.h:26
IntelliToolLine::~IntelliToolLine
virtual ~IntelliToolLine() override
Definition:
IntelliToolLine.cpp:13
IntelliToolLine::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:
IntelliToolLine.cpp:33
IntelliToolLine::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:
IntelliToolLine.cpp:18
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
IntelliToolLine::onMouseLeftPressed
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click Pressed of a Mouse. Resetting the current draw....
Definition:
IntelliToolLine.cpp:26
IntelliToolLine
Definition:
IntelliToolLine.h:12
intelliphoto
src
Tool
IntelliToolLine.h
Generated by
1.8.16