summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/launcher.pro2
-rw-r--r--core/launcher/wait.cpp17
-rw-r--r--core/launcher/wait.h4
-rw-r--r--core/launcher/waitpopup.cpp23
-rw-r--r--core/launcher/waitpopup.h14
5 files changed, 57 insertions, 3 deletions
diff --git a/core/launcher/launcher.pro b/core/launcher/launcher.pro
index d0a573b..a876d1d 100644
--- a/core/launcher/launcher.pro
+++ b/core/launcher/launcher.pro
@@ -15,4 +15,5 @@ HEADERS = background.h \
systray.h \
wait.h \
+ waitpopup.h \
shutdownimpl.h \
launcher.h \
@@ -56,4 +57,5 @@ SOURCES = background.cpp \
systray.cpp \
wait.cpp \
+ waitpopup.cpp \
shutdownimpl.cpp \
launcher.cpp \
diff --git a/core/launcher/wait.cpp b/core/launcher/wait.cpp
index 059e6f1..e1832dd 100644
--- a/core/launcher/wait.cpp
+++ b/core/launcher/wait.cpp
@@ -22,4 +22,5 @@
#include <qpe/resource.h>
+#include <qpe/config.h>
#include <qwidget.h>
@@ -36,4 +37,6 @@ Wait::Wait( QWidget *parent ) : QWidget( parent ),
setFixedSize( pm.size() );
lastWaitObject = this;
+ centralWait = new WaitPopup( 0L );
+ centralWait->hide();
hide();
}
@@ -48,10 +51,20 @@ Wait *Wait::getWaitObject()
void Wait::setWaiting( bool w )
{
+ Config cfg ( "Launcher" );
+ cfg. setGroup ( "GUI" );
+
+
waiting = w;
- if ( w )
+ if ( w ) {
+ if ( cfg. readBoolEntry ( "BigBusy" ) ) {
+ centralWait->show();
+ } else {
show();
- else
+ }
+ } else {
+ centralWait->hide();
hide();
}
+}
diff --git a/core/launcher/wait.h b/core/launcher/wait.h
index 519b654..6e5e41a 100644
--- a/core/launcher/wait.h
+++ b/core/launcher/wait.h
@@ -25,7 +25,8 @@
#include <qwidget.h>
+#include <qlabel.h>
#include <qpixmap.h>
#include <qpainter.h>
-
+#include "waitpopup.h"
class Wait : public QWidget
@@ -37,4 +38,5 @@ public:
static Wait *getWaitObject();
private:
+ WaitPopup* centralWait;
QPixmap pm;
bool waiting;
diff --git a/core/launcher/waitpopup.cpp b/core/launcher/waitpopup.cpp
new file mode 100644
index 0000000..e488ab5
--- a/dev/null
+++ b/core/launcher/waitpopup.cpp
@@ -0,0 +1,23 @@
+#include <qlabel.h>
+#include <qlayout.h>
+#include <qtimer.h>
+#include <qmovie.h>
+
+#include "waitpopup.h"
+#include <qpe/resource.h>
+
+
+WaitPopup::WaitPopup(QWidget *parent, const char* msg, bool dispIcon )
+ :QDialog(parent, QObject::tr("Wait"), TRUE,WStyle_Customize) {
+ QHBoxLayout *hbox = new QHBoxLayout( this );
+ QLabel *lb;
+ lb = new QLabel( this );
+ //lb->setMovie( QMovie( "./wait.gif" , 200) );
+ lb->setPixmap( Resource::loadPixmap( "Clock" ) );
+ lb->setBackgroundMode ( NoBackground );
+ hbox->addWidget( lb );
+ hbox->activate();
+}
+
+WaitPopup::~WaitPopup() {
+}
diff --git a/core/launcher/waitpopup.h b/core/launcher/waitpopup.h
new file mode 100644
index 0000000..76f0c27
--- a/dev/null
+++ b/core/launcher/waitpopup.h
@@ -0,0 +1,14 @@
+#ifndef WAITPOPUP_H
+#define WAITPOPUP_H
+
+#include <qdialog.h>
+
+class WaitPopup : public QDialog {
+ Q_OBJECT
+
+public:
+ WaitPopup(QWidget *parent=0,const char* msg=0,bool dispIcon=TRUE);
+ ~WaitPopup();
+};
+
+#endif