libkonq
KonqPopupMenuPlugin Class Reference
#include <konq_popupmenuplugin.h>
Inheritance diagram for KonqPopupMenuPlugin:

Detailed Description
Base class for KonqPopupMenu plugins.Please try to use servicemenus first, if you simply need to add actions to the popup menu for one or more mimetypes.
However if you need some dynamic logic, like "only show this item if two files are selected", or "show a submenu with a variable number of actions", then you have to implement a KonqPopupMenuPlugin subclass.
Definition at line 41 of file konq_popupmenuplugin.h.
Public Member Functions | |
KonqPopupMenuPlugin (QObject *parent) | |
virtual void | setup (KActionCollection *actionCollection, const KonqPopupMenuInformation &popupMenuInfo, QMenu *menu)=0 |
virtual | ~KonqPopupMenuPlugin () |
Constructor & Destructor Documentation
KonqPopupMenuPlugin::KonqPopupMenuPlugin | ( | QObject * | parent | ) |
KonqPopupMenuPlugin::~KonqPopupMenuPlugin | ( | ) | [virtual] |
Definition at line 28 of file konq_popupmenuplugin.cpp.
Member Function Documentation
virtual void KonqPopupMenuPlugin::setup | ( | KActionCollection * | actionCollection, | |
const KonqPopupMenuInformation & | popupMenuInfo, | |||
QMenu * | menu | |||
) | [pure virtual] |
Implement the setup method in the plugin in order to create actions in the given actionCollection and add it to the menu using menu->addAction().
- Parameters:
-
actionCollection the parent for the actions popupMenuInfo all the information about the popupmenu being shown (which file items, their common mimetype, etc.) menu the menu where the plugin can add its own actions
The documentation for this class was generated from the following files: