• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

khelpmenu.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the KDE Libraries
00003  * Copyright (C) 1999-2000 Espen Sand (espen@kde.org)
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
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

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal