summaryrefslogtreecommitdiff
path: root/plugingui/resamplingframecontent.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-04-12 18:16:50 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-05-02 15:37:23 +0200
commitd9c671d14dacf3d7c02305df9b7d5fba67357a55 (patch)
tree5cc26dbfa910a4a7b6357157bea439d6330b0532 /plugingui/resamplingframecontent.h
parent2c395c676ebe4c821ac7126323ab0c15febb9bfe (diff)
Add setting and knob for controlling resampling quality.
Diffstat (limited to 'plugingui/resamplingframecontent.h')
-rw-r--r--plugingui/resamplingframecontent.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugingui/resamplingframecontent.h b/plugingui/resamplingframecontent.h
index b5530c2..3efc62e 100644
--- a/plugingui/resamplingframecontent.h
+++ b/plugingui/resamplingframecontent.h
@@ -28,8 +28,11 @@
#include "widget.h"
#include "textedit.h"
+#include "knob.h"
+#include "label.h"
class SettingsNotifier;
+struct Settings;
namespace GUI
{
@@ -38,20 +41,28 @@ class ResamplingframeContent
: public Widget
{
public:
- ResamplingframeContent(Widget* parent, SettingsNotifier& settings_notifier);
+ ResamplingframeContent(Widget* parent,
+ Settings& settings,
+ SettingsNotifier& settings_notifier);
// From Widget
virtual void resize(std::size_t width, std::size_t height) override;
+private:
void updateContent();
void updateDrumkitSamplerate(std::size_t drumkit_samplerate);
void updateSessionSamplerate(double samplerate);
void updateResamplingRecommended(bool resampling_recommended);
+ void updateResamplingQuality(float resampling_quality);
+ void valueChangedNotifier(float value);
private:
TextEdit text_field{this};
+ Knob quality_knob{this};
+ Label quality_label{this};
+ Settings& settings;
SettingsNotifier& settings_notifier;
std::string drumkit_samplerate;