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"
9
class
IntelliToolPlainTool
:
public
IntelliTool
{
10
public
:
16
IntelliToolPlainTool
(
PaintingArea
*
Area
,
IntelliColorPicker
*
colorPicker
);
20
virtual
~IntelliToolPlainTool
()
override
;
21
27
virtual
void
onMouseRightPressed
(
int
x,
int
y)
override
;
28
34
virtual
void
onMouseRightReleased
(
int
x,
int
y)
override
;
35
41
virtual
void
onMouseLeftPressed
(
int
x,
int
y)
override
;
42
48
virtual
void
onMouseLeftReleased
(
int
x,
int
y)
override
;
49
54
virtual
void
onWheelScrolled
(
int
value)
override
;
55
61
virtual
void
onMouseMoved
(
int
x,
int
y)
override
;
62
63
};
64
65
#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. Merging the fill to the active layer.
Definition:
IntelliToolPlain.cpp:19
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition:
IntelliTool.h:33
IntelliToolPlainTool
The IntelliToolPlainTool class represents a tool to fill the whole canvas with one color.
Definition:
IntelliToolPlain.h:9
IntelliToolPlainTool::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event.
Definition:
IntelliToolPlain.cpp:36
IntelliToolPlainTool::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
Definition:
IntelliToolPlain.cpp:27
PaintingArea
Definition:
PaintingArea.h:25
IntelliToolPlainTool::IntelliToolPlainTool
IntelliToolPlainTool(PaintingArea *Area, IntelliColorPicker *colorPicker)
A constructor setting the general paintingArea and 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. Filling the whole canvas.
Definition:
IntelliToolPlain.cpp:13
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.Resetting the current fill.
Definition:
IntelliToolPlain.cpp:23
IntelliToolPlainTool::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
Definition:
IntelliToolPlain.cpp:32
IntelliToolPlainTool::~IntelliToolPlainTool
virtual ~IntelliToolPlainTool() override
A Destructor.
Definition:
IntelliToolPlain.cpp:9
intelliphoto
src
Tool
IntelliToolPlain.h
Generated by
1.8.16