mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 01:40:32 +05:00
PAL10953. Add switchToOperation()
This commit is contained in:
parent
65cd714f90
commit
ce2513eb44
@ -3083,6 +3083,20 @@ LightApp_Operation* SMESHGUI::createOperation( const int id ) const
|
||||
return op;
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
/*!
|
||||
* \brief Stops current operations and starts a given one
|
||||
* \param id - The id of the operation to start
|
||||
*/
|
||||
//================================================================================
|
||||
|
||||
void SMESHGUI::switchToOperation(int id)
|
||||
{
|
||||
if ( _PTR(Study) aStudy = SMESH::GetActiveStudyDocument() )
|
||||
activeStudy()->abortAllOperations();
|
||||
startOperation( id );
|
||||
}
|
||||
|
||||
LightApp_Displayer* SMESHGUI::displayer()
|
||||
{
|
||||
if( !myDisplayer )
|
||||
|
@ -83,6 +83,7 @@ public :
|
||||
void ResetState() ;
|
||||
void SetState(int aState) ;
|
||||
bool DefineDlgPosition(QWidget* aDlg, int& x, int& y) ;
|
||||
void switchToOperation(int id) ;
|
||||
|
||||
virtual bool OnGUIEvent ( int id );
|
||||
virtual bool OnMousePress ( QMouseEvent*, SUIT_ViewWindow* );
|
||||
|
Loading…
Reference in New Issue
Block a user