From 43c2a51331d3e91d86ef50c5262920bdaa260925 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 11 Feb 2019 10:52:30 +0100 Subject: Show/hide drumkit tab depending on if the current kit has a valid image attached or not. --- plugingui/tabbutton.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugingui/tabbutton.h') diff --git a/plugingui/tabbutton.h b/plugingui/tabbutton.h index 29e6e05..1e9371a 100644 --- a/plugingui/tabbutton.h +++ b/plugingui/tabbutton.h @@ -37,6 +37,8 @@ namespace GUI class ScrollEvent; +using TabID = int; + class TabButton : public ButtonBase { @@ -49,6 +51,8 @@ public: std::size_t getMinimalHeight() const; void setActive(bool active); + TabID getID() const; + Notifier switchTabNotifier; Notifier scrollNotifier; // float delta @@ -58,6 +62,8 @@ protected: virtual void scrollEvent(ScrollEvent* scroll_event) override; private: + TabID tab_id; + void clickHandler(); Widget* tab_widget; -- cgit v1.2.3