- //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 );
+
+ int sensitivityGroup = myPreferences->addItem(tr("Selection sensitivity"), viewTab);
+ myPreferences->setItemProperty("columns", 2, sensitivityGroup);
+ myPreferences->addItem(tr("Vertex"), sensitivityGroup, SUIT_PreferenceMgr::DblSpin,
+ ModuleBase_Preferences::VIEWER_SECTION, "point-selection-sensitivity");
+ myPreferences->addItem(tr("Edge"), sensitivityGroup, SUIT_PreferenceMgr::DblSpin,
+ ModuleBase_Preferences::VIEWER_SECTION, "edge-selection-sensitivity");
+
+ int highlightGroup = myPreferences->addItem(tr("Additional highlighting"), viewTab);
+ myPreferences->setItemProperty("columns", 2, highlightGroup);
+ myPreferences->addItem(tr("In 3d mode"), highlightGroup,
+ SUIT_PreferenceMgr::Bool, ModuleBase_Preferences::VIEWER_SECTION, "highlighting-3d");
+ myPreferences->addItem(tr("In 2d mode"), highlightGroup,
+ SUIT_PreferenceMgr::Bool, ModuleBase_Preferences::VIEWER_SECTION, "highlighting-2d");
+
+ int colorScaleGroup = myPreferences->addItem(tr("Color scale"), viewTab);
+ myPreferences->setItemProperty("columns", 4, colorScaleGroup);
+ int aItem = myPreferences->addItem(tr("X position"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_x_position");
+ myPreferences->setItemProperty("min", 0, aItem);
+ myPreferences->setItemProperty("max", 1, aItem);
+
+ aItem = myPreferences->addItem(tr("Y position"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_y_position");
+ myPreferences->setItemProperty("min", 0, aItem);
+ myPreferences->setItemProperty("max", 1, aItem);
+
+ aItem = myPreferences->addItem(tr("Width"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_width");
+ myPreferences->setItemProperty("min", 0, aItem);
+ myPreferences->setItemProperty("max", 1, aItem);
+
+ aItem = myPreferences->addItem(tr("Height"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_height");
+ myPreferences->setItemProperty("min", 0, aItem);
+ myPreferences->setItemProperty("max", 1, aItem);
+
+ aItem = myPreferences->addItem(tr("Intervals number"), colorScaleGroup,
+ SUIT_PreferenceMgr::Integer, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_nb_intervals");
+ myPreferences->setItemProperty("min", 0, aItem);
+ myPreferences->setItemProperty("max", 100, aItem);
+
+ aItem = myPreferences->addItem(tr("Text height"), colorScaleGroup,
+ SUIT_PreferenceMgr::Integer, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_text_height");
+ myPreferences->setItemProperty("min", 0, aItem);
+ myPreferences->setItemProperty("max", 100, aItem);
+
+ aItem = myPreferences->addItem(tr("Text color"), colorScaleGroup,
+ SUIT_PreferenceMgr::Color, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_text_color");