summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_sources.h
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2019-08-01 15:27:21 -0500
committerBen Loftis <ben@harrisonconsoles.com>2019-08-12 10:48:08 -0500
commitff440276c161a3985bcc4c53b5bb5f6aaac9e265 (patch)
treef11470e5e3632d1fe6e8220e71e0d622da89148b /gtk2_ardour/editor_sources.h
parentd67d64ea03c4e722b1c50b4019b989b09a8ff1de (diff)
Source List: Source regions can be tagged, too.
Diffstat (limited to 'gtk2_ardour/editor_sources.h')
-rw-r--r--gtk2_ardour/editor_sources.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_sources.h b/gtk2_ardour/editor_sources.h
index 5b9f669834..7ab4a9079a 100644
--- a/gtk2_ardour/editor_sources.h
+++ b/gtk2_ardour/editor_sources.h
@@ -69,6 +69,7 @@ private:
struct Columns : public Gtk::TreeModel::ColumnRecord {
Columns () {
add (name);
+ add (tags);
add (take_id);
add (natural_pos);
add (path);
@@ -78,6 +79,7 @@ private:
}
Gtk::TreeModelColumn<std::string> name;
+ Gtk::TreeModelColumn<std::string> tags;
Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::Region> > region;
Gtk::TreeModelColumn<Gdk::Color> color_;
Gtk::TreeModelColumn<std::string> natural_pos;
@@ -102,6 +104,10 @@ private:
Gtk::Widget* old_focus;
+ Gtk::CellEditable* tags_editable;
+ void tag_editing_started (Gtk::CellEditable*, const Glib::ustring&);
+ void tag_edit (const std::string&, const std::string&);
+
bool key_press (GdkEventKey *);
bool button_press (GdkEventButton *);
@@ -152,7 +158,6 @@ private:
Selection* _selection;
bool _no_redisplay;
-
};
#endif /* __gtk_ardour_editor_regions_h__ */