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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • widgets
khelpmenu.h
Go to the documentation of this file.
1 /*
2  * This file is part of the KDE Libraries
3  * Copyright (C) 1999-2000 Espen Sand (espen@kde.org)
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 
22 #ifndef KHELPMENU_H
23 #define KHELPMENU_H
24 
25 #include <kdeui_export.h>
26 
27 #include <QtCore/QObject>
28 #include <QtCore/QString>
29 
30 class KActionCollection;
31 class KMenu;
32 class QWidget;
33 class QAction;
34 
35 class KAboutData;
36 class KHelpMenuPrivate;
37 
38 
110 class KDEUI_EXPORT KHelpMenu : public QObject
111 {
112  Q_OBJECT
113 
114  public:
126  explicit KHelpMenu( QWidget *parent=0, const QString &aboutAppText=QString(),
127  bool showWhatsThis=true );
128 
145  KHelpMenu( QWidget *parent, const KAboutData *aboutData,
146  bool showWhatsThis=true, KActionCollection *actions = 0 );
147 
153  ~KHelpMenu();
154 
166  KMenu *menu();
167 
168  enum MenuId
169  {
170  menuHelpContents = 0,
171  menuWhatsThis = 1,
172  menuAboutApp = 2,
173  menuAboutKDE = 3,
174  menuReportBug = 4,
175  menuSwitchLanguage = 5
176  };
177 
184  QAction *action( MenuId id ) const;
185 
186  public Q_SLOTS:
192  void appHelpActivated();
193 
197  void contextHelpActivated();
198 
208  void aboutApplication();
209 
213  void aboutKDE();
214 
218  void reportBug();
219 
223  void switchApplicationLanguage();
224 
225  private Q_SLOTS:
231  void menuDestroyed();
232 
237  void dialogFinished();
238 
244  void timerExpired();
245 
246  Q_SIGNALS:
254  void showAboutApplication();
255 
256  private:
257  KHelpMenuPrivate *const d;
258 };
259 
260 
261 #endif
QWidget
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:56
KMenu
A menu with keyboard searching.
Definition: kmenu.h:42
KStandardAction::aboutKDE
KAction * aboutKDE(const QObject *recvr, const char *slot, QObject *parent)
Display the About KDE dialog.
Definition: kstandardaction.cpp:631
KHelpMenu
Standard KDE help menu with dialog boxes.
Definition: khelpmenu.h:110
QObject
KStandardAction::reportBug
KAction * reportBug(const QObject *recvr, const char *slot, QObject *parent)
Open up the Report Bug dialog.
Definition: kstandardaction.cpp:616
KAboutData
QString
KStandardAction::switchApplicationLanguage
KAction * switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent)
Definition: kstandardaction.cpp:621
QAction
kdeui_export.h
KHelpMenu::MenuId
MenuId
Definition: khelpmenu.h:168
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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