Version: 8.3.0
SMESHGUI_Operation Class Reference

#include <SMESHGUI_Operation.h>

Inheritance diagram for SMESHGUI_Operation:

Public Member Functions

 SMESHGUI_Operation ()
 
virtual ~SMESHGUI_Operation ()
 

Protected Slots

virtual void onOk ()
 
virtual bool onApply ()
 
virtual void onCancel ()
 
void onHelp ()
 

Protected Member Functions

virtual void initDialog ()
 sets the dialog widgets to state just after operation start More...
 
virtual void startOperation ()
 
virtual bool isReadyToStart () const
 
virtual void setIsApplyAndClose (const bool theFlag)
 
virtual bool isApplyAndClose () const
 
virtual void setDialogActive (const bool)
 Set according dialog active or inactive. More...
 
SMESHGUIgetSMESHGUI () const
 
bool isStudyLocked (const bool=true) const
 Verifies whether study of operation is locked. More...
 
 _PTR (Study) studyDS() const
 
virtual bool isValid (SUIT_Operation *) const
 Verifies whether given operator is valid for this one. More...
 

Protected Attributes

QString myHelpFileName
 
bool myIsApplyAndClose
 

Constructor & Destructor Documentation

SMESHGUI_Operation::SMESHGUI_Operation ( )

References myHelpFileName.

SMESHGUI_Operation::~SMESHGUI_Operation ( )
virtual

Member Function Documentation

void SMESHGUI_Operation::initDialog ( )
protectedvirtual

sets the dialog widgets to state just after operation start

Reimplemented in SMESHGUI_PrecomputeOp, SMESHGUI_SelectionOp, and SMESHGUI_MeshOrderOp.

Referenced by startOperation().

bool SMESHGUI_Operation::isApplyAndClose ( ) const
protectedvirtual
bool SMESHGUI_Operation::isReadyToStart ( ) const
protectedvirtual

References getSMESHGUI(), and isStudyLocked().

bool SMESHGUI_Operation::isStudyLocked ( const bool  theMess = true) const
protected

Verifies whether study of operation is locked.

Parameters
theMess- specifies whether message box must be shown if study is locked
Returns
State of study.

Verifies whether study of operation is locked. If second parameter is TRUE and study is locked when corresponding message box appears

References SMESHGUI::desktop(), and studyDS().

Referenced by isReadyToStart(), SMESHGUI_GroupOnShapeOp::onApply(), SMESHGUI_ReorientFacesOp::onApply(), SMESHGUI_MakeNodeAtPointOp::onApply(), SMESHGUI_MeshOp::onApply(), and SMESHGUI_Make2DFrom3DOp::onApply().

bool SMESHGUI_Operation::isValid ( SUIT_Operation *  theOtherOp) const
protectedvirtual

Verifies whether given operator is valid for this one.

Parameters
theOtherOp- other operation
Returns
Returns TRUE if the given operator is valid for this one, FALSE otherwise

Virtual method redefined from base class verifies whether given operator is valid for this one (i.e. can be started "above" this operator). In current implementation method returns false if theOtherOp operation is not intended for deleting objects or mesh elements.

Reimplemented in SMESHGUI_BaseComputeOp, and SMESHGUI_MeshOp.

Referenced by SMESHGUI_MeshOp::isValid().

bool SMESHGUI_Operation::onApply ( )
protectedvirtualslot

Referenced by onOk(), and startOperation().

void SMESHGUI_Operation::onCancel ( )
protectedvirtualslot
void SMESHGUI_Operation::onHelp ( )
protectedslot
void SMESHGUI_Operation::onOk ( )
protectedvirtualslot
void SMESHGUI_Operation::setDialogActive ( const bool  active)
protectedvirtual

Set according dialog active or inactive.

References MESHCUT::d, and SMESHGUI_Dialog::setContentActive().

void SMESHGUI_Operation::setIsApplyAndClose ( const bool  theFlag)
protectedvirtual

References myIsApplyAndClose.

Referenced by onOk().

Field Documentation

bool SMESHGUI_Operation::myIsApplyAndClose
protected