mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
remove all unit-based methods from (Public)Editor; rationalize Editor::event_frame() to clearly identify whether the passed-in GdkEvent has window units or canvas units (the latter will be true for all events that are handled by the canvas and then passed to Editor
This commit is contained in:
parent
fcb423f3f6
commit
ecfd2a7455
17 changed files with 130 additions and 162 deletions
|
|
@ -198,12 +198,9 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulDestructible {
|
|||
virtual void separate_region_from_selection () = 0;
|
||||
|
||||
virtual void transition_to_rolling (bool fwd) = 0;
|
||||
virtual framepos_t unit_to_frame (double unit) const = 0;
|
||||
virtual double frame_to_unit (framepos_t frame) const = 0;
|
||||
virtual double frame_to_unit (double frame) const = 0;
|
||||
virtual double frame_to_unit_unrounded (framepos_t frame) const = 0;
|
||||
virtual framepos_t pixel_to_frame (double pixel) const = 0;
|
||||
virtual gulong frame_to_pixel (framepos_t frame) const = 0;
|
||||
virtual double frame_to_pixel (framepos_t frame) const = 0;
|
||||
virtual double frame_to_pixel_unrounded (framepos_t frame) const = 0;
|
||||
virtual Selection& get_selection () const = 0;
|
||||
virtual Selection& get_cut_buffer () const = 0;
|
||||
virtual void track_mixer_selection () = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue