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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • dialogs
ktip.h
Go to the documentation of this file.
1 /*****************************************************************
2 
3 Copyright (c) 2000-2003 Matthias Hoelzer-Kluepfel <mhk@kde.org>
4  Tobias Koenig <tokoe@kde.org>
5  Daniel Molkentin <molkentin@kde.org>
6 
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13 
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16 
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 
24 ******************************************************************/
25 
26 #ifndef KTIP_H
27 #define KTIP_H
28 
29 #include <QtCore/QStringList>
30 
31 #include <kdialog.h>
32 
53 class KDEUI_EXPORT KTipDatabase
54 {
55  public:
62  explicit KTipDatabase( const QString &tipFile = QString() );
63 
70  explicit KTipDatabase( const QStringList &tipFiles );
71 
72  ~KTipDatabase();
73 
77  QString tip() const;
78 
82  void nextTip();
83 
87  void prevTip();
88 
89  private:
90  class Private;
91  Private* const d;
92 
93  Q_DISABLE_COPY( KTipDatabase )
94 };
95 
103 class KDEUI_EXPORT KTipDialog : public KDialog
104 {
105  Q_OBJECT
106 
107  public:
115  explicit KTipDialog( KTipDatabase *database, QWidget *parent = 0 );
116 
120  ~KTipDialog();
121 
138  static void showTip( QWidget *parent, const QString &tipFile = QString(), bool force = false );
139 
151  static void showMultiTip( QWidget *parent, const QStringList &tipFiles, bool force = false );
152 
159  static void showTip( const QString &tipFile = QString(), bool force = false );
160 
167  static void setShowOnStart( bool show );
168 
169  protected:
170  bool eventFilter( QObject*, QEvent* );
171 
172  private:
173  class Private;
174  Private* const d;
175 
176  Q_PRIVATE_SLOT( d, void _k_nextTip() )
177  Q_PRIVATE_SLOT( d, void _k_prevTip() )
178  Q_PRIVATE_SLOT( d, void _k_showOnStart( bool ) )
179  Q_DISABLE_COPY(KTipDialog)
180 };
181 
182 #endif
183 
kdialog.h
QEvent
QWidget
KTipDatabase
A database for tips-of-the-day.
Definition: ktip.h:53
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
QObject
QString
QStringList
QDialog::eventFilter
virtual bool eventFilter(QObject *o, QEvent *e)
KTipDialog
A Tip-of-the-Day dialog.
Definition: ktip.h:103
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal