• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

libkonq

Public Member Functions | List of all members
KonqPopupMenuPlugin Class Referenceabstract

#include <konq_popupmenuplugin.h>

Inheritance diagram for KonqPopupMenuPlugin:
Inheritance graph
[legend]

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.

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
actionCollectionthe parent for the actions
popupMenuInfoall the information about the popupmenu being shown (which file items, their common mimetype, etc.)
menuthe 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
This file is part of the KDE documentation.
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.

libkonq

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal