From: vsv Date: Thu, 16 Jun 2016 10:06:22 +0000 (+0300) Subject: Manage selection sensitivity in SALOME X-Git-Tag: V_2.4.0~100 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eccac3c539c8b251fae821e616ae6006aef5a8b7;p=modules%2Fshaper.git Manage selection sensitivity in SALOME --- 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 @@ + +