#include <klfcolorchooser.h>


Public Slots | |
| void | setColor (const QColor &color) |
| void | setAllowDefaultState (bool allow) |
| void | setDefaultStateString (const QString &str) |
| void | setAutoAddToList (bool autoadd) |
| void | setShowSize (const QSize &size) |
| void | setPixXAlignFactor (float xalignfactor) |
| void | setPixYAlignFactor (float yalignfactor) |
| void | setAlphaEnabled (bool alpha_enabled) |
| void | setDefaultColor () |
| void | requestColor () |
Signals | |
| void | colorChanged (const QColor &newcolor) |
Public Member Functions | |
| KLFColorChooser (QWidget *parent) | |
| ~KLFColorChooser () | |
| QSize | showSize () const |
| bool | allowDefaultState () const |
| Allow the "default color" state. More... | |
| QString | defaultStateString () const |
| bool | autoAddToList () const |
| QColor | color () const |
| float | pixXAlignFactor () const |
| float | pixYAlignFactor () const |
| bool | alphaEnabled () const |
| TRUE if the user can also select opacity (alpha) with this widget. More... | |
| virtual QSize | sizeHint () const |
Public Member Functions inherited from QPushButton | |
| QPushButton (QWidget *parent=0) | |
| QPushButton (const QString &text, QWidget *parent=0) | |
| QPushButton (const QIcon &icon, const QString &text, QWidget *parent=0) | |
| initStyleOption (QStyleOptionButton *option) | |
| menu () | |
| setMenu (QMenu *menu) | |
| showMenu () | |
| QPushButton (QWidget *parent, const char *name) | |
| QPushButton (const QString &text, QWidget *parent, const char *name) | |
| QPushButton (const QIcon &icon, const QString &text, QWidget *parent, const char *name) | |
| isMenuButton () | |
| openPopup () | |
| popup () | |
| setPopup (QMenu *popup) | |
Static Public Member Functions | |
| static void | setUserMaxColors (int maxcolors) |
| static void | setColorList (const QList< QColor > &colorlist) |
| static QList< QColor > | colorList () |
Protected Slots | |
| void | setSenderPropertyColor () |
| void | _makemenu () |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) |
Definition at line 414 of file klfcolorchooser.h.
| KLFColorChooser::KLFColorChooser | ( | QWidget * | parent | ) |
Definition at line 705 of file klfcolorchooser.cpp.
References _makemenu().
| KLFColorChooser::~KLFColorChooser | ( | ) |
Definition at line 724 of file klfcolorchooser.cpp.
|
protectedslot |
Definition at line 811 of file klfcolorchooser.cpp.
References QMenu::addAction(), QMenu::addSeparator(), QColor::alpha(), KLFColorList::list, QColor::name(), requestColor(), QColor::setAlpha(), setDefaultColor(), QPushButton::setMenu(), setSenderPropertyColor(), and QList::size().
Referenced by KLFColorChooser(), setAllowDefaultState(), setAlphaEnabled(), and setDefaultStateString().
|
inline |
Allow the "default color" state.
This is NOT a default color in the sense that it's a normal color that will be returned by default; it is a special state that can mean for ex. "no color", "full transparency" or "don't change"; it is represented by a red slash on a gray background. It is internally represented by an invalid QColor.
Definition at line 437 of file klfcolorchooser.h.
|
inline |
TRUE if the user can also select opacity (alpha) with this widget.
Definition at line 444 of file klfcolorchooser.h.
|
inline |
Definition at line 439 of file klfcolorchooser.h.
| QColor KLFColorChooser::color | ( | ) | const |
|
signal |
Referenced by setColor().
Definition at line 927 of file klfcolorchooser.cpp.
References KLFColorList::list.
|
inline |
Definition at line 438 of file klfcolorchooser.h.
|
protected |
Definition at line 854 of file klfcolorchooser.cpp.
References QPainter::drawPixmap(), QPixmap::height(), QPaintEvent::rect(), QPainter::setClipRect(), and QPixmap::width().
|
inline |
Definition at line 441 of file klfcolorchooser.h.
|
inline |
Definition at line 442 of file klfcolorchooser.h.
|
slot |
Definition at line 794 of file klfcolorchooser.cpp.
References KLFColorDialog::getColor(), QColor::isValid(), and setColor().
Referenced by _makemenu().
|
slot |
Definition at line 777 of file klfcolorchooser.cpp.
References _makemenu().
|
slot |
Definition at line 788 of file klfcolorchooser.cpp.
References _makemenu().
|
inlineslot |
Definition at line 465 of file klfcolorchooser.h.
|
slot |
Sets the current color to color. If the allowDefaultState() property is TRUE, then the "default color" can be set with setDefaultColor() or
Definition at line 755 of file klfcolorchooser.cpp.
References KLFColorList::addColor(), colorChanged(), and QColor::isValid().
Referenced by requestColor(), setDefaultColor(), and setSenderPropertyColor().
Definition at line 919 of file klfcolorchooser.cpp.
References KLFColorList::list, and KLFColorList::notifyListChanged().
|
slot |
equivalent to
Definition at line 772 of file klfcolorchooser.cpp.
References setColor().
Referenced by _makemenu().
|
slot |
Definition at line 782 of file klfcolorchooser.cpp.
References _makemenu().
|
inlineslot |
Definition at line 467 of file klfcolorchooser.h.
|
inlineslot |
Definition at line 468 of file klfcolorchooser.h.
|
protectedslot |
Definition at line 805 of file klfcolorchooser.cpp.
References setColor(), and QColor::value().
Referenced by _makemenu().
|
inlineslot |
Definition at line 466 of file klfcolorchooser.h.
|
static |
This function must be called before any instance is created, and before calling setColorList() and/or colorList(), otherwise it has no effect.
Definition at line 907 of file klfcolorchooser.cpp.
|
inline |
Definition at line 431 of file klfcolorchooser.h.
|
virtual |
Definition at line 734 of file klfcolorchooser.cpp.
References QPixmap::height(), QPushButton::initStyleOption(), QPushButton::menu(), style, and QPixmap::width().