diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-02 19:06:40 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-02 19:18:57 +0100 |
commit | 6120d4d43a4a5ff96126ec9093ab652105717ed2 (patch) | |
tree | 9e0e9b03a5d4e92b5a5fbf86ceea3ec01a93844a /gtk2_ardour/route_ui.h | |
parent | 14c670869c12e20c62c9a3a7e3adb5c361bfa56d (diff) |
Improve RouteUI API consistency
This is an effective NO-OP
* Some methods have been re-named to improve consistency
* Duplicate function calls were removed:
RouteUI::set_route() already updates mute/solo
MixerStrip does not have to update it again
* virtual methods have been protected
Diffstat (limited to 'gtk2_ardour/route_ui.h')
-rw-r--r-- | gtk2_ardour/route_ui.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/gtk2_ardour/route_ui.h b/gtk2_ardour/route_ui.h index 82a0ee1ec4..59bae48549 100644 --- a/gtk2_ardour/route_ui.h +++ b/gtk2_ardour/route_ui.h @@ -235,8 +235,6 @@ public: Gtk::CheckMenuItem *rec_safe_item; void toggle_rec_safe (); - virtual void polarity_changed (); - Gtk::CheckMenuItem *denormal_menu_item; void toggle_denormal_protection(); virtual void denormal_protection_changed (); @@ -244,13 +242,6 @@ public: void disconnect_input (); void disconnect_output (); - virtual void blink_rec_display (bool onoff); - void update_mute_display (); - - void update_solo_display (); - - virtual void map_frozen (); - void save_as_template_dialog_response (int response, SaveTemplateDialog* d); void save_as_template (); @@ -290,6 +281,9 @@ protected: void init (); void reset (); + virtual void blink_rec_display (bool onoff); + virtual void map_frozen (); + void self_delete (); virtual void start_step_editing () {} virtual void stop_step_editing() {} @@ -340,11 +334,14 @@ protected: private: void setup_invert_buttons (); - void set_invert_button_state (); void invert_menu_toggled (uint32_t); bool invert_press (GdkEventButton *); bool invert_release (GdkEventButton *, uint32_t i); + void update_solo_display (); + void update_mute_display (); + void update_polarity_display (); + int _i_am_the_modifier; std::vector<ArdourWidgets::ArdourButton*> _invert_buttons; Gtk::Menu* _invert_menu; |