• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

libkonq

Public Types | Public Member Functions | List of all members
KonqPopupMenu Class Reference

#include <konq_popupmenu.h>

Inheritance diagram for KonqPopupMenu:
Inheritance graph
[legend]

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
managerthe bookmark manager for the "add to bookmark" action Only used if KParts::BrowserExtension::ShowBookmark is set
itemsthe list of file items the popupmenu should be shown for
viewURLthe URL shown in the view, to test for RMB click on view background
actionslist of actions the caller wants to see in the menu
newMenu"New" menu, shared with the File menu, in konqueror
parentWidgetthe widget we're showing this popup for. Helps destroying the popup if the widget is destroyed before the popup.
appFlagsflags from the KonqPopupMenu::Flags enum, set by the calling application
partFlagsflags 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:
  • konq_popupmenu.h
  • konq_popupmenu.cpp
This file is part of the KDE documentation.
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.

libkonq

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal