always compute range for a redirect automation line, even if it will not be drawn...
[ardour.git] / gtk2_ardour / route_time_axis.h
index 211ab8c2ced80776318cb4776039a7ff67fe528d..75862965aba81b199a09ba39cf40f7314f8c26a9 100644 (file)
@@ -33,6 +33,7 @@
 #include <gtkmm2ext/slider_controller.h>
 #include <list>
 
+#include <ardour/playlist.h>
 #include <ardour/types.h>
 
 #include "ardour_dialog.h"
@@ -40,7 +41,7 @@
 #include "enums.h"
 #include "time_axis_view.h"
 #include "canvas.h"
-#include "level_meter.h"
+#include "gain_meter.h"
 
 
 namespace ARDOUR {
@@ -74,7 +75,7 @@ public:
        void show_selection (TimeSelection&);
 
        void set_samples_per_unit (double);
-       void set_height (TimeAxisView::TrackHeight);
+       void set_height (uint32_t h);
        void show_timestretch (nframes_t start, nframes_t end);
        void hide_timestretch ();
        void selection_click (GdkEventButton*);
@@ -93,9 +94,13 @@ public:
        list<TimeAxisView*> get_child_list();
 
        /* The editor calls these when mapping an operation across multiple tracks */
-       void use_new_playlist (bool prompt);
-       void use_copy_playlist (bool prompt);
+       void use_new_playlist (bool prompt, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
+       void use_copy_playlist (bool prompt, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
        void clear_playlist ();
+
+       /* group playlist name resolving */
+       std::string resolve_new_group_playlist_name(std::string &, vector<boost::shared_ptr<ARDOUR::Playlist> > const &);
+
        
        void build_playlist_menu (Gtk::Menu *);
        
@@ -110,7 +115,9 @@ public:
        void clear_meter ();
        void io_changed (ARDOUR::IOChange, void *);
        void meter_changed (void *);
-       void effective_gain_display ();
+       void effective_gain_display () { gm.effective_gain_display(); }
+
+       static void setup_slider_pix ();
 
 protected:
        friend class StreamView;
@@ -257,17 +264,9 @@ protected:
 
        void post_construct ();
        
-       LevelMeter      lm;
+       GainMeterBase gm;
 
-       Gtkmm2ext::HSliderController *gain_slider;
-       Gtk::Adjustment              gain_adjustment;
        static Glib::RefPtr<Gdk::Pixbuf> slider;
-       static int setup_slider_pix ();
-       void gain_adjusted();
-
-       gint start_gain_touch (GdkEventButton*);
-       gint end_gain_touch (GdkEventButton*);
-       void gain_changed (void *);
 };
 
 #endif /* __ardour_route_time_axis_h__ */