summaryrefslogtreecommitdiff
path: root/plugingui/statusframecontent.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-21 16:35:08 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-21 16:35:08 +0200
commita96587e4737ea617188f13370331072322adb0ad (patch)
treeb826ea7d3e811dcfca7704c2a19ad655987d45e9 /plugingui/statusframecontent.h
parent392dbed3af5d9bfd1e71244426697915321df89c (diff)
Introduce first content of status frame.
This is just an initial version and not the final one.
Diffstat (limited to 'plugingui/statusframecontent.h')
-rw-r--r--plugingui/statusframecontent.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/plugingui/statusframecontent.h b/plugingui/statusframecontent.h
index 020855c..0ca5bfe 100644
--- a/plugingui/statusframecontent.h
+++ b/plugingui/statusframecontent.h
@@ -26,22 +26,41 @@
*/
#pragma once
+#include "settings.h"
#include "textedit.h"
#include "widget.h"
+class SettingsNotifier;
+
namespace GUI
{
class StatusframeContent : public Widget
{
public:
- StatusframeContent(Widget* parent);
+ StatusframeContent(Widget* parent, SettingsNotifier& settings_notifier);
// From Widget
virtual void resize(std::size_t width, std::size_t height) override;
+ void updateContent();
+
+ void updateDrumkitLoadStatus(LoadStatus load_status);
+ void updateMidimapLoadStatus(LoadStatus load_status);
+ void updateSamplerate(double samplerate);
+ void updateResamplingEnabled(bool enable_resampling);
+ void updateNumberOfUnderruns(std::size_t number_of_underruns);
+
private:
TextEdit text_field{this};
+
+ SettingsNotifier& settings_notifier;
+
+ std::string drumkit_load_status;
+ std::string midimap_load_status;
+ std::string samplerate;
+ std::string resampling_enabled;
+ std::string number_of_underruns;
};
} // GUI::