Another missing icon.
[ardour.git] / gtk2_ardour / editor.h
index 20e7567f367fbe7c359305361cbf38f1834b9ec8..45ef788d40d63ee548291cfb77bdb961d6bd3c7c 100644 (file)
@@ -65,7 +65,6 @@
 #include "editor_items.h"
 #include "region_selection.h"
 #include "canvas.h"
-#include "editor_summary.h"
 
 namespace Gnome { namespace Canvas {
        class NoEventText;
@@ -76,7 +75,6 @@ namespace Gtkmm2ext {
 }
 
 namespace ARDOUR {
-       class AudioDiskstream;
        class RouteGroup;
        class Playlist;
        class AudioPlaylist;
@@ -129,6 +127,7 @@ class EditorRouteGroups;
 class EditorRegions;
 class EditorLocations;
 class EditorSnapshots;
+class EditorSummary;
 
 /* <CMT Additions> */
 class ImageFrameView;
@@ -198,6 +197,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void step_mouse_mode (bool next);
        Editing::MouseMode current_mouse_mode () const { return mouse_mode; }
        Editing::MidiEditMode current_midi_edit_mode () const;
+       void remove_midi_note (ArdourCanvas::Item *, GdkEvent *);
 
        bool internal_editing() const { return _internal_editing ; }
        void set_internal_edit (bool yn);
@@ -217,22 +217,19 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
 
        void consider_auditioning (boost::shared_ptr<ARDOUR::Region>);
        void hide_a_region (boost::shared_ptr<ARDOUR::Region>);
-       void remove_a_region (boost::shared_ptr<ARDOUR::Region>);
+       void show_a_region (boost::shared_ptr<ARDOUR::Region>);
 
 #ifdef USE_RUBBERBAND
        std::vector<std::string> rb_opt_strings;
+       int rb_current_opt;
 #endif
 
-       /* option editor-access */
-
-       void set_show_waveforms_recording (bool yn);
-       bool show_waveforms_recording() const { return _show_waveforms_recording; }
-
        /* things that need to be public to be used in the main menubar */
 
        void new_region_from_selection ();
        void separate_regions_between (const TimeSelection&);
        void separate_region_from_selection ();
+       void separate_under_selected_regions ();
        void separate_region_from_punch ();
        void separate_region_from_loop ();
        void separate_regions_using_location (ARDOUR::Location&);
@@ -340,7 +337,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void create_editor_mixer ();
        void show_editor_list (bool yn);
        void set_selected_mixer_strip (TimeAxisView&);
-       void hide_track_in_display (TimeAxisView& tv, bool temporary = false);
+       void hide_track_in_display (TimeAxisView* tv, bool temporary = false);
 
        /* nudge is initiated by transport controls owned by ARDOUR_UI */
 
@@ -357,13 +354,16 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
 
        /* playhead/screen stuff */
 
+        void set_stationary_playhead (bool yn);
+        void toggle_stationary_playhead ();
+        bool stationary_playhead() const { return _stationary_playhead; }
+        
        void set_follow_playhead (bool yn);
        void toggle_follow_playhead ();
        bool follow_playhead() const { return _follow_playhead; }
        bool dragging_playhead () const { return _dragging_playhead; }
 
        void toggle_zero_line_visibility ();
-       void toggle_waveforms_while_recording ();
        void set_summary ();
        void set_group_tabs ();
        void toggle_measure_visibility ();
@@ -393,7 +393,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void scroll_tracks_down_line ();
        void scroll_tracks_up_line ();
 
-       bool new_regionviews_display_gain () { return _new_regionviews_show_envelope; }
        void prepare_for_cleanup ();
        void finish_cleanup ();
 
@@ -419,6 +418,10 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void goto_visual_state (uint32_t);
        void save_visual_state (uint32_t);
 
+       void queue_draw_resize_line (int at);
+       void start_resize_line_ops ();
+       void end_resize_line_ops ();
+
        TrackViewList const & get_track_views () {
                return track_views;
        }
@@ -436,6 +439,45 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void center_screen (nframes64_t);
 
        TrackViewList axis_views_from_routes (boost::shared_ptr<ARDOUR::RouteList>) const;
+       Gtkmm2ext::TearOff* mouse_mode_tearoff () const { return _mouse_mode_tearoff; }
+       Gtkmm2ext::TearOff* tools_tearoff () const { return _tools_tearoff; }
+
+       void snap_to (nframes64_t& first, int32_t direction = 0, bool for_mark = false);
+       void snap_to_with_modifier (nframes64_t& first, GdkEvent const *, int32_t direction = 0, bool for_mark = false);
+       void snap_to (nframes64_t& first, nframes64_t& last, int32_t direction = 0, bool for_mark = false);
+
+       void begin_reversible_command (std::string cmd_name);
+       void commit_reversible_command ();
+
+       DragManager* drags () const {
+               return _drags;
+       }
+
+       void maybe_autoscroll (bool, bool);
+       
+        /* handy cursors for everyone to use */
+
+       static Gdk::Cursor* cross_hair_cursor;
+       static Gdk::Cursor* trimmer_cursor;
+       static Gdk::Cursor* right_side_trim_cursor;
+       static Gdk::Cursor* left_side_trim_cursor;
+       static Gdk::Cursor* fade_in_cursor;
+       static Gdk::Cursor* fade_out_cursor;
+       static Gdk::Cursor* selector_cursor;
+       static Gdk::Cursor* grabber_cursor;
+       static Gdk::Cursor* grabber_note_cursor;
+       static Gdk::Cursor* grabber_edit_point_cursor;
+       static Gdk::Cursor* zoom_cursor;
+       static Gdk::Cursor* time_fx_cursor;
+       static Gdk::Cursor* fader_cursor;
+       static Gdk::Cursor* speaker_cursor;
+       static Gdk::Cursor* midi_pencil_cursor;
+       static Gdk::Cursor* midi_select_cursor;
+       static Gdk::Cursor* midi_resize_cursor;
+       static Gdk::Cursor* midi_erase_cursor;
+       static Gdk::Cursor* wait_cursor;
+       static Gdk::Cursor* timebar_cursor;
+       static Gdk::Cursor* transparent_cursor;
 
   protected:
        void map_transport_state ();
@@ -503,13 +545,18 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void update_join_object_range_location (double, double);
 
        int  post_maximal_editor_width;
-       int  post_maximal_pane_position;
-       int  pre_maximal_pane_position;
+       int  post_maximal_editor_height;
+       int  post_maximal_horizontal_pane_position;
+       int  post_maximal_vertical_pane_position;
+       int  pre_maximal_horizontal_pane_position;
+       int  pre_maximal_vertical_pane_position;
        int  pre_maximal_editor_width;
+       int  pre_maximal_editor_height;
        void pane_allocation_handler (Gtk::Allocation&, Gtk::Paned*);
 
        Gtk::Notebook the_notebook;
        Gtk::HPaned   edit_pane;
+       Gtk::VPaned   editor_summary_pane;
 
        Gtk::EventBox meter_base;
        Gtk::HBox     meter_box;
@@ -629,7 +676,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        Gtk::Menu* build_track_selection_context_menu (nframes64_t);
        void add_dstream_context_items (Gtk::Menu_Helpers::MenuList&);
        void add_bus_context_items (Gtk::Menu_Helpers::MenuList&);
-       void add_region_context_items (StreamView*, boost::shared_ptr<ARDOUR::Region>, Gtk::Menu_Helpers::MenuList&);
+       void add_region_context_items (StreamView*, std::list<boost::shared_ptr<ARDOUR::Region> >, Gtk::Menu_Helpers::MenuList&);
        void add_crossfade_context_items (AudioStreamView*, boost::shared_ptr<ARDOUR::Crossfade>, Gtk::Menu_Helpers::MenuList&, bool many);
        void add_selection_context_items (Gtk::Menu_Helpers::MenuList&);
 
@@ -877,10 +924,10 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void    select_all_selectables_between (bool within);
        void    select_range_between ();
 
-       boost::shared_ptr<ARDOUR::Region> find_next_region (nframes64_t, ARDOUR::RegionPoint, int32_t dir, TrackViewList&, TimeAxisView ** = 0);
-       nframes64_t find_next_region_boundary (nframes64_t, int32_t dir, const TrackViewList&);
+       boost::shared_ptr<ARDOUR::Region> find_next_region (ARDOUR::framepos_t, ARDOUR::RegionPoint, int32_t dir, TrackViewList&, TimeAxisView ** = 0);
+        ARDOUR::framepos_t find_next_region_boundary (ARDOUR::framepos_t, int32_t dir, const TrackViewList&);
 
-       std::vector<nframes64_t> region_boundary_cache;
+       std::vector<ARDOUR::framepos_t> region_boundary_cache;
        void build_region_boundary_cache ();
 
        Gtk::HBox           top_hbox;
@@ -889,19 +936,22 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        Gtk::Table          edit_packer;
 
        Gtk::Adjustment     vertical_adjustment;
-       Gtk::Adjustment     horizontal_adjustment;
 
        Gtk::Layout         controls_layout;
        bool control_layout_scroll (GdkEventScroll* ev);
        void controls_layout_size_request (Gtk::Requisition*);
        sigc::connection controls_layout_size_request_connection;
 
-       void horizontal_scroll_left ();
-       void horizontal_scroll_right ();
+       bool horizontal_scroll_left_press ();
+       void horizontal_scroll_left_release ();
+       bool horizontal_scroll_right_press ();
+       void horizontal_scroll_right_release ();
+       sigc::connection _scroll_connection;
+       int _scroll_callbacks;
 
        double _canvas_width;
-       double _canvas_height;
-       double full_canvas_height;
+       double _canvas_height; ///< height of the visible area of the track canvas
+       double full_canvas_height; ///< full height of the canvas
 
        bool track_canvas_map_handler (GdkEventAny*);
 
@@ -926,7 +976,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        ArdourCanvas::Group* get_trackview_group () const { return _trackview_group; }
        double last_trackview_group_vertical_offset;
        void tie_vertical_scrolling ();
-       void scroll_canvas_horizontally ();
+       void set_horizontal_position (double);
+       double horizontal_position () const;
        void scroll_canvas_vertically ();
 
        struct VisualChange {
@@ -960,8 +1011,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void queue_visual_change_y (double);
        void ensure_visual_change_idle_handler ();
 
-       void end_location_changed (ARDOUR::Location*);
-
        /* track views */
        TrackViewList track_views;
        std::pair<TimeAxisView*, ARDOUR::layer_t> trackview_by_y_position (double);
@@ -969,23 +1018,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
 
        TrackViewList get_tracks_for_range_action () const;
 
-       static Gdk::Cursor* cross_hair_cursor;
-       static Gdk::Cursor* trimmer_cursor;
-       static Gdk::Cursor* selector_cursor;
-       static Gdk::Cursor* grabber_cursor;
-       static Gdk::Cursor* grabber_edit_point_cursor;
-       static Gdk::Cursor* zoom_cursor;
-       static Gdk::Cursor* time_fx_cursor;
-       static Gdk::Cursor* fader_cursor;
-       static Gdk::Cursor* speaker_cursor;
-       static Gdk::Cursor* midi_pencil_cursor;
-       static Gdk::Cursor* midi_select_cursor;
-       static Gdk::Cursor* midi_resize_cursor;
-       static Gdk::Cursor* midi_erase_cursor;
-       static Gdk::Cursor* wait_cursor;
-       static Gdk::Cursor* timebar_cursor;
-       static Gdk::Cursor* transparent_cursor;
-
        static void build_cursors ();
 
        sigc::connection super_rapid_screen_update_connection;
@@ -1031,7 +1063,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void toggle_region_lock ();
        void toggle_region_opaque ();
        void toggle_record_enable ();
-       void set_region_lock_style (ARDOUR::Region::PositionLockStyle);
+       void toggle_region_lock_style ();
        void raise_region ();
        void raise_region_to_top ();
        void lower_region ();
@@ -1068,9 +1100,10 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void reset_region_scale_amplitude ();
        void adjust_region_scale_amplitude (bool up);
        void quantize_region ();
+       void fork_region ();
 
        void do_insert_time ();
-       void insert_time (nframes64_t, nframes64_t, Editing::InsertTimeOption, bool, bool, bool);
+       void insert_time (nframes64_t, nframes64_t, Editing::InsertTimeOption, bool, bool, bool, bool, bool);
 
        void tab_to_transient (bool forward);
 
@@ -1081,6 +1114,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
 
        void audition_region_from_region_list ();
        void hide_region_from_region_list ();
+       void show_region_in_region_list ();
 
        void align (ARDOUR::RegionPoint);
        void align_relative (ARDOUR::RegionPoint);
@@ -1093,6 +1127,11 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void cut ();
        void copy ();
        void paste (float times);
+       
+       void place_transient ();
+       void remove_transient (ArdourCanvas::Item* item);
+       void snap_regions_to_grid ();
+       void close_region_gaps ();
 
        int  get_prefix (float&, bool&);
 
@@ -1144,7 +1183,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        void  drop_paths_part_two  (const std::vector<Glib::ustring>& paths, nframes64_t frame, double ypos);
 
        int  import_sndfiles (std::vector<Glib::ustring> paths, Editing::ImportMode mode,  ARDOUR::SrcQuality, nframes64_t& pos,
-                             int target_regions, int target_tracks, boost::shared_ptr<ARDOUR::Track>&, bool, uint32_t total);
+                             int target_regions, int target_tracks, boost::shared_ptr<ARDOUR::Track>&, bool);
        int  embed_sndfiles (std::vector<Glib::ustring> paths, bool multiple_files, bool& check_sample_rate, Editing::ImportMode mode,
                             nframes64_t& pos, int target_regions, int target_tracks, boost::shared_ptr<ARDOUR::Track>&);
 
@@ -1156,17 +1195,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        boost::shared_ptr<ARDOUR::AudioTrack> get_nth_selected_audio_track (int nth) const;
        boost::shared_ptr<ARDOUR::MidiTrack> get_nth_selected_midi_track (int nth) const;
 
-       /* generic interthread progress window */
-
-       ArdourDialog* interthread_progress_window;
-       Gtk::Label interthread_progress_label;
-       Gtk::VBox interthread_progress_vbox;
-       Gtk::ProgressBar interthread_progress_bar;
-       Gtk::Button interthread_cancel_button;
-       Gtk::Label interthread_cancel_label;
-       sigc::connection  interthread_progress_connection;
-       void interthread_cancel_clicked ();
-       void build_interthread_progress_window ();
        ARDOUR::InterThreadInfo* current_interthread_info;
 
        AnalysisWindow* analysis_window;
@@ -1183,7 +1211,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        };
 
        EditorImportStatus import_status;
-       gint import_progress_timeout (void *);
        static void *_import_thread (void *);
        void* import_thread ();
        void finish_import ();
@@ -1339,12 +1366,13 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
 private:
        ArdourCanvas::Item *last_item_entered;
        int last_item_entered_n;
-public:
 
+public:
        bool canvas_region_view_event (GdkEvent* event,ArdourCanvas::Item*, RegionView*);
        bool canvas_frame_handle_event (GdkEvent* event,ArdourCanvas::Item*, RegionView*);
        bool canvas_region_view_name_highlight_event (GdkEvent* event,ArdourCanvas::Item*, RegionView*);
        bool canvas_region_view_name_event (GdkEvent* event,ArdourCanvas::Item*, RegionView*);
+       bool canvas_feature_line_event (GdkEvent* event, ArdourCanvas::Item*, RegionView*);
        bool canvas_stream_view_event (GdkEvent* event,ArdourCanvas::Item*, RouteTimeAxisView*);
        bool canvas_marker_event (GdkEvent* event,ArdourCanvas::Item*, Marker*);
        bool canvas_zoom_rect_event (GdkEvent* event,ArdourCanvas::Item*);
@@ -1369,6 +1397,11 @@ public:
        bool canvas_markerview_start_handle_event(GdkEvent* event, ArdourCanvas::Item*,MarkerView*);
        bool canvas_markerview_end_handle_event(GdkEvent* event, ArdourCanvas::Item*,MarkerView*);
 
+  private:
+        friend class DragManager;
+        friend class EditorRouteGroups;
+        friend class EditorRegions;
+
        /* non-public event handlers */
 
        bool canvas_playhead_cursor_event (GdkEvent* event, ArdourCanvas::Item*);
@@ -1393,7 +1426,6 @@ public:
        void kbd_do_brush (GdkEvent*);
        void kbd_do_audition (GdkEvent*);
 
-       void handle_new_duration ();
        void initialize_canvas ();
 
        /* display control */
@@ -1401,8 +1433,8 @@ public:
        bool _show_measures;
        /// true if the editor should follow the playhead, otherwise false
        bool _follow_playhead;
-       /// true if waveforms should be shown while recording audio tracks, otherwise false
-       bool _show_waveforms_recording;
+        /// true if we scroll the tracks rather than the playhead
+        bool _stationary_playhead;
 
        ARDOUR::TempoMap::BBTPointList *current_bbt_points;
 
@@ -1429,11 +1461,13 @@ public:
        void edit_tempo_marker (ArdourCanvas::Item*);
        void edit_meter_marker (ArdourCanvas::Item*);
        void edit_control_point (ArdourCanvas::Item*);
+       void edit_note (ArdourCanvas::Item *);
 
        void marker_menu_edit ();
        void marker_menu_remove ();
        void marker_menu_rename ();
-       void marker_menu_lock (bool yn);
+       void toggle_marker_menu_lock ();
+       void toggle_marker_menu_glue ();
        void marker_menu_hide ();
        void marker_menu_loop_range ();
        void marker_menu_select_all_selectables_using_range ();
@@ -1451,17 +1485,18 @@ public:
        void update_punch_range_view (bool visibility=false);
         void new_transport_marker_menu_popdown ();
        void marker_context_menu (GdkEventButton*, ArdourCanvas::Item*);
-       void tm_marker_context_menu (GdkEventButton*, ArdourCanvas::Item*);
+       void tempo_or_meter_marker_context_menu (GdkEventButton*, ArdourCanvas::Item*);
        void transport_marker_context_menu (GdkEventButton*, ArdourCanvas::Item*);
        void new_transport_marker_context_menu (GdkEventButton*, ArdourCanvas::Item*);
        void build_range_marker_menu (bool loop_or_punch);
-       void build_marker_menu (bool start_or_end);
-       void build_tm_marker_menu ();
+       void build_marker_menu (bool, ARDOUR::Location *);
+       void build_tempo_or_meter_marker_menu (bool);
        void build_new_transport_marker_menu ();
+       void dynamic_cast_marker_object (void*, MeterMarker**, TempoMarker**) const;
 
-       Gtk::Menu* tm_marker_menu;
+       Gtk::Menu* tempo_or_meter_marker_menu;
        Gtk::Menu* marker_menu;
-       Gtk::Menu* start_end_marker_menu;
+       Gtk::Menu* session_range_marker_menu;
        Gtk::Menu* range_marker_menu;
        Gtk::Menu* transport_marker_menu;
        Gtk::Menu* new_transport_marker_menu;
@@ -1478,10 +1513,6 @@ public:
        void tempo_map_changed (const PBD::PropertyChange&);
        void redisplay_tempo (bool immediate_redraw);
 
-       void snap_to (nframes64_t& first, int32_t direction = 0, bool for_mark = false);
-       void snap_to_with_modifier (nframes64_t& first, GdkEvent const *, int32_t direction = 0, bool for_mark = false);
-       void snap_to (nframes64_t& first, nframes64_t& last, int32_t direction = 0, bool for_mark = false);
-
        uint32_t bbt_beat_subdivision;
 
        /* toolbar */
@@ -1505,7 +1536,7 @@ public:
        Gtk::Table               toolbar_selection_clock_table;
        Gtk::Label               toolbar_selection_cursor_label;
 
-       Gtkmm2ext::TearOff*      mouse_mode_tearoff;
+       Gtkmm2ext::TearOff*      _mouse_mode_tearoff;
        Gtk::ToggleButton         mouse_select_button;
        Gtk::ToggleButton         mouse_move_button;
        Gtk::ToggleButton         mouse_gain_button;
@@ -1515,6 +1546,7 @@ public:
        Gtk::ToggleButton         join_object_range_button;
 
        void                     mouse_mode_toggled (Editing::MouseMode m);
+       void                     mouse_mode_object_range_toggled () {}
        bool                     ignore_mouse_mode_toggle;
 
        Gtk::ToggleButton        internal_edit_button;
@@ -1558,17 +1590,15 @@ public:
 
        Glib::RefPtr<Gtk::RadioAction> zoom_focus_action (Editing::ZoomFocus);
 
-       Gtk::HBox           zoom_box;
-       Gtk::HBox           track_zoom_box;
-       Gtk::VBox           zoom_vbox;
-
+       Gtk::HBox           _zoom_box;
+       Gtkmm2ext::TearOff* _zoom_tearoff;
        void                zoom_adjustment_changed();
 
        void setup_toolbar ();
 
        void setup_tooltips ();
 
-       Gtkmm2ext::TearOff*      tools_tearoff;
+       Gtkmm2ext::TearOff*     _tools_tearoff;
        Gtk::HBox                toolbar_hbox;
        Gtk::EventBox            toolbar_base;
        Gtk::Frame               toolbar_frame;
@@ -1630,7 +1660,7 @@ public:
 
        /* object rubberband select process */
 
-       bool select_all_within (nframes64_t, nframes64_t, double, double, TrackViewList const &, Selection::Operation op);
+       bool select_all_within (nframes64_t, nframes64_t, double, double, TrackViewList const &, Selection::Operation, bool);
 
        ArdourCanvas::SimpleRect   *rubberband_rect;
 
@@ -1671,14 +1701,12 @@ public:
        bool autoscroll_canvas ();
        void start_canvas_autoscroll (int x, int y);
        void stop_canvas_autoscroll ();
-       void maybe_autoscroll (GdkEventMotion*, bool);
-       bool allow_vertical_scroll;
 
        /* trimming */
        void point_trim (GdkEvent *, nframes64_t);
-       void single_contents_trim (RegionView&, nframes64_t, bool, bool, bool);
-       void single_start_trim (RegionView&, nframes64_t, bool, bool, bool);
-       void single_end_trim (RegionView&, nframes64_t, bool, bool, bool);
+       void single_contents_trim (RegionView&, nframes64_t, bool, bool);
+       void single_start_trim (RegionView&, nframes64_t, bool);
+       void single_end_trim (RegionView&, nframes64_t, bool);
 
        void thaw_region_after_trim (RegionView& rv);
 
@@ -1756,9 +1784,6 @@ public:
 
        XMLNode *before; /* used in *_reversible_command */
 
-       void begin_reversible_command (std::string cmd_name);
-       void commit_reversible_command ();
-
        void update_title ();
        void update_title_s (const std::string & snapshot_name);
 
@@ -1777,7 +1802,6 @@ public:
        /* freeze operations */
 
        ARDOUR::InterThreadInfo freeze_status;
-       gint freeze_progress_timeout (void *);
        static void* _freeze_thread (void*);
        void* freeze_thread ();
 
@@ -1914,6 +1938,9 @@ public:
        sigc::connection step_timeout;
 
        TimeAxisView* entered_track;
+       /** If the mouse is over a RegionView or one of its child canvas items, this is set up
+           to point to the RegionView.  Otherwise it is 0.
+       */
        RegionView*   entered_regionview;
 
 
@@ -1926,8 +1953,6 @@ public:
        void ensure_track_visible (TimeAxisView*);
        gint left_automation_track ();
 
-       bool _new_regionviews_show_envelope;
-
        void reset_canvas_action_sensitivity (bool);
        void toggle_gain_envelope_visibility ();
        void toggle_gain_envelope_active ();
@@ -1982,15 +2007,15 @@ public:
 
        void fit_tracks (TrackViewList &);
        void fit_selected_tracks ();
-       void set_track_height (uint32_t h);
+       void set_track_height (Height);
 
        void remove_tracks ();
        void toggle_tracks_active ();
 
        bool _have_idled;
        int resize_idle_id;
+       static gboolean _idle_resize (gpointer);
        bool idle_resize();
-       friend gboolean _idle_resize (gpointer);
        int32_t _pending_resize_amount;
        TimeAxisView* _pending_resize_view;
 
@@ -2012,11 +2037,11 @@ public:
        void region_view_added (RegionView *);
 
        void update_canvas_now ();
-       void streamview_height_changed ();
 
        EditorGroupTabs* _group_tabs;
        void fit_route_group (ARDOUR::RouteGroup *);
 
+        void step_edit_status_change (bool);
        void start_step_editing ();
        void stop_step_editing ();
        bool check_step_edit ();
@@ -2050,6 +2075,7 @@ public:
        friend class EditorGroupTabs;
 
        friend class EditorRoutes;
+       friend class RhythmFerret;
 };
 
 #endif /* __ardour_editor_h__ */