KXmlGui

khelpmenu.h
1 /*
2  This file is part of the KDE Libraries
3  SPDX-FileCopyrightText: 1999-2000 Espen Sand <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KHELPMENU_H
9 #define KHELPMENU_H
10 
11 #include <kxmlgui_export.h>
12 
13 #include <QObject>
14 #include <QString>
15 
16 class QMenu;
17 class QWidget;
18 class QAction;
19 
20 class KAboutData;
21 class KHelpMenuPrivate;
22 
109 class KXMLGUI_EXPORT KHelpMenu : public QObject
110 {
111  Q_OBJECT
112 
113 public:
125  explicit KHelpMenu(QWidget *parent = nullptr, const QString &aboutAppText = QString(),
126  bool showWhatsThis = true);
127 
141  KHelpMenu(QWidget *parent, const KAboutData &aboutData,
142  bool showWhatsThis = true);
143 
149  ~KHelpMenu();
150 
162  QMenu *menu();
163 
164  enum MenuId {
165  menuHelpContents = 0,
166  menuWhatsThis = 1,
167  menuAboutApp = 2,
168  menuAboutKDE = 3,
169  menuReportBug = 4,
170  menuSwitchLanguage = 5,
171  menuDonate = 6
172  };
173 
180  QAction *action(MenuId id) const;
181 
182 public Q_SLOTS:
188  void appHelpActivated();
189 
193  void contextHelpActivated();
194 
204  void aboutApplication();
205 
209  void aboutKDE();
210 
214  void reportBug();
215 
219  void switchApplicationLanguage();
220 
225  void donate();
226 
227 private Q_SLOTS:
233  void menuDestroyed();
234 
239  void dialogFinished();
240 
246  void timerExpired();
247 
248 Q_SIGNALS:
256  void showAboutApplication();
257 
258 private:
259  KHelpMenuPrivate *const d;
260 };
261 
262 #endif
Standard KDE help menu with dialog boxes.
Definition: khelpmenu.h:109
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 22:50:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.