always compute range for a redirect automation line, even if it will not be drawn...
[ardour.git] / gtk2_ardour / route_time_axis.h
index d615017ed3685d6f854a7195d210765dab9980a2..75862965aba81b199a09ba39cf40f7314f8c26a9 100644 (file)
 #include <gtkmm/menuitem.h>
 #include <gtkmm/radiomenuitem.h>
 #include <gtkmm/checkmenuitem.h>
+#include <gtkmm/adjustment.h>
 
 #include <gtkmm2ext/selector.h>
+#include <gtkmm2ext/slider_controller.h>
 #include <list>
 
+#include <ardour/playlist.h>
 #include <ardour/types.h>
 
 #include "ardour_dialog.h"
@@ -72,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*);
@@ -82,6 +85,7 @@ public:
        void get_inverted_selectables (Selection&, list<Selectable*>&);
                
        boost::shared_ptr<ARDOUR::Region> find_next_region (nframes_t pos, ARDOUR::RegionPoint, int32_t dir);
+       nframes64_t find_next_region_boundary (nframes64_t pos, int32_t dir);
 
        /* Editing operations */
        bool cut_copy_clear (Selection&, Editing::CutCopyOp);
@@ -90,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 *);
        
@@ -107,6 +115,9 @@ public:
        void clear_meter ();
        void io_changed (ARDOUR::IOChange, void *);
        void meter_changed (void *);
+       void effective_gain_display () { gm.effective_gain_display(); }
+
+       static void setup_slider_pix ();
 
 protected:
        friend class StreamView;
@@ -253,7 +264,9 @@ protected:
 
        void post_construct ();
        
-       GainMeter       gpm;
+       GainMeterBase gm;
+
+       static Glib::RefPtr<Gdk::Pixbuf> slider;
 };
 
 #endif /* __ardour_route_time_axis_h__ */