First steps to extend dynamic profiles for Pixel Shift and HDR images
This commit is contained in:
@@ -110,6 +110,7 @@ public:
|
||||
std::string getOrientation (unsigned int frame = 0) const { return ""; } // TODO
|
||||
bool getPixelShift (unsigned int frame = 0) const { return isPixelShift; }
|
||||
bool getHDR (unsigned int frame = 0) const { return isHDR; }
|
||||
std::string getRawType (unsigned int frame) const { return isPixelShift ? "PS" : isHDR ? "HDR" : "STD"; }
|
||||
rtengine::IIOSampleFormat getSampleFormat (unsigned int frame = 0) const { return sampleFormat; }
|
||||
};
|
||||
#endif
|
||||
|
@@ -41,6 +41,7 @@ DynamicProfilePanel::EditDialog::EditDialog (const Glib::ustring &title, Gtk::Wi
|
||||
|
||||
add_optional (M ("EXIFFILTER_CAMERA"), has_camera_, camera_);
|
||||
add_optional (M ("EXIFFILTER_LENS"), has_lens_, lens_);
|
||||
add_optional (M ("EXIFFILTER_RAWTYPE"), has_rawtype_, rawtype_);
|
||||
|
||||
add_range (M ("EXIFFILTER_ISO"), iso_min_, iso_max_);
|
||||
add_range (M ("EXIFFILTER_APERTURE"), fnumber_min_, fnumber_max_);
|
||||
@@ -81,6 +82,9 @@ void DynamicProfilePanel::EditDialog::set_rule (
|
||||
has_lens_->set_active (rule.lens.enabled);
|
||||
lens_->set_text (rule.lens.value);
|
||||
|
||||
has_rawtype_->set_active (rule.rawType.enabled);
|
||||
rawtype_->set_text (rule.rawType.value);
|
||||
|
||||
profilepath_->updateProfileList();
|
||||
|
||||
if (!profilepath_->setActiveRowFromFullPath (rule.profilepath)) {
|
||||
@@ -112,6 +116,9 @@ DynamicProfileRule DynamicProfilePanel::EditDialog::get_rule()
|
||||
ret.lens.enabled = has_lens_->get_active();
|
||||
ret.lens.value = lens_->get_text();
|
||||
|
||||
ret.rawType.enabled = has_rawtype_->get_active();
|
||||
ret.rawType.value = rawtype_->get_text();
|
||||
|
||||
ret.profilepath = profilepath_->getFullPathFromActiveRow();
|
||||
|
||||
return ret;
|
||||
|
@@ -109,6 +109,9 @@ private:
|
||||
Gtk::CheckButton *has_lens_;
|
||||
Gtk::Entry *lens_;
|
||||
|
||||
Gtk::CheckButton *has_rawtype_;
|
||||
Gtk::Entry *rawtype_;
|
||||
|
||||
ProfileStoreComboBox *profilepath_;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user