48 void paint(QPainter& painter,
const QRect& bounds)
const;
94 [[nodiscard]] std::string currentImplementationName()
const;
96 QString _implementationName;
99 QStringList _implementationProperties;
Base class for the interface.
Definition PaletteInterface.h:20
Definition PaletteServerPropertyPage.h:16
Server for color palettes used in images for coloring on basis of index.
Definition PaletteServer.h:14
void setImplementationProperties(const QStringList &props)
Sets the name of the desired implementation.
QList< QPair< QString, QString > > getImplementationNames() const
Gets the names of all available implementations names and descriptions in pairs.
ColorTable getColorTable() const
Gets the generated color table of the selected.
void addPropertyPages(PropertySheetDialog *sheet)
Adds property pages of the select palette.
void setColorCount(int colorsUsed, int colorsSize=-1)
void paint(QPainter &painter, const QRect &bounds) const
Paints the palette using the passed painter instance.
const QStringList & getImplementationProperties()
Gets the name of the desired implementation.
bool createImplementation(const std::string &name)
Creates implementation by registered name.
Q_SIGNAL void changed(PaletteServer *sender)
Signal for when the palette changes.
const QString & getImplementationName() const
Gets the name of the desired implementation.
~PaletteServer() override
Destructor.
bool isAvailable() const
Returns true when an implementation is available.
void setImplementationName(const QString &name)
Sets the name of the desired implementation.
PaletteServer(QObject *parent=nullptr)
Constructor.
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Definition Application.h:10
QList< QRgb > ColorTable
Definition ColorTable.h:11
#define _PAL_CLASS
Definition pal/iface/global.h:35