tdeui
KPanelAppMenu Class Reference
DCop client menu class for the Kicker panel that will insert a submenu into the TDE menu. More...
#include <kpanelappmenu.h>
Signals | |
| void | activated (int id) |
Public Member Functions | |
| KPanelAppMenu (const TQString &title, TQObject *parent=0, const char *name=0) | |
| KPanelAppMenu (const TQPixmap &icon, const TQString &title, TQObject *parent, const char *name) | |
| KPanelAppMenu (TQObject *parent, const char *name) | |
| ~KPanelAppMenu () | |
| int | insertItem (const TQString &text, int id=-1) |
| int | insertItem (const TQPixmap &icon, const TQString &text, int id=-1) |
| KPanelAppMenu * | insertMenu (const TQPixmap &icon, const TQString &text, int id=-1) |
| void | clear () |
| bool | process (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData) |
Protected Member Functions | |
| void | init (const TQPixmap &icon, const TQString &title) |
Detailed Description
DCop client menu class for the Kicker panel that will insert a submenu into the TDE menu.
Definition at line 37 of file kpanelappmenu.h.
Constructor & Destructor Documentation
| KPanelAppMenu::KPanelAppMenu | ( | const TQString & | title, | |
| TQObject * | parent = 0, |
|||
| const char * | name = 0 | |||
| ) |
Constructs a new menu with the given title.
Definition at line 38 of file kpanelappmenu.cpp.
| KPanelAppMenu::KPanelAppMenu | ( | const TQPixmap & | icon, | |
| const TQString & | title, | |||
| TQObject * | parent, | |||
| const char * | name | |||
| ) |
Same as above, but with an icon for the submenu item.
Definition at line 45 of file kpanelappmenu.cpp.
| KPanelAppMenu::KPanelAppMenu | ( | TQObject * | parent, | |
| const char * | name | |||
| ) |
Constructs a new (sub)menu with a given id.
Definition at line 54 of file kpanelappmenu.cpp.
| KPanelAppMenu::~KPanelAppMenu | ( | ) |
Make sure you actually destroy this thing or the menu will never go away until this application quits or Kicker restarts ;-).
Definition at line 87 of file kpanelappmenu.cpp.
Member Function Documentation
| void KPanelAppMenu::activated | ( | int | id | ) | [signal] |
Emitted when the user selects an item from the Kicker menu.
| void KPanelAppMenu::clear | ( | ) |
Clears the menu.
Definition at line 147 of file kpanelappmenu.cpp.
Inserts an item with a icon.
The icon name must be a full path.
Definition at line 96 of file kpanelappmenu.cpp.
| int KPanelAppMenu::insertItem | ( | const TQString & | text, | |
| int | id = -1 | |||
| ) |
Inserts an item into the menu.
Definition at line 134 of file kpanelappmenu.cpp.
| KPanelAppMenu * KPanelAppMenu::insertMenu | ( | const TQPixmap & | icon, | |
| const TQString & | text, | |||
| int | id = -1 | |||
| ) |
Inserts a sub menu with a icon.
The icon name must be a full path.
Definition at line 109 of file kpanelappmenu.cpp.
| bool KPanelAppMenu::process | ( | const TQCString & | fun, | |
| const TQByteArray & | data, | |||
| TQCString & | replyType, | |||
| TQByteArray & | replyData | |||
| ) | [virtual] |
For internal use only.
Reimplemented from DCOPObject.
Definition at line 155 of file kpanelappmenu.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference