pref->addItem(tr("In 2d mode"), highlightGroup,
SUIT_PreferenceMgr::Bool, ModuleBase_Preferences::VIEWER_SECTION, "highlighting-2d");
+ int colorScaleGroup = pref->addItem(tr("Color scale"), viewTab);
+ pref->setItemProperty("columns", 4, colorScaleGroup);
+ int aItem = pref->addItem(tr("X position"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_x_position");
+ pref->setItemProperty("min", 0, aItem);
+ pref->setItemProperty("max", 1, aItem);
+
+ aItem = pref->addItem(tr("Y position"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_y_position");
+ pref->setItemProperty("min", 0, aItem);
+ pref->setItemProperty("max", 1, aItem);
+
+ aItem = pref->addItem(tr("Width"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_width");
+ pref->setItemProperty("min", 0, aItem);
+ pref->setItemProperty("max", 1, aItem);
+
+ aItem = pref->addItem(tr("Height"), colorScaleGroup,
+ SUIT_PreferenceMgr::Double, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_height");
+ pref->setItemProperty("min", 0, aItem);
+ pref->setItemProperty("max", 1, aItem);
+
+ aItem = pref->addItem(tr("Intervals number"), colorScaleGroup,
+ SUIT_PreferenceMgr::Integer, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_nb_intervals");
+ pref->setItemProperty("min", 0, aItem);
+ pref->setItemProperty("max", 100, aItem);
+
+ aItem = pref->addItem(tr("Text height"), colorScaleGroup,
+ SUIT_PreferenceMgr::Integer, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_text_height");
+ pref->setItemProperty("min", 0, aItem);
+ pref->setItemProperty("max", 100, aItem);
+
+ aItem = pref->addItem(tr("Text color"), colorScaleGroup,
+ SUIT_PreferenceMgr::Color, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_text_color");
+
pref->retrieve();
}