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

libkonq

konq_popupmenu.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 1998-2008 David Faure <faure@kde.org>
00003    Copyright (C) 2001 Holger Freyther <freyther@yahoo.com>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __konqpopupmenu_h
00022 #define __konqpopupmenu_h
00023 
00024 #include <sys/types.h>
00025 
00026 #include <QtCore/QMap>
00027 #include <QtGui/QMenu>
00028 
00029 #include <kaction.h>
00030 #include <kactioncollection.h>
00031 #include <kfileitem.h>
00032 #include <kparts/browserextension.h>
00033 #include <kservice.h>
00034 
00035 #include <libkonq_export.h>
00036 
00037 class KNewMenu;
00038 class KBookmarkManager;
00039 class KonqPopupMenuPrivate;
00040 
00049 class LIBKONQ_EXPORT KonqPopupMenu : public QMenu
00050 {
00051   Q_OBJECT
00052 public:
00053 
00058   typedef uint Flags;
00059   enum { NoFlags = 0,
00060          ShowNewWindow = 1 };
00061          // WARNING: bitfield. Next item is 2
00062 
00082   KonqPopupMenu( const KFileItemList &items,
00083                  const KUrl& viewURL,
00084                  KActionCollection & actions,
00085                  KNewMenu * newMenu,
00086                  Flags appFlags,
00087                  KParts::BrowserExtension::PopupFlags partFlags /*= KParts::BrowserExtension::DefaultPopupItems*/,
00088                  QWidget * parentWidget,
00089                  KBookmarkManager *manager = 0,
00090                  const KParts::BrowserExtension::ActionGroupMap& actionGroups = KParts::BrowserExtension::ActionGroupMap()
00091       );
00092 
00096   ~KonqPopupMenu();
00097 
00102   void setURLTitle( const QString& urlTitle );
00103 
00104 private:
00105   Q_PRIVATE_SLOT(d, void slotPopupNewDir())
00106   Q_PRIVATE_SLOT(d, void slotPopupNewView())
00107   Q_PRIVATE_SLOT(d, void slotPopupEmptyTrashBin())
00108   Q_PRIVATE_SLOT(d, void slotPopupRestoreTrashedItems())
00109   Q_PRIVATE_SLOT(d, void slotPopupAddToBookmark())
00110   Q_PRIVATE_SLOT(d, void slotPopupMimeType())
00111   Q_PRIVATE_SLOT(d, void slotPopupProperties())
00112   Q_PRIVATE_SLOT(d, void slotOpenShareFileDialog())
00113 
00114 private:
00115   KonqPopupMenuPrivate *d;
00116 };
00117 
00118 #endif

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