Konsole
ColorScheme.h
Go to the documentation of this file.
static QString translatedColorNameForIndex(int index)
Definition: ColorScheme.cpp:120
ColorScheme()
Constructs a new color scheme which is initialized to the default color set for Konsole.
Definition: ColorScheme.cpp:127
bool hasDarkBackground() const
Returns true if this color scheme has a dark background.
Definition: ColorScheme.cpp:274
~ColorSchemeWallpaper()
Definition: ColorScheme.cpp:381
This class holds the wallpaper pixmap associated with a color scheme.
Definition: ColorScheme.h:44
void getColorTable(ColorEntry *table, uint randomSeed=0) const
Copies the color entries which form the palette for this color scheme into table. ...
Definition: ColorScheme.cpp:222
void setRandomizedBackgroundColor(bool randomize)
Enables randomization of the background color.
Definition: ColorScheme.cpp:231
void write(KConfig &config) const
Writes the color scheme to the specified configuration source.
Definition: ColorScheme.cpp:322
void setOpacity(qreal opacity)
Sets the opacity level of the display background.
Definition: ColorScheme.cpp:280
ColorEntry colorEntry(int index, uint randomSeed=0) const
Retrieves a single color entry from the table.
Definition: ColorScheme.cpp:193
qreal opacity() const
Returns the opacity level for this color scheme, see setOpacity() TODO: More documentation.
Definition: ColorScheme.cpp:284
bool randomizedBackgroundColor() const
Returns true if the background color is randomized.
Definition: ColorScheme.cpp:227
KSharedPtr< ColorSchemeWallpaper > Ptr
Definition: ColorScheme.h:47
ColorSchemeWallpaper(const QString &path)
Definition: ColorScheme.cpp:375
void setColorTableEntry(int index, const ColorEntry &entry)
Sets a single entry within the color palette.
Definition: ColorScheme.cpp:180
QString description() const
Returns the descriptive name of the color scheme.
Definition: ColorScheme.cpp:166
void setDescription(const QString &description)
Sets the descriptive name of the color scheme.
Definition: ColorScheme.cpp:162
void setWallpaper(const QString &path)
Definition: ColorScheme.cpp:365
static const ColorEntry defaultTable[]
Definition: ColorScheme.h:171
static QString colorNameForIndex(int index)
Definition: ColorScheme.cpp:113
bool draw(QPainter &painter, const QRect &rect)
Returns true if wallpaper available and drawn.
Definition: ColorScheme.cpp:404
ColorSchemeWallpaper::Ptr wallpaper() const
Definition: ColorScheme.cpp:370
void read(const KConfig &config)
Reads the color scheme from the specified configuration source.
Definition: ColorScheme.cpp:289
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.