} else {
// Start editing constraint
if (theOperation->isEditOperation()) {
+ // TODO: #391 - to be removed
std::string aId = theOperation->id().toStdString();
if (PartSet_SketcherMgr::sketchOperationIdList().contains(QString(aId.c_str()))) {
if ((aId == SketchPlugin_ConstraintRadius::ID()) ||
#include <SelectMgr_IndexedMapOfOwner.hxx>
#include <StdSelect_BRepOwner.hxx>
+//#include <AIS_DimensionSelectionMode.hxx>
+//#include <AIS_Shape.hxx>
+
#include <ModelAPI_Events.h>
#include <QMouseEvent>
{
get2dPoint(theWnd, theEvent, myClickedPoint);
- //
if (!(theEvent->buttons() & Qt::LeftButton))
return;
// point
QIntList aModes;
aModes << TopAbs_VERTEX << TopAbs_EDGE;
+ // TODO: #391 - to be uncommented
+ /*aModes.append(AIS_DSM_Text);
+ aModes.append(AIS_DSM_Line);
+ aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum) TopAbs_VERTEX));
+ aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum) TopAbs_EDGE));*/
+
XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(myModule->workshop());
aConnector->activateSubShapesSelection(aModes);