#include <kpalette.h>
Public Types | |
| enum | Editable { Yes, No, Ask } |
Public Methods | |
| KPalette (const QString &name=QString::null) | |
| KPalette (const KPalette &) | |
| virtual | ~KPalette () |
| KPalette & | operator= (const KPalette &) |
| bool | save () |
| QString | description () const |
| void | setDescription (const QString &desc) |
| QString | name () const |
| void | setName (const QString &name) |
| Editable | editable () const |
| void | setEditable (Editable editable) |
| int | nrColors () const |
| QColor | color (int index) |
| int | findColor (const QColor &color) const |
| QString | colorName (int index) |
| QString | colorName (const QColor &color) |
| int | addColor (const QColor &newColor, const QString &newColorName=QString::null) |
| int | changeColor (int index, const QColor &newColor, const QString &newColorName=QString::null) |
| int | changeColor (const QColor &oldColor, const QColor &newColor, const QString &newColorName=QString::null) |
Static Public Methods | |
| QStringList | getPaletteList () |
This class makes it easy to handle palettes. A palette is a set of colors. This class can read and write palettes from and to a file.
This class uses the "GIMP" palette file format.
This class is totally unrelated to QPalette.
Definition at line 46 of file kpalette.h.
|
|
Used to specify whether a palette may be edited.
Definition at line 118 of file kpalette.h. Referenced by editable(), and setEditable(). |
|
|
KPalette constructor. Creates a KPalette from a file the filename is derived from the name.
|
|
|
KPalette copy constructor. |
|
|
KPalette destructor. |
|
||||||||||||
|
Add a color.
|
|
||||||||||||||||
|
Change a color.
Definition at line 210 of file kpalette.h. References changeColor(), and findColor(). |
|
||||||||||||||||
|
Change a color.
Referenced by changeColor(). |
|
|
Find color by index.
Referenced by colorName(). |
|
|
Find color name by
Definition at line 175 of file kpalette.h. References color(), colorName(), and findColor(). |
|
|
Find color name by
Referenced by colorName(). |
|
|
Get the description of the palette.
Definition at line 89 of file kpalette.h. |
|
|
Returns whether the palette may be edited.
Definition at line 127 of file kpalette.h. References Editable. Referenced by setEditable(). |
|
|
Find index by
Referenced by changeColor(), and colorName(). |
|
|
Query which KDE palettes are installed.
|
|
|
Get the name of the palette.
Definition at line 103 of file kpalette.h. Referenced by setName(). |
|
|
Return the number of colors in the palette.
Definition at line 141 of file kpalette.h. |
|
|
KPalette assignment operator |
|
|
Save the palette
|
|
|
Set the description of the palette.
Definition at line 96 of file kpalette.h. |
|
|
Change whether the palette may be edited.
Definition at line 134 of file kpalette.h. References editable(), and Editable. |
|
|
Set the name of the palette.
Definition at line 110 of file kpalette.h. References name(). |
1.2.18