#include </home/clem/local/src/opie/noncore/unsupported/libopie/colorpopupmenu.h>
Signals | |
| void | colorSelected (const QColor &color) |
| Signal to indicate color chosen from the menu. | |
Public Member Functions | |
| OColorPopupMenu (const QColor &color, QWidget *parent=0, const char *name=0) | |
| Object constructor. | |
| ~OColorPopupMenu () | |
| Object destructor. | |
Protected Slots | |
| void | buttonSelected (const QColor &color) |
| Slot to process selected color. | |
| void | moreColorClicked () |
| Slot to process display color selection dialog. | |
Private Member Functions | |
| void | addColor (const QColor &color, int row, int col) |
| Adds color selection option to popup menu. | |
Private Attributes | |
| ColorPopupMenuPrivate * | d |
| QColor | m_color |
| QWidget * | colorPanel |
| QGridLayout * | colorLayout |
OColorPopupMenu is a derivation of TrollTech's QPopupMenu and provides a small color selection popup menu which can be attached to another control such as a toolbar button of menu item.
The popup menu displays 30 default colors available in a grid, and also includes an option at the bottom to display a color selection dialog box for finer color control.
Definition at line 165 of file colorpopupmenu.h.
|
||||||||||||||||
|
Object constructor.
Definition at line 94 of file colorpopupmenu.cpp. References addColor(), colorLayout, colorPanel, m_color, moreColorClicked(), and tr. |
|
|
Object destructor.
Definition at line 148 of file colorpopupmenu.cpp. |
|
||||||||||||||||
|
Adds color selection option to popup menu.
Definition at line 152 of file colorpopupmenu.cpp. References buttonSelected(), colorLayout, and colorPanel. Referenced by OColorPopupMenu(). |
|
|
Slot to process selected color.
Definition at line 159 of file colorpopupmenu.cpp. References colorSelected(), and m_color. Referenced by addColor(). |
|
|
Signal to indicate color chosen from the menu.
Referenced by buttonSelected(), and moreColorClicked(). |
|
|
Slot to process display color selection dialog.
Definition at line 166 of file colorpopupmenu.cpp. References colorSelected(), OColorDialog::getColor(), and m_color. Referenced by OColorPopupMenu(). |
|
|
Definition at line 195 of file colorpopupmenu.h. Referenced by addColor(), and OColorPopupMenu(). |
|
|
Definition at line 194 of file colorpopupmenu.h. Referenced by addColor(), and OColorPopupMenu(). |
|
|
Definition at line 191 of file colorpopupmenu.h. |
|
|
Definition at line 193 of file colorpopupmenu.h. Referenced by buttonSelected(), moreColorClicked(), and OColorPopupMenu(). |
1.4.2