blob: 4603132b94b2ae63efeab891d3670dcb6f1b90f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#pragma once
#include <dggui/knob.h>
#include <dggui/layout.h>
#include <dggui/widget.h>
#include "labeledcontrol.h"
#include <translation.h>
struct Settings;
class SettingsNotifier;
namespace GUI
{
class HumanizerframeContent
: public dggui::Widget
{
public:
HumanizerframeContent(dggui::Widget* parent,
Settings& settings,
SettingsNotifier& settings_notifier);
private:
static float constexpr stddev_factor = 4.5f;
void attackValueChanged(float value);
void falloffValueChanged(float value);
void stddevKnobValueChanged(float value);
void stddevSettingsValueChanged(float value);
dggui::GridLayout layout{this, 3, 1};
LabeledControl attack{this, _("pAttack")};
LabeledControl falloff{this, _("pRelease")};
LabeledControl stddev{this, _("pStdDev")};
dggui::Knob attack_knob{&attack};
dggui::Knob falloff_knob{&falloff};
dggui::Knob stddev_knob{&stddev};
Settings& settings;
SettingsNotifier& settings_notifier;
};
}
|