This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH 3/5] Improve reporting of progress whilst parsing .ini file
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 9 Nov 2010 13:29:45 +0000
- Subject: [PATCH 3/5] Improve reporting of progress whilst parsing .ini file
- References: <1289309387-5232-1-git-send-email-jon.turney@dronecode.org.uk>
Don't leave a status line still showing the download statistics
when we are parsing the .ini file (which can take a couple of seconds),
update all the status text
There are sill some places where setup goes into deep think with
no user feedback, but they are harder to fix.
2010-11-07 Jon TURNEY <jon.turney@dronecode.org.uk>
* ini.cc (GuiParseFeedback::progress, GuiParseFeedback::iniName):
Update all the text in the progress dialog whilst parsing .ini file,
not just the top line.
---
ini.cc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ini.cc b/ini.cc
index 76853b8..f27a4e5 100644
--- a/ini.cc
+++ b/ini.cc
@@ -89,10 +89,16 @@ public:
<< " bytes of ini file read)" << endLog; */
}
Progress.SetBar1(pos, max);
+
+ static char buf[100];
+ sprintf(buf, "%d %% (%ldk/%ldk)", lastpct, pos/1000, max/1000);
+ Progress.SetText3(buf);
}
virtual void iniName (const std::string& name)
{
- Progress.SetText1 (("Parsing ini file \"" + name + "\"").c_str());
+ Progress.SetText1 ("Parsing...");
+ Progress.SetText2 (name.c_str());
+ Progress.SetText3 ("");
}
virtual void babble(const std::string& message)const
{
--
1.7.2.3