#include </home/clem/local/src/opie/noncore/unsupported/libopie/colordialog.h>
Collaboration diagram for OColorDialog:

Static Public Member Functions | |
| static QColor | getColor (const QColor &, QWidget *parent=0, const char *name=0) |
| static QRgb | getRgba (const QRgb &, bool *ok=0, QWidget *parent=0, const char *name=0) |
Private Member Functions | |
| ~OColorDialog () | |
| OColorDialog (QWidget *parent=0, const char *name=0, bool modal=FALSE) | |
| void | setColor (const QColor &) |
| QColor | color () const |
| void | setSelectedAlpha (int) |
| int | selectedAlpha () const |
Private Attributes | |
| OColorDialogPrivate * | d |
Friends | |
| class | OColorDialogPrivate |
|
|
Destructs the dialog and frees any memory it allocated. Definition at line 815 of file colordialog.cpp. |
|
||||||||||||||||
|
Constructs a default color dialog. Use setColor() for setting an initial value.
Definition at line 720 of file colordialog.cpp. References d, and OColorDialogPrivate. Referenced by getColor(), and getRgba(). |
|
|
Returns the color currently selected in the dialog.
Definition at line 805 of file colordialog.cpp. References OColorDialogPrivate::currentColor(), and d. Referenced by getColor(), and getRgba(). |
|
||||||||||||||||
|
Pops up a modal color dialog letting the user choose a color and returns that color. The color is initially set to initial. Returns an invalid color if the user cancels the dialog. All colors allocated by the dialog will be deallocated before this function returns. Definition at line 734 of file colordialog.cpp. References color(), OColorDialog(), qApp, setColor(), tr, and TRUE. Referenced by OColorPopupMenu::moreColorClicked(). |
|
||||||||||||||||||||
|
Pops up a modal color dialog, letting the user choose a color and an alpha channel value. The color+alpha is initially set to initial.
If ok is non-null, If the user clicks Cancel the initial value is returned. Definition at line 771 of file colordialog.cpp. References alpha, color(), OColorDialog(), selectedAlpha(), setColor(), setSelectedAlpha(), and TRUE. |
|
|
Returns the value selected for the alpha channel. Definition at line 851 of file colordialog.cpp. References OColorDialogPrivate::currentAlpha(), and d. Referenced by getRgba(). |
|
|
Sets the color shown in the dialog to c.
Definition at line 827 of file colordialog.cpp. References d, and OColorDialogPrivate::setCurrentColor(). Referenced by getColor(), and getRgba(). |
|
|
Sets the initial alpha channel value to a, and show the alpha channel entry box. Definition at line 840 of file colordialog.cpp. References d, OColorDialogPrivate::setCurrentAlpha(), OColorDialogPrivate::showAlpha(), and TRUE. Referenced by getRgba(). |
|
|
Definition at line 81 of file colordialog.h. Referenced by OColorDialog(). |
|
|
Definition at line 80 of file colordialog.h. Referenced by color(), OColorDialog(), selectedAlpha(), setColor(), and setSelectedAlpha(). |
1.4.2