mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 11:50:31 +02:00
Refractoring Update 2
- Adjusted variable names to naming conventions - Concluded header files
This commit is contained in:
@@ -23,7 +23,7 @@ virtual ~IntelliColorPicker();
|
||||
/*!
|
||||
* \brief A function switching primary and secondary color.
|
||||
*/
|
||||
void switchColors();
|
||||
void swapColors();
|
||||
|
||||
/*!
|
||||
* \brief A function to read the primary selected color.
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
#ifndef INTELLITOOLSETCOLORTOOL_H
|
||||
#define INTELLITOOLSETCOLORTOOL_H
|
||||
|
||||
#include "QColor"
|
||||
#include "QPoint"
|
||||
#include "QColorDialog"
|
||||
|
||||
/*!
|
||||
* \brief The IntelliColorPicker manages the selected colors for one whole project.
|
||||
*/
|
||||
class IntelliColorPicker {
|
||||
public:
|
||||
/*!
|
||||
* \brief IntelliColorPicker constructor, setting 2 preset colors, be careful, theese color may change in production.
|
||||
*/
|
||||
IntelliColorPicker();
|
||||
|
||||
/*!
|
||||
* \brief IntelliColorPicker destructor clears up his used memory, if there is some.
|
||||
*/
|
||||
virtual ~IntelliColorPicker();
|
||||
|
||||
/*!
|
||||
* \brief A function switching primary and secondary color.
|
||||
*/
|
||||
void swapColors();
|
||||
|
||||
/*!
|
||||
* \brief A function to read the primary selected color.
|
||||
* \return Returns the primary color.
|
||||
*/
|
||||
QColor getFirstColor();
|
||||
|
||||
/*!
|
||||
* \brief A function to read the secondary selected color.
|
||||
* \return Returns the secondary color.
|
||||
*/
|
||||
QColor getSecondColor();
|
||||
|
||||
/*!
|
||||
* \brief A function to set the primary color.
|
||||
* \param Color - The color to be set as primary.
|
||||
*/
|
||||
void setFirstColor(QColor Color);
|
||||
|
||||
/*!
|
||||
* \brief A function to set the secondary color.
|
||||
* \param Color - The color to be set as secondary.
|
||||
*/
|
||||
void setSecondColor(QColor Color);
|
||||
|
||||
private:
|
||||
/*!
|
||||
* \brief The primary color.
|
||||
*/
|
||||
QColor firstColor;
|
||||
|
||||
/*!
|
||||
* \brief The secondary color.
|
||||
*/
|
||||
QColor secondColor;
|
||||
};
|
||||
|
||||
#endif // INTELLITOOLSETCOLORTOOL_H
|
||||
Reference in New Issue
Block a user