Color Toning issue2014
This commit is contained in:
@@ -226,8 +226,8 @@ void Options::setDefaults () {
|
||||
|
||||
font = "sans, 8";
|
||||
windowWidth = 1200;
|
||||
windowHeight = 680;
|
||||
windowX = 0;
|
||||
windowHeight = 680;
|
||||
windowX = 0;
|
||||
windowY = 0;
|
||||
windowMaximized = true;
|
||||
saveAsDialogWidth = 920;
|
||||
@@ -260,8 +260,8 @@ void Options::setDefaults () {
|
||||
adjusterDelay = 0;
|
||||
startupDir = STARTUPDIR_LAST;
|
||||
startupPath = "";
|
||||
useBundledProfiles = true;
|
||||
detailWindowWidth = -1;
|
||||
useBundledProfiles = true;
|
||||
detailWindowWidth = -1;
|
||||
detailWindowHeight = -1;
|
||||
dirBrowserWidth = 260;
|
||||
dirBrowserHeight = 350;
|
||||
@@ -486,6 +486,7 @@ void Options::setDefaults () {
|
||||
0, // ADDSET_BLACKWHITE_GAMMA
|
||||
0, // ADDSET_DIRPYREQ_THRESHOLD
|
||||
0, // ADDSET_DIRPYREQ_SKINPROTECT
|
||||
0, // ADDSET_COLORTONING_SPLIT
|
||||
|
||||
};
|
||||
baBehav = std::vector<int> (babehav, babehav+ADDSET_PARAM_NUM);
|
||||
@@ -533,7 +534,8 @@ void Options::setDefaults () {
|
||||
rtSettings.autocielab=true;
|
||||
rtSettings.denoiselabgamma=2;
|
||||
rtSettings.HistogramWorking = false;
|
||||
|
||||
// rtSettings.colortoningab =0.7;
|
||||
//rtSettings.decaction =0.3;
|
||||
// rtSettings.ciebadpixgauss=false;
|
||||
rtSettings.rgbcurveslumamode_gamut=true;
|
||||
lastIccDir = rtSettings.iccDirectory;
|
||||
@@ -707,7 +709,7 @@ if (keyFile.has_group ("GUI")) {
|
||||
if (keyFile.has_key ("GUI", "WindowHeight")) windowHeight = keyFile.get_integer ("GUI", "WindowHeight");
|
||||
if (keyFile.has_key ("GUI", "WindowX")) windowX = keyFile.get_integer ("GUI", "WindowX");
|
||||
if (keyFile.has_key ("GUI", "WindowY")) windowY = keyFile.get_integer ("GUI", "WindowY");
|
||||
if (keyFile.has_key ("GUI", "WindowMaximized")) windowMaximized = keyFile.get_boolean ("GUI", "WindowMaximized");
|
||||
if (keyFile.has_key ("GUI", "WindowMaximized")) windowMaximized = keyFile.get_boolean ("GUI", "WindowMaximized");
|
||||
if (keyFile.has_key ("GUI", "DetailWindowWidth")) detailWindowWidth = keyFile.get_integer ("GUI", "DetailWindowWidth");
|
||||
if (keyFile.has_key ("GUI", "DetailWindowHeight")) detailWindowHeight = keyFile.get_integer ("GUI", "DetailWindowHeight");
|
||||
if (keyFile.has_key ("GUI", "DirBrowserWidth")) dirBrowserWidth = keyFile.get_integer ("GUI", "DirBrowserWidth");
|
||||
@@ -768,6 +770,8 @@ if (keyFile.has_group ("Color Management")) {
|
||||
if (keyFile.has_key ("Color Management", "CBDLArtif")) rtSettings.artifact_cbdl = keyFile.get_double("Color Management", "CBDLArtif");
|
||||
if (keyFile.has_key ("Color Management", "CBDLlevel0")) rtSettings.level0_cbdl = keyFile.get_double("Color Management", "CBDLlevel0");
|
||||
if (keyFile.has_key ("Color Management", "CBDLlevel123")) rtSettings.level123_cbdl = keyFile.get_double("Color Management", "CBDLlevel123");
|
||||
// if (keyFile.has_key ("Color Management", "Colortoningab")) rtSettings.colortoningab = keyFile.get_double("Color Management", "Colortoningab");
|
||||
// if (keyFile.has_key ("Color Management", "Decaction")) rtSettings.decaction = keyFile.get_double("Color Management", "Decaction");
|
||||
|
||||
if (keyFile.has_key ("Color Management", "WhiteBalanceSpotSize")) whiteBalanceSpotSize = keyFile.get_integer("Color Management", "WhiteBalanceSpotSize");
|
||||
if( keyFile.has_key ("Color Management", "GamutICC")) rtSettings.gamutICC = keyFile.get_boolean("Color Management", "GamutICC");
|
||||
@@ -997,9 +1001,9 @@ int Options::saveToFile (Glib::ustring fname) {
|
||||
|
||||
keyFile.set_string ("GUI", "Font", font);
|
||||
keyFile.set_integer ("GUI", "WindowWidth", windowWidth);
|
||||
keyFile.set_integer ("GUI", "WindowHeight", windowHeight);
|
||||
keyFile.set_integer ("GUI", "WindowHeight", windowHeight);
|
||||
keyFile.set_integer ("GUI", "WindowX", windowX);
|
||||
keyFile.set_integer ("GUI", "WindowY", windowY);
|
||||
keyFile.set_integer ("GUI", "WindowY", windowY);
|
||||
keyFile.set_boolean ("GUI", "WindowMaximized", windowMaximized);
|
||||
keyFile.set_integer ("GUI", "DetailWindowWidth", detailWindowWidth);
|
||||
keyFile.set_integer ("GUI", "DetailWindowHeight", detailWindowHeight);
|
||||
@@ -1077,6 +1081,8 @@ int Options::saveToFile (Glib::ustring fname) {
|
||||
keyFile.set_double ("Color Management", "CBDLArtif", rtSettings.artifact_cbdl);
|
||||
keyFile.set_double ("Color Management", "CBDLlevel0", rtSettings.level0_cbdl);
|
||||
keyFile.set_double ("Color Management", "CBDLlevel123", rtSettings.level123_cbdl);
|
||||
// keyFile.set_double ("Color Management", "Colortoningab", rtSettings.colortoningab);
|
||||
// keyFile.set_double ("Color Management", "Decaction", rtSettings.decaction);
|
||||
|
||||
|
||||
Glib::ArrayHandle<int> bab = baBehav;
|
||||
@@ -1287,7 +1293,7 @@ bool Options::load () {
|
||||
}
|
||||
|
||||
void Options::save () {
|
||||
|
||||
|
||||
if (options.multiUser==false) {
|
||||
options.saveToFile (Glib::build_filename(argv0, "options"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user