• 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_menuactions.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 1998-2009 David Faure <faure@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU Library General Public License as published
6  by the Free Software Foundation; either version 2 of the License or
7  ( at your option ) version 3 or, at the discretion of KDE e.V.
8  ( which shall act as a proxy as in section 14 of the GPLv3 ), 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 KONQ_MENUACTIONS_H
22 #define KONQ_MENUACTIONS_H
23 
24 #include <kfileitem.h>
25 #include <libkonq_export.h>
26 
27 class KFileItemActions;
28 class KFileItemListProperties;
29 class KAction;
30 class KonqPopupMenuInformation;
31 class QMenu;
32 
42 class LIBKONQ_EXPORT KonqMenuActions
43 {
44 public:
50  KonqMenuActions();
51 
55  ~KonqMenuActions();
56 
62  KDE_DEPRECATED void setPopupMenuInfo(const KonqPopupMenuInformation& info);
63 
69  void setItemListProperties(const KFileItemListProperties& itemList);
70 
80  void setParentWidget(QWidget* widget);
81 
95  int addActionsTo(QMenu* menu); // NOTE: renamed to addServiceActionsTo() in KFileItemActions
96 
104  void addOpenWithActionsTo(QMenu* menu, const QString& traderConstraint);
105 
113  KAction* preferredOpenWithAction(const QString& traderConstraint);
114 
115 private:
116  KFileItemActions* const d;
117 };
118 
119 #endif /* KONQ_MENUACTIONS_H */
QWidget
KonqMenuActions
This class handles the user-defined actions for a url in a popupmenu.
Definition: konq_menuactions.h:42
libkonq_export.h
QMenu
LIBKONQ_EXPORT
#define LIBKONQ_EXPORT
Definition: libkonq_export.h:36
KonqPopupMenuInformation
Holds the information about the items shown by KonqPopupMenu.
Definition: konq_popupmenuinformation.h:43
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