mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 17:27:28 +05:00
getSMESHGUI()->isActiveStudyLocked() is replaced by
isStudyLocked() In all other operations the second variant must be used
This commit is contained in:
parent
ba1cb5f702
commit
717a547e50
@ -274,7 +274,7 @@ bool SMESHGUI_AddMeshElementOp::onApply()
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
IdList ids; selectedIds( 0, ids );
|
IdList ids; selectedIds( 0, ids );
|
||||||
if( ids.count()>=myNbNodes && !getSMESHGUI()->isActiveStudyLocked() ) {
|
if( ids.count()>=myNbNodes && !isStudyLocked() ) {
|
||||||
//myBusy = true;
|
//myBusy = true;
|
||||||
SMESH::long_array_var anArrayOfIdeces = new SMESH::long_array;
|
SMESH::long_array_var anArrayOfIdeces = new SMESH::long_array;
|
||||||
anArrayOfIdeces->length(myNbNodes);
|
anArrayOfIdeces->length(myNbNodes);
|
||||||
|
@ -141,7 +141,7 @@ SUIT_SelectionFilter* SMESHGUI_AddSubMeshOp::createFilter( const int id ) const
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool SMESHGUI_AddSubMeshOp::onApply()
|
bool SMESHGUI_AddSubMeshOp::onApply()
|
||||||
{
|
{
|
||||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
if( isStudyLocked() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QString myNameSubMesh = myDlg->subMeshName();
|
QString myNameSubMesh = myDlg->subMeshName();
|
||||||
|
@ -109,7 +109,7 @@ void SMESHGUI_EditHypothesesOp::selectionDone()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool SMESHGUI_EditHypothesesOp::onApply()
|
bool SMESHGUI_EditHypothesesOp::onApply()
|
||||||
{
|
{
|
||||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
if( isStudyLocked() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool aRes = false;
|
bool aRes = false;
|
||||||
|
@ -80,7 +80,7 @@ SalomeApp_Dialog* SMESHGUI_GroupOp::dlg() const
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
bool SMESHGUI_GroupOp::onApply()
|
bool SMESHGUI_GroupOp::onApply()
|
||||||
{
|
{
|
||||||
if( !myDlg || !isValid() || getSMESHGUI()->isActiveStudyLocked() )
|
if( !myDlg || !isValid() || isStudyLocked() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QStringList selGroup[2];
|
QStringList selGroup[2];
|
||||||
|
@ -137,7 +137,7 @@ SUIT_SelectionFilter* SMESHGUI_InitMeshOp::createFilter( const int id ) const
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool SMESHGUI_InitMeshOp::onApply()
|
bool SMESHGUI_InitMeshOp::onApply()
|
||||||
{
|
{
|
||||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
if( isStudyLocked() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QString myNameMesh = myDlg->meshName();
|
QString myNameMesh = myDlg->meshName();
|
||||||
|
@ -151,7 +151,7 @@ void SMESHGUI_MoveNodesOp::initDialog()
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
bool SMESHGUI_MoveNodesOp::onApply()
|
bool SMESHGUI_MoveNodesOp::onApply()
|
||||||
{
|
{
|
||||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
if( isStudyLocked() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( !myDlg->hasSelection( 0 ) )
|
if( !myDlg->hasSelection( 0 ) )
|
||||||
|
@ -309,7 +309,7 @@ void SMESHGUI_NodesOp::initDialog()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool SMESHGUI_NodesOp::onApply()
|
bool SMESHGUI_NodesOp::onApply()
|
||||||
{
|
{
|
||||||
if( getSMESHGUI()->isActiveStudyLocked() || !mySimulation )
|
if( isStudyLocked() || !mySimulation )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( mesh()->_is_nil()) {
|
if( mesh()->_is_nil()) {
|
||||||
|
@ -106,7 +106,7 @@ void SMESHGUI_RemoveNodesOp::updateDialog()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool SMESHGUI_RemoveNodesOp::onApply()
|
bool SMESHGUI_RemoveNodesOp::onApply()
|
||||||
{
|
{
|
||||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
if( isStudyLocked() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
IdList ids; selectedIds( 0, ids );
|
IdList ids; selectedIds( 0, ids );
|
||||||
|
@ -125,7 +125,7 @@ void SMESHGUI_RenumberingOp::updateDialog()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool SMESHGUI_RenumberingOp::onApply()
|
bool SMESHGUI_RenumberingOp::onApply()
|
||||||
{
|
{
|
||||||
if( getSMESHGUI()->isActiveStudyLocked() )
|
if( isStudyLocked() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( myDlg->hasSelection( 0 ) )
|
if( myDlg->hasSelection( 0 ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user