Update of /cvsroot/compbench/CompBenchmarks++/Qt-4/Status
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15016
Modified Files:
Status.cpp Status.h
Log Message:
Many improvements.
Index: Status.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/Qt-4/Status/Status.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Status.h 16 May 2007 16:12:07 -0000 1.1
--- Status.h 16 May 2007 20:25:30 -0000 1.2
***************
*** 31,34 ****
--- 31,36 ----
virtual void sigProgressDone(void);
virtual void sigUninstall(CBM::UI::State state);
+ virtual void sigCompilerAutodetect(CBM::UI::State state,
+ float _p);
protected slots:
***************
*** 37,40 ****
--- 39,44 ----
virtual void progressDone(void);
virtual void uninstall(CBM::UI::State state);
+ virtual void compilerAutodetect(CBM::UI::State state,
+ float _p);
public:
Index: Status.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/Qt-4/Status/Status.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Status.cpp 16 May 2007 16:12:07 -0000 1.1
--- Status.cpp 16 May 2007 20:25:30 -0000 1.2
***************
*** 42,45 ****
--- 42,49 ----
this, SLOT(uninstall(CBM::UI::State)),
Qt::QueuedConnection);
+
+ connect(this, SIGNAL(sigCompilerAutodetect(CBM::UI::State, float)),
+ this, SLOT(compilerAutodetect(CBM::UI::State, float)),
+ Qt::QueuedConnection);
}
***************
*** 81,84 ****
--- 85,102 ----
}
+
+ void StatusWidget::compilerAutodetect(CBM::UI::State state,
+ float _p)
+ {
+ if (state==CBM::UI::Start)
+ ProgressInit("Detecting installed compilers...");
+ else {
+ if (state==CBM::UI::Running)
+ Progress(_p);
+ else
+ ProgressDone();
+ }
+ }
+
int StatusWidget::Information(CBM::UI::Info type,
std::string msg,
***************
*** 90,93 ****
--- 108,113 ----
emit sigUninstall(state);
break;
+ case CompilerAutodetect:
+ emit sigCompilerAutodetect(state, _progress);
default:
break;
|