• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • 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 
00051 class KDEUI_EXPORT KTipDatabase
00052 {
00053   public:
00060     explicit KTipDatabase( const QString &tipFile = QString() );
00061 
00068     explicit KTipDatabase( const QStringList &tipFiles );
00069 
00070     ~KTipDatabase();
00071 
00075     QString tip() const;
00076 
00080     void nextTip();
00081 
00085     void prevTip();
00086 
00087   private:
00088     class Private;
00089     Private* const d;
00090 
00091     Q_DISABLE_COPY( KTipDatabase )
00092 };
00093 
00101 class KDEUI_EXPORT KTipDialog : public KDialog
00102 {
00103   Q_OBJECT
00104 
00105   public:
00112     explicit KTipDialog( KTipDatabase *database, QWidget *parent = 0 );
00113 
00117     ~KTipDialog();
00118 
00135     static void showTip( QWidget *parent, const QString &tipFile = QString(), bool force = false );
00136 
00148     static void showMultiTip( QWidget *parent, const QStringList &tipFiles, bool force = false );
00149 
00156     static void showTip( const QString &tipFile = QString(), bool force = false );
00157 
00164     static void setShowOnStart( bool show );
00165 
00166   protected:
00167     bool eventFilter( QObject*, QEvent* );
00168 
00169   private:
00170     class Private;
00171     Private* const d;
00172 
00173     Q_PRIVATE_SLOT( d, void _k_nextTip() )
00174     Q_PRIVATE_SLOT( d, void _k_prevTip() )
00175     Q_PRIVATE_SLOT( d, void _k_showOnStart( bool ) )
00176     Q_DISABLE_COPY(KTipDialog)
00177 };
00178 
00179 #endif
00180 

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
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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