libkonq
#include <konq_popupmenuplugin.h>
Public Member Functions | |
KonqPopupMenuPlugin (QObject *parent) | |
virtual | ~KonqPopupMenuPlugin () |
virtual void | setup (KActionCollection *actionCollection, const KonqPopupMenuInformation &popupMenuInfo, QMenu *menu)=0 |
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.
- Deprecated:
- Use KFileItemActionPlugin instead.
Definition at line 43 of file konq_popupmenuplugin.h.
Constructor & Destructor Documentation
KonqPopupMenuPlugin::KonqPopupMenuPlugin | ( | QObject * | parent | ) |
Constructor.
Definition at line 23 of file konq_popupmenuplugin.cpp.
|
virtual |
Definition at line 28 of file konq_popupmenuplugin.cpp.
Member Function Documentation
|
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:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.