NCollection_Sequence<double> aResSeq;
Handle(Message_ProgressIndicator) aZIProgress = HYDROData_Tool::GetZIProgress();
- //DEBTRACE("aZIProgress=" << aZIProgress);
+ DEBTRACE("aZIProgress before running");
if ( aZIProgress ) {
aZIProgress->Reset();
}
QThread::msleep(200);
}
}
- //DEBTRACE("aZIProgress=" << aZIProgress);
+ DEBTRACE("ZI running finished");
if ( aZIProgress )
aZIProgress->Show( Standard_True );
return theCoeffs;
Handle(Message_ProgressIndicator) aSIProgress = HYDROData_Tool::GetSIProgress();
+ DEBTRACE("aSIProgress before running");
if ( aSIProgress ) {
aSIProgress->Reset();
}
QThread::msleep(200);
}
}
+ DEBTRACE("SI running finished");
+ if ( aSIProgress )
+ aSIProgress->Show( Standard_True );
return theCoeffs;
}
#include <QProgressBar>
#include <QVBoxLayout>
#include <QApplication>
-#define _DEVDEBUG_
+//#define _DEVDEBUG_
#include "HYDRO_trace.hxx"
IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_SIProgressIndicator, Message_ProgressIndicator)
Standard_Boolean HYDROGUI_SIProgressIndicator::Show(const Standard_Boolean theForce)
{
+ //DEBTRACE("...");
Standard_Real aPosition = GetPosition();
myCount++;
if (theForce)
Standard_Boolean isUserBreak = UserBreak();
bool isFinished = aPosition >= 1 || ( isUserBreak && GetNbScopes() < 2 );
- if ( isFinished ) {
+ if ( isFinished && theForce ) { // theForce == true : call from main thread, Qt display safe
if ( result() != Accepted ) {
QDialog::accept();
}
- } else if (!isVisible()) {
+ } else if (!isVisible() && theForce) { // theForce == true : call from main thread, Qt display safe
open();
}
#include <QProgressBar>
#include <QVBoxLayout>
#include <QApplication>
-#define _DEVDEBUG_
+//#define _DEVDEBUG_
#include "HYDRO_trace.hxx"
IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_ZIProgressIndicator, Message_ProgressIndicator)
Standard_Boolean HYDROGUI_ZIProgressIndicator::Show(const Standard_Boolean theForce)
{
+ //DEBTRACE("...");
Standard_Boolean isUserBreak = UserBreak();
Standard_Real aPosition = GetPosition();
myCount++;
}
bool isFinished = aPosition >= 1 || ( isUserBreak && GetNbScopes() < 2 );
- if ( isFinished ) {
+ if ( isFinished && theForce ) { // theForce == true : call from main thread, Qt display safe
if ( result() != Accepted ) {
QDialog::accept();
}
- } else if ( !isVisible() ) {
+ } else if ( !isVisible() && theForce ) { // theForce == true : call from main thread, Qt display safe
open();
}