• 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
KonqDndPopupMenuPlugin Class Referenceabstract

#include <konq_dndpopupmenuplugin.h>

Inheritance diagram for KonqDndPopupMenuPlugin:
Inheritance graph
[legend]

Public Member Functions

 KonqDndPopupMenuPlugin (QObject *parent)
 
virtual ~KonqDndPopupMenuPlugin ()
 
virtual void setup (const KFileItemListProperties &popupMenuInfo, KUrl destination, QList< QAction * > &pluginActions)=0
 

Detailed Description

Base class for drag and drop popup menus.

This can be used for adding dynamic menu items to the normal copy/move/link here menu appearing in dolphin/konqueror. In the setup-method you may check the properties of the dropped files, and if applicable, append your own QAction that the user may trigger in the menu.

Author
Harald Hvaal metel.nosp@m.lius.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition at line 40 of file konq_dndpopupmenuplugin.h.

Constructor & Destructor Documentation

KonqDndPopupMenuPlugin::KonqDndPopupMenuPlugin ( QObject *  parent)

Constructor.

Definition at line 21 of file konq_dndpopupmenuplugin.cpp.

KonqDndPopupMenuPlugin::~KonqDndPopupMenuPlugin ( )
virtual

Definition at line 26 of file konq_dndpopupmenuplugin.cpp.

Member Function Documentation

virtual void KonqDndPopupMenuPlugin::setup ( const KFileItemListProperties &  popupMenuInfo,
KUrl  destination,
QList< QAction * > &  pluginActions 
)
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
popupMenuInfoall the information about the popupmenu being shown (which file items, their common mimetype, etc.)
destinationthe URL to where the file(s) were dropped
pluginActionsa QList with the QActions that will be plugged into the menu.

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