KDEUI
khelpmenu.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KHELPMENU_H
00023 #define KHELPMENU_H
00024
00025 #include <kdeui_export.h>
00026
00027 #include <QtCore/QObject>
00028 #include <QtCore/QString>
00029
00030 class KActionCollection;
00031 class KMenu;
00032 class QWidget;
00033 class QAction;
00034
00035 class KAboutData;
00036 class KHelpMenuPrivate;
00037
00038
00108 class KDEUI_EXPORT KHelpMenu : public QObject
00109 {
00110 Q_OBJECT
00111
00112 public:
00124 explicit KHelpMenu( QWidget *parent=0, const QString &aboutAppText=QString(),
00125 bool showWhatsThis=true );
00126
00143 KHelpMenu( QWidget *parent, const KAboutData *aboutData,
00144 bool showWhatsThis=true, KActionCollection *actions = 0 );
00145
00151 ~KHelpMenu();
00152
00164 KMenu *menu();
00165
00166 enum MenuId
00167 {
00168 menuHelpContents = 0,
00169 menuWhatsThis = 1,
00170 menuAboutApp = 2,
00171 menuAboutKDE = 3,
00172 menuReportBug = 4,
00173 menuSwitchLanguage = 5
00174 };
00175
00182 QAction *action( MenuId id ) const;
00183
00184 public Q_SLOTS:
00190 void appHelpActivated();
00191
00195 void contextHelpActivated();
00196
00206 void aboutApplication();
00207
00211 void aboutKDE();
00212
00216 void reportBug();
00217
00221 void switchApplicationLanguage();
00222
00223 private Q_SLOTS:
00229 void menuDestroyed();
00230
00235 void dialogFinished();
00236
00242 void timerExpired();
00243
00244 Q_SIGNALS:
00252 void showAboutApplication();
00253
00254 private:
00255 KHelpMenuPrivate *const d;
00256 };
00257
00258
00259 #endif