author | sandman <sandman> | 2002-06-27 01:44:44 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-27 01:44:44 (UTC) |
commit | 6d0df38a805c5560b0815df62b212d4be0913154 (patch) (unidiff) | |
tree | 3d6e276d877c4bfe2f1960ec62465cb5122bcade /core/launcher/shutdownimpl.h | |
parent | ed8d1696ca8f0407cb7e6b91cc8d410dede5ccdc (diff) | |
download | opie-6d0df38a805c5560b0815df62b212d4be0913154.zip opie-6d0df38a805c5560b0815df62b212d4be0913154.tar.gz opie-6d0df38a805c5560b0815df62b212d4be0913154.tar.bz2 |
Made the launcher dialog "liquid compatible":
remvoed the ui file and hand-coded the gui with smarter palette handling.
-rw-r--r-- | core/launcher/shutdownimpl.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/core/launcher/shutdownimpl.h b/core/launcher/shutdownimpl.h index 54668f3..462f347 100644 --- a/core/launcher/shutdownimpl.h +++ b/core/launcher/shutdownimpl.h | |||
@@ -17,17 +17,19 @@ | |||
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef SHUTDOWNIMPL_H | 20 | #ifndef SHUTDOWNIMPL_H |
21 | #define SHUTDOWNIMPL_H | 21 | #define SHUTDOWNIMPL_H |
22 | 22 | ||
23 | #include "shutdown.h" | 23 | #include <qwidget.h> |
24 | 24 | ||
25 | class QTimer; | 25 | class QTimer; |
26 | class QLabel; | ||
27 | class QProgressBar; | ||
26 | 28 | ||
27 | class ShutdownImpl : public Shutdown | 29 | class ShutdownImpl : public QWidget |
28 | { | 30 | { |
29 | Q_OBJECT | 31 | Q_OBJECT |
30 | public: | 32 | public: |
31 | ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 33 | ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
32 | 34 | ||
33 | enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop }; | 35 | enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop }; |
@@ -38,13 +40,16 @@ signals: | |||
38 | private slots: | 40 | private slots: |
39 | void buttonClicked( int ); | 41 | void buttonClicked( int ); |
40 | void cancelClicked(); | 42 | void cancelClicked(); |
41 | void timeout(); | 43 | void timeout(); |
42 | 44 | ||
43 | private: | 45 | private: |
44 | QTimer *timer; | 46 | QTimer *m_timer; |
45 | int progress; | 47 | int m_counter; |
46 | Type operation; | 48 | Type m_operation; |
49 | |||
50 | QLabel * m_info; | ||
51 | QProgressBar *m_progress; | ||
47 | }; | 52 | }; |
48 | 53 | ||
49 | #endif | 54 | #endif |
50 | 55 | ||