diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-28 17:27:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-28 17:27:58 +0000 |
commit | 40903b19266fb42a49903ad3cbfb8c388704f068 (patch) | |
tree | 521c00261ee0c0b3efa2dc08b0d448b0950a97d7 /gtk2_ardour/editor_regions.h | |
parent | baf8cfe8151273265e6325bc223fe349eb33ada7 (diff) |
(1) use select next/previous row functions for tab/shift-tab navigation in region list (2) add start (in-file) column to region list (3) make region list parent/child relationships work for MIDI regions (4) fix up handling of region selection changes driven by region list selection (i think i fixed, anyway) (5) don't put text in whole file rows for columns where it makes no sense like position or mute etc.
git-svn-id: svn://localhost/ardour2/branches/3.0@7850 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_regions.h')
-rw-r--r-- | gtk2_ardour/editor_regions.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_regions.h b/gtk2_ardour/editor_regions.h index 8e41327c37..ad0a871aec 100644 --- a/gtk2_ardour/editor_regions.h +++ b/gtk2_ardour/editor_regions.h @@ -80,6 +80,7 @@ private: add (position); add (end); add (length); + add (start); add (sync); add (fadein); add (fadeout); @@ -98,6 +99,7 @@ private: Gtk::TreeModelColumn<std::string> position; Gtk::TreeModelColumn<std::string> end; Gtk::TreeModelColumn<std::string> length; + Gtk::TreeModelColumn<std::string> start; Gtk::TreeModelColumn<std::string> sync; Gtk::TreeModelColumn<std::string> fadein; Gtk::TreeModelColumn<std::string> fadeout; @@ -143,6 +145,7 @@ private: void populate_row_used (boost::shared_ptr<ARDOUR::Region> region, Gtk::TreeModel::Row const& row, uint32_t used); void populate_row_position (boost::shared_ptr<ARDOUR::Region> region, Gtk::TreeModel::Row const& row, uint32_t used); void populate_row_end (boost::shared_ptr<ARDOUR::Region> region, Gtk::TreeModel::Row const& row, uint32_t used); + void populate_row_start (boost::shared_ptr<ARDOUR::Region> region, Gtk::TreeModel::Row const& row, uint32_t used); void populate_row_sync (boost::shared_ptr<ARDOUR::Region> region, Gtk::TreeModel::Row const& row, uint32_t used); void populate_row_fade_in (boost::shared_ptr<ARDOUR::Region> region, Gtk::TreeModel::Row const& row, uint32_t used, boost::shared_ptr<ARDOUR::AudioRegion>); void populate_row_fade_out (boost::shared_ptr<ARDOUR::Region> region, Gtk::TreeModel::Row const& row, uint32_t used, boost::shared_ptr<ARDOUR::AudioRegion>); @@ -186,6 +189,11 @@ private: bool ignore_region_list_selection_change; bool ignore_selected_region_change; bool expanded; + + void select_one (Glib::RefPtr<Gtk::TreeSelection>, Glib::RefPtr<Gtk::TreeModel>, Gtk::TreeView&, + Gtk::TreeIter, Gtk::TreePath, Gtk::TreeViewColumn*); + void select_next (); + void select_previous (); }; #endif /* __gtk_ardour_editor_regions_h__ */ |