Preference GUI for internal thumb if unchanged flag; see issue #552

This commit is contained in:
Oliver Duis
2011-03-15 20:03:05 +01:00
parent 5249a7cfad
commit 538bcc601b
3 changed files with 8 additions and 1 deletions

View File

@@ -534,6 +534,7 @@ PREFERENCES_INTENT_ABSOLUTE;Absolute Colorimetric
PREFERENCES_INTENT_PERCEPTUAL;Perceptual
PREFERENCES_INTENT_RELATIVE;Relative Colorimetric
PREFERENCES_INTENT_SATURATION;Saturation
PREFERENCES_INTERNALTHUMBIFUNTOUCHED;Show RAW internal thumbnail if unedited
PREFERENCES_LIVETHUMBNAILS;Live Thumbnails (slower)
PREFERENCES_METADATA;Metadata
PREFERENCES_MONITORICC;Monitor Profile

View File

@@ -595,12 +595,15 @@ Gtk::Widget* Preferences::getFileBrowserPanel () {
Gtk::Frame* fro = new Gtk::Frame (M("PREFERENCES_FBROWSEROPTS"));
showDateTime = new Gtk::CheckButton (M("PREFERENCES_SHOWDATETIME"));
showBasicExif = new Gtk::CheckButton (M("PREFERENCES_SHOWBASICEXIF"));
Gtk::VBox* vbro = new Gtk::VBox ();
overlayedFileNames = new Gtk::CheckButton (M("PREFERENCES_OVERLAY_FILENAMES"));
ckbInternalThumbIfUntouched = new Gtk::CheckButton (M("PREFERENCES_INTERNALTHUMBIFUNTOUCHED"));
Gtk::VBox* vbro = new Gtk::VBox ();
vbro->set_border_width (4);
vbro->pack_start (*showDateTime, Gtk::PACK_SHRINK, 0);
vbro->pack_start (*showBasicExif, Gtk::PACK_SHRINK, 0);
vbro->pack_start (*overlayedFileNames, Gtk::PACK_SHRINK, 4);
vbro->pack_start (*ckbInternalThumbIfUntouched, Gtk::PACK_SHRINK, 0);
fro->add (*vbro);
@@ -844,6 +847,7 @@ void Preferences::storePreferences () {
moptions.maxThumbnailHeight = (int)maxThumbSize->get_value ();
moptions.maxCacheEntries = (int)maxCacheEntries->get_value ();
moptions.overlayedFileNames = overlayedFileNames->get_active ();
moptions.internalThumbIfUntouched = ckbInternalThumbIfUntouched->get_active ();
moptions.saveParamsFile = saveParamsFile->get_active ();
moptions.saveParamsCache = saveParamsCache->get_active ();
@@ -950,6 +954,7 @@ void Preferences::fillPreferences () {
maxThumbSize->set_value (moptions.maxThumbnailHeight);
maxCacheEntries->set_value (moptions.maxCacheEntries);
overlayedFileNames->set_active (moptions.overlayedFileNames);
ckbInternalThumbIfUntouched->set_active(moptions.internalThumbIfUntouched);
saveParamsFile->set_active (moptions.saveParamsFile);
saveParamsCache->set_active (moptions.saveParamsCache);

View File

@@ -115,6 +115,7 @@ class Preferences : public Gtk::Dialog {
Gtk::SpinButton* spbSndLngEditProcDoneSecs;
Gtk::CheckButton* ckbTunnelMetaData;
Gtk::CheckButton* ckbInternalThumbIfUntouched;
Options moptions;
sigc::connection tconn, fconn, usethcon, addc, setc, dfconn, ffconn;