51{
52
53 auto fo {juce::FontOptions(15.00f, Font::plain)};
54
55
56 label.reset(
new Label(
"new label", TRANS(
"Minimum value")));
57 addAndMakeVisible(
label.get());
58 label->setFont(Font(fo).withTypefaceStyle(
"Regular"));
59 label->setJustificationType(Justification::centredLeft);
60 label->setEditable(
false,
false,
false);
61 label->setColour(TextEditor::textColourId, Colours::black);
62 label->setColour(TextEditor::backgroundColourId, Colour(0x00000000));
63
64 label->setBounds(32, 48, 150, 24);
65
66 minval.reset(
new TextEditor(
"minval"));
67 addAndMakeVisible(
minval.get());
68 minval->setExplicitFocusOrder(1);
69 minval->setMultiLine(
false);
70 minval->setReturnKeyStartsNewLine(
false);
71 minval->setReadOnly(
false);
72 minval->setScrollbarsShown(
true);
73 minval->setCaretVisible(
true);
74 minval->setPopupMenuEnabled(
true);
75 minval->setText(TRANS(
"0"));
76
77 minval->setBounds(32, 80, 150, 24);
78
79 label2.reset(
new Label(
"new label", TRANS(
"Maximum value")));
80 addAndMakeVisible(
label2.get());
81 label2->setFont(Font(fo).withTypefaceStyle(
"Regular"));
82 label2->setJustificationType(Justification::centredLeft);
83 label2->setEditable(
false,
false,
false);
84 label2->setColour(TextEditor::textColourId, Colours::black);
85 label2->setColour(TextEditor::backgroundColourId, Colour(0x00000000));
86
87 label2->setBounds(32, 112, 150, 24);
88
89 maxval.reset(
new TextEditor(
"maxval"));
90 addAndMakeVisible(
maxval.get());
91 maxval->setExplicitFocusOrder(2);
92 maxval->setMultiLine(
false);
93 maxval->setReturnKeyStartsNewLine(
false);
94 maxval->setReadOnly(
false);
95 maxval->setScrollbarsShown(
true);
96 maxval->setCaretVisible(
true);
97 maxval->setPopupMenuEnabled(
true);
98 maxval->setText(TRANS(
"16383"));
99
100 maxval->setBounds(32, 144, 150, 24);
101
102 label3.reset(
new Label(
"new label", TRANS(
"Pitch Wheel")));
103 addAndMakeVisible(
label3.get());
104 label3->setFont(Font(fo).withTypefaceStyle(
"Regular"));
105 label3->setJustificationType(Justification::centredLeft);
106 label3->setEditable(
false,
false,
false);
107 label3->setColour(TextEditor::textColourId, Colours::black);
108 label3->setColour(TextEditor::backgroundColourId, Colour(0x00000000));
109
110 label3->setBounds(32, 16, 150, 24);
111
112
113
114
115 setSize(280, 350);
116
117
120 minval->addListener(
this);
121 maxval->addListener(
this);
122
123}
std::unique_ptr< juce::TextEditor > maxval
Definition PWoptions.h:86
std::unique_ptr< juce::Label > label2
Definition PWoptions.h:85
std::unique_ptr< juce::Label > label3
Definition PWoptions.h:87
std::unique_ptr< juce::Label > label
Definition PWoptions.h:83
juce::TextEditor::LengthAndCharacterRestriction numrestrict_
Definition PWoptions.h:75
std::unique_ptr< juce::TextEditor > minval
Definition PWoptions.h:84