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

libkonq

KonqMenuActions Class Reference

#include <konq_menuactions.h>

List of all members.


Detailed Description

This class handles the user-defined actions for a url in a popupmenu.

User-defined actions include:

  • builtin services like mount/unmount for old-style device desktop files
  • user-defined actions for a .desktop file, defined in the file itself (see the desktop entry standard)
  • servicemenus actions, defined in .desktop files and selected based on the mimetype of the url

In addition it can also add "open with" actions.

Definition at line 39 of file konq_menuactions.h.


Public Member Functions

int addActionsTo (QMenu *menu)
void addOpenWithActionsTo (QMenu *menu, const QString &traderConstraint)
 KonqMenuActions ()
void setPopupMenuInfo (const KonqPopupMenuInformation &info)
 ~KonqMenuActions ()

Constructor & Destructor Documentation

KonqMenuActions::KonqMenuActions (  ) 

Creates a KonqMenuActions instance.

Note that this instance must stay alive for at least as long as the popupmenu; it has the slots for the actions created by addActionsTo.

Definition at line 167 of file konq_menuactions.cpp.

KonqMenuActions::~KonqMenuActions (  ) 

Destructor.

Definition at line 173 of file konq_menuactions.cpp.


Member Function Documentation

int KonqMenuActions::addActionsTo ( QMenu *  menu  ) 

Generate the user-defined actions and submenus, and adds them to the menu.

User-defined actions include:

  • builtin services like mount/unmount for old-style device desktop files
  • user-defined actions for a .desktop file, defined in the file itself (see the desktop entry standard)
  • servicemenus actions, defined in .desktop files and selected based on the mimetype of the url

When KonqPopupMenuInformation::readOnly() is true, actions that modify the files are not shown. This is controlled by Require=Write in the servicemenu desktop files.

All actions are created as children of the menu.

Returns:
the number of actions added

Definition at line 183 of file konq_menuactions.cpp.

void KonqMenuActions::addOpenWithActionsTo ( QMenu *  menu,
const QString &  traderConstraint 
)

Generate the "Open With <Application>" actions, and adds them to the menu.

All actions are created as children of the menu.

Parameters:
menu the QMenu where to add actions
traderConstraint this constraint allows to exclude the current application from the "open with" list. Example: "DesktopEntryName != 'kfmclient'".

Definition at line 395 of file konq_menuactions.cpp.

void KonqMenuActions::setPopupMenuInfo ( const KonqPopupMenuInformation &  info  ) 

Sets all the data for the next instance of the popupmenu.

See also:
KonqPopupMenuInformation

Definition at line 178 of file konq_menuactions.cpp.


The documentation for this class was generated from the following files:
  • konq_menuactions.h
  • konq_menuactions.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.4
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