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

KDEUI

  • 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
30class KActionCollection;
31class KMenu;
32class QWidget;
33class QAction;
34
35class KAboutData;
36class KHelpMenuPrivate;
37
38
110class 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
KAboutData
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:57
KHelpMenu
Standard KDE help menu with dialog boxes.
Definition: khelpmenu.h:111
KHelpMenu::showAboutApplication
void showAboutApplication()
This signal is emitted from aboutApplication() if no "about application" string has been defined.
KHelpMenu::MenuId
MenuId
Definition: khelpmenu.h:169
KMenu
A menu with keyboard searching.
Definition: kmenu.h:42
QAction
QObject
QWidget
kdeui_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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