khelpmenu.h00001
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 <qobject.h>
00026 #include <qstring.h>
00027
00028 #include <kdelibs_export.h>
00029
00030 class KActionCollection;
00031 class KPopupMenu;
00032 class QWidget;
00033
00034 class KAboutData;
00035 class KAboutKDE;
00036 class KBugReport;
00037 class KDialogBase;
00038 class KHelpMenuPrivate;
00039
00040
00131 class KDEUI_EXPORT KHelpMenu : public QObject
00132 {
00133 Q_OBJECT
00134
00135 public:
00136 enum MenuId
00137 {
00138 menuHelpContents = 0,
00139 menuWhatsThis = 1,
00140 menuAboutApp = 2,
00141 menuAboutKDE = 3,
00142 menuReportBug = 4
00143 };
00144
00158 KHelpMenu( QWidget *parent=0, const QString &aboutAppText=QString::null,
00159 bool showWhatsThis=true );
00160
00177 KHelpMenu( QWidget *parent, const KAboutData *aboutData,
00178 bool showWhatsThis=true, KActionCollection *actions = 0 );
00179
00185 ~KHelpMenu();
00186
00194 KPopupMenu *menu();
00195
00196 public slots:
00202 void appHelpActivated();
00203
00207 void contextHelpActivated();
00208
00214 void aboutApplication();
00215
00219 void aboutKDE();
00220
00224 void reportBug();
00225
00226 private slots:
00232 void menuDestroyed();
00233
00238 void dialogFinished();
00239
00245 void timerExpired();
00246
00247 signals:
00255 void showAboutApplication();
00256
00257 private:
00258 KPopupMenu *mMenu;
00259 KDialogBase *mAboutApp;
00260 KAboutKDE *mAboutKDE;
00261 KBugReport *mBugReport;
00262
00263 QString mAboutAppText;
00264 QWidget *mParent;
00265
00266 bool mShowWhatsThis;
00267
00268 protected:
00269 virtual void virtual_hook( int id, void* data );
00270 private:
00271 KHelpMenuPrivate *d;
00272 };
00273
00274
00275 #endif
|