#include </home/clem/local/src/opie/library/menuappletinterface.h>
Inheritance diagram for MenuAppletInterface:


Public Member Functions | |
| virtual QString | name () const =0 |
| Translated name of the Menu Applet. | |
| virtual int | position () const =0 |
| the wished position of this applet | |
| virtual QIconSet | icon () const =0 |
| return a QIconSet. | |
| virtual QString | text () const =0 |
| return a Text shown to the user in the menu | |
| virtual QPopupMenu * | popup (QWidget *parent) const =0 |
| Provide a SubMenu popup if you want. | |
| virtual void | activated ()=0 |
| This method gets called once the user clicked on the item. | |
You can extend the startmenu by plugins implementing this interface. You need to place the plugin in plugins/applets from where they will be loaded.
Definition at line 44 of file menuappletinterface.h.
|
|
This method gets called once the user clicked on the item. This is the way you get informed about user input. Your plugin has just been clicked Implemented in AboutApplet, HomeApplet, LockMenuApplet, LogoutApplet, RestartApplet, RotateApplet, SuspendApplet, VTApplet, and MenuAppletExample. |
|
|
return a QIconSet. The returned icon set will be shown next to text(). Make use of AppLnk::smallIconSize() Implemented in AboutApplet, HomeApplet, LockMenuApplet, LogoutApplet, RestartApplet, RotateApplet, SuspendApplet, VTApplet, and MenuAppletExample. Referenced by StartMenu::addApplets(). |
|
|
Translated name of the Menu Applet. Return a translated name using QObject::tr of your plugin Implemented in AboutApplet, HomeApplet, LockMenuApplet, LogoutApplet, RestartApplet, RotateApplet, SuspendApplet, VTApplet, and MenuAppletExample. |
|
|
Provide a SubMenu popup if you want. You can provide a Submenu popup for your item as well. If you return 0 no popup will be shown. You can use the QPopupMenu::aboutToShow() signal to be informed before showing the popup
Implemented in AboutApplet, HomeApplet, LockMenuApplet, LogoutApplet, RestartApplet, RotateApplet, SuspendApplet, VTApplet, and MenuAppletExample. Referenced by StartMenu::loadApplets(). |
|
|
the wished position of this applet The position where you want to be placed. 0 for the down most Implemented in AboutApplet, HomeApplet, LockMenuApplet, LogoutApplet, RestartApplet, RotateApplet, SuspendApplet, VTApplet, and MenuAppletExample. Referenced by compareAppletPositions(). |
|
|
return a Text shown to the user in the menu
Implemented in AboutApplet, HomeApplet, LockMenuApplet, LogoutApplet, RestartApplet, RotateApplet, SuspendApplet, VTApplet, and MenuAppletExample. Referenced by StartMenu::addApplets(). |
1.4.2