Add resizing options "long edge" and "short edge" (#6263)
Introduces "long edge" and "short edge" options to resize an image. The GUI is made such that the relevant spinboxes only appear for the selected option. Unrelated values (e.g. for box-mode) are not updated.
This commit is contained in:
@@ -539,6 +539,8 @@ void Options::setDefaults()
|
||||
fastexport_resize_dataspec = 3;
|
||||
fastexport_resize_width = 900;
|
||||
fastexport_resize_height = 900;
|
||||
fastexport_resize_longedge = 900;
|
||||
fastexport_resize_shortedge = 900;
|
||||
fastexport_use_fast_pipeline = true;
|
||||
|
||||
clutsDir = "./cluts";
|
||||
@@ -2018,6 +2020,14 @@ void Options::readFromFile(Glib::ustring fname)
|
||||
fastexport_resize_height = keyFile.get_integer("Fast Export", "fastexport_resize_height");
|
||||
}
|
||||
|
||||
if (keyFile.has_key("Fast Export", "fastexport_resize_longedge")) {
|
||||
fastexport_resize_longedge = keyFile.get_integer("Fast Export", "fastexport_resize_longedge");
|
||||
}
|
||||
|
||||
if (keyFile.has_key("Fast Export", "fastexport_resize_shortedge")) {
|
||||
fastexport_resize_shortedge = keyFile.get_integer("Fast Export", "fastexport_resize_shortedge");
|
||||
}
|
||||
|
||||
if (keyFile.has_key("Fast Export", "fastexport_use_fast_pipeline")) {
|
||||
fastexport_use_fast_pipeline = keyFile.get_integer("Fast Export", "fastexport_use_fast_pipeline");
|
||||
}
|
||||
@@ -2454,6 +2464,8 @@ void Options::saveToFile(Glib::ustring fname)
|
||||
keyFile.set_integer("Fast Export", "fastexport_resize_dataspec", fastexport_resize_dataspec);
|
||||
keyFile.set_integer("Fast Export", "fastexport_resize_width", fastexport_resize_width);
|
||||
keyFile.set_integer("Fast Export", "fastexport_resize_height", fastexport_resize_height);
|
||||
keyFile.set_integer("Fast Export", "fastexport_resize_longedge", fastexport_resize_longedge);
|
||||
keyFile.set_integer("Fast Export", "fastexport_resize_shortedge", fastexport_resize_shortedge);
|
||||
keyFile.set_integer("Fast Export", "fastexport_use_fast_pipeline", fastexport_use_fast_pipeline);
|
||||
|
||||
keyFile.set_string("Dialogs", "LastIccDir", lastIccDir);
|
||||
|
||||
Reference in New Issue
Block a user