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

KDEUI

ktip.h

Go to the documentation of this file.
00001 /*****************************************************************
00002 
00003 Copyright (c) 2000-2003 Matthias Hoelzer-Kluepfel <mhk@kde.org>
00004                         Tobias Koenig <tokoe@kde.org>
00005                         Daniel Molkentin <molkentin@kde.org>
00006 
00007 Permission is hereby granted, free of charge, to any person obtaining a copy
00008 of this software and associated documentation files (the "Software"), to deal
00009 in the Software without restriction, including without limitation the rights
00010 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00011 copies of the Software, and to permit persons to whom the Software is
00012 furnished to do so, subject to the following conditions:
00013 
00014 The above copyright notice and this permission notice shall be included in
00015 all copies or substantial portions of the Software.
00016 
00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00020 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00021 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00022 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00023 
00024 ******************************************************************/
00025 
00026 #ifndef KTIP_H
00027 #define KTIP_H
00028 
00029 #include <QtCore/QStringList>
00030 
00031 #include <kdialog.h>
00032 
00053 class KDEUI_EXPORT KTipDatabase
00054 {
00055   public:
00062     explicit KTipDatabase( const QString &tipFile = QString() );
00063 
00070     explicit KTipDatabase( const QStringList &tipFiles );
00071 
00072     ~KTipDatabase();
00073 
00077     QString tip() const;
00078 
00082     void nextTip();
00083 
00087     void prevTip();
00088 
00089   private:
00090     class Private;
00091     Private* const d;
00092 
00093     Q_DISABLE_COPY( KTipDatabase )
00094 };
00095 
00103 class KDEUI_EXPORT KTipDialog : public KDialog
00104 {
00105   Q_OBJECT
00106 
00107   public:
00115     explicit KTipDialog( KTipDatabase *database, QWidget *parent = 0 );
00116 
00120     ~KTipDialog();
00121 
00138     static void showTip( QWidget *parent, const QString &tipFile = QString(), bool force = false );
00139 
00151     static void showMultiTip( QWidget *parent, const QStringList &tipFiles, bool force = false );
00152 
00159     static void showTip( const QString &tipFile = QString(), bool force = false );
00160 
00167     static void setShowOnStart( bool show );
00168 
00169   protected:
00170     bool eventFilter( QObject*, QEvent* );
00171 
00172   private:
00173     class Private;
00174     Private* const d;
00175 
00176     Q_PRIVATE_SLOT( d, void _k_nextTip() )
00177     Q_PRIVATE_SLOT( d, void _k_prevTip() )
00178     Q_PRIVATE_SLOT( d, void _k_showOnStart( bool ) )
00179     Q_DISABLE_COPY(KTipDialog)
00180 };
00181 
00182 #endif
00183 

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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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