exif panel: further tweaks to the metadata selection

(cherry picked from commit 207e51b64726367f2d932c000060f00b2697523f)
This commit is contained in:
Alberto Griggio
2020-04-09 08:33:18 -07:00
committed by Lawrence Lee
parent a26e627282
commit 8a5aa6c119
2 changed files with 109 additions and 47 deletions

View File

@@ -51,13 +51,14 @@ private:
{
public:
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > icon;
Gtk::TreeModelColumn<Glib::ustring> key;
Gtk::TreeModelColumn<std::string> key;
Gtk::TreeModelColumn<Glib::ustring> label;
Gtk::TreeModelColumn<Glib::ustring> value;
Gtk::TreeModelColumn<Glib::ustring> value_nopango;
Gtk::TreeModelColumn<bool> editable;
Gtk::TreeModelColumn<bool> edited;
Gtk::TreeModelColumn<bool> active;
Gtk::TreeModelColumn<bool> is_group;
ExifColumns()
{
@@ -69,6 +70,7 @@ private:
add(value_nopango);
add(editable);
add(active);
add(is_group);
}
};
Glib::RefPtr<Gdk::Pixbuf> keepicon;
@@ -93,7 +95,7 @@ private:
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 addTag(const std::string &key, const std::pair<Glib::ustring, Glib::ustring> &label, const Glib::ustring &value, bool editable, bool edited);
void refreshTags();
void resetIt(const Gtk::TreeModel::const_iterator& iter);
void resetPressed();