getSMESHGUI()->isActiveStudyLocked() is replaced by

isStudyLocked()
In all other operations the second variant must be used
This commit is contained in:
asl 2005-07-14 11:53:16 +00:00
parent ba1cb5f702
commit 717a547e50
9 changed files with 9 additions and 9 deletions

View File

@ -274,7 +274,7 @@ bool SMESHGUI_AddMeshElementOp::onApply()
return false;
IdList ids; selectedIds( 0, ids );
if( ids.count()>=myNbNodes && !getSMESHGUI()->isActiveStudyLocked() ) {
if( ids.count()>=myNbNodes && !isStudyLocked() ) {
//myBusy = true;
SMESH::long_array_var anArrayOfIdeces = new SMESH::long_array;
anArrayOfIdeces->length(myNbNodes);

View File

@ -141,7 +141,7 @@ SUIT_SelectionFilter* SMESHGUI_AddSubMeshOp::createFilter( const int id ) const
//=================================================================================
bool SMESHGUI_AddSubMeshOp::onApply()
{
if( getSMESHGUI()->isActiveStudyLocked() )
if( isStudyLocked() )
return false;
QString myNameSubMesh = myDlg->subMeshName();

View File

@ -109,7 +109,7 @@ void SMESHGUI_EditHypothesesOp::selectionDone()
//=================================================================================
bool SMESHGUI_EditHypothesesOp::onApply()
{
if( getSMESHGUI()->isActiveStudyLocked() )
if( isStudyLocked() )
return false;
bool aRes = false;

View File

@ -80,7 +80,7 @@ SalomeApp_Dialog* SMESHGUI_GroupOp::dlg() const
//=======================================================================
bool SMESHGUI_GroupOp::onApply()
{
if( !myDlg || !isValid() || getSMESHGUI()->isActiveStudyLocked() )
if( !myDlg || !isValid() || isStudyLocked() )
return false;
QStringList selGroup[2];

View File

@ -137,7 +137,7 @@ SUIT_SelectionFilter* SMESHGUI_InitMeshOp::createFilter( const int id ) const
//=================================================================================
bool SMESHGUI_InitMeshOp::onApply()
{
if( getSMESHGUI()->isActiveStudyLocked() )
if( isStudyLocked() )
return false;
QString myNameMesh = myDlg->meshName();

View File

@ -151,7 +151,7 @@ void SMESHGUI_MoveNodesOp::initDialog()
//=======================================================================
bool SMESHGUI_MoveNodesOp::onApply()
{
if( getSMESHGUI()->isActiveStudyLocked() )
if( isStudyLocked() )
return false;
if( !myDlg->hasSelection( 0 ) )

View File

@ -309,7 +309,7 @@ void SMESHGUI_NodesOp::initDialog()
//=================================================================================
bool SMESHGUI_NodesOp::onApply()
{
if( getSMESHGUI()->isActiveStudyLocked() || !mySimulation )
if( isStudyLocked() || !mySimulation )
return false;
if( mesh()->_is_nil()) {

View File

@ -106,7 +106,7 @@ void SMESHGUI_RemoveNodesOp::updateDialog()
//=================================================================================
bool SMESHGUI_RemoveNodesOp::onApply()
{
if( getSMESHGUI()->isActiveStudyLocked() )
if( isStudyLocked() )
return false;
IdList ids; selectedIds( 0, ids );

View File

@ -125,7 +125,7 @@ void SMESHGUI_RenumberingOp::updateDialog()
//=================================================================================
bool SMESHGUI_RenumberingOp::onApply()
{
if( getSMESHGUI()->isActiveStudyLocked() )
if( isStudyLocked() )
return false;
if( myDlg->hasSelection( 0 ) )