Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish
This commit is contained in:
@@ -560,7 +560,7 @@ Gtk::Widget* Preferences::getImageProcessingPanel ()
|
||||
iprofiles->set_size_request(50, -1);
|
||||
setExpandAlignProperties(iprofiles, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_FILL);
|
||||
ipconn = iprofiles->signal_changed().connect(sigc::mem_fun(*this, &Preferences::forImageComboChanged));
|
||||
|
||||
|
||||
Gtk::Grid* defpt = Gtk::manage(new Gtk::Grid());
|
||||
defpt->set_row_spacing(2);
|
||||
defpt->attach(*drlab, 0, 0, 1, 1);
|
||||
@@ -568,7 +568,7 @@ Gtk::Widget* Preferences::getImageProcessingPanel ()
|
||||
defpt->attach(*drimg, 0, 1, 1, 1);
|
||||
defpt->attach(*iprofiles, 1, 1, 1, 1);
|
||||
vbpp->pack_start(*defpt, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
|
||||
useBundledProfiles = Gtk::manage(new Gtk::CheckButton(M("PREFERENCES_USEBUNDLEDPROFILES")));
|
||||
bpconn = useBundledProfiles->signal_clicked().connect(sigc::mem_fun(*this, &Preferences::bundledProfilesChanged));
|
||||
vbpp->pack_start(*useBundledProfiles, Gtk::PACK_SHRINK, 4);
|
||||
@@ -614,9 +614,36 @@ Gtk::Widget* Preferences::getImageProcessingPanel ()
|
||||
fdp->add(*vbdp);
|
||||
vbImageProcessing->pack_start (*fdp, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
// Gtk::Frame* fdf = Gtk::manage (new Gtk::Frame (M ("PREFERENCES_DARKFRAME")) );
|
||||
// Gtk::Box* hb42 = Gtk::manage (new Gtk::Box ());
|
||||
// darkFrameDir = Gtk::manage (new Gtk::FileChooserButton (M ("PREFERENCES_DIRDARKFRAMES"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER));
|
||||
// Metadata
|
||||
Gtk::Frame *mf = Gtk::manage(new Gtk::Frame(M("PREFERENCES_METADATA")));
|
||||
Gtk::Grid *mtbl = Gtk::manage(new Gtk::Grid());
|
||||
setExpandAlignProperties(mtbl, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||
|
||||
metadataSyncCombo = Gtk::manage(new Gtk::ComboBoxText());
|
||||
metadataSyncCombo->set_active(0);
|
||||
metadataSyncCombo->append(M("PREFERENCES_METADATA_SYNC_NONE"));
|
||||
metadataSyncCombo->append(M("PREFERENCES_METADATA_SYNC_READ"));
|
||||
metadataSyncCombo->append(M("PREFERENCES_METADATA_SYNC_READWRITE"));
|
||||
Gtk::Label *mlbl = Gtk::manage(new Gtk::Label(M("PREFERENCES_METADATA_SYNC") + ": "));
|
||||
mtbl->attach(*mlbl, 0, 0, 1, 1);
|
||||
mtbl->attach_next_to(*metadataSyncCombo, *mlbl, Gtk::POS_RIGHT, 1, 1);
|
||||
setExpandAlignProperties(mlbl, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
setExpandAlignProperties(metadataSyncCombo, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||
|
||||
xmpSidecarCombo = Gtk::manage(new Gtk::ComboBoxText());
|
||||
xmpSidecarCombo->set_active(0);
|
||||
xmpSidecarCombo->append(M("PREFERENCES_XMP_SIDECAR_MODE_STD"));
|
||||
xmpSidecarCombo->append(M("PREFERENCES_XMP_SIDECAR_MODE_EXT"));
|
||||
|
||||
mlbl = Gtk::manage(new Gtk::Label(M("PREFERENCES_XMP_SIDECAR_MODE") + ": "));
|
||||
mtbl->attach(*mlbl, 0, 2, 1, 1);
|
||||
mtbl->attach_next_to(*xmpSidecarCombo, *mlbl, Gtk::POS_RIGHT, 1, 1);
|
||||
setExpandAlignProperties(mlbl, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
setExpandAlignProperties(xmpSidecarCombo, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||
|
||||
mf->add(*mtbl);
|
||||
vbImageProcessing->pack_start(*mf, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
// Directories
|
||||
Gtk::Frame* cdf = Gtk::manage(new Gtk::Frame(M("PREFERENCES_DIRECTORIES")));
|
||||
Gtk::Grid* dirgrid = Gtk::manage(new Gtk::Grid());
|
||||
@@ -673,6 +700,7 @@ Gtk::Widget* Preferences::getImageProcessingPanel ()
|
||||
|
||||
//Lens Profiles Dir
|
||||
Gtk::Label *lensProfilesDirLabel = Gtk::manage(new Gtk::Label(M("PREFERENCES_LENSPROFILESDIR") + ":"));
|
||||
lensProfilesDirLabel->set_tooltip_text(M("PREFERENCES_LENSPROFILESDIR_TOOLTIP"));
|
||||
setExpandAlignProperties(lensProfilesDirLabel, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
lensProfilesDir = Gtk::manage(new MyFileChooserButton(M("PREFERENCES_LENSPROFILESDIR"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER));
|
||||
setExpandAlignProperties(lensProfilesDir, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||
@@ -680,7 +708,21 @@ Gtk::Widget* Preferences::getImageProcessingPanel ()
|
||||
dirgrid->attach_next_to(*lensProfilesDirLabel, *cameraProfilesDirLabel, Gtk::POS_BOTTOM, 1, 1);
|
||||
dirgrid->attach_next_to(*lensProfilesDir, *lensProfilesDirLabel, Gtk::POS_RIGHT, 1, 1);
|
||||
|
||||
//Pack directories to Image Processing panel
|
||||
// Lensfun DB dir
|
||||
Gtk::Label *lensfunDbDirLabel = Gtk::manage(new Gtk::Label(M("PREFERENCES_LENSFUNDBDIR") + ":"));
|
||||
lensfunDbDirLabel->set_tooltip_text(M("PREFERENCES_LENSFUNDBDIR_TOOLTIP"));
|
||||
setExpandAlignProperties(lensfunDbDirLabel, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
lensfunDbDir = Gtk::manage(new MyFileChooserEntry(M("PREFERENCES_LENSFUNDBDIR"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER));
|
||||
lensfunDbDir->set_placeholder_text(Glib::ustring::compose("(%1)", M("GENERAL_AUTO")));
|
||||
setExpandAlignProperties(lensfunDbDir, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||
Gtk::Label* lensfunDbDirRestartNeededLabel = Gtk::manage(new Gtk::Label(Glib::ustring(" (") + M("PREFERENCES_APPLNEXTSTARTUP") + ")"));
|
||||
setExpandAlignProperties(lensfunDbDirRestartNeededLabel, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||
|
||||
dirgrid->attach_next_to(*lensfunDbDirLabel, *lensProfilesDirLabel, Gtk::POS_BOTTOM, 1, 1);
|
||||
dirgrid->attach_next_to(*lensfunDbDir, *lensfunDbDirLabel, Gtk::POS_RIGHT, 1, 1);
|
||||
dirgrid->attach_next_to(*lensfunDbDirRestartNeededLabel, *lensfunDbDir, Gtk::POS_RIGHT, 1, 1);
|
||||
|
||||
//Pack directories to Image Processing panel
|
||||
cdf->add(*dirgrid);
|
||||
vbImageProcessing->pack_start (*cdf, Gtk::PACK_SHRINK, 4 );
|
||||
|
||||
@@ -1197,7 +1239,7 @@ Gtk::Widget* Preferences::getGeneralPanel()
|
||||
setExpandAlignProperties(pseudoHiDPI, false, false, Gtk::ALIGN_START, Gtk::ALIGN_BASELINE);
|
||||
|
||||
Gtk::Separator *vSep = Gtk::manage(new Gtk::Separator(Gtk::ORIENTATION_VERTICAL));
|
||||
|
||||
|
||||
|
||||
appearanceGrid->attach(*themeLbl, 0, 0, 1, 1);
|
||||
appearanceGrid->attach(*themeCBT, 1, 0, 1, 1);
|
||||
@@ -1350,10 +1392,7 @@ Gtk::Widget* Preferences::getFileBrowserPanel()
|
||||
sdlast = Gtk::manage(new Gtk::RadioButton(M("PREFERENCES_DIRLAST")));
|
||||
sdhome = Gtk::manage(new Gtk::RadioButton(M("PREFERENCES_DIRHOME")));
|
||||
sdother = Gtk::manage(new Gtk::RadioButton(M("PREFERENCES_DIROTHER") + ": "));
|
||||
startupdir = Gtk::manage(new Gtk::Entry());
|
||||
|
||||
Gtk::Button* sdselect = Gtk::manage(new Gtk::Button());
|
||||
sdselect->set_image (*Gtk::manage (new RTImage ("folder-open-small.png")));
|
||||
startupdir = Gtk::manage(new MyFileChooserEntry(M("PREFERENCES_DIRSELECTDLG"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER));
|
||||
|
||||
Gtk::RadioButton::Group opts = sdcurrent->get_group();
|
||||
sdlast->set_group(opts);
|
||||
@@ -1367,14 +1406,11 @@ Gtk::Widget* Preferences::getFileBrowserPanel()
|
||||
Gtk::Box* otherbox = Gtk::manage(new Gtk::Box());
|
||||
otherbox->pack_start(*sdother, Gtk::PACK_SHRINK);
|
||||
otherbox->pack_start(*startupdir);
|
||||
otherbox->pack_end(*sdselect, Gtk::PACK_SHRINK, 4);
|
||||
vbsd->pack_start(*otherbox, Gtk::PACK_SHRINK, 0);
|
||||
|
||||
fsd->add(*vbsd);
|
||||
vbFileBrowser->pack_start (*fsd, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
sdselect->signal_clicked().connect(sigc::mem_fun(*this, &Preferences::selectStartupDir));
|
||||
|
||||
//---
|
||||
|
||||
|
||||
@@ -1880,7 +1916,7 @@ void Preferences::storePreferences()
|
||||
moptions.startupDir = STARTUPDIR_LAST;
|
||||
} else if (sdother->get_active()) {
|
||||
moptions.startupDir = STARTUPDIR_CUSTOM;
|
||||
moptions.startupPath = startupdir->get_text();
|
||||
moptions.startupPath = startupdir->get_filename();
|
||||
}
|
||||
|
||||
moptions.parseExtensions.clear();
|
||||
@@ -1909,8 +1945,9 @@ void Preferences::storePreferences()
|
||||
moptions.rtSettings.darkFramesPath = darkFrameDir->get_filename();
|
||||
moptions.rtSettings.flatFieldsPath = flatFieldDir->get_filename();
|
||||
moptions.clutsDir = clutsDir->get_filename();
|
||||
moptions.rtSettings.cameraProfilesPath = cameraProfilesDir->get_filename();
|
||||
moptions.rtSettings.lensProfilesPath = lensProfilesDir->get_filename();
|
||||
moptions.rtSettings.cameraProfilesPath = cameraProfilesDir->get_filename();
|
||||
moptions.rtSettings.lensProfilesPath = lensProfilesDir->get_filename();
|
||||
moptions.rtSettings.lensfunDbDirectory = lensfunDbDir->get_filename();
|
||||
|
||||
moptions.baBehav.resize(ADDSET_PARAM_NUM);
|
||||
|
||||
@@ -1960,6 +1997,9 @@ void Preferences::storePreferences()
|
||||
moptions.cropAutoFit = cropAutoFitCB->get_active();
|
||||
|
||||
toolLocationPreference->updateOptions();
|
||||
|
||||
moptions.rtSettings.metadata_xmp_sync = rtengine::Settings::MetadataXmpSync(metadataSyncCombo->get_active_row_number());
|
||||
moptions.rtSettings.xmp_sidecar_style = rtengine::Settings::XmpSidecarStyle(xmpSidecarCombo->get_active_row_number());
|
||||
}
|
||||
|
||||
void Preferences::fillPreferences()
|
||||
@@ -2107,7 +2147,7 @@ void Preferences::fillPreferences()
|
||||
sdhome->set_active();
|
||||
} else if (moptions.startupDir == STARTUPDIR_CUSTOM) {
|
||||
sdother->set_active();
|
||||
startupdir->set_text(moptions.startupPath);
|
||||
startupdir->set_current_folder(moptions.startupPath);
|
||||
}
|
||||
|
||||
extensionModel->clear();
|
||||
@@ -2138,7 +2178,7 @@ void Preferences::fillPreferences()
|
||||
}
|
||||
|
||||
curveBBoxPosC->set_active(moptions.curvebboxpos);
|
||||
complexitylocal->set_active(moptions.complexity);
|
||||
complexitylocal->set_active(moptions.complexity);
|
||||
inspectorWindowCB->set_active(moptions.inspectorWindow);
|
||||
zoomOnScrollCB->set_active(moptions.zoomOnScroll);
|
||||
|
||||
@@ -2167,10 +2207,12 @@ void Preferences::fillPreferences()
|
||||
flatFieldChanged();
|
||||
|
||||
clutsDir->set_current_folder(moptions.clutsDir);
|
||||
|
||||
cameraProfilesDir->set_current_folder(moptions.rtSettings.cameraProfilesPath);
|
||||
|
||||
lensProfilesDir->set_current_folder(moptions.rtSettings.lensProfilesPath);
|
||||
|
||||
cameraProfilesDir->set_current_folder(moptions.rtSettings.cameraProfilesPath);
|
||||
|
||||
lensProfilesDir->set_current_folder(moptions.rtSettings.lensProfilesPath);
|
||||
|
||||
lensfunDbDir->set_current_folder(moptions.rtSettings.lensfunDbDirectory);
|
||||
|
||||
addc.block(true);
|
||||
setc.block(true);
|
||||
@@ -2209,6 +2251,9 @@ void Preferences::fillPreferences()
|
||||
txtSndLngEditProcDone->set_text(moptions.sndLngEditProcDone);
|
||||
spbSndLngEditProcDoneSecs->set_value(moptions.sndLngEditProcDoneSecs);
|
||||
#endif
|
||||
|
||||
metadataSyncCombo->set_active(int(moptions.rtSettings.metadata_xmp_sync));
|
||||
xmpSidecarCombo->set_active(int(moptions.rtSettings.xmp_sidecar_style));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2299,23 +2344,6 @@ void Preferences::cancelPressed()
|
||||
hide();
|
||||
}
|
||||
|
||||
void Preferences::selectStartupDir()
|
||||
{
|
||||
|
||||
Gtk::FileChooserDialog dialog(getToplevelWindow(this), M("PREFERENCES_DIRSELECTDLG"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
|
||||
//dialog.set_transient_for(*this);
|
||||
|
||||
//Add response buttons to the dialog:
|
||||
dialog.add_button(M("GENERAL_CANCEL"), Gtk::RESPONSE_CANCEL);
|
||||
dialog.add_button(M("GENERAL_OPEN"), Gtk::RESPONSE_OK);
|
||||
|
||||
int result = dialog.run();
|
||||
|
||||
if (result == Gtk::RESPONSE_OK) {
|
||||
startupdir->set_text(dialog.get_filename());
|
||||
}
|
||||
}
|
||||
|
||||
void Preferences::aboutPressed()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user