IntelliPhoto 0.7

IntelliColorPicker.h
Go to the documentation of this file.
1 #ifndef INTELLITOOLSETCOLORTOOL_H
2 #define INTELLITOOLSETCOLORTOOL_H
3
4 #include "QColor"
5 #include "QPoint"
6 #include "QColorDialog"
7
8 //for unit testing
9 class UnitTest;
10
14 class IntelliColorPicker {
15 friend UnitTest;
16 public:
20 IntelliColorPicker();
21
25 virtual ~IntelliColorPicker();
26
30 void swapColors();
31
36 QColor getFirstColor() const;
37
42 QColor getSecondColor() const;
43
48 void setFirstColor(QColor Color);
49
54 void setSecondColor(QColor Color);
55
56 private:
60 QColor firstColor;
61
65 QColor secondColor;
66
70 void initializeColors();
71 };
72
73 #endif
IntelliColorPicker::getFirstColor
QColor getFirstColor() const
A function to read the primary selected color.
Definition: IntelliColorPicker.cpp:15
IntelliColorPicker::~IntelliColorPicker
virtual ~IntelliColorPicker()
IntelliColorPicker destructor clears up his used memory, if there is some.
Definition: IntelliColorPicker.cpp:7
IntelliColorPicker::setSecondColor
void setSecondColor(QColor Color)
A function to set the secondary color.
Definition: IntelliColorPicker.cpp:27
IntelliColorPicker::getSecondColor
QColor getSecondColor() const
A function to read the secondary selected color.
Definition: IntelliColorPicker.cpp:19
IntelliColorPicker::setFirstColor
void setFirstColor(QColor Color)
A function to set the primary color.
Definition: IntelliColorPicker.cpp:23
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition: IntelliColorPicker.h:14
UnitTest
Definition: mainUnitTest.cpp:8
IntelliColorPicker::swapColors
void swapColors()
A function switching primary and secondary color.
Definition: IntelliColorPicker.cpp:11
IntelliColorPicker::IntelliColorPicker
IntelliColorPicker()
IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in produ...
Definition: IntelliColorPicker.cpp:3