[PATCH 3/5] Improve reporting of progress whilst parsing .ini file
Jon TURNEY
jon.turney@dronecode.org.uk
Tue Nov 9 13:30:00 GMT 2010
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
More information about the Cygwin-apps
mailing list