From 485b74e0b940df8580bbb2a7a0c31fe7e105d32d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 28 Feb 2021 15:54:46 -0700 Subject: [PATCH] rename EditorSummary::Position as Editor::SummaryPosition --- gtk2_ardour/editor_summary.cc | 4 ++-- gtk2_ardour/editor_summary.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index 2d8a1736df..d1dd5f0f99 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -581,7 +581,7 @@ EditorSummary::get_editor (pair* x, pair* y) con } /** Get an expression of the position of a point with respect to the view rectangle */ -EditorSummary::Position +EditorSummary::SummaryPosition EditorSummary::get_position (double x, double y) const { /* how close the mouse has to be to the edge of the view rectangle to be considered `on it', @@ -619,7 +619,7 @@ EditorSummary::reset_to_extents() void -EditorSummary::set_cursor (Position p) +EditorSummary::set_cursor (SummaryPosition p) { switch (p) { case LEFT: diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h index dc014d485c..4ae38a9e82 100644 --- a/gtk2_ardour/editor_summary.h +++ b/gtk2_ardour/editor_summary.h @@ -49,7 +49,7 @@ private: void parameter_changed (std::string); void on_size_allocate (Gtk::Allocation& alloc); - enum Position { + enum SummaryPosition { LEFT, RIGHT, BOTTOM, @@ -79,8 +79,8 @@ private: void set_editor_x (std::pair); void playhead_position_changed (samplepos_t); double editor_y_to_summary (double) const; - Position get_position (double, double) const; - void set_cursor (Position); + SummaryPosition get_position (double, double) const; + void set_cursor (SummaryPosition); void route_gui_changed (PBD::PropertyChange const&); bool suspending_editor_updates () const; double playhead_sample_to_position (samplepos_t) const; @@ -103,7 +103,7 @@ private: double _start_mouse_x; double _start_mouse_y; - Position _start_position; + SummaryPosition _start_position; bool _move_dragging; @@ -125,7 +125,7 @@ private: bool _pending_editor_changed; bool _zoom_trim_dragging; - Position _zoom_trim_position; + SummaryPosition _zoom_trim_position; bool _old_follow_playhead; cairo_surface_t* _image;