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

libkonq

  • sources
  • kde-4.12
  • applications
  • kde-baseapps
  • lib
  • konq
konq_popupmenu.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 1998-2008 David Faure <faure@kde.org>
3  Copyright (C) 2001 Holger Freyther <freyther@yahoo.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __konqpopupmenu_h
22 #define __konqpopupmenu_h
23 
24 #include <sys/types.h>
25 
26 #include <QtCore/QMap>
27 #include <QMenu>
28 
29 #include <kaction.h>
30 #include <kactioncollection.h>
31 #include <kfileitem.h>
32 #include <kparts/browserextension.h>
33 #include <kservice.h>
34 
35 #include <libkonq_export.h>
36 
37 class KNewFileMenu;
38 class KFileItemActions;
39 
40 class KBookmarkManager;
41 class KonqPopupMenuPrivate;
42 
51 class LIBKONQ_EXPORT KonqPopupMenu : public QMenu // KDE5 TODO: inherit KMenu to benefit from KAcceleratorManager automatically
52 {
53  Q_OBJECT
54 public:
55 
60  typedef uint Flags;
61  enum { NoFlags = 0,
62  ShowNewWindow = 1,
63  NoPlugins = 2 /*for the unittest*/ };
64  // WARNING: bitfield. Next item is 4
65 
85  KonqPopupMenu( const KFileItemList &items,
86  const KUrl& viewURL,
87  KActionCollection & actions,
88  KNewFileMenu * newMenu,
89  Flags appFlags,
90  KParts::BrowserExtension::PopupFlags partFlags /*= KParts::BrowserExtension::DefaultPopupItems*/,
91  QWidget * parentWidget,
92  KBookmarkManager *manager = 0,
93  const KParts::BrowserExtension::ActionGroupMap& actionGroups = KParts::BrowserExtension::ActionGroupMap()
94  );
95 
99  ~KonqPopupMenu();
100 
105  void setURLTitle( const QString& urlTitle );
106  KFileItemActions* fileItemActions() const;
107 
108 private:
109  Q_PRIVATE_SLOT(d, void slotPopupNewDir())
110  Q_PRIVATE_SLOT(d, void slotPopupNewView())
111  Q_PRIVATE_SLOT(d, void slotPopupEmptyTrashBin())
112  Q_PRIVATE_SLOT(d, void slotConfigTrashBin())
113  Q_PRIVATE_SLOT(d, void slotPopupRestoreTrashedItems())
114  Q_PRIVATE_SLOT(d, void slotPopupAddToBookmark())
115  Q_PRIVATE_SLOT(d, void slotPopupMimeType())
116  Q_PRIVATE_SLOT(d, void slotPopupProperties())
117  Q_PRIVATE_SLOT(d, void slotOpenShareFileDialog())
118  Q_PRIVATE_SLOT(d, void slotShowOriginalFile())
119 
120 private:
121  KonqPopupMenuPrivate *d;
122 };
123 
124 #endif
KNewFileMenu
QWidget
KonqPopupMenu
This class implements the popup menu for URLs in konqueror and kdesktop It's usage is very simple : o...
Definition: konq_popupmenu.h:51
libkonq_export.h
QMenu
KonqPopupMenu::Flags
uint Flags
Flags set by the calling application (e.g.
Definition: konq_popupmenu.h:60
LIBKONQ_EXPORT
#define LIBKONQ_EXPORT
Definition: libkonq_export.h:36
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