]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Manage selection sensitivity in SALOME
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 16 Jun 2016 10:06:22 +0000 (13:06 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 16 Jun 2016 10:06:22 +0000 (13:06 +0300)
src/SHAPERGUI/SHAPERGUI.cpp
src/SHAPERGUI/resources/LightApp.xml.in
src/SHAPERGUI/resources/SalomeApp.xml.in

index 9083a8a232deb4e67d26127d10704f2312837f03..0faaabd0432d22ed4304ad1628eca3c816c0255c 100644 (file)
@@ -593,6 +593,12 @@ void SHAPERGUI::createPreferences()
                          SUIT_PreferenceMgr::Bool,
                          ModuleBase_Preferences::VIEWER_SECTION, "vertex-selection");
   
+  int sensitivityGroup = pref->addItem(tr("Selection sensitivity"), viewTab);
+  pref->setItemProperty("columns", 2, sensitivityGroup);
+  pref->addItem(tr("Vertex"), sensitivityGroup, SUIT_PreferenceMgr::Double,
+                ModuleBase_Preferences::VIEWER_SECTION, "point-selection-sensitivity");
+  pref->addItem(tr("Edge"), sensitivityGroup, SUIT_PreferenceMgr::Double,
+                ModuleBase_Preferences::VIEWER_SECTION, "edge-selection-sensitivity");
   pref->retrieve();
 }
 
index 670a053b045b4edc9a7e35bec502ab0f7df98021..5f43e73fa1f82792af08d9328a4e14433193338d 100644 (file)
@@ -40,5 +40,7 @@
     <parameter name="face-selection" value="true" />
     <parameter name="edge-selection" value="true" />
     <parameter name="vertex-selection" value="true" />
+    <parameter name="point-selection-sensitivity" value="20" />
+    <parameter name="edge-selection-sensitivity" value="2" />
   </section>
 </document>
index b0a6c5522b03e0472c4e93b2867004c0fd0407a1..46b15fd03e153a386955e17946becdb99fe536a6 100644 (file)
@@ -45,5 +45,7 @@
     <parameter name="face-selection" value="true" />
     <parameter name="edge-selection" value="true" />
     <parameter name="vertex-selection" value="true" />
+    <parameter name="point-selection-sensitivity" value="20" />
+    <parameter name="edge-selection-sensitivity" value="2" />
   </section>
 </document>