and a few more Editor lua bindings
[ardour.git] / gtk2_ardour / public_editor.h
index 86a23ec455d1432b72d06a8cebb8e0687d7466e8..6c2e5c6f0ab4c176cae498ed36b6f687b5c8eb06 100644 (file)
@@ -35,8 +35,8 @@
 #include <gtkmm/notebook.h>
 #include <sigc++/signal.h>
 
+#include "evoral/Beats.hpp"
 #include "evoral/Note.hpp"
-#include "evoral/types.hpp"
 
 #include "pbd/statefuldestructible.h"
 
@@ -198,6 +198,7 @@ class PublicEditor : public Gtkmm2ext::Tabbable {
        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 track_mixer_selection () = 0;
        virtual bool extend_selection_to_track (TimeAxisView&) = 0;
@@ -205,11 +206,14 @@ class PublicEditor : public Gtkmm2ext::Tabbable {
        virtual void play_with_preroll () = 0;
        virtual void maybe_locate_with_edit_preroll (framepos_t location) = 0;
        virtual void goto_nth_marker (int nth) = 0;
+       virtual void trigger_script (int nth) = 0;
        virtual void add_location_from_playhead_cursor () = 0;
        virtual void remove_location_at_playhead_cursor () = 0;
        virtual void set_show_measures (bool yn) = 0;
        virtual bool show_measures () const = 0;
        virtual void remove_tracks () = 0;
+       virtual void set_loop_range (framepos_t start, framepos_t end, std::string cmd) = 0;
+       virtual void set_punch_range (framepos_t start, framepos_t end, std::string cmd) = 0;
 
        virtual Editing::MouseMode effective_mouse_mode () const = 0;
 
@@ -318,7 +322,7 @@ class PublicEditor : public Gtkmm2ext::Tabbable {
        Glib::RefPtr<Gtk::ActionGroup> editor_menu_actions;
        Glib::RefPtr<Gtk::ActionGroup> _region_actions;
 
-       virtual void reset_focus () = 0;
+       virtual void reset_focus (Gtk::Widget*) = 0;
 
        virtual bool canvas_scroll_event (GdkEventScroll* event, bool from_canvas) = 0;
        virtual bool canvas_control_point_event (GdkEvent* event, ArdourCanvas::Item*, ControlPoint*) = 0;
@@ -386,6 +390,8 @@ class PublicEditor : public Gtkmm2ext::Tabbable {
        virtual void abort_reversible_command () = 0;
        virtual void commit_reversible_command () = 0;
 
+       virtual void access_action (std::string,std::string) = 0;
+
        virtual MouseCursors const * cursors () const = 0;
        virtual VerboseCursor * verbose_cursor () const = 0;