Version handling in main window title, About window (now with tabs, including the license) and in PP3 files

This commit is contained in:
Hombre
2011-02-08 01:25:40 +01:00
parent 84945ee826
commit aac9c13b9f
16 changed files with 856 additions and 610 deletions

View File

@@ -22,6 +22,7 @@
#include <glibmm.h>
#include <sstream>
#include <string.h>
#include <version.h>
#include <safekeyfile.h>
@@ -221,14 +222,14 @@ raw.preser=0.0;
exif.clear ();
iptc.clear ();
version = 249;
version = TAGDISTANCE;
}
int ProcParams::save (Glib::ustring fname) const {
SafeKeyFile keyFile;
keyFile.set_integer ("Version", "Version", 20101019);
keyFile.set_integer ("Version", "Version", TAGDISTANCE);
// save tonecurve:
keyFile.set_boolean ("Exposure", "Auto", toneCurve.autoexp);
@@ -492,7 +493,7 @@ int ProcParams::load (Glib::ustring fname) {
// load tonecurve:
version = 200;
version = TAGDISTANCE;
if (keyFile.has_group ("Version")) {
if (keyFile.has_key ("Version", "Version")) version = keyFile.get_integer ("Version", "Version");
}