#include </home/clem/local/src/opie/noncore/unsupported/libopie/ofontmenu.h>
Signals | |
| void | fontChanged (int size) |
Public Member Functions | |
| OFontMenu (QWidget *parent, const char *name, const QList< QWidget > &list) | |
| void | save (Config *cfg) |
| void | restore (Config *cfg) |
| void | setWidgets (const QList< QWidget > &list) |
| void | addWidget (QWidget *wid) |
| void | forceSize (QWidget *wid, int size) |
| void | removeWidget (QWidget *wid) |
| const QList< QWidget > & | widgets () const |
Private Slots | |
| virtual void | slotSmall () |
| virtual void | slotMedium () |
| virtual void | slotLarge () |
| void | setFontSize (int size) |
Private Attributes | |
| QList< QWidget > | m_list |
| QList< WidSize > | m_wids |
| int | m_size |
| OFontMenuPrivate * | d |
This class is a specialised QPopupMenu. It'll display three different font sizes. Small, Normal and large by adding widgets to the Menu you can control the font size of these widgets by using the save and restore method you can also apply font sizes over two different runtimes
QTable* tbl = new QTable();
QList<QWidget> wid;
wid.append( tbl );
OFontMenu* menu = new OFontMenu(this, "Popup Menu", wid );
Config cfg("mycfg");
menu->restore( cfg );
Definition at line 75 of file ofontmenu.h.
|
||||||||||||||||
|
Constructs the FontMenu.
Definition at line 14 of file ofontmenu.cc. References m_list, m_size, m_wids, slotLarge(), slotMedium(), slotSmall(), tr, and TRUE. |
|
|
add a widget to the list
Definition at line 83 of file ofontmenu.cc. References m_list. |
|
|
this signal gets emitted when the font size gets changed
Referenced by setFontSize(). |
|
||||||||||||
|
Forces a size on a widget Definition at line 110 of file ofontmenu.cc. References m_wids. |
|
|
removes the widget from the list of controlled objects
Definition at line 92 of file ofontmenu.cc. References m_list. |
|
|
This method restores the font size from a Config object it'll apply the sizes to the widgets and will also set the menu appropriate Definition at line 47 of file ofontmenu.cc. References m_size, and setFontSize(). |
|
|
This method saves the font size into a Config object OFontMenu will be used as group and size as key Definition at line 36 of file ofontmenu.cc. References m_size, Config::setGroup(), and Config::writeEntry(). |
|
|
Definition at line 138 of file ofontmenu.cc. References fontChanged(), m_list, m_size, m_wids, and wid. Referenced by restore(), slotLarge(), slotMedium(), and slotSmall(). |
|
|
set the list of widgets
Definition at line 74 of file ofontmenu.cc. References m_list. |
|
|
Definition at line 131 of file ofontmenu.cc. References setFontSize(). Referenced by OFontMenu(). |
|
|
Definition at line 124 of file ofontmenu.cc. References setFontSize(). Referenced by OFontMenu(). |
|
|
Definition at line 117 of file ofontmenu.cc. References setFontSize(). Referenced by OFontMenu(). |
|
|
The list of controlled widgets Definition at line 100 of file ofontmenu.cc. References m_list. |
|
|
Definition at line 98 of file ofontmenu.h. |
|
|
Definition at line 95 of file ofontmenu.h. Referenced by addWidget(), OFontMenu(), removeWidget(), setFontSize(), setWidgets(), and widgets(). |
|
|
Definition at line 97 of file ofontmenu.h. Referenced by OFontMenu(), restore(), save(), and setFontSize(). |
|
|
Definition at line 96 of file ofontmenu.h. Referenced by forceSize(), OFontMenu(), and setFontSize(). |
1.4.2