{
}
+//=======================================================================
+// name : ~SMESHGUI_Operation
+// Purpose : Destructor
+//=======================================================================
SMESHGUI_Operation::~SMESHGUI_Operation()
{
-
+}
+
+//=======================================================================
+// name : selectionMode
+// Purpose : Returns selection mode
+//=======================================================================
+Selection_Mode SMESHGUI_Operation::selectionMode() const
+{
+ SVTK_ViewWindow* wnd = viewWindow();
+ if( wnd )
+ return wnd->SelectionMode();
+ else
+ return ActorSelection;
}
//=======================================================================
if( dlg()->testButtonFlags( QtxDialog::Cancel ) )
connect( dlg(), SIGNAL( dlgCancel() ), this, SLOT( onCancel() ) );
- }
+
+ initDialog();
+ }
SalomeApp_Operation::startOperation();
}
}
//=======================================================================
-// name : commitOperation
-// Purpose :
-//=======================================================================
-void SMESHGUI_Operation::commitOperation()
-{
- selectionMgr()->clearFilters();
- SalomeApp_Operation::commitOperation();
-}
-
-//=======================================================================
-// name : abortOperation
+// name : initDialog
// Purpose :
//=======================================================================
-void SMESHGUI_Operation::abortOperation()
+void SMESHGUI_Operation::initDialog()
{
- selectionMgr()->clearFilters();
- SalomeApp_Operation::abortOperation();
}