aDisplayer->enableUpdateViewer(isEnableUpdateViewer);
}
+/*
+//Temporary commented as we do not modify values in property panel
void PartSet_SketcherMgr::onBeforeValuesChangedInPropertyPanel()
{
if (!isNestedEditOperation(getCurrentOperation(), myModule->sketchMgr()->activeSketch()) ||
XGUI_Displayer* aDisplayer = aConnector->workshop()->displayer();
aDisplayer->enableUpdateViewer(myPreviousUpdateViewerEnabled);
aDisplayer->updateViewer();
-
-
}
+*/
void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
{
myDragDone = false;
myPreviousDrawModeEnabled = aViewer->enableDrawMode(false);
- // selection should be restored before edit operation start to process the
- // selected entities, e.g. selection of point(attribute on a line) should edit the point
- restoreSelection();
launchEditing();
if (aFeature.get() != NULL) {
std::shared_ptr<SketchPlugin_Feature> aSPFeature =
myDragDone = false;
myPreviousDrawModeEnabled = aViewer->enableDrawMode(false);
- // selection should be restored before edit operation start to process the
- // selected entities, e.g. selection of point(attribute on a line) should edit the point
- restoreSelection();
launchEditing();
myIsEditLaunching = aPrevLaunchingState;
if (aFeature.get() != NULL) {
aFPAttr->setValue(myCurrentPoint.myCurX, myCurrentPoint.myCurY);
}
}
- restoreSelection();
}
}
}
void PartSet_SketcherMgr::connectToPropertyPanel(ModuleBase_ModelWidget* theWidget,
const bool isToConnect)
{
+ /*Temporary commented as we do not modify values in property panel
if (isToConnect) {
connect(theWidget, SIGNAL(beforeValuesChanged()),
this, SLOT(onBeforeValuesChangedInPropertyPanel()));
this, SLOT(onBeforeValuesChangedInPropertyPanel()));
disconnect(theWidget, SIGNAL(afterValuesChanged()),
this, SLOT(onAfterValuesChangedInPropertyPanel()));
- }
+ }*/
}
void PartSet_SketcherMgr::widgetStateChanged(int thePreviousState)
/// a nested sketch feature, it hides the feature in the viewer
void onLeaveViewPort();
/// Listens to the value changed signal and display the current operation feature
- void onBeforeValuesChangedInPropertyPanel();
+ //void onBeforeValuesChangedInPropertyPanel();
/// Listens to the signal about the modification of the values
/// have been done in the property panel
- void onAfterValuesChangedInPropertyPanel();
+ //void onAfterValuesChangedInPropertyPanel();
void onMousePressed(ModuleBase_IViewWindow*, QMouseEvent*);
void onMouseReleased(ModuleBase_IViewWindow*, QMouseEvent*);
void XGUI_SelectionMgr::setSelectedOwners(const SelectMgr_IndexedMapOfOwner& theSelectedOwners,
bool isUpdateViewer)
{
- SelectMgr_IndexedMapOfOwner aSelectedOwners;
- selection()->selectedOwners(aSelectedOwners);
-
Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
if (!aContext.IsNull()) {
/// previous selection should be cleared, else there will be decomposition of selections:
for (Standard_Integer i = 1, n = theSelectedOwners.Extent(); i <= n; i++) {
Handle(SelectMgr_EntityOwner) anOwner = theSelectedOwners(i);
- if (aSelectedOwners.FindIndex(anOwner) > 0)
- continue;
aContext->AddOrRemoveSelected(anOwner, isUpdateViewer);
#ifdef VINSPECTOR