mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-15 21:21:21 +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;
|
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()
|
LightApp_Displayer* SMESHGUI::displayer()
|
||||||
{
|
{
|
||||||
if( !myDisplayer )
|
if( !myDisplayer )
|
||||||
|
@ -83,6 +83,7 @@ public :
|
|||||||
void ResetState() ;
|
void ResetState() ;
|
||||||
void SetState(int aState) ;
|
void SetState(int aState) ;
|
||||||
bool DefineDlgPosition(QWidget* aDlg, int& x, int& y) ;
|
bool DefineDlgPosition(QWidget* aDlg, int& x, int& y) ;
|
||||||
|
void switchToOperation(int id) ;
|
||||||
|
|
||||||
virtual bool OnGUIEvent ( int id );
|
virtual bool OnGUIEvent ( int id );
|
||||||
virtual bool OnMousePress ( QMouseEvent*, SUIT_ViewWindow* );
|
virtual bool OnMousePress ( QMouseEvent*, SUIT_ViewWindow* );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user