#include <gtkmm/notebook.h>
#include <sigc++/signal.h>
+#include "pbd/statefuldestructible.h"
+
#include "temporal/beats.h"
-#include "evoral/Note.hpp"
-#include "pbd/statefuldestructible.h"
+#include "evoral/Note.hpp"
#include "ardour/session_handle.h"
/** Set the snap type.
* @param t Snap type (defined in editing_syms.h)
*/
- virtual void set_snap_to (Editing::SnapType t) = 0;
+ virtual void set_grid_to (Editing::GridType t) = 0;
- virtual Editing::SnapType snap_type () const = 0;
+ virtual Editing::GridType grid_type () const = 0;
virtual Editing::SnapMode snap_mode () const = 0;
/** Set the snap mode.
*/
virtual void set_snap_mode (Editing::SnapMode m) = 0;
- /** Set the snap threshold.
- * @param t Snap threshold in `units'.
- */
- virtual void set_snap_threshold (double t) = 0;
-
/**
* Snap a value according to the current snap setting.
* ensure_snap overrides SnapOff and magnetic snap
*/
virtual void snap_to (ARDOUR::MusicSample& first,
ARDOUR::RoundMode direction = ARDOUR::RoundNearest,
+ ARDOUR::SnapPref gpref = ARDOUR::SnapToAny,
bool for_mark = false,
bool ensure_snap = false) = 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 update_grid () = 0;
virtual void remove_tracks () = 0;
virtual void set_loop_range (samplepos_t start, samplepos_t end, std::string cmd) = 0;
virtual void set_punch_range (samplepos_t start, samplepos_t end, std::string cmd) = 0;
* @param yn true to follow playhead, otherwise false.
* @param catch_up true to reset the editor view to show the playhead (if yn == true), otherwise false.
*/
- virtual void set_follow_playhead (bool yn, bool catch_up = false) = 0;
+ virtual void set_follow_playhead (bool yn, bool catch_up = true) = 0;
/** Toggle whether the editor is following the playhead */
virtual void toggle_follow_playhead () = 0;
virtual ArdourCanvas::ScrollGroup* get_hscroll_group () const = 0;
virtual ArdourCanvas::ScrollGroup* get_hvscroll_group () const = 0;
virtual ArdourCanvas::ScrollGroup* get_cursor_scroll_group () const = 0;
+ virtual ArdourCanvas::Container* get_drag_motion_group () const = 0;
virtual ArdourCanvas::GtkCanvasViewport* get_track_canvas() const = 0;
virtual void snap_to_with_modifier (ARDOUR::MusicSample& first,
GdkEvent const * ev,
ARDOUR::RoundMode direction = ARDOUR::RoundNearest,
- bool for_mark = false) = 0;
+ ARDOUR::SnapPref gpref = ARDOUR::SnapToAny,
+ bool for_mark = false) = 0;
+
+ virtual void set_snapped_cursor_position (samplepos_t pos) = 0;
virtual void get_regions_at (RegionSelection &, samplepos_t where, TrackViewList const &) const = 0;
virtual void get_regions_after (RegionSelection&, samplepos_t where, const TrackViewList& ts) const = 0;
virtual void get_regionviews_by_id (PBD::ID const id, RegionSelection & regions) const = 0;
virtual void get_per_region_note_selection (std::list<std::pair<PBD::ID, std::set<boost::shared_ptr<Evoral::Note<Temporal::Beats> > > > >&) const = 0;
+ virtual void build_region_boundary_cache () = 0;
+ virtual void mark_region_boundary_cache_dirty () = 0;
+
virtual void mouse_add_new_tempo_event (samplepos_t where) = 0;
virtual void mouse_add_new_meter_event (samplepos_t where) = 0;
virtual void edit_tempo_section (ARDOUR::TempoSection*) = 0;