/// The signal about the widget activation
/// \param theWidget the activated widget
- void widgetActivated(ModuleBase_ModelWidget* theWidget);
+ //void widgetActivated(ModuleBase_ModelWidget* theWidget);
/// Emited when there is no next widget
/// \param thePreviousAttributeID an attribute key of the previous active widget
/**
* Makes the given widget active, highlights it and removes
* highlighting from the previous active widget
- * emits widgetActivated(theWidget) signal
* \param theWidget which has to be activated
* \param theEmitSignal a flag to prohibit signal emit
*/
connect(aPropertyPanel, SIGNAL(noMoreWidgets(const std::string&)),
aReentranceMgr, SLOT(onNoMoreWidgets(const std::string&)));
- connect(aPropertyPanel, SIGNAL(widgetActivated(ModuleBase_ModelWidget*)),
- aReentranceMgr, SLOT(onWidgetActivated()));
+ //connect(aPropertyPanel, SIGNAL(widgetActivated(ModuleBase_ModelWidget*)),
+ // aReentranceMgr, SLOT(onWidgetActivated()));
}
XGUI_ViewerProxy* aViewerProxy = aWorkshop->viewer();
aReentrantMessage->setClickedPoint(myClickedSketchPoint);
}
-void PartSet_SketcherReentrantMgr::onWidgetActivated()
-{
- if (!isActiveMgr())
- return;
- if (!myIsInternalEditOperation)
- return;
-
- PartSet_Module* aModule = module();
- ModuleBase_ModelWidget* aFirstWidget = aModule->activeWidget();
- ModuleBase_IPropertyPanel* aPanel = aModule->currentOperation()->propertyPanel();
- if (aFirstWidget != aPanel->activeWidget()) {
- ModuleBase_WidgetSelector* aWSelector = dynamic_cast<ModuleBase_WidgetSelector*>(aFirstWidget);
- if (aWSelector) {
- myWorkshop->selectionActivate()->activateSelectionAndFilters(aWSelector);
- }
- }
-}
+//void PartSet_SketcherReentrantMgr::onWidgetActivated()
+//{
+// if (!isActiveMgr())
+// return;
+// if (!myIsInternalEditOperation)
+// return;
+//
+// PartSet_Module* aModule = module();
+// ModuleBase_ModelWidget* aFirstWidget = aModule->activeWidget();
+// ModuleBase_IPropertyPanel* aPanel = aModule->currentOperation()->propertyPanel();
+// if (aFirstWidget != aPanel->activeWidget()) {
+// ModuleBase_WidgetSelector* aWSelector = dynamic_cast<ModuleBase_WidgetSelector*>(aFirstWidget);
+// if (aWSelector) {
+// myWorkshop->selectionActivate()->activateSelectionAndFilters(aWSelector);
+// }
+// }
+//}
void PartSet_SketcherReentrantMgr::onNoMoreWidgets(const std::string& thePreviousAttributeID)
{
connect(aFOperation, SIGNAL(beforeAborted()), this, SLOT(onBeforeStopped()));
// activate selection filters of the first widget in the viewer
- onWidgetActivated();
+ //onWidgetActivated();
// activate the last active widget in the Property Panel
if (!thePreviousAttributeID.empty()) {
private slots:
/// SLOT, that is called by a widget activating in the property panel
/// If the 'internal' edit operation is started, it activates the first widget selection
- void onWidgetActivated();
+ //void onWidgetActivated();
/// SLOT, that is called by no more widget signal emitted by property panel
/// Start an internal edit operation or, if the internal flag is forbided, commits
Events_Loop::loop()->flush(anEvent);
if (isEmitSignal) {
- emit widgetActivated(myActiveWidget);
+ //emit widgetActivated(myActiveWidget);
if (!myActiveWidget && !isEditingMode()) {
emit noMoreWidgets(aPreviosAttributeID);
}
/**
* Makes the given widget active, highlights it and removes
* highlighting from the previous active widget
- * emits widgetActivated(theWidget) signal
* \param theWidget which has to be activated
* \param theEmitSignal a flag to prohibit signal emit
*/
activateSelectionFilters(aSelectionFilters);
}
-//**************************************************************
-void XGUI_SelectionActivate::activateSelectionAndFilters(ModuleBase_ModelWidget* theWidget)
-{
- // activate selection modes
- QIntList aModes;
- getSelectionModes(theWidget, aModes);
- activateObjects(aModes, getDisplayer()->displayedObjects(), true);
-
- // activate selection filters
- SelectMgr_ListOfFilter aSelectionFilters;
- getSelectionFilters(theWidget, aSelectionFilters);
- activateSelectionFilters(aSelectionFilters);
-}
-
//**************************************************************
void XGUI_SelectionActivate::activateSelectionFilters
(const SelectMgr_ListOfFilter& theSelectionFilters)
}
}
+//**************************************************************
+void XGUI_SelectionActivate::activateSelectionAndFilters(ModuleBase_ModelWidget* theWidget)
+{
+ // activate selection modes
+ QIntList aModes;
+ getSelectionModes(theWidget, aModes);
+ activateObjects(aModes, getDisplayer()->displayedObjects(), true);
+
+ // activate selection filters
+ SelectMgr_ListOfFilter aSelectionFilters;
+ getSelectionFilters(theWidget, aSelectionFilters);
+ activateSelectionFilters(aSelectionFilters);
+}
+
//**************************************************************
void XGUI_SelectionActivate::getSelectionModes(ModuleBase_ModelWidget* theWidget,
QIntList& theModes)
XGUI_EXPORT virtual void activateSelectionFilters
(const SelectMgr_ListOfFilter& theSelectionFilters);
- /// Activate or deactivate selection and selection filters like the widget is active
- /// \param theWidget a source widget of selection modes/filters
- XGUI_EXPORT virtual void activateSelectionAndFilters(ModuleBase_ModelWidget* theWidget);
-
/// Returns list of currently active selection modes
/// Selection modes will be returned according to TopAbs_ShapeEnum
XGUI_EXPORT QIntList activeSelectionModes() const;
XGUI_EXPORT void deactivateTrihedronInSelectionModes();
protected:
+ /// Activate or deactivate selection and selection filters like the widget is active
+ /// \param theWidget a source widget of selection modes/filters
+ virtual void activateSelectionAndFilters(ModuleBase_ModelWidget* theWidget);
+
/// Returns selection modes of the widget
/// \param theWidget model widget
/// \param theModes selection modes