11 Q_PROPERTY(
Mode mode READ getMode WRITE setMode)
12 Q_PROPERTY(QColor
colorFrom READ getColorFrom WRITE setColorFrom)
13 Q_PROPERTY(QColor
colorTo READ getColorTo WRITE setColorTo)
14 Q_PROPERTY(QColor
colorCenter READ getColorCenter WRITE setColorCenter)
15 Q_PROPERTY(QString
formula READ getFormula WRITE setFormula)
71 QColor _colorFrom{Qt::red};
75 QColor _colorTo{Qt::blue};
79 QColor _colorCenter{0, 0, 0, 0};
Base class for the interface.
Definition PaletteInterface.h:20
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Definition SimplePalette.h:9
Mode
Mode for generation of colors.
Definition SimplePalette.h:22
@ ShiftRgb
Definition SimplePalette.h:24
@ ShiftHsv
Definition SimplePalette.h:26
@ ShiftHsl
Definition SimplePalette.h:28
SimplePalette(const Parameters &)
Interface constructor.
void addPropertyPages(PropertySheetDialog *sheet) override
Overridden from base class.
QString formula
Definition SimplePalette.h:15
QColor colorFrom
Definition SimplePalette.h:12
QColor colorTo
Definition SimplePalette.h:13
Mode mode
Definition SimplePalette.h:11
qreal getCurveLevel(qreal x) const override
Gets calculated level for color shifts.
ColorTable getColorTable() const override
Gets the color table of the implementation.
QColor colorCenter
Definition SimplePalette.h:14
#define SF_DECL_PROP_GRS(Type, Name)
Declares unreferenced getter and referenced setter for a property.
Definition misc/qt/Macros.h:17
#define SF_DECL_PROP_GS(Type, Name)
Declares unreferenced getter and unreferenced setter for a property.
Definition misc/qt/Macros.h:8
Definition Application.h:10
QList< QRgb > ColorTable
Definition ColorTable.h:11
Structure passed as a constructor argument.
Definition PaletteInterface.h:28