diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-23 22:31:03 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-23 22:32:32 +0100 |
commit | 1e4e97019da3e90f89614da51ac537ed2041bb55 (patch) | |
tree | 0f8177b0fa20002f475a614e0d907634dbd71338 /gtk2_ardour/public_editor.h | |
parent | 71fd94b422574d1efbcce1ab85c6ce3da22ba450 (diff) |
Lua bindings to access editor selection + region selection bindings
Diffstat (limited to 'gtk2_ardour/public_editor.h')
-rw-r--r-- | gtk2_ardour/public_editor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h index 5cfedb11f1..62cb9f2bcb 100644 --- a/gtk2_ardour/public_editor.h +++ b/gtk2_ardour/public_editor.h @@ -204,9 +204,13 @@ class PublicEditor : public Gtkmm2ext::Tabbable { virtual framepos_t playhead_cursor_sample () const = 0; virtual double sample_to_pixel (framepos_t frame) const = 0; virtual double sample_to_pixel_unrounded (framepos_t frame) const = 0; + virtual Selection& get_selection () const = 0; virtual bool get_selection_extents (framepos_t &start, framepos_t &end) const = 0; virtual Selection& get_cut_buffer () const = 0; + + virtual void set_selection (std::list<Selectable*>, Selection::Operation) = 0; + virtual bool extend_selection_to_track (TimeAxisView&) = 0; virtual void play_selection () = 0; virtual void play_with_preroll () = 0; @@ -348,6 +352,7 @@ class PublicEditor : public Gtkmm2ext::Tabbable { virtual RouteTimeAxisView* get_route_view_by_route_id (const PBD::ID& id) const = 0; virtual void get_equivalent_regions (RegionView* rv, std::vector<RegionView*>&, PBD::PropertyID) const = 0; + virtual RegionView* get_regionview_from_region (boost::shared_ptr<ARDOUR::Region>) const = 0; sigc::signal<void> ZoomChanged; sigc::signal<void> Realized; |