#include "VisuGUI_Tools.h"
-#include "SUIT_ResourceMgr.h"
#include "SUIT_FileDlg.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include <vtkTimerLog.h>
myResult->SetBuildFields( myBuildFieldsCheckBox->isChecked(), myBuildMinMaxCheckBox->isChecked() );
myResult->SetBuildGroups( myBuildGroupsCheckBox->isChecked() );
- myResult->Build( aBuildAll, aBuildAtOnce );
-
- //if( aBuildAtOnce )
- // onClose();
-
//setModal( false );
myFileNameLineEdit->setReadOnly( true );
/*
myStartButton->setEnabled( false );
- myCurrentTime = vtkTimerLog::GetCurrentTime();
+ if( aBuildAtOnce )
+ {
+ QApplication::setOverrideCursor( Qt::waitCursor );
+ myCurrentTime = vtkTimerLog::GetCurrentTime();
+ }
myTime.setHMS( 0, 0, 0 );
myTimer->start( 100 );
+
+ myResult->Build( aBuildAll, aBuildAtOnce );
}
void VisuGUI_BuildProgressDlg::onClose()
if( myTime.minute() > 9 && myTimeLCDNumber->numDigits() < 9 )
myTimeLCDNumber->setNumDigits( 9 );
myTimeLCDNumber->display( myTime.toString( "m:ss.zzz" ) );
- }
- bool isEntitiesDone = myResult->IsEntitiesDone();
- bool isFieldsDone = myResult->IsFieldsDone();
- bool isMinMaxDone = myResult->IsMinMaxDone();
- bool isGroupsDone = myResult->IsGroupsDone();
+ bool isEntitiesDone = myResult->IsEntitiesDone();
+ bool isFieldsDone = myResult->IsFieldsDone();
+ bool isMinMaxDone = myResult->IsMinMaxDone();
+ bool isGroupsDone = myResult->IsGroupsDone();
- updateButton( myBuildEntitiesButton, isEntitiesDone );
- updateButton( myBuildFieldsButton, isFieldsDone );
- updateButton( myBuildMinMaxButton, isMinMaxDone );
- updateButton( myBuildGroupsButton, isGroupsDone );
+ updateButton( myBuildEntitiesButton, isEntitiesDone );
+ updateButton( myBuildFieldsButton, isFieldsDone );
+ updateButton( myBuildMinMaxButton, isMinMaxDone );
+ updateButton( myBuildGroupsButton, isGroupsDone );
+ }
if( myResult->IsDone() )
{
if( aBuildAtOnce )
{
+ QApplication::restoreOverrideCursor();
+
QTime aTime;
int mSecs = ( int )( 1000 * ( vtkTimerLog::GetCurrentTime() - myCurrentTime ) );
aTime = aTime.addMSecs( mSecs );
myTimeLCDNumber->setNumDigits( 9 );
myTimeLCDNumber->display( aTime.toString( "m:ss.zzz" ) );
}
+
+ SUIT_MessageBox::warn1( this, tr( "INF_VISU" ), tr( "IMPORT_DONE" ), tr( "BUT_OK" ) );
}
}
catch( ... ) {