Use track colours in the port matrix.
[ardour.git] / gtk2_ardour / public_editor.h
index a10539afe8b78109f636a8838c215526c339867a..7171edf98d214943f423e227f71285191c2049ae 100644 (file)
@@ -30,7 +30,9 @@
 #include <jack/types.h>
 #include <sigc++/signal.h>
 
-#include <pbd/statefuldestructible.h> 
+#include "ardour/route_group.h"
+
+#include "pbd/statefuldestructible.h" 
 
 #include "editing.h"
 #include "canvas.h"
@@ -163,7 +165,7 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
        
        /** @return Sound edited notes in MIDI regions while editing
         */
-       virtual bool is_midi_sound_notes_active () const = 0;
+       virtual bool sound_notes () const = 0;
 
        /** Possibly start the audition of a region.  If \ref r is 0, or not an AudioRegion
         * any current audition is cancelled.  If we are currently auditioning \ref r,
@@ -172,14 +174,6 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
         */
        virtual void consider_auditioning (boost::shared_ptr<ARDOUR::Region> r) = 0;
 
-       /** Set whether waveforms should be shown for audio tracks.
-        * @param yn true to show waveforms, otherwise false.
-        */
-       virtual void set_show_waveforms (bool yn) = 0;
-
-       /** @return true if waveforms are being shown, otherwise false */
-       virtual bool show_waveforms () const = 0;
-
        /** Set whether waveforms should be shown while recording audio tracks.
         * @param yn true to show waveforms, otherwise false.
         */
@@ -224,7 +218,6 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
        virtual Editing::ZoomFocus get_zoom_focus () const = 0;
        virtual gdouble   get_current_zoom () const = 0;
        virtual PlaylistSelector& playlist_selector() const = 0;
-       virtual void route_name_changed (TimeAxisView *) = 0;
        virtual void clear_playlist (boost::shared_ptr<ARDOUR::Playlist>) = 0;
        virtual void new_playlists (TimeAxisView*) = 0;
        virtual void copy_playlists (TimeAxisView*) = 0;
@@ -233,7 +226,6 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
        virtual void set_selected_track (TimeAxisView&, Selection::Operation op = Selection::Set, bool no_remove = false) = 0;
        virtual void set_selected_mixer_strip (TimeAxisView&) = 0;
        virtual void hide_track_in_display (TimeAxisView& tv, bool temporary = false) = 0;
-       virtual void show_track_in_display (TimeAxisView& tv) = 0;
 
        /** Set whether the editor should follow the playhead.
         * @param yn true to follow playhead, otherwise false.
@@ -269,7 +261,7 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
        virtual void split_region_at_points (boost::shared_ptr<ARDOUR::Region>, ARDOUR::AnalysisFeatureList&, bool can_ferret) = 0;
        virtual void mouse_add_new_marker (nframes64_t where, bool is_cd=false, bool is_xrun=false) = 0;
        virtual void foreach_time_axis_view (sigc::slot<void,TimeAxisView&>) = 0;
-       virtual void add_to_idle_resize (TimeAxisView*,uint32_t) = 0;
+       virtual void add_to_idle_resize (TimeAxisView*, int32_t) = 0;
 
 #ifdef WITH_CMT
        virtual void add_imageframe_time_axis(const std::string & track_name, void*)  = 0;
@@ -281,7 +273,7 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
 
        virtual RouteTimeAxisView* get_route_view_by_id (PBD::ID& id) = 0;
 
-       virtual void get_equivalent_regions (RegionView* rv, std::vector<RegionView*>&) const = 0;
+       virtual void get_equivalent_regions (RegionView* rv, std::vector<RegionView*>&, ARDOUR::RouteGroup::Property) const = 0;
 
        sigc::signal<void> ZoomFocusChanged;
        sigc::signal<void> ZoomChanged;
@@ -330,10 +322,6 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
        virtual bool canvas_markerview_end_handle_event(GdkEvent* event, ArdourCanvas::Item*,MarkerView*) = 0;
 #endif
 
-       virtual void queue_draw_resize_line (int at) = 0;
-       virtual void start_resize_line_ops () = 0;
-       virtual void end_resize_line_ops () = 0;
-
        static const int window_border_width;
        static const int container_border_width;
        static const int vertical_spacing;
@@ -345,6 +333,8 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway
        virtual ArdourCanvas::Group* get_background_group () const = 0;
        virtual ArdourCanvas::Group* get_trackview_group () const = 0;
 
+       virtual TimeAxisView* axis_view_from_route (ARDOUR::Route *) const = 0;
+
        /// Singleton instance, set up by Editor::Editor()
 
        static PublicEditor* _instance;