libkonq
#include <konq_popupmenu.h>
Public Types | |
enum | { NoFlags = 0, ShowNewWindow = 1, NoPlugins = 2 } |
typedef uint | Flags |
Public Member Functions | |
KonqPopupMenu (const KFileItemList &items, const KUrl &viewURL, KActionCollection &actions, KNewFileMenu *newMenu, Flags appFlags, KParts::BrowserExtension::PopupFlags partFlags, QWidget *parentWidget, KBookmarkManager *manager=0, const KParts::BrowserExtension::ActionGroupMap &actionGroups=KParts::BrowserExtension::ActionGroupMap()) | |
~KonqPopupMenu () | |
KFileItemActions * | fileItemActions () const |
void | setURLTitle (const QString &urlTitle) |
Detailed Description
This class implements the popup menu for URLs in konqueror and kdesktop It's usage is very simple : on right click, create the KonqPopupMenu instance with the correct arguments, then exec() to make it appear, then destroy it.
Users of KonqPopupMenu include: konqueror, the media applet, the trash applet (and the desktop icons, in kde3)
Definition at line 51 of file konq_popupmenu.h.
Member Typedef Documentation
typedef uint KonqPopupMenu::Flags |
Flags set by the calling application (e.g.
konqueror), unlike KParts::BrowserExtension::PopupFlags, which are set by the calling part
Definition at line 60 of file konq_popupmenu.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
NoFlags | |
ShowNewWindow | |
NoPlugins |
Definition at line 61 of file konq_popupmenu.h.
Constructor & Destructor Documentation
KonqPopupMenu::KonqPopupMenu | ( | const KFileItemList & | items, |
const KUrl & | viewURL, | ||
KActionCollection & | actions, | ||
KNewFileMenu * | newMenu, | ||
Flags | appFlags, | ||
KParts::BrowserExtension::PopupFlags | partFlags, | ||
QWidget * | parentWidget, | ||
KBookmarkManager * | manager = 0 , |
||
const KParts::BrowserExtension::ActionGroupMap & | actionGroups = KParts::BrowserExtension::ActionGroupMap() |
||
) |
Constructor.
- Parameters
-
manager the bookmark manager for the "add to bookmark" action Only used if KParts::BrowserExtension::ShowBookmark is set items the list of file items the popupmenu should be shown for viewURL the URL shown in the view, to test for RMB click on view background actions list of actions the caller wants to see in the menu newMenu "New" menu, shared with the File menu, in konqueror parentWidget the widget we're showing this popup for. Helps destroying the popup if the widget is destroyed before the popup. appFlags flags from the KonqPopupMenu::Flags enum, set by the calling application partFlags flags from the BrowserExtension enum, set by the calling part
The actions to pass in include : showmenubar, go_back, go_forward, go_up, cut, copy, paste, pasteto The others items are automatically inserted.
- Todo:
- that list is probably not be up-to-date
Definition at line 131 of file konq_popupmenu.cpp.
KonqPopupMenu::~KonqPopupMenu | ( | ) |
Don't forget to destroy the object.
Definition at line 480 of file konq_popupmenu.cpp.
Member Function Documentation
KFileItemActions * KonqPopupMenu::fileItemActions | ( | ) | const |
Definition at line 491 of file konq_popupmenu.cpp.
void KonqPopupMenu::setURLTitle | ( | const QString & | urlTitle | ) |
Set the title of the URL, when the popupmenu is opened for a single URL.
This is used if the user chooses to add a bookmark for this URL.
Definition at line 486 of file konq_popupmenu.cpp.
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.