• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkonq

KonqPopupMenu Class Reference

#include <konq_popupmenu.h>

Inheritance diagram for KonqPopupMenu:

Inheritance graph
[legend]

List of all members.


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 49 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())
void setURLTitle (const QString &urlTitle)
 ~KonqPopupMenu ()

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


Member Enumeration Documentation

anonymous enum

Enumerator:
NoFlags 
ShowNewWindow 

Definition at line 59 of file konq_popupmenu.h.


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
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 112 of file konq_popupmenu.cpp.

KonqPopupMenu::~KonqPopupMenu (  ) 

Don't forget to destroy the object.

Definition at line 419 of file konq_popupmenu.cpp.


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 425 of file konq_popupmenu.cpp.


The documentation for this class was generated from the following files:
  • konq_popupmenu.h
  • konq_popupmenu.cpp

libkonq

Skip menu "libkonq"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal