blob: 10ae0f3bae01d272f9bd73d2244189d52e4f0473 (
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
|
#pragma once
#include "knob.h"
#include "labeledcontrol.h"
#include "layout.h"
#include "widget.h"
#include <translation.h>
struct Settings;
class SettingsNotifier;
namespace GUI
{
class HumanizerframeContent
: public Widget
{
public:
HumanizerframeContent(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);
GridLayout layout{this, 3, 1};
LabeledControl attack{this, _("pAttack")};
LabeledControl falloff{this, _("pRelease")};
LabeledControl stddev{this, _("pStdDev")};
Knob attack_knob{&attack};
Knob falloff_knob{&falloff};
Knob stddev_knob{&stddev};
Settings& settings;
SettingsNotifier& settings_notifier;
};
}
|