summaryrefslogtreecommitdiff
path: root/plugingui/drumkittab.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-02-11 10:52:30 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-02-11 10:52:30 +0100
commit43c2a51331d3e91d86ef50c5262920bdaa260925 (patch)
treeffc5b03be36537e6f028df935a251493d4557979 /plugingui/drumkittab.h
parent152423c0274887415b50c0d31828036a8fe54708 (diff)
Show/hide drumkit tab depending on if the current kit has a valid image attached or not.
Diffstat (limited to 'plugingui/drumkittab.h')
-rw-r--r--plugingui/drumkittab.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/drumkittab.h b/plugingui/drumkittab.h
index b1ccb73..a14a9c5 100644
--- a/plugingui/drumkittab.h
+++ b/plugingui/drumkittab.h
@@ -50,8 +50,7 @@ class DrumkitTab
public:
DrumkitTab(Widget* parent,
Settings& settings,
- SettingsNotifier& settings_notifier/*,
- Config& config*/);
+ SettingsNotifier& settings_notifier);
// From Widget:
void resize(std::size_t width, std::size_t height) override;
@@ -62,6 +61,8 @@ public:
void init(std::string const& image_file, std::string const& map_file);
+ Notifier<bool> imageChangeNotifier; // bool has_valid_image
+
private:
float current_velocity{.5};
std::string current_instrument{""};