Added "Show all" button in Exif panel + astylized exifpanel.cc/.h

See #4008
This commit is contained in:
Hombre57
2017-09-22 00:35:10 +02:00
parent 9543a43281
commit 615dfcbb6c
6 changed files with 189 additions and 146 deletions

View File

@@ -47,16 +47,16 @@ private:
ExifColumns()
{
add(field);
add(value);
add(icon);
add(action);
add(edited);
add(field_nopango);
add(value_nopango);
add(editable);
add(orig_value);
add(isSeparator);
add (field);
add (value);
add (icon);
add (action);
add (edited);
add (field_nopango);
add (value_nopango);
add (editable);
add (orig_value);
add (isSeparator);
}
};
Glib::RefPtr<Gdk::Pixbuf> delicon;
@@ -73,38 +73,41 @@ private:
Gtk::Button* add;
Gtk::Button* reset;
Gtk::Button* resetAll;
Gtk::ToggleButton* showAll;
Gtk::TreeModel::Children addTag (const Gtk::TreeModel::Children& root, Glib::ustring field, Glib::ustring value, rtexif::ActionCode action, bool editable);
Gtk::TreeModel::Children addTag (const Gtk::TreeModel::Children& root, Glib::ustring field, Glib::ustring value, rtexif::ActionCode action, bool editable);
void editTag (Gtk::TreeModel::Children root, Glib::ustring name, Glib::ustring value);
void updateChangeList (Gtk::TreeModel::Children root, std::string prefix);
void addDirectory (const rtexif::TagDirectory* dir, Gtk::TreeModel::Children root);
Gtk::TreeModel::Children addSeparator ();
void addDirectory (const rtexif::TagDirectory* dir, Gtk::TreeModel::Children root, bool checkForSeparator = false);
Gtk::TreeModel::Children addSeparator();
Glib::ustring getSelection (bool onlyifeditable = false);
Glib::ustring getSelectedValue ();
void updateChangeList ();
void applyChangeList ();
void keepIt (Gtk::TreeModel::iterator iter);
void delIt (Gtk::TreeModel::iterator iter);
Glib::ustring getSelectedValue();
void updateChangeList();
void applyChangeList();
void keepIt (Gtk::TreeModel::iterator iter);
void delIt (Gtk::TreeModel::iterator iter);
Gtk::TreeModel::iterator resetIt (Gtk::TreeModel::iterator iter);
void removePressed();
void keepPressed();
void resetPressed();
void resetAllPressed();
void addPressed();
void showAlltoggled();
public:
ExifPanel ();
virtual ~ExifPanel ();
virtual ~ExifPanel();
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr);
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr);
void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr);
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr);
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr);
void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr);
void setImageData (const rtengine::FramesMetaData* id);
void exifSelectionChanged ();
void removePressed ();
void keepPressed ();
void resetPressed ();
void resetAllPressed ();
void addPressed ();
void exifSelectionChanged();
void row_activated (const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
void notifyListener ();
void notifyListener();
};