mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
Ardour Button Toggle explosion
Add option to use ArduorButton as standalone Toggle/Checkbox. Usually ArdourButton relegates this to Actions or is backed by Config. This allows to use the Button as standalone Toggle, get_active() It should maybe be a derived Class, but ArdourButton is already beyond that..
This commit is contained in:
parent
ff36421d8e
commit
fe63db8697
2 changed files with 20 additions and 4 deletions
|
|
@ -55,8 +55,8 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
|
|||
static Element led_default_elements;
|
||||
static Element just_led_default_elements;
|
||||
|
||||
ArdourButton (Element e = default_elements);
|
||||
ArdourButton (const std::string&, Element e = default_elements);
|
||||
ArdourButton (Element e = default_elements, bool toggle = false);
|
||||
ArdourButton (const std::string&, Element e = default_elements, bool toggle = false);
|
||||
virtual ~ArdourButton ();
|
||||
|
||||
enum Tweaks {
|
||||
|
|
@ -193,6 +193,7 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
|
|||
cairo_rectangle_t* _led_rect;
|
||||
|
||||
bool _act_on_release;
|
||||
bool _auto_toggle;
|
||||
bool _led_left;
|
||||
bool _distinct_led_click;
|
||||
bool _hovering;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue