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