libkonq Library API Documentation

KonqPopupMenu Class Reference

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. More...

#include <konq_popupmenu.h>

Inheritance diagram for KonqPopupMenu:

KonqXMLGUIClient List of all members.

Public Slots

void slotPopupNewDir ()
void slotPopupNewView ()
void slotPopupEmptyTrashBin ()
void slotPopupOpenWith ()
void slotPopupAddToBookmark ()
void slotRunService ()
void slotPopupMimeType ()
void slotPopupProperties ()
void slotOpenShareFileDialog ()

Public Member Functions

 KonqPopupMenu (KBookmarkManager *manager, const KFileItemList &items, KURL viewURL, KActionCollection &actions, KNewMenu *newMenu, bool showPropertiesAndFileType=true)
 Constructor.

 KonqPopupMenu (KBookmarkManager *manager, const KFileItemList &items, KURL viewURL, KActionCollection &actions, KNewMenu *newMenu, QWidget *parentWidget, bool showPropertiesAndFileType=true)
 ~KonqPopupMenu ()
 Don't forget to destroy the object.

void setURLTitle (const QString &urlTitle)
 Set the title of the URL, when the popupmenu is opened for a single URL.

virtual KAction * action (const QDomElement &element) const
 Reimplemented for internal purpose.

virtual KActionCollection * actionCollection () const
QString mimeType () const
KURL url () const
KFileItemList fileItemList () const
KURL::List popupURLList () const
ProtocolInfo protocolInfo () const

Protected Attributes

KActionCollection & m_actions
KActionCollection m_ownActions

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 47 of file konq_popupmenu.h.


Constructor & Destructor Documentation

KonqPopupMenu::KonqPopupMenu KBookmarkManager *  manager,
const KFileItemList &  items,
KURL  viewURL,
KActionCollection &  actions,
KNewMenu newMenu,
bool  showPropertiesAndFileType = true
 

Constructor.

Parameters:
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
allowEmbeddingServices whether to allow services to be embedded (true in konqueror, false in kdesktop and others)
The actions to pass in include : showmenubar, back, forward, up, cut, copy, paste, pasteto, trash, rename, del, shred The others items are automatically inserted.

Definition at line 109 of file konq_popupmenu.cc.

KonqPopupMenu::~KonqPopupMenu  ) 
 

Don't forget to destroy the object.

Definition at line 597 of file konq_popupmenu.cc.


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 606 of file konq_popupmenu.cc.

KAction * KonqPopupMenu::action const QDomElement &  element  )  const [virtual]
 

Reimplemented for internal purpose.

Definition at line 710 of file konq_popupmenu.cc.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Thu Jan 29 23:03:29 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001