• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

khelpmenu.h

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 <tqobject.h>
00026 #include <tqstring.h>
00027 
00028 #include <tdelibs_export.h>
00029 
00030 class TDEActionCollection;
00031 class TDEPopupMenu;
00032 class TQWidget;
00033 
00034 class TDEAboutData;
00035 class TDEAboutKDE;
00036 class KBugReport;
00037 class KDialogBase;
00038 class KHelpMenuPrivate;
00039 
00040 
00131 class TDEUI_EXPORT KHelpMenu : public TQObject
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       menuSwitchLanguage = 5
00144     };
00145 
00159     KHelpMenu( TQWidget *parent=0, const TQString &aboutAppText=TQString::null,
00160            bool showWhatsThis=true );
00161 
00178     KHelpMenu( TQWidget *parent, const TDEAboutData *aboutData,
00179            bool showWhatsThis=true, TDEActionCollection *actions = 0 );
00180 
00186     ~KHelpMenu();
00187 
00195     TDEPopupMenu *menu();
00196 
00197   public slots:
00203     void appHelpActivated();
00204 
00208     void contextHelpActivated();
00209 
00215     void aboutApplication();
00216 
00220     void aboutKDE();
00221 
00225     void reportBug();
00226     
00230     void switchApplicationLanguage();
00231 
00232   private slots:
00238     void menuDestroyed();
00239 
00244     void dialogFinished();
00245 
00251     void timerExpired();
00252 
00253   signals:
00261     void showAboutApplication();
00262 
00263   private:
00264     TDEPopupMenu   *mMenu;
00265     KDialogBase  *mAboutApp;
00266     TDEAboutKDE    *mAboutKDE;
00267     KBugReport   *mBugReport;
00268 
00269     TQString      mAboutAppText;
00270     TQWidget      *mParent;
00271 
00272     bool         mShowWhatsThis;
00273 
00274   protected:
00275     virtual void virtual_hook( int id, void* data );
00276   private:
00277     KHelpMenuPrivate *d;
00278 };
00279 
00280 
00281 #endif

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.7.1
This website is maintained by Timothy Pearson.