#include <konq_popupmenu.h>

Public Types | |
enum | { NoFlags = 0 , ShowProperties = 1 , IsLink = 2 , ShowNewWindow = 4 } |
typedef uint | KonqPopupFlags |
Public Slots | |
void | slotPopupNewDir () |
void | slotPopupNewView () |
void | slotPopupEmptyTrashBin () |
void | slotPopupRestoreTrashedItems () |
void | slotPopupOpenWith () |
void | slotPopupAddToBookmark () |
void | slotRunService () |
void | slotPopupMimeType () |
void | slotPopupProperties () |
void | slotOpenShareFileDialog () |
Public Member Functions | |
KonqPopupMenu (KBookmarkManager *manager, const KFileItemList &items, KURL viewURL, TDEActionCollection &actions, KNewMenu *newMenu, bool showPropertiesAndFileType=true) TDE_DEPRECATED | |
KonqPopupMenu (KBookmarkManager *manager, const KFileItemList &items, KURL viewURL, TDEActionCollection &actions, KNewMenu *newMenu, TQWidget *parentWidget, bool showPropertiesAndFileType=true) TDE_DEPRECATED | |
KonqPopupMenu (KBookmarkManager *manager, const KFileItemList &items, const KURL &viewURL, TDEActionCollection &actions, KNewMenu *newMenu, TQWidget *parentWidget, KonqPopupFlags kpf, KParts::BrowserExtension::PopupFlags f) | |
~KonqPopupMenu () | |
void | setURLTitle (const TQString &urlTitle) |
virtual TDEAction * | action (const TQDomElement &element) const |
virtual TDEActionCollection * | actionCollection () const |
TQString | mimeType () const |
KURL | url () const |
KFileItemList | fileItemList () const |
KURL::List | popupURLList () const |
ProtocolInfo | protocolInfo () const |
![]() | |
KonqXMLGUIClient (KXMLGUIClient *parent) | |
TQDomDocument | domDocument () const |
TQDomElement | DomElement () const |
bool | hasGroup (const TQString &name) const |
Protected Attributes | |
TDEActionCollection & | m_actions |
TDEActionCollection | m_ownActions |
![]() | |
TQDomElement | m_menuElement |
TQDomDocument | m_doc |
Additional Inherited Members | |
![]() | |
void | addAction (TDEAction *action, const TQDomElement &menu=TQDomElement()) |
void | addAction (const char *name, const TQDomElement &menu=TQDomElement()) |
void | addSeparator (const TQDomElement &menu=TQDomElement()) |
void | addPendingSeparator () |
void | addGroup (const TQString &grp) |
void | addMerge (const TQString &name) |
bool | hasAction () const |
void | prepareXMLGUIStuff () |
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.
Definition at line 56 of file konq_popupmenu.h.
Member Typedef Documentation
◆ KonqPopupFlags
typedef uint KonqPopupMenu::KonqPopupFlags |
Flags set by the calling application (konqueror/kdesktop), unlike KParts::BrowserExtension::PopupFlags, which are set by the calling part.
Definition at line 65 of file konq_popupmenu.h.
Member Enumeration Documentation
◆ anonymous enum
anonymous enum |
Enumerator | |
---|---|
ShowProperties | whether to show the "Properties" menu item |
IsLink | HTML link. If set, we won't have cut/copy/paste, and we'll say "bookmark this link". |
Definition at line 66 of file konq_popupmenu.h.
Constructor & Destructor Documentation
◆ KonqPopupMenu() [1/3]
KonqPopupMenu::KonqPopupMenu | ( | KBookmarkManager * | manager, |
const KFileItemList & | items, | ||
KURL | viewURL, | ||
TDEActionCollection & | actions, | ||
KNewMenu * | newMenu, | ||
bool | showPropertiesAndFileType = true |
||
) |
- Deprecated:
- lacks parentWidget pointer, and uses bool instead of KonqPopupFlags enum, might do strange things with the 'new window' action.
Definition at line 191 of file konq_popupmenu.cpp.
◆ KonqPopupMenu() [2/3]
KonqPopupMenu::KonqPopupMenu | ( | KBookmarkManager * | manager, |
const KFileItemList & | items, | ||
KURL | viewURL, | ||
TDEActionCollection & | actions, | ||
KNewMenu * | newMenu, | ||
TQWidget * | parentWidget, | ||
bool | showPropertiesAndFileType = true |
||
) |
- Deprecated:
- uses bool instead of KonqPopupFlags enum, might do strange things with the 'new window' action.
Definition at line 204 of file konq_popupmenu.cpp.
◆ KonqPopupMenu() [3/3]
KonqPopupMenu::KonqPopupMenu | ( | KBookmarkManager * | manager, |
const KFileItemList & | items, | ||
const KURL & | viewURL, | ||
TDEActionCollection & | actions, | ||
KNewMenu * | newMenu, | ||
TQWidget * | parentWidget, | ||
KonqPopupFlags | kpf, | ||
KParts::BrowserExtension::PopupFlags | f | ||
) |
Constructor.
- Parameters
-
manager the bookmark manager for this bookmark 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. kpf flags from the KonqPopupFlags enum, set by the calling application f flags from the BrowserExtension enum, set by the calling part
The actions to pass in include : showmenubar, back, forward, up, cut, copy, paste, pasteto, trash, rename, del The others items are automatically inserted.
- Since
- 3.2
- Todo:
- that list is probably not be up-to-date
Definition at line 216 of file konq_popupmenu.cpp.
◆ ~KonqPopupMenu()
KonqPopupMenu::~KonqPopupMenu | ( | ) |
Don't forget to destroy the object.
Definition at line 1026 of file konq_popupmenu.cpp.
Member Function Documentation
◆ action()
|
virtual |
Reimplemented for internal purpose.
Definition at line 1139 of file konq_popupmenu.cpp.
◆ actionCollection()
|
virtual |
Definition at line 1153 of file konq_popupmenu.cpp.
◆ fileItemList()
KFileItemList KonqPopupMenu::fileItemList | ( | ) | const |
Definition at line 1209 of file konq_popupmenu.cpp.
◆ mimeType()
TQString KonqPopupMenu::mimeType | ( | ) | const |
Definition at line 1158 of file konq_popupmenu.cpp.
◆ popupURLList()
KURL::List KonqPopupMenu::popupURLList | ( | ) | const |
Definition at line 1214 of file konq_popupmenu.cpp.
◆ protocolInfo()
KonqPopupMenu::ProtocolInfo KonqPopupMenu::protocolInfo | ( | ) | const |
Definition at line 1163 of file konq_popupmenu.cpp.
◆ setURLTitle()
void KonqPopupMenu::setURLTitle | ( | const TQString & | 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 1035 of file konq_popupmenu.cpp.
◆ slotOpenShareFileDialog
|
slot |
Definition at line 1020 of file konq_popupmenu.cpp.
◆ slotPopupAddToBookmark
|
slot |
Definition at line 1070 of file konq_popupmenu.cpp.
◆ slotPopupEmptyTrashBin
|
slot |
Definition at line 1055 of file konq_popupmenu.cpp.
◆ slotPopupMimeType
|
slot |
Definition at line 1111 of file konq_popupmenu.cpp.
◆ slotPopupNewDir
|
slot |
Definition at line 1047 of file konq_popupmenu.cpp.
◆ slotPopupNewView
|
slot |
Definition at line 1040 of file konq_popupmenu.cpp.
◆ slotPopupOpenWith
|
slot |
Definition at line 1065 of file konq_popupmenu.cpp.
◆ slotPopupProperties
|
slot |
Definition at line 1116 of file konq_popupmenu.cpp.
◆ slotPopupRestoreTrashedItems
|
slot |
Definition at line 1060 of file konq_popupmenu.cpp.
◆ slotRunService
|
slot |
Definition at line 1088 of file konq_popupmenu.cpp.
◆ url()
KURL KonqPopupMenu::url | ( | ) | const |
Definition at line 1204 of file konq_popupmenu.cpp.
Member Data Documentation
◆ m_actions
|
protected |
Definition at line 178 of file konq_popupmenu.h.
◆ m_ownActions
|
protected |
Definition at line 179 of file konq_popupmenu.h.
The documentation for this class was generated from the following files: