save global state when quitting BEFORE we stop the engine, so that global MIDI ports...
[ardour.git] / gtk2_ardour / editor.h
index 15cee99dde72a3d0a922c34c978d5e256fa284e9..38129be33b874fdb57a0e1fe022a116ab8dec367 100644 (file)
@@ -76,7 +76,6 @@ namespace Gtkmm2ext {
 }
 
 namespace ARDOUR {
-       class AudioDiskstream;
        class RouteGroup;
        class Playlist;
        class AudioPlaylist;
@@ -223,11 +222,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        std::vector<std::string> rb_opt_strings;
 #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 ();
@@ -367,7 +361,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        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 ();
@@ -397,7 +390,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 ();
 
@@ -977,7 +969,7 @@ 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*);
+       void session_range_location_changed (ARDOUR::Location*);
 
        /* track views */
        TrackViewList track_views;
@@ -1048,7 +1040,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 ();
@@ -1414,8 +1406,6 @@ public:
        bool _follow_playhead;
         /// true if we scroll the tracks rather than the playhead
         bool _stationary_playhead;
-       /// true if waveforms should be shown while recording audio tracks, otherwise false
-       bool _show_waveforms_recording;
 
        ARDOUR::TempoMap::BBTPointList *current_bbt_points;
 
@@ -1464,17 +1454,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);
+       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;
@@ -1685,9 +1676,9 @@ public:
 
        /* 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);
 
@@ -1931,8 +1922,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 ();