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

tdeui

kdialog.h
00001 /*  This file is part of the KDE Libraries
00002  *  Copyright (C) 1998 Thomas Tanghus (tanghus@earthling.net)
00003  *  Additions 1999-2000 by Espen Sand (espen@kde.org)
00004  *  Additions 2011 by Timothy Pearson (kb9vqf@pearsoncomputing.net)
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Library General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Library General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Library General Public License
00017  *  along with this library; see the file COPYING.LIB.  If not, write to
00018  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  *  Boston, MA 02110-1301, USA.
00020  */
00021 
00022 #ifndef _KDIALOG_H_
00023 #define _KDIALOG_H_
00024 
00025 #include <tqdialog.h>
00026 #include <tdelibs_export.h>
00027 
00028 class TQLayoutItem;
00029 
00052 class TDEUI_EXPORT KDialog : public TQDialog
00053 {
00054   Q_OBJECT
00055 
00056   public:
00057 
00063     KDialog(TQWidget *parent = 0, const char *name = 0,
00064         bool modal = false, WFlags f = 0);
00065 
00070     static int marginHint();
00071 
00076     static int spacingHint();
00077 
00085     static void resizeLayout( TQWidget *widget, int margin, int spacing );
00086 
00094     static void resizeLayout( TQLayoutItem *lay, int margin, int spacing );
00095 
00106     static void centerOnScreen( TQWidget *widget, int screen = -1 );
00107 
00117     static bool avoidArea( TQWidget *widget, const TQRect& area, int screen = -1 );
00118 
00119   public slots:
00124     virtual void polish();
00125 
00133     virtual void setCaption( const TQString &caption );
00134 
00141     virtual void setPlainCaption( const TQString &caption );
00142 
00143 
00144   protected:
00148     virtual void keyPressEvent(TQKeyEvent*);
00149 
00150 
00151    signals:
00159     void layoutHintChanged();
00160 
00161   private:
00162     static const int mMarginSize;
00163     static const int mSpacingSize;
00164 
00165   protected:
00166     virtual void virtual_hook( int id, void* data );
00167   private:
00168     class KDialogPrivate;
00169     KDialogPrivate* const d;
00170 
00171 };
00172 
00173 
00188 class KDialogQueuePrivate;
00189 class TDEUI_EXPORT KDialogQueue : public TQObject
00190 {
00191       Q_OBJECT
00192 
00193 public:
00194 
00195       static void queueDialog(TQDialog *);
00196 
00197       ~KDialogQueue();
00198 
00199 protected:
00200       KDialogQueue();
00201       static KDialogQueue *self();
00202 
00203 private slots:
00204       void slotShowQueuedDialog();
00205 
00206 protected:
00207       KDialogQueuePrivate* const d;
00208       static KDialogQueue *_self;
00209 };
00210 
00218 class TDEUI_EXPORT KSMModalDialogHeader : public TQWidget
00219 {
00220       Q_OBJECT
00221 
00222 public:
00223       KSMModalDialogHeader( TQWidget* parent );
00224       ~KSMModalDialogHeader();
00225 };
00226 
00236 class TQLabel;
00237 class TQPushButton;
00238 class TQHBoxLayout;
00239 class TQFrame;
00240 class TQGridLayout;
00241 class TDEUI_EXPORT KSMModalDialog : public TQWidget
00242 {
00243       Q_OBJECT
00244 
00245 public:
00246       KSMModalDialog( TQWidget* parent );
00247       ~KSMModalDialog();
00248 
00249       void setStatusMessage(TQString message);
00250       void setStartupPhase(TQString msg);
00251       void closeSMDialog();
00252 
00253 protected slots:
00254       void keepMeOnTop();
00255       void closeEvent(TQCloseEvent *e);
00256 
00257 protected:
00258       TQPushButton* m_button1;
00259       TQPushButton* m_button2;
00260       TQPushButton* m_button3;
00261       TQHBoxLayout* m_buttonbox;
00262       TQFrame* m_buttonframe;
00263       TQGridLayout* m_gridlayout;
00264 
00265 private:
00266       TQTimer* m_keepOnTopTimer;
00267       TQLabel* m_statusLabel;
00268       bool m_allowClose;
00269 };
00270 
00271 #endif // __KDIALOG_H

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