• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkonq

KonqPopupMenuPlugin Class Reference

Base class for KonqPopupMenu plugins. More...

#include <konq_popupmenuplugin.h>

Inheritance diagram for KonqPopupMenuPlugin:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 KonqPopupMenuPlugin (QObject *parent)
virtual void setup (KActionCollection *actionCollection, const KonqPopupMenuInformation &popupMenuInfo, QMenu *menu)=0
virtual ~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.


Constructor & Destructor Documentation

KonqPopupMenuPlugin::KonqPopupMenuPlugin ( QObject *  parent  ) 

Constructor.

Definition at line 23 of file konq_popupmenuplugin.cpp.

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:
  • konq_popupmenuplugin.h
  • konq_popupmenuplugin.cpp

libkonq

Skip menu "libkonq"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal