Salome HOME
Task "Make the size of the selection area even bigger, especially for points"
[modules/shaper.git] / src / ModuleBase / ModuleBase_Preferences.cpp
index 7558aeecf34bd50ae3fdc352bdd798e23c282793..3a8d0badc1562fbe67f57f235c038ed68bafc6f5 100644 (file)
@@ -239,7 +239,7 @@ ModuleBase_PreferencesDlg::ModuleBase_PreferencesDlg(SUIT_ResourceMgr* theResurc
   createEditors();
 
   myPreferences->retrieve();
-  setMinimumSize(800, 200);
+  setMinimumSize(800, 220);
 }
 
 ModuleBase_PreferencesDlg::~ModuleBase_PreferencesDlg()
@@ -292,6 +292,7 @@ void ModuleBase_PreferencesDlg::createViewerPage(int thePageId)
 
   // Create other parameters group in viewer tab
   int otherGroup = myPreferences->addItem(tr("Default selection"), viewTab);
+  myPreferences->setItemProperty("columns", 3, otherGroup);
   myPreferences->addItem(tr("Faces"), otherGroup, 
                          SUIT_PreferenceMgr::Bool,
                          ModuleBase_Preferences::VIEWER_SECTION, "face-selection");
@@ -301,20 +302,9 @@ void ModuleBase_PreferencesDlg::createViewerPage(int thePageId)
   myPreferences->addItem(tr("Vertices"), otherGroup, 
                          SUIT_PreferenceMgr::Bool,
                          ModuleBase_Preferences::VIEWER_SECTION, "vertex-selection");
-  //QStringList aSelectionList;
-  //aSelectionList.append( tr("Vertices") );
-  //aSelectionList.append( tr("Edges") );
-  //aSelectionList.append( tr("Faces") );
-  //aSelectionList.append( tr("Results") );
-
-  //QList<QVariant> anIndexesList;
-  //anIndexesList.append(TopAbs_VERTEX);
-  //anIndexesList.append(TopAbs_EDGE);
-  //anIndexesList.append(TopAbs_FACE);
-  //anIndexesList.append(-1);
-
-  //myPreferences->setItemProperty( "strings", aSelectionList, selId );
-  //myPreferences->setItemProperty( "indexes", anIndexesList, selId );
+
+  myPreferences->addItem(tr("Vertex selection sensitivity"), otherGroup, SUIT_PreferenceMgr::Double,
+                         ModuleBase_Preferences::VIEWER_SECTION, "point-selection-sensitivity");
 }
 
 void ModuleBase_PreferencesDlg::createMenuPage(int thePageId)