From eccac3c539c8b251fae821e616ae6006aef5a8b7 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 16 Jun 2016 13:06:22 +0300 Subject: [PATCH] Manage selection sensitivity in SALOME --- src/SHAPERGUI/SHAPERGUI.cpp | 6 ++++++ src/SHAPERGUI/resources/LightApp.xml.in | 2 ++ src/SHAPERGUI/resources/SalomeApp.xml.in | 2 ++ 3 files changed, 10 insertions(+) diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index 9083a8a23..0faaabd04 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -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(); } diff --git a/src/SHAPERGUI/resources/LightApp.xml.in b/src/SHAPERGUI/resources/LightApp.xml.in index 670a053b0..5f43e73fa 100644 --- a/src/SHAPERGUI/resources/LightApp.xml.in +++ b/src/SHAPERGUI/resources/LightApp.xml.in @@ -40,5 +40,7 @@ + + diff --git a/src/SHAPERGUI/resources/SalomeApp.xml.in b/src/SHAPERGUI/resources/SalomeApp.xml.in index b0a6c5522..46b15fd03 100644 --- a/src/SHAPERGUI/resources/SalomeApp.xml.in +++ b/src/SHAPERGUI/resources/SalomeApp.xml.in @@ -45,5 +45,7 @@ + + -- 2.39.2