Modifications such that the aspect ratio of the histogram is stored between sessions. Additionally, the scaling behavior is changed slightly to make the code easier without being to different from the current situation.
This commit is contained in:
@@ -415,7 +415,7 @@ void Options::setDefaults ()
|
||||
multiDisplayMode = 0;
|
||||
histogramPosition = 1;
|
||||
histogramBar = true;
|
||||
//histogramFullMode = false;
|
||||
histogramAspect = 0.618;
|
||||
histogramDrawMode = 0;
|
||||
curvebboxpos = 1;
|
||||
prevdemo = PD_Sidecar;
|
||||
@@ -1291,9 +1291,9 @@ void Options::readFromFile (Glib::ustring fname)
|
||||
histogramBar = keyFile.get_boolean ("GUI", "HistogramBar");
|
||||
}
|
||||
|
||||
//if (keyFile.has_key ("GUI", "HistogramFullMode")) {
|
||||
// histogramFullMode = keyFile.get_boolean ("GUI", "HistogramFullMode");
|
||||
//}
|
||||
if (keyFile.has_key ("GUI", "HistogramAspect")) {
|
||||
histogramAspect = keyFile.get_double ("GUI", "HistogramAspect");
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("GUI", "HistogramDrawMode")) {
|
||||
histogramDrawMode = keyFile.get_integer ("GUI", "HistogramDrawMode");
|
||||
@@ -1943,7 +1943,7 @@ void Options::saveToFile (Glib::ustring fname)
|
||||
keyFile.set_double_list ("GUI", "NavGuideBrush", navGuideBrush);
|
||||
keyFile.set_integer ("GUI", "HistogramPosition", histogramPosition);
|
||||
keyFile.set_boolean ("GUI", "HistogramBar", histogramBar);
|
||||
//keyFile.set_boolean ("GUI", "HistogramFullMode", histogramFullMode);
|
||||
keyFile.set_double ("GUI", "HistogramAspect", histogramAspect);
|
||||
keyFile.set_integer ("GUI", "HistogramDrawMode", histogramDrawMode);
|
||||
keyFile.set_integer ("GUI", "NavigatorRGBUnit", (int)navRGBUnit);
|
||||
keyFile.set_integer ("GUI", "NavigatorHSVUnit", (int)navHSVUnit);
|
||||
|
Reference in New Issue
Block a user