From b35e1fd9ed3e06b2603bde498038ff5cf0914ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 21 Sep 2011 12:37:17 +0000 Subject: [PATCH] =?UTF-8?q?cursor=20is=20hour-glass=20during=20download,?= =?UTF-8?q?=20on=20application=20start,=20=C2=ABlaunching=20application=20?= =?UTF-8?q?...=C2=BB=20is=20shown=20for=205s;=20refs=20#77?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swisssurfer/src/browser.hxx | 4 +++ swisssurfer/src/swisssurfer_de.ts | 58 ++++++++++++++++++------------- swisssurfer/src/swisssurfer_en.ts | 58 ++++++++++++++++++------------- swisssurfer/src/swisssurfer_fr.ts | 58 ++++++++++++++++++------------- swisssurfer/src/swisssurfer_it.ts | 58 ++++++++++++++++++------------- 5 files changed, 140 insertions(+), 96 deletions(-) diff --git a/swisssurfer/src/browser.hxx b/swisssurfer/src/browser.hxx index ad20b30..cdf9983 100644 --- a/swisssurfer/src/browser.hxx +++ b/swisssurfer/src/browser.hxx @@ -511,6 +511,7 @@ class Browser: public QMainWindow, protected Ui::Browser { LOG; QStringList args(QCoreApplication::arguments()); QString prg(args.takeFirst()); + statusBar()->showMessage(tr("opening new window"), 5000); QProcess::startDetached(prg, args); } @@ -1157,6 +1158,7 @@ class Browser: public QMainWindow, protected Ui::Browser { file->write(reply->readAll()); file->close(); LOG<<"Stored as:"<fileName(); + statusBar()->showMessage(tr("launching application ..."), 5000); QProcess* process(new QProcess); _downloadProcesses[process] = file; assert(connect(process, SIGNAL(finished(int, QProcess::ExitStatus)), @@ -1204,6 +1206,7 @@ class Browser: public QMainWindow, protected Ui::Browser { } void started() { + QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); actionStop->setEnabled(true); _progress->setRange(0, 0); _progress->setValue(0); @@ -1213,6 +1216,7 @@ class Browser: public QMainWindow, protected Ui::Browser { void finished() { LOG; + QApplication::restoreOverrideCursor(); actionStop->setEnabled(false); _progress->setRange(0, 1); _progress->setValue(1); diff --git a/swisssurfer/src/swisssurfer_de.ts b/swisssurfer/src/swisssurfer_de.ts index 794257b..ef9b59d 100644 --- a/swisssurfer/src/swisssurfer_de.ts +++ b/swisssurfer/src/swisssurfer_de.ts @@ -318,29 +318,29 @@ - + Print Document - + %1 - %2 Back to %1 - %2 statusbar actionBack_hovered %1=url %2=title - + Info: %1 - + done. - + %1 statusbar for hovered link %1=url @@ -371,42 +371,47 @@ - + + opening new window + + + + %1 - %2 statusbar actionForward_hovered %1=url %2=title - - - + + + background-color: white neutral find - - + + background-color: #ADA background-color: #7F7 text found - - + + background-color: #F77 background-color: lightred text not found - + About - + %8 Version: %1 Builddate: %2 @@ -426,42 +431,47 @@ openssl-%7 - + %1 - + + launching application ... + + + + Save File As ... - + errors show error log - - + + background-color: #F77 invalid url - - + + background-color: white valid url - + authentication required - + ssl error diff --git a/swisssurfer/src/swisssurfer_en.ts b/swisssurfer/src/swisssurfer_en.ts index 36b6def..a5c08f5 100644 --- a/swisssurfer/src/swisssurfer_en.ts +++ b/swisssurfer/src/swisssurfer_en.ts @@ -339,53 +339,58 @@ - + + opening new window + + + + Print Document - + %1 - %2 statusbar actionBack_hovered %1=url %2=title - + %1 - %2 statusbar actionForward_hovered %1=url %2=title - - - + + + background-color: white neutral find - - + + background-color: #ADA background-color: #7F7 text found - - + + background-color: #F77 background-color: lightred text not found - + About - + %8 Version: %1 Builddate: %2 @@ -405,58 +410,63 @@ openssl-%7 - + %1 - + Info: %1 - + done. - + %1 statusbar for hovered link %1=url - + + launching application ... + + + + Save File As ... - + errors show error log - - + + background-color: #F77 invalid url - - + + background-color: white valid url - + authentication required - + ssl error diff --git a/swisssurfer/src/swisssurfer_fr.ts b/swisssurfer/src/swisssurfer_fr.ts index 794257b..ef9b59d 100644 --- a/swisssurfer/src/swisssurfer_fr.ts +++ b/swisssurfer/src/swisssurfer_fr.ts @@ -318,29 +318,29 @@ - + Print Document - + %1 - %2 Back to %1 - %2 statusbar actionBack_hovered %1=url %2=title - + Info: %1 - + done. - + %1 statusbar for hovered link %1=url @@ -371,42 +371,47 @@ - + + opening new window + + + + %1 - %2 statusbar actionForward_hovered %1=url %2=title - - - + + + background-color: white neutral find - - + + background-color: #ADA background-color: #7F7 text found - - + + background-color: #F77 background-color: lightred text not found - + About - + %8 Version: %1 Builddate: %2 @@ -426,42 +431,47 @@ openssl-%7 - + %1 - + + launching application ... + + + + Save File As ... - + errors show error log - - + + background-color: #F77 invalid url - - + + background-color: white valid url - + authentication required - + ssl error diff --git a/swisssurfer/src/swisssurfer_it.ts b/swisssurfer/src/swisssurfer_it.ts index 0347156..72701dd 100644 --- a/swisssurfer/src/swisssurfer_it.ts +++ b/swisssurfer/src/swisssurfer_it.ts @@ -339,51 +339,56 @@ - + + opening new window + + + + Print Document - + %1 - %2 statusbar actionBack_hovered %1=url %2=title - + %1 - %2 statusbar actionForward_hovered %1=url %2=title - - - + + + background-color: white neutral find - - + + background-color: #ADA text found - - + + background-color: #F77 text not found - + About - + %8 Version: %1 Builddate: %2 @@ -395,58 +400,63 @@ openssl-%7 - + %1 - + Info: %1 - + done. - + %1 statusbar for hovered link %1=url - + + launching application ... + + + + Save File As ... - + errors show error log - - + + background-color: #F77 invalid url - - + + background-color: white valid url - + authentication required - + ssl error