Added "Show all" button in Exif panel + astylized exifpanel.cc/.h

See #4008
This commit is contained in:
Hombre57
2017-09-22 00:35:10 +02:00
parent 9543a43281
commit 615dfcbb6c
6 changed files with 189 additions and 146 deletions

View File

@@ -354,6 +354,7 @@ void Options::setDefaults ()
CPFontFamily = "default";
CPFontSize = 8;
lastScale = 5;
lastShowAllExif = false;
panAccelFactor = 5;
rememberZoomAndPan = true;
lastCropSize = 1;
@@ -1390,6 +1391,10 @@ void Options::readFromFile (Glib::ustring fname)
lastScale = keyFile.get_integer ("GUI", "LastPreviewScale");
}
if (keyFile.has_key ("GUI", "LastShowAllExif")) {
lastShowAllExif = keyFile.get_boolean ("GUI", "LastShowAllExif");
}
if (keyFile.has_key ("GUI", "PanAccelFactor")) {
panAccelFactor = keyFile.get_integer ("GUI", "PanAccelFactor");
}
@@ -2105,6 +2110,7 @@ void Options::saveToFile (Glib::ustring fname)
keyFile.set_string ("GUI", "CPFontFamily", CPFontFamily);
keyFile.set_integer ("GUI", "CPFontSize", CPFontSize);
keyFile.set_integer ("GUI", "LastPreviewScale", lastScale);
keyFile.set_boolean ("GUI", "LastShowAllExif", lastShowAllExif);
keyFile.set_integer ("GUI", "PanAccelFactor", panAccelFactor);
keyFile.set_boolean ("GUI", "RememberZoomAndPan", rememberZoomAndPan);
keyFile.set_integer ("GUI", "LastCropSize", lastCropSize);