Don't allow aux sends from MIDI tracks for the time
[ardour.git] / gtk2_ardour / ardour_button.h
index 78ff66b7a6739cd23424c5704366cbaef1eee972..94b3c6d399a14b9400b438ae18c33f3160d76040 100644 (file)
@@ -44,6 +44,9 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
        static Element led_default_elements;
        static Element just_led_default_elements;
 
+       static void set_flat_buttons (bool yn);
+       static bool flat_buttons() { return _flat_buttons; }
+
        ArdourButton (Element e = default_elements);
        ArdourButton (const std::string&, Element e = default_elements);
        virtual ~ArdourButton ();
@@ -60,8 +63,10 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
        void set_visual_state (Gtkmm2ext::VisualState);
 
        Element elements() const { return _elements; }
-
+       void set_elements (Element);
+       
        void set_corner_radius (float);
+       void set_rounded_corner_mask (int);
        void set_diameter (float);
 
        void set_text (const std::string&);
@@ -109,9 +114,11 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
        int   _text_height;
        float _diameter;
        float _corner_radius;
+       int   _corner_mask;
 
        cairo_pattern_t* edge_pattern;
-       cairo_pattern_t* fill_pattern;
+       cairo_pattern_t* active_pattern;
+       cairo_pattern_t* inactive_pattern;
        cairo_pattern_t* led_inset_pattern;
        cairo_pattern_t* reflection_pattern;
 
@@ -127,12 +134,19 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
        double led_b;
        double led_a;
 
+       double active_r;
+       double active_g;
+       double active_b;
+       double active_a;
+
        bool _act_on_release;
        bool _led_left;
        bool _fixed_diameter;
        bool _distinct_led_click;
        bool _hovering;
 
+       static bool _flat_buttons;
+
        void setup_led_rect ();
        void set_colors ();
        void color_handler ();