mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-11 01:23:07 +05:00
Method isValid is redefined to allow other operations is started above this one.
This commit is contained in:
parent
7b1de01a0b
commit
617b2a6106
@ -62,6 +62,7 @@ SMESHGUI_AddSubMeshOp::SMESHGUI_AddSubMeshOp()
|
|||||||
myHypothesisFilter( 0 ),
|
myHypothesisFilter( 0 ),
|
||||||
myAlgorithmFilter( 0 )
|
myAlgorithmFilter( 0 )
|
||||||
{
|
{
|
||||||
|
setAutoResumed( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -357,3 +358,16 @@ SMESH::SMESH_subMesh_var SMESHGUI_AddSubMeshOp::addSubMesh( SMESH::SMESH_Mesh_pt
|
|||||||
|
|
||||||
return aSubMesh._retn();
|
return aSubMesh._retn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : isValid
|
||||||
|
// purpose :
|
||||||
|
//=================================================================================
|
||||||
|
bool SMESHGUI_AddSubMeshOp::isValid( SUIT_Operation* theOtherOp ) const
|
||||||
|
{
|
||||||
|
if ( theOtherOp && theOtherOp->inherits( "SMESHGUI_InitMeshOp" ) )
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -53,6 +53,7 @@ public:
|
|||||||
|
|
||||||
virtual SalomeApp_Dialog* dlg() const;
|
virtual SalomeApp_Dialog* dlg() const;
|
||||||
void init();
|
void init();
|
||||||
|
virtual bool isValid( SUIT_Operation* theOtherOp ) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void startOperation();
|
virtual void startOperation();
|
||||||
|
@ -60,6 +60,7 @@ SMESHGUI_InitMeshOp::SMESHGUI_InitMeshOp()
|
|||||||
myHypothesisFilter( 0 ),
|
myHypothesisFilter( 0 ),
|
||||||
myAlgorithmFilter( 0 )
|
myAlgorithmFilter( 0 )
|
||||||
{
|
{
|
||||||
|
setAutoResumed( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -321,3 +322,29 @@ void SMESHGUI_InitMeshOp::onSelectionChanged( int id )
|
|||||||
myDlg->clearSelection( id );
|
myDlg->clearSelection( id );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : isValid
|
||||||
|
// purpose :
|
||||||
|
//=================================================================================
|
||||||
|
bool SMESHGUI_InitMeshOp::isValid( SUIT_Operation* theOtherOp ) const
|
||||||
|
{
|
||||||
|
if ( theOtherOp && theOtherOp->inherits( "SMESHGUI_AddSubMeshOp" ) )
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,6 +53,8 @@ public:
|
|||||||
virtual SalomeApp_Dialog* dlg() const;
|
virtual SalomeApp_Dialog* dlg() const;
|
||||||
void init();
|
void init();
|
||||||
QString defaultMeshName() const;
|
QString defaultMeshName() const;
|
||||||
|
|
||||||
|
virtual bool isValid( SUIT_Operation* theOtherOp ) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void startOperation();
|
virtual void startOperation();
|
||||||
|
Loading…
Reference in New Issue
Block a user