62 virtual void setSizes(qsizetype colorsUsed, qsizetype colorsSize);
81 qsizetype _colorsSize{256};
82 qsizetype _colorsUsed{_colorsSize};
#define SF_DECL_IFACE(InterfaceType, ParamType, FuncName)
Declares a public static function in the class where it is used. Where: InterfaceType: Global typenam...
Definition TClassRegistration.h:71
Base class for the interface.
Definition PaletteInterface.h:20
virtual void setSizes(qsizetype colorsUsed, qsizetype colorsSize)
Sets the size of the color table of the implementation.
Parameters::Callback _callback
Definition PaletteInterface.h:80
virtual ColorTable getColorTable() const =0
Gets the color table of the implementation.
virtual void addPropertyPages(PropertySheetDialog *sheet)
~PaletteInterface() override=default
Virtual destructor for derived classes.
PaletteInterface(const Parameters &)
Constructor for passing general structure for derived classes.
virtual qreal getCurveLevel(qreal x) const =0
Gets calculated level for color shifts.
Class to multiple inherit which adds functions to read and write properties from a given object....
Definition Persistent.h:14
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Encapsulates the std::function() template.
Definition TClosure.h:14
Definition Application.h:10
QList< QRgb > ColorTable
Definition ColorTable.h:11
#define _PAL_CLASS
Definition pal/iface/global.h:35
Structure passed as a constructor argument.
Definition PaletteInterface.h:28
Parameters(const Callback &callback, QObject *parent=nullptr)
Definition PaletteInterface.h:31
Callback _callback
Definition PaletteInterface.h:37
TClosure< void > Callback
Definition PaletteInterface.h:29