X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fshuttle_control.h;h=31be53c976c9f40c8ac886aa037e37ccae9cdf4f;hb=b64dcac17ec6ab503198d933ef893760fb02ae22;hp=cd751ebedcffc5a6ab7503ceef24a2ab8e9246e2;hpb=ad4ae3df85d685546a4aaf6e976d3a03f6a6f45b;p=ardour.git diff --git a/gtk2_ardour/shuttle_control.h b/gtk2_ardour/shuttle_control.h index cd751ebedc..31be53c976 100644 --- a/gtk2_ardour/shuttle_control.h +++ b/gtk2_ardour/shuttle_control.h @@ -22,6 +22,7 @@ #include #include "gtkmm2ext/binding_proxy.h" +#include "gtkmm2ext/cairo_widget.h" #include "pbd/controllable.h" #include "ardour/session_handle.h" @@ -45,7 +46,7 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr struct ShuttleControllable : public PBD::Controllable { ShuttleControllable (ShuttleControl&); - void set_value (double); + void set_value (double, PBD::Controllable::GroupControlDisposition group_override); double get_value (void) const; double lower() const { return -1.0; } @@ -55,6 +56,7 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr }; boost::shared_ptr controllable() const { return _controllable; } + void set_colors (); protected: bool _hovering; @@ -72,7 +74,11 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr Gtk::Menu* shuttle_style_menu; Gtk::Menu* shuttle_context_menu; BindingProxy binding_proxy; - + Glib::RefPtr left_text; + Glib::RefPtr 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();