createEditors();
myPreferences->retrieve();
- setMinimumSize(800, 200);
+ setMinimumSize(800, 220);
}
ModuleBase_PreferencesDlg::~ModuleBase_PreferencesDlg()
// 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");
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)