add nascent poly-phonic pressure to automation menu for MIDI tracks
[ardour.git] / gtk2_ardour / shuttle_control.h
index 20fe46096f0e9f8254b483e19423939e5d9aa922..e506e7b43affdb02b313b2e4c696e8c852382af6 100644 (file)
@@ -56,6 +56,7 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
        };
 
        boost::shared_ptr<ShuttleControllable> controllable() const { return _controllable; }
+       void set_colors ();
 
   protected:
        bool _hovering;
@@ -63,6 +64,7 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
        float  last_speed_displayed;
        bool   shuttle_grabbed;
        double shuttle_speed_on_grab;
+       double requested_speed;
        float shuttle_fract;
        boost::shared_ptr<ShuttleControllable> _controllable;
        cairo_pattern_t* pattern;
@@ -73,7 +75,11 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
        Gtk::Menu*        shuttle_style_menu;
        Gtk::Menu*        shuttle_context_menu;
        BindingProxy      binding_proxy;
-
+       Glib::RefPtr<Pango::Layout> left_text;
+       Glib::RefPtr<Pango::Layout> right_text;
+       Pango::AttrList text_attributes;
+       Pango::AttrColor* text_color;
+       float bg_r, bg_g, bg_b;
        void build_shuttle_context_menu ();
        void show_shuttle_context_menu ();
        void shuttle_style_changed();