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

kdeui

  • kdeui
kdialog.h
1 /* This file is part of the KDE Libraries
2  * Copyright (C) 1998 Thomas Tanghus (tanghus@earthling.net)
3  * Additions 1999-2000 by Espen Sand (espen@kde.org)
4  * Additions 2011 by Timothy Pearson (kb9vqf@pearsoncomputing.net)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef _KDIALOG_H_
23 #define _KDIALOG_H_
24 
25 #include <tqdialog.h>
26 #include <kdelibs_export.h>
27 
28 class TQLayoutItem;
29 
52 class KDEUI_EXPORT KDialog : public TQDialog
53 {
54  Q_OBJECT
55 
56  public:
57 
63  KDialog(TQWidget *parent = 0, const char *name = 0,
64  bool modal = false, WFlags f = 0);
65 
70  static int marginHint();
71 
76  static int spacingHint();
77 
85  static void resizeLayout( TQWidget *widget, int margin, int spacing );
86 
94  static void resizeLayout( TQLayoutItem *lay, int margin, int spacing );
95 
106  static void centerOnScreen( TQWidget *widget, int screen = -1 );
107 
117  static bool avoidArea( TQWidget *widget, const TQRect& area, int screen = -1 );
118 
119  public slots:
124  virtual void polish();
125 
133  virtual void setCaption( const TQString &caption );
134 
141  virtual void setPlainCaption( const TQString &caption );
142 
143 
144  protected:
148  virtual void keyPressEvent(TQKeyEvent*);
149 
150 
151  signals:
159  void layoutHintChanged();
160 
161  private:
162  static const int mMarginSize;
163  static const int mSpacingSize;
164 
165  protected:
166  virtual void virtual_hook( int id, void* data );
167  private:
168  class KDialogPrivate;
169  KDialogPrivate* const d;
170 
171 };
172 
173 
188 class KDialogQueuePrivate;
189 class KDEUI_EXPORT KDialogQueue : public TQObject
190 {
191  Q_OBJECT
192 
193 public:
194 
195  static void queueDialog(TQDialog *);
196 
197  ~KDialogQueue();
198 
199 protected:
200  KDialogQueue();
201  static KDialogQueue *self();
202 
203 private slots:
204  void slotShowQueuedDialog();
205 
206 protected:
207  KDialogQueuePrivate* const d;
208  static KDialogQueue *_self;
209 };
210 
218 class KDEUI_EXPORT KSMModalDialogHeader : public TQWidget
219 {
220  Q_OBJECT
221 
222 public:
223  KSMModalDialogHeader( TQWidget* parent );
224  ~KSMModalDialogHeader();
225 };
226 
236 class TQLabel;
237 class KDEUI_EXPORT KSMModalDialog : public TQWidget
238 {
239  Q_OBJECT
240 
241 public:
242  KSMModalDialog( TQWidget* parent );
243  ~KSMModalDialog();
244 
245  void setStatusMessage(TQString message);
246  void setStartupPhase(TQString msg);
247  void closeSMDialog();
248 
249 protected slots:
250  void keepMeOnTop();
251  void closeEvent(TQCloseEvent *e);
252 
253 private:
254  TQTimer* m_keepOnTopTimer;
255  TQLabel* m_statusLabel;
256  bool m_allowClose;
257 };
258 
259 #endif // __KDIALOG_H
KDialog
Dialog with extended non-modal support and methods for KDE standard compliance.
Definition: kdialog.h:53
KDialog::layoutHintChanged
void layoutHintChanged()
Emitted when the margin size and/or spacing size have changed.
KSMModalDialogHeader
The default system modal dialog header.
Definition: kdialog.h:219

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |