Re-add inspector tab as an option (#5867)
- add option "inspectorWindow" to switch from tab to fullscreen view - add option "zoomOnScroll" to configure scroll device for zoom or pan - add both options to preferences - filepanel creates tab if not inspectorWindow - inspector adapts to settings inspectorWindow and zoomOnScroll - filebrowser shows context menu item for inspector only if inspectorWindow
This commit is contained in:
@@ -452,6 +452,8 @@ void Options::setDefaults()
|
||||
histogramDrawMode = 0;
|
||||
curvebboxpos = 1;
|
||||
complexity = 1;
|
||||
inspectorWindow = false;
|
||||
zoomOnScroll = true;
|
||||
prevdemo = PD_Sidecar;
|
||||
|
||||
rgbDenoiseThreadLimit = 0;
|
||||
@@ -1463,6 +1465,13 @@ void Options::readFromFile(Glib::ustring fname)
|
||||
complexity = keyFile.get_integer("GUI", "Complexity");
|
||||
}
|
||||
|
||||
if (keyFile.has_key("GUI", "InspectorWindow")) {
|
||||
inspectorWindow = keyFile.get_boolean("GUI", "InspectorWindow");
|
||||
}
|
||||
|
||||
if (keyFile.has_key("GUI", "ZoomOnScroll")) {
|
||||
zoomOnScroll = keyFile.get_boolean("GUI", "ZoomOnScroll");
|
||||
}
|
||||
}
|
||||
|
||||
if (keyFile.has_group("Crop Settings")) {
|
||||
@@ -2242,6 +2251,8 @@ void Options::saveToFile(Glib::ustring fname)
|
||||
keyFile.set_integer("GUI", "CurveBBoxPosition", curvebboxpos);
|
||||
keyFile.set_boolean("GUI", "Showtooltip", showtooltip);
|
||||
keyFile.set_integer("GUI", "Complexity", complexity);
|
||||
keyFile.set_boolean("GUI", "InspectorWindow", inspectorWindow);
|
||||
keyFile.set_boolean("GUI", "ZoomOnScroll", zoomOnScroll);
|
||||
|
||||
//Glib::ArrayHandle<int> crvopen = crvOpen;
|
||||
//keyFile.set_integer_list ("GUI", "CurvePanelsExpanded", crvopen);
|
||||
|
Reference in New Issue
Block a user