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

tdeui

  • tdeui
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 <tdelibs_export.h>
27
28class TQLayoutItem;
29
52class TDEUI_EXPORT KDialog : public TQDialog
53{
54 TQ_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
188class KDialogQueuePrivate;
189class TDEUI_EXPORT KDialogQueue : public TQObject
190{
191 TQ_OBJECT
192
193public:
194
195 static void queueDialog(TQDialog *);
196
197 ~KDialogQueue();
198
199protected:
200 KDialogQueue();
201 static KDialogQueue *self();
202
203private slots:
204 void slotShowQueuedDialog();
205
206protected:
207 KDialogQueuePrivate* const d;
208 static KDialogQueue *_self;
209};
210
218class TDEUI_EXPORT KSMModalDialogHeader : public TQWidget
219{
220 TQ_OBJECT
221
222public:
223 KSMModalDialogHeader( TQWidget* parent );
224 ~KSMModalDialogHeader();
225};
226
236class TQLabel;
237class TQPushButton;
238class TQHBoxLayout;
239class TQFrame;
240class TQGridLayout;
241class TDEUI_EXPORT KSMModalDialog : public TQWidget
242{
243 TQ_OBJECT
244
245public:
246 KSMModalDialog( TQWidget* parent );
247 ~KSMModalDialog();
248
249 void setStatusMessage(TQString message);
250 void setStartupPhase(TQString msg);
251 void closeSMDialog();
252
253protected slots:
254 void keepMeOnTop();
255 void closeEvent(TQCloseEvent *e);
256
257protected:
258 TQPushButton* m_button1;
259 TQPushButton* m_button2;
260 TQPushButton* m_button3;
261 TQHBoxLayout* m_buttonbox;
262 TQFrame* m_buttonframe;
263 TQGridLayout* m_gridlayout;
264
265private:
266 TQTimer* m_keepOnTopTimer;
267 TQLabel* m_statusLabel;
268 bool m_allowClose;
269};
270
271#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

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.9.4
This website is maintained by Timothy Pearson.