libkonq
KonqPopupMenu Class Reference
#include <konq_popupmenu.h>

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 50 of file konq_popupmenu.h.
Public Types | |
| enum | { NoFlags = 0, ShowNewWindow = 1 } |
| typedef uint | Flags |
Public Member Functions | |
| KonqPopupMenu (const KFileItemList &items, const KUrl &viewURL, KActionCollection &actions, KNewMenu *newMenu, Flags appFlags, KParts::BrowserExtension::PopupFlags partFlags, QWidget *parentWidget, KBookmarkManager *manager=0, const KParts::BrowserExtension::ActionGroupMap &actionGroups=KParts::BrowserExtension::ActionGroupMap()) | |
| ~KonqPopupMenu () | |
| void | setURLTitle (const QString &urlTitle) |
| KActionCollection * | actionCollection () const |
| QString | mimeType () const |
| KUrl | url () const |
| KFileItemList | fileItemList () const |
| KUrl::List | popupURLList () const |
Member Typedef Documentation
| typedef uint KonqPopupMenu::Flags |
Flags set by the calling application (konqueror/kdesktop), unlike KParts::BrowserExtension::PopupFlags, which are set by the calling part.
Definition at line 59 of file konq_popupmenu.h.
Member Enumeration Documentation
| anonymous enum |
Constructor & Destructor Documentation
| KonqPopupMenu::KonqPopupMenu | ( | const KFileItemList & | items, | |
| const KUrl & | viewURL, | |||
| KActionCollection & | actions, | |||
| KNewMenu * | 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
- Todo:
- that list is probably not be up-to-date
Definition at line 158 of file konq_popupmenu.cpp.
| KonqPopupMenu::~KonqPopupMenu | ( | ) |
Member Function Documentation
| 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 621 of file konq_popupmenu.cpp.
| KActionCollection* KonqPopupMenu::actionCollection | ( | ) | const |
| QString KonqPopupMenu::mimeType | ( | ) | const |
Definition at line 694 of file konq_popupmenu.cpp.
| KUrl KonqPopupMenu::url | ( | ) | const |
Definition at line 746 of file konq_popupmenu.cpp.
| KFileItemList KonqPopupMenu::fileItemList | ( | ) | const |
Definition at line 751 of file konq_popupmenu.cpp.
| KUrl::List KonqPopupMenu::popupURLList | ( | ) | const |
Definition at line 756 of file konq_popupmenu.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference