MenuAppletInterface Struct Reference
Plugins for the Menu Applet/StartMenu. More...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. | |
Detailed Description
Plugins for the Menu Applet/StartMenu.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.
Member Function Documentation
|
|
Translated name of the Menu Applet. Return a translated name using QObject::tr of your plugin |
|
|
the wished position of this applet The position where you want to be placed. 0 for the down most |
|
|
return a QIconSet. The returned icon set will be shown next to text(). Make use of AppLnk::smallIconSize() |
|
|
return a Text shown to the user in the menu
|
|
|
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
|
|
|
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 |
The documentation for this struct was generated from the following files:
