Krita Source Code Documentation
Loading...
Searching...
No Matches
khelpmenu.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE Libraries
3 * SPDX-FileCopyrightText: 1999-2000 Espen Sand (espen@kde.org)
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 *
7 */
8
9#ifndef KHELPMENU_H
10#define KHELPMENU_H
11
12#include <kritawidgetutils_export.h>
13
14#include <QObject>
15#include <QString>
16
17class QMenu;
18class QWidget;
19class QAction;
20
21class KAboutData;
23
105class KRITAWIDGETUTILS_EXPORT KisKHelpMenu : public QObject
106{
107 Q_OBJECT
108
109public:
121 explicit KisKHelpMenu(QWidget *parent = 0, const QString &aboutAppText = QString(),
122 bool showWhatsThis = true);
123
137 KisKHelpMenu(QWidget *parent, const KAboutData &aboutData,
138 bool showWhatsThis = true);
139
145 ~KisKHelpMenu() override;
146
158 QMenu *menu();
159
160 enum MenuId {
161 menuHelpContents = 0,
162 menuWhatsThis = 1,
163 menuAboutApp = 2,
164 menuAboutKDE = 3,
165 menuReportBug = 4,
166 menuSwitchLanguage = 5
167 };
168
175 QAction *action(MenuId id) const;
176
177public Q_SLOTS:
183 void appHelpActivated();
184
188 void contextHelpActivated();
189
199 void aboutApplication();
200
204 void aboutKDE();
205
209 void reportBug();
210
214 void switchApplicationLanguage();
215
216private Q_SLOTS:
222 void menuDestroyed();
223
228 void dialogFinished();
229
235 void timerExpired();
236
237Q_SIGNALS:
246
247private:
249};
250
251#endif
Standard KDE help menu with dialog boxes.
Definition khelpmenu.h:106
void showAboutApplication()
KisKHelpMenuPrivate *const d
Definition khelpmenu.h:248