Issue 2755:Add color profile file type filter for Monitor Color Profile chooser

This commit is contained in:
DrSlony
2015-04-30 09:16:35 +02:00
parent 4f72fe6d8c
commit d263c8b18b
8 changed files with 103 additions and 104 deletions

View File

@@ -59,9 +59,9 @@ FlatField::FlatField () : FoldableToolPanel(this, "flatfield", M("TP_FLATFIELD_L
flatFieldClipControl = Gtk::manage (new Adjuster(M("TP_FLATFIELD_CLIPCONTROL"), 0., 100., 1., 0.));
flatFieldClipControl->setAdjusterListener(this);
flatFieldClipControl->addAutoButton("");
flatFieldClipControl->addAutoButton("");
if (flatFieldClipControl->delay < 1000) flatFieldClipControl->delay = 1000;
flatFieldClipControl->show();
flatFieldClipControl->show();
flatFieldClipControl->set_tooltip_markup (M("TP_FLATFIELD_CLIPCONTROL_TOOLTIP"));
pack_start( *hbff, Gtk::PACK_SHRINK, 0);
@@ -81,7 +81,7 @@ FlatField::FlatField () : FoldableToolPanel(this, "flatfield", M("TP_FLATFIELD_L
b_filter_asCurrent = false;
Gtk::FileFilter *filter_any = Gtk::manage(new Gtk::FileFilter);
filter_any->add_pattern("*");
filter_any->set_name(M("TP_FLATFIELD_FILEDLGFILTERANY"));
filter_any->set_name(M("FILECHOOSER_FILTER_ANY"));
flatFieldFile->add_filter (*filter_any);
// filters for all supported non-raw extensions
@@ -182,7 +182,7 @@ void FlatField::read(const rtengine::procparams::ProcParams* pp, const ParamsEdi
b_filter_asCurrent = true; //prevent re-adding this filter on every pp3 file read
Gtk::FileFilter *filter_asCurrent = Gtk::manage(new Gtk::FileFilter);
filter_asCurrent->add_pattern("*." + filetype);
filter_asCurrent->set_name(M("TP_FLATFIELD_FILEDLGFILTERFF") + " (" + filetype + ")");
filter_asCurrent->set_name(M("FILECHOOSER_FILTER_SAME") + " (" + filetype + ")");
flatFieldFile->add_filter (*filter_asCurrent);
flatFieldFile->set_filter (*filter_asCurrent);
}
@@ -293,13 +293,13 @@ void FlatField::flatFieldFileChanged()
void FlatField::flatFieldFile_Reset()
{
ffChanged=true;
// caution: I had to make this hack, because set_current_folder() doesn't work correctly!
// Because szeva doesn't exist since he was committed to happy hunting ground in Issue 316
// we can use him now for this hack
flatFieldFile->set_filename (options.lastFlatfieldDir + "/szeva");
// caution: I had to make this hack, because set_current_folder() doesn't work correctly!
// Because szeva doesn't exist since he was committed to happy hunting ground in Issue 316
// we can use him now for this hack
flatFieldFile->set_filename (options.lastFlatfieldDir + "/szeva");
// end of the hack
if (!options.lastFlatfieldDir.empty())
flatFieldFile->set_current_folder(options.lastFlatfieldDir);