summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-04-07 08:50:40 (UTC)
committer harlekin <harlekin>2003-04-07 08:50:40 (UTC)
commit7e43e12cf57a39f957096889d6b38563f73402df (patch) (side-by-side diff)
treee2f01d497421b6cdae28fec9afcbdc6acdfc1433
parent1725b536c8a5a939a481196cce1dc35af2d9a63a (diff)
downloadopie-7e43e12cf57a39f957096889d6b38563f73402df.zip
opie-7e43e12cf57a39f957096889d6b38563f73402df.tar.gz
opie-7e43e12cf57a39f957096889d6b38563f73402df.tar.bz2
show owait and a message in taskbar while scanning for documents
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp35
1 files changed, 29 insertions, 6 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index e74301c..3eb561a 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -57,2 +57,5 @@
+#include <opie/owait.h>
+
+
#include "launcherview.h"
@@ -362,2 +365,3 @@ void CategoryTabWidget::updateLink(const QString& linkfile)
LauncherView* view;
+ qApp->processEvents();
while ((view = (LauncherView*)stack->widget(i++))) {
@@ -730,2 +734,9 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global::
{
+
+ OWait *owait = new OWait();
+ Global::statusMessage( tr( "Finding documents" ) );
+
+ owait->show();
+ qApp->processEvents();
+
delete docsFolder;
@@ -790,4 +801,6 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global::
// read the mimetypes from the config and search for documents
- QStringList mimetypes = configToMime( &cfg);
- tmp = new DocLnkSet( (*it)->path(), mimetypes.join(";") );
+ QStringList mimetypes = configToMime( &cfg);
+ qApp->processEvents();
+ Global::statusMessage( tr( "Searching documents" ) );
+ tmp = new DocLnkSet( (*it)->path(), mimetypes.join(";") );
docsFolder->appendFrom( *tmp );
@@ -805,4 +818,6 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global::
cfg.write();
- tmp = new DocLnkSet( (*it)->path(), medium.mimeTypes().join(";" ) );
- docsFolder->appendFrom( *tmp );
+
+ qApp->processEvents();
+ tmp = new DocLnkSet( (*it)->path(), medium.mimeTypes().join(";" ) );
+ docsFolder->appendFrom( *tmp );
delete tmp;
@@ -816,3 +831,6 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global::
if( check ){ // find the documents
- tmp = new DocLnkSet( (*it)->path(), configToMime(&cfg ).join(";") );
+
+ qApp->processEvents();
+ Global::statusMessage( tr( "Searching documents" ) );
+ tmp = new DocLnkSet( (*it)->path(), configToMime(&cfg ).join(";") );
docsFolder->appendFrom( *tmp );
@@ -825,2 +843,4 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global::
m_timeStamp = newStamp;
+ owait->hide();
+ delete owait;
}
@@ -1106,3 +1126,6 @@ void Launcher::systemMessage( const QCString &msg, const QByteArray &data)
- QString contents;
+ // directly show updated docs in document tab
+ updateDocs();
+
+ QString contents;