diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-02-11 10:52:30 +0100 | 
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-02-11 10:52:30 +0100 | 
| commit | 43c2a51331d3e91d86ef50c5262920bdaa260925 (patch) | |
| tree | ffc5b03be36537e6f028df935a251493d4557979 /plugingui/tabbutton.h | |
| parent | 152423c0274887415b50c0d31828036a8fe54708 (diff) | |
Show/hide drumkit tab depending on if the current kit has a valid image attached or not.
Diffstat (limited to 'plugingui/tabbutton.h')
| -rw-r--r-- | plugingui/tabbutton.h | 6 | 
1 files changed, 6 insertions, 0 deletions
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<Widget*> switchTabNotifier;  	Notifier<float> scrollNotifier; // float delta @@ -58,6 +62,8 @@ protected:  	virtual void scrollEvent(ScrollEvent* scroll_event) override;  private: +	TabID tab_id; +  	void clickHandler();  	Widget* tab_widget;  | 
