metadata: allow to select which metadata tags to include in the output image
(cherry picked from commit ed64206cb8b4455870815e2c51aecbd5c09e4054)
This commit is contained in:
committed by
Lawrence Lee
parent
5fdff8dab4
commit
abb052e51b
@@ -21,6 +21,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include <gtkmm.h>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "toolpanel.h"
|
||||
|
||||
@@ -56,6 +57,7 @@ private:
|
||||
Gtk::TreeModelColumn<Glib::ustring> value_nopango;
|
||||
Gtk::TreeModelColumn<bool> editable;
|
||||
Gtk::TreeModelColumn<bool> edited;
|
||||
Gtk::TreeModelColumn<bool> active;
|
||||
|
||||
ExifColumns()
|
||||
{
|
||||
@@ -66,6 +68,7 @@ private:
|
||||
add(edited);
|
||||
add(value_nopango);
|
||||
add(editable);
|
||||
add(active);
|
||||
}
|
||||
};
|
||||
Glib::RefPtr<Gdk::Pixbuf> keepicon;
|
||||
@@ -79,15 +82,29 @@ private:
|
||||
Gtk::Button* add;
|
||||
Gtk::Button* reset;
|
||||
Gtk::Button* resetAll;
|
||||
Gtk::Button *activate_all_;
|
||||
Gtk::Button *activate_none_;
|
||||
|
||||
Gtk::CellRendererToggle exif_active_renderer_;
|
||||
Gtk::TreeView::Column exif_active_column_;
|
||||
|
||||
const std::vector<std::pair<std::string, Glib::ustring>> editableTags;
|
||||
|
||||
std::unordered_set<std::string> initial_active_keys_;
|
||||
std::unordered_set<std::string> cur_active_keys_;
|
||||
|
||||
void addTag(const std::string &key, const Glib::ustring &label, const Glib::ustring &value, bool editable, bool edited);
|
||||
void refreshTags();
|
||||
void resetIt(const Gtk::TreeModel::const_iterator& iter);
|
||||
void resetPressed();
|
||||
void resetAllPressed();
|
||||
void addPressed();
|
||||
void activateAllPressed();
|
||||
void activateNonePressed();
|
||||
|
||||
void setKeyActive(Gtk::CellRenderer *renderer, const Gtk::TreeModel::iterator &it);
|
||||
void onKeyActiveToggled(const Glib::ustring &path);
|
||||
|
||||
|
||||
public:
|
||||
ExifPanel ();
|
||||
|
Reference in New Issue
Block a user