From 05b7686a12889c994a2edc3f1a8c1604474db59b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 12 Sep 2011 20:24:53 +0000 Subject: Add systemwide modal notification dialog to kdelibs git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1253055 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/kdialog.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'kdeui/kdialog.h') diff --git a/kdeui/kdialog.h b/kdeui/kdialog.h index cea1532e7..07aa31f24 100644 --- a/kdeui/kdialog.h +++ b/kdeui/kdialog.h @@ -1,6 +1,7 @@ /* This file is part of the KDE Libraries * Copyright (C) 1998 Thomas Tanghus (tanghus@earthling.net) * Additions 1999-2000 by Espen Sand (espen@kde.org) + * Additions 2011 by Timothy Pearson (kb9vqf@pearsoncomputing.net) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -207,4 +208,34 @@ protected: static KDialogQueue *_self; }; + /** + * \brief The default system modal dialog + * + * This displays the special TDE system modal dialog, + * which is used solely to present noninterruptible + * session management status messages to the user. + * + * @author Timothy Pearson + */ +class TQLabel; +class KDEUI_EXPORT KSMModalDialog : public TQWidget +{ + Q_OBJECT + +public: + KSMModalDialog( TQWidget* parent ); + ~KSMModalDialog(); + + void setStatusMessage(TQString message); + void setStartupPhase(TQString msg); + void closeSMDialog(); + +protected slots: + void closeEvent(TQCloseEvent *e); + +private: + TQLabel* m_statusLabel; + bool m_allowClose; +}; + #endif // __KDIALOG_H -- cgit v1.2.1