andrewm@41
|
1 /*
|
andrewm@41
|
2 ==============================================================================
|
andrewm@41
|
3
|
andrewm@41
|
4 This is an automatically generated GUI class created by the Introjucer!
|
andrewm@41
|
5
|
andrewm@41
|
6 Be careful when adding custom code to these files, as only the code within
|
andrewm@41
|
7 the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
|
andrewm@41
|
8 and re-saved.
|
andrewm@41
|
9
|
andrewm@41
|
10 Created with Introjucer version: 3.1.0
|
andrewm@41
|
11
|
andrewm@41
|
12 ------------------------------------------------------------------------------
|
andrewm@41
|
13
|
andrewm@41
|
14 The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
|
andrewm@41
|
15 Copyright 2004-13 by Raw Material Software Ltd.
|
andrewm@41
|
16
|
andrewm@41
|
17 ==============================================================================
|
andrewm@41
|
18 */
|
andrewm@41
|
19
|
andrewm@41
|
20 //[Headers] You can add your own extra header files here...
|
andrewm@41
|
21 //[/Headers]
|
andrewm@41
|
22
|
andrewm@41
|
23 #include "TouchkeyControlMappingExtendedEditor.h"
|
andrewm@41
|
24
|
andrewm@41
|
25
|
andrewm@41
|
26 //[MiscUserDefs] You can add your own user definitions and misc code here...
|
andrewm@41
|
27 //[/MiscUserDefs]
|
andrewm@41
|
28
|
andrewm@41
|
29 //==============================================================================
|
andrewm@41
|
30 TouchkeyControlMappingExtendedEditor::TouchkeyControlMappingExtendedEditor (TouchkeyControlMappingFactory& factory)
|
andrewm@41
|
31 : factory_(factory)
|
andrewm@41
|
32 {
|
andrewm@41
|
33 addAndMakeVisible (inputRangeLowEditor = new TextEditor ("range low text editor"));
|
andrewm@41
|
34 inputRangeLowEditor->setMultiLine (false);
|
andrewm@41
|
35 inputRangeLowEditor->setReturnKeyStartsNewLine (false);
|
andrewm@41
|
36 inputRangeLowEditor->setReadOnly (false);
|
andrewm@41
|
37 inputRangeLowEditor->setScrollbarsShown (true);
|
andrewm@41
|
38 inputRangeLowEditor->setCaretVisible (true);
|
andrewm@41
|
39 inputRangeLowEditor->setPopupMenuEnabled (true);
|
andrewm@41
|
40 inputRangeLowEditor->setText (String::empty);
|
andrewm@41
|
41
|
andrewm@41
|
42 addAndMakeVisible (rangeLabel = new Label ("range label",
|
andrewm@41
|
43 "Input Range:"));
|
andrewm@41
|
44 rangeLabel->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
45 rangeLabel->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
46 rangeLabel->setEditable (false, false, false);
|
andrewm@41
|
47 rangeLabel->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
48 rangeLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
49
|
andrewm@41
|
50 addAndMakeVisible (controlLabel = new Label ("control label",
|
andrewm@41
|
51 "To Control:"));
|
andrewm@41
|
52 controlLabel->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
53 controlLabel->setJustificationType (Justification::centredRight);
|
andrewm@41
|
54 controlLabel->setEditable (false, false, false);
|
andrewm@41
|
55 controlLabel->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
56 controlLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
57
|
andrewm@41
|
58 addAndMakeVisible (controlComboBox = new ComboBox ("control combo box"));
|
andrewm@41
|
59 controlComboBox->setEditableText (false);
|
andrewm@41
|
60 controlComboBox->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
61 controlComboBox->setTextWhenNothingSelected (String::empty);
|
andrewm@41
|
62 controlComboBox->setTextWhenNoChoicesAvailable ("(no choices)");
|
andrewm@41
|
63 controlComboBox->addListener (this);
|
andrewm@41
|
64
|
andrewm@41
|
65 addAndMakeVisible (controlLabel2 = new Label ("control label",
|
andrewm@41
|
66 "Parameter:"));
|
andrewm@41
|
67 controlLabel2->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
68 controlLabel2->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
69 controlLabel2->setEditable (false, false, false);
|
andrewm@41
|
70 controlLabel2->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
71 controlLabel2->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
72
|
andrewm@41
|
73 addAndMakeVisible (parameterComboBox = new ComboBox ("parameter combo box"));
|
andrewm@41
|
74 parameterComboBox->setEditableText (false);
|
andrewm@41
|
75 parameterComboBox->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
76 parameterComboBox->setTextWhenNothingSelected (String::empty);
|
andrewm@41
|
77 parameterComboBox->setTextWhenNoChoicesAvailable ("(no choices)");
|
andrewm@41
|
78 parameterComboBox->addListener (this);
|
andrewm@41
|
79
|
andrewm@41
|
80 addAndMakeVisible (controlLabel3 = new Label ("control label",
|
andrewm@41
|
81 "Type:"));
|
andrewm@41
|
82 controlLabel3->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
83 controlLabel3->setJustificationType (Justification::centredRight);
|
andrewm@41
|
84 controlLabel3->setEditable (false, false, false);
|
andrewm@41
|
85 controlLabel3->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
86 controlLabel3->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
87
|
andrewm@41
|
88 addAndMakeVisible (typeComboBox = new ComboBox ("type combo box"));
|
andrewm@41
|
89 typeComboBox->setEditableText (false);
|
andrewm@41
|
90 typeComboBox->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
91 typeComboBox->setTextWhenNothingSelected (String::empty);
|
andrewm@41
|
92 typeComboBox->setTextWhenNoChoicesAvailable ("(no choices)");
|
andrewm@41
|
93 typeComboBox->addListener (this);
|
andrewm@41
|
94
|
andrewm@41
|
95 addAndMakeVisible (inputRangeHighEditor = new TextEditor ("range hi text editor"));
|
andrewm@41
|
96 inputRangeHighEditor->setMultiLine (false);
|
andrewm@41
|
97 inputRangeHighEditor->setReturnKeyStartsNewLine (false);
|
andrewm@41
|
98 inputRangeHighEditor->setReadOnly (false);
|
andrewm@41
|
99 inputRangeHighEditor->setScrollbarsShown (true);
|
andrewm@41
|
100 inputRangeHighEditor->setCaretVisible (true);
|
andrewm@41
|
101 inputRangeHighEditor->setPopupMenuEnabled (true);
|
andrewm@41
|
102 inputRangeHighEditor->setText (String::empty);
|
andrewm@41
|
103
|
andrewm@41
|
104 addAndMakeVisible (rangeLabel2 = new Label ("range label",
|
andrewm@41
|
105 "-"));
|
andrewm@41
|
106 rangeLabel2->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
107 rangeLabel2->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
108 rangeLabel2->setEditable (false, false, false);
|
andrewm@41
|
109 rangeLabel2->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
110 rangeLabel2->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
111
|
andrewm@41
|
112 addAndMakeVisible (rangeLabel3 = new Label ("range label",
|
andrewm@41
|
113 "Output Range:"));
|
andrewm@41
|
114 rangeLabel3->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
115 rangeLabel3->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
116 rangeLabel3->setEditable (false, false, false);
|
andrewm@41
|
117 rangeLabel3->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
118 rangeLabel3->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
119
|
andrewm@41
|
120 addAndMakeVisible (outputRangeLowEditor = new TextEditor ("output range low text editor"));
|
andrewm@41
|
121 outputRangeLowEditor->setMultiLine (false);
|
andrewm@41
|
122 outputRangeLowEditor->setReturnKeyStartsNewLine (false);
|
andrewm@41
|
123 outputRangeLowEditor->setReadOnly (false);
|
andrewm@41
|
124 outputRangeLowEditor->setScrollbarsShown (true);
|
andrewm@41
|
125 outputRangeLowEditor->setCaretVisible (true);
|
andrewm@41
|
126 outputRangeLowEditor->setPopupMenuEnabled (true);
|
andrewm@41
|
127 outputRangeLowEditor->setText (String::empty);
|
andrewm@41
|
128
|
andrewm@41
|
129 addAndMakeVisible (outputRangeHighEditor = new TextEditor ("output range hi text editor"));
|
andrewm@41
|
130 outputRangeHighEditor->setMultiLine (false);
|
andrewm@41
|
131 outputRangeHighEditor->setReturnKeyStartsNewLine (false);
|
andrewm@41
|
132 outputRangeHighEditor->setReadOnly (false);
|
andrewm@41
|
133 outputRangeHighEditor->setScrollbarsShown (true);
|
andrewm@41
|
134 outputRangeHighEditor->setCaretVisible (true);
|
andrewm@41
|
135 outputRangeHighEditor->setPopupMenuEnabled (true);
|
andrewm@41
|
136 outputRangeHighEditor->setText (String::empty);
|
andrewm@41
|
137
|
andrewm@41
|
138 addAndMakeVisible (rangeLabel4 = new Label ("range label",
|
andrewm@41
|
139 "-"));
|
andrewm@41
|
140 rangeLabel4->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
141 rangeLabel4->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
142 rangeLabel4->setEditable (false, false, false);
|
andrewm@41
|
143 rangeLabel4->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
144 rangeLabel4->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
145
|
andrewm@41
|
146 addAndMakeVisible (controlLabel4 = new Label ("control label",
|
andrewm@41
|
147 "Direction:"));
|
andrewm@41
|
148 controlLabel4->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
149 controlLabel4->setJustificationType (Justification::centredRight);
|
andrewm@41
|
150 controlLabel4->setEditable (false, false, false);
|
andrewm@41
|
151 controlLabel4->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
152 controlLabel4->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
153
|
andrewm@41
|
154 addAndMakeVisible (directionComboBox = new ComboBox ("direction combo box"));
|
andrewm@41
|
155 directionComboBox->setEditableText (false);
|
andrewm@41
|
156 directionComboBox->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
157 directionComboBox->setTextWhenNothingSelected (String::empty);
|
andrewm@41
|
158 directionComboBox->setTextWhenNoChoicesAvailable ("(no choices)");
|
andrewm@41
|
159 directionComboBox->addListener (this);
|
andrewm@41
|
160
|
andrewm@41
|
161 addAndMakeVisible (titleLabel = new Label ("title label",
|
andrewm@41
|
162 "Control Mapping (Zone N, #M)"));
|
andrewm@41
|
163 titleLabel->setFont (Font (15.00f, Font::bold));
|
andrewm@41
|
164 titleLabel->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
165 titleLabel->setEditable (false, false, false);
|
andrewm@41
|
166 titleLabel->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
167 titleLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
168
|
andrewm@41
|
169 addAndMakeVisible (rangeLabel5 = new Label ("range label",
|
andrewm@41
|
170 "Threshold:"));
|
andrewm@41
|
171 rangeLabel5->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
172 rangeLabel5->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
173 rangeLabel5->setEditable (false, false, false);
|
andrewm@41
|
174 rangeLabel5->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
175 rangeLabel5->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
176
|
andrewm@41
|
177 addAndMakeVisible (thresholdEditor = new TextEditor ("threshold text editor"));
|
andrewm@41
|
178 thresholdEditor->setMultiLine (false);
|
andrewm@41
|
179 thresholdEditor->setReturnKeyStartsNewLine (false);
|
andrewm@41
|
180 thresholdEditor->setReadOnly (false);
|
andrewm@41
|
181 thresholdEditor->setScrollbarsShown (true);
|
andrewm@41
|
182 thresholdEditor->setCaretVisible (true);
|
andrewm@41
|
183 thresholdEditor->setPopupMenuEnabled (true);
|
andrewm@41
|
184 thresholdEditor->setText (String::empty);
|
andrewm@41
|
185
|
andrewm@41
|
186 addAndMakeVisible (cc14BitButton = new ToggleButton ("new toggle button"));
|
andrewm@41
|
187 cc14BitButton->setButtonText ("Use 14-bit CC");
|
andrewm@41
|
188 cc14BitButton->addListener (this);
|
andrewm@41
|
189
|
andrewm@41
|
190 addAndMakeVisible (ignore2FingersButton = new ToggleButton ("ignore 2 fingers toggle button"));
|
andrewm@41
|
191 ignore2FingersButton->setButtonText ("Ignore 2 Fingers");
|
andrewm@41
|
192 ignore2FingersButton->addListener (this);
|
andrewm@41
|
193
|
andrewm@41
|
194 addAndMakeVisible (ignore3FingersButton = new ToggleButton ("ignore 3 fingers toggle button"));
|
andrewm@41
|
195 ignore3FingersButton->setButtonText ("Ignore 3 Fingers");
|
andrewm@41
|
196 ignore3FingersButton->addListener (this);
|
andrewm@41
|
197
|
andrewm@41
|
198 addAndMakeVisible (controlLabel6 = new Label ("control label",
|
andrewm@41
|
199 "Out of Range:"));
|
andrewm@41
|
200 controlLabel6->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
201 controlLabel6->setJustificationType (Justification::centredRight);
|
andrewm@41
|
202 controlLabel6->setEditable (false, false, false);
|
andrewm@41
|
203 controlLabel6->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
204 controlLabel6->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
205
|
andrewm@41
|
206 addAndMakeVisible (outOfRangeComboBox = new ComboBox ("out of range combo box"));
|
andrewm@41
|
207 outOfRangeComboBox->setEditableText (false);
|
andrewm@41
|
208 outOfRangeComboBox->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
209 outOfRangeComboBox->setTextWhenNothingSelected (String::empty);
|
andrewm@41
|
210 outOfRangeComboBox->setTextWhenNoChoicesAvailable ("(no choices)");
|
andrewm@41
|
211 outOfRangeComboBox->addListener (this);
|
andrewm@41
|
212
|
andrewm@41
|
213 addAndMakeVisible (rangeLabel6 = new Label ("range label",
|
andrewm@41
|
214 "Default Output:"));
|
andrewm@41
|
215 rangeLabel6->setFont (Font (15.00f, Font::plain));
|
andrewm@41
|
216 rangeLabel6->setJustificationType (Justification::centredLeft);
|
andrewm@41
|
217 rangeLabel6->setEditable (false, false, false);
|
andrewm@41
|
218 rangeLabel6->setColour (TextEditor::textColourId, Colours::black);
|
andrewm@41
|
219 rangeLabel6->setColour (TextEditor::backgroundColourId, Colour (0x00000000));
|
andrewm@41
|
220
|
andrewm@41
|
221 addAndMakeVisible (outputDefaultEditor = new TextEditor ("output default text editor"));
|
andrewm@41
|
222 outputDefaultEditor->setMultiLine (false);
|
andrewm@41
|
223 outputDefaultEditor->setReturnKeyStartsNewLine (false);
|
andrewm@41
|
224 outputDefaultEditor->setReadOnly (false);
|
andrewm@41
|
225 outputDefaultEditor->setScrollbarsShown (true);
|
andrewm@41
|
226 outputDefaultEditor->setCaretVisible (true);
|
andrewm@41
|
227 outputDefaultEditor->setPopupMenuEnabled (true);
|
andrewm@41
|
228 outputDefaultEditor->setText (String::empty);
|
andrewm@41
|
229
|
andrewm@41
|
230
|
andrewm@41
|
231 //[UserPreSize]
|
andrewm@41
|
232 parameterComboBox->addItem("X Position", TouchkeyControlMapping::kInputParameterXPosition);
|
andrewm@41
|
233 parameterComboBox->addItem("Y Position", TouchkeyControlMapping::kInputParameterYPosition);
|
andrewm@41
|
234 parameterComboBox->addItem("Contact Area", TouchkeyControlMapping::kInputParameterTouchSize);
|
andrewm@41
|
235 parameterComboBox->addItem("2-Finger Mean", TouchkeyControlMapping::kInputParameter2FingerMean);
|
andrewm@41
|
236 parameterComboBox->addItem("2-Finger Distance", TouchkeyControlMapping::kInputParameter2FingerDistance);
|
andrewm@41
|
237
|
andrewm@41
|
238 typeComboBox->addItem("Absolute", TouchkeyControlMapping::kTypeAbsolute);
|
andrewm@41
|
239 typeComboBox->addItem("1st Touch Relative", TouchkeyControlMapping::kTypeFirstTouchRelative);
|
andrewm@41
|
240 typeComboBox->addItem("Note Onset Relative", TouchkeyControlMapping::kTypeNoteOnsetRelative);
|
andrewm@41
|
241
|
andrewm@41
|
242 controlComboBox->addItem("Pitch Wheel", MidiKeyboardSegment::kControlPitchWheel);
|
andrewm@41
|
243 controlComboBox->addItem("Channel Pressure", MidiKeyboardSegment::kControlChannelAftertouch);
|
andrewm@41
|
244 controlComboBox->addItem("Poly Aftertouch", MidiKeyboardSegment::kControlPolyphonicAftertouch);
|
andrewm@41
|
245 for(int i = 1; i <= 119; i++) {
|
andrewm@41
|
246 controlComboBox->addItem(String(i), i);
|
andrewm@41
|
247 }
|
andrewm@41
|
248
|
andrewm@41
|
249 directionComboBox->addItem("Normal", TouchkeyControlMapping::kDirectionPositive);
|
andrewm@41
|
250 directionComboBox->addItem("Reverse", TouchkeyControlMapping::kDirectionNegative);
|
andrewm@41
|
251 directionComboBox->addItem("Always Positive", TouchkeyControlMapping::kDirectionBoth);
|
andrewm@41
|
252
|
andrewm@41
|
253 outOfRangeComboBox->addItem("Ignore", OscMidiConverter::kOutOfRangeIgnore);
|
andrewm@41
|
254 outOfRangeComboBox->addItem("Clip", OscMidiConverter::kOutOfRangeClip);
|
andrewm@41
|
255 outOfRangeComboBox->addItem("Extrapolate", OscMidiConverter::kOutOfRangeExtrapolate);
|
andrewm@41
|
256 //[/UserPreSize]
|
andrewm@41
|
257
|
andrewm@41
|
258 setSize (448, 248);
|
andrewm@41
|
259
|
andrewm@41
|
260
|
andrewm@41
|
261 //[Constructor] You can add your own custom stuff here..
|
andrewm@41
|
262 inputRangeLowEditor->addListener(this);
|
andrewm@41
|
263 inputRangeHighEditor->addListener(this);
|
andrewm@41
|
264 outputRangeLowEditor->addListener(this);
|
andrewm@41
|
265 outputRangeHighEditor->addListener(this);
|
andrewm@41
|
266 outputDefaultEditor->addListener(this);
|
andrewm@41
|
267 thresholdEditor->addListener(this);
|
andrewm@41
|
268 //[/Constructor]
|
andrewm@41
|
269 }
|
andrewm@41
|
270
|
andrewm@41
|
271 TouchkeyControlMappingExtendedEditor::~TouchkeyControlMappingExtendedEditor()
|
andrewm@41
|
272 {
|
andrewm@41
|
273 //[Destructor_pre]. You can add your own custom destruction code here..
|
andrewm@41
|
274 //[/Destructor_pre]
|
andrewm@41
|
275
|
andrewm@41
|
276 inputRangeLowEditor = nullptr;
|
andrewm@41
|
277 rangeLabel = nullptr;
|
andrewm@41
|
278 controlLabel = nullptr;
|
andrewm@41
|
279 controlComboBox = nullptr;
|
andrewm@41
|
280 controlLabel2 = nullptr;
|
andrewm@41
|
281 parameterComboBox = nullptr;
|
andrewm@41
|
282 controlLabel3 = nullptr;
|
andrewm@41
|
283 typeComboBox = nullptr;
|
andrewm@41
|
284 inputRangeHighEditor = nullptr;
|
andrewm@41
|
285 rangeLabel2 = nullptr;
|
andrewm@41
|
286 rangeLabel3 = nullptr;
|
andrewm@41
|
287 outputRangeLowEditor = nullptr;
|
andrewm@41
|
288 outputRangeHighEditor = nullptr;
|
andrewm@41
|
289 rangeLabel4 = nullptr;
|
andrewm@41
|
290 controlLabel4 = nullptr;
|
andrewm@41
|
291 directionComboBox = nullptr;
|
andrewm@41
|
292 titleLabel = nullptr;
|
andrewm@41
|
293 rangeLabel5 = nullptr;
|
andrewm@41
|
294 thresholdEditor = nullptr;
|
andrewm@41
|
295 cc14BitButton = nullptr;
|
andrewm@41
|
296 ignore2FingersButton = nullptr;
|
andrewm@41
|
297 ignore3FingersButton = nullptr;
|
andrewm@41
|
298 controlLabel6 = nullptr;
|
andrewm@41
|
299 outOfRangeComboBox = nullptr;
|
andrewm@41
|
300 rangeLabel6 = nullptr;
|
andrewm@41
|
301 outputDefaultEditor = nullptr;
|
andrewm@41
|
302
|
andrewm@41
|
303
|
andrewm@41
|
304 //[Destructor]. You can add your own custom destruction code here..
|
andrewm@41
|
305 //[/Destructor]
|
andrewm@41
|
306 }
|
andrewm@41
|
307
|
andrewm@41
|
308 //==============================================================================
|
andrewm@41
|
309 void TouchkeyControlMappingExtendedEditor::paint (Graphics& g)
|
andrewm@41
|
310 {
|
andrewm@41
|
311 //[UserPrePaint] Add your own custom painting code here..
|
andrewm@41
|
312 //[/UserPrePaint]
|
andrewm@41
|
313
|
andrewm@41
|
314 g.fillAll (Colour (0xffd2d2d2));
|
andrewm@41
|
315
|
andrewm@41
|
316 //[UserPaint] Add your own custom painting code here..
|
andrewm@41
|
317 //[/UserPaint]
|
andrewm@41
|
318 }
|
andrewm@41
|
319
|
andrewm@41
|
320 void TouchkeyControlMappingExtendedEditor::resized()
|
andrewm@41
|
321 {
|
andrewm@41
|
322 inputRangeLowEditor->setBounds (112, 72, 56, 24);
|
andrewm@41
|
323 rangeLabel->setBounds (8, 72, 104, 24);
|
andrewm@41
|
324 controlLabel->setBounds (256, 40, 64, 24);
|
andrewm@41
|
325 controlComboBox->setBounds (320, 40, 112, 24);
|
andrewm@41
|
326 controlLabel2->setBounds (8, 40, 72, 24);
|
andrewm@41
|
327 parameterComboBox->setBounds (80, 40, 160, 24);
|
andrewm@41
|
328 controlLabel3->setBounds (264, 104, 56, 24);
|
andrewm@41
|
329 typeComboBox->setBounds (320, 104, 112, 24);
|
andrewm@41
|
330 inputRangeHighEditor->setBounds (184, 72, 56, 24);
|
andrewm@41
|
331 rangeLabel2->setBounds (168, 72, 16, 24);
|
andrewm@41
|
332 rangeLabel3->setBounds (8, 104, 96, 24);
|
andrewm@41
|
333 outputRangeLowEditor->setBounds (112, 104, 56, 24);
|
andrewm@41
|
334 outputRangeHighEditor->setBounds (184, 104, 56, 24);
|
andrewm@41
|
335 rangeLabel4->setBounds (168, 104, 16, 24);
|
andrewm@41
|
336 controlLabel4->setBounds (248, 136, 72, 24);
|
andrewm@41
|
337 directionComboBox->setBounds (320, 136, 112, 24);
|
andrewm@41
|
338 titleLabel->setBounds (8, 8, 424, 24);
|
andrewm@41
|
339 rangeLabel5->setBounds (8, 168, 72, 24);
|
andrewm@41
|
340 thresholdEditor->setBounds (112, 168, 56, 24);
|
andrewm@41
|
341 cc14BitButton->setBounds (320, 72, 112, 24);
|
andrewm@41
|
342 ignore2FingersButton->setBounds (8, 192, 128, 24);
|
andrewm@41
|
343 ignore3FingersButton->setBounds (8, 216, 128, 24);
|
andrewm@41
|
344 controlLabel6->setBounds (216, 168, 104, 24);
|
andrewm@41
|
345 outOfRangeComboBox->setBounds (320, 168, 112, 24);
|
andrewm@41
|
346 rangeLabel6->setBounds (8, 136, 96, 24);
|
andrewm@41
|
347 outputDefaultEditor->setBounds (112, 136, 56, 24);
|
andrewm@41
|
348 //[UserResized] Add your own custom resize handling here..
|
andrewm@41
|
349 //[/UserResized]
|
andrewm@41
|
350 }
|
andrewm@41
|
351
|
andrewm@41
|
352 void TouchkeyControlMappingExtendedEditor::comboBoxChanged (ComboBox* comboBoxThatHasChanged)
|
andrewm@41
|
353 {
|
andrewm@41
|
354 //[UsercomboBoxChanged_Pre]
|
andrewm@41
|
355 //[/UsercomboBoxChanged_Pre]
|
andrewm@41
|
356
|
andrewm@41
|
357 if (comboBoxThatHasChanged == controlComboBox)
|
andrewm@41
|
358 {
|
andrewm@41
|
359 //[UserComboBoxCode_controlComboBox] -- add your combo box handling code here..
|
andrewm@41
|
360 int controller = controlComboBox->getSelectedId();
|
andrewm@41
|
361 factory_.setController(controller);
|
andrewm@41
|
362 //[/UserComboBoxCode_controlComboBox]
|
andrewm@41
|
363 }
|
andrewm@41
|
364 else if (comboBoxThatHasChanged == parameterComboBox)
|
andrewm@41
|
365 {
|
andrewm@41
|
366 //[UserComboBoxCode_parameterComboBox] -- add your combo box handling code here..
|
andrewm@41
|
367 int param = parameterComboBox->getSelectedId();
|
andrewm@41
|
368 factory_.setInputParameter(param);
|
andrewm@41
|
369 //[/UserComboBoxCode_parameterComboBox]
|
andrewm@41
|
370 }
|
andrewm@41
|
371 else if (comboBoxThatHasChanged == typeComboBox)
|
andrewm@41
|
372 {
|
andrewm@41
|
373 //[UserComboBoxCode_typeComboBox] -- add your combo box handling code here..
|
andrewm@41
|
374 int type = typeComboBox->getSelectedId();
|
andrewm@41
|
375 factory_.setInputType(type);
|
andrewm@41
|
376 //[/UserComboBoxCode_typeComboBox]
|
andrewm@41
|
377 }
|
andrewm@41
|
378 else if (comboBoxThatHasChanged == directionComboBox)
|
andrewm@41
|
379 {
|
andrewm@41
|
380 //[UserComboBoxCode_directionComboBox] -- add your combo box handling code here..
|
andrewm@41
|
381 int direction = directionComboBox->getSelectedId();
|
andrewm@41
|
382 factory_.setDirection(direction);
|
andrewm@41
|
383 //[/UserComboBoxCode_directionComboBox]
|
andrewm@41
|
384 }
|
andrewm@41
|
385 else if (comboBoxThatHasChanged == outOfRangeComboBox)
|
andrewm@41
|
386 {
|
andrewm@41
|
387 //[UserComboBoxCode_outOfRangeComboBox] -- add your combo box handling code here..
|
andrewm@41
|
388 int behavior = outOfRangeComboBox->getSelectedId();
|
andrewm@41
|
389 factory_.setOutOfRangeBehavior(behavior);
|
andrewm@41
|
390 //[/UserComboBoxCode_outOfRangeComboBox]
|
andrewm@41
|
391 }
|
andrewm@41
|
392
|
andrewm@41
|
393 //[UsercomboBoxChanged_Post]
|
andrewm@41
|
394 //[/UsercomboBoxChanged_Post]
|
andrewm@41
|
395 }
|
andrewm@41
|
396
|
andrewm@41
|
397 void TouchkeyControlMappingExtendedEditor::buttonClicked (Button* buttonThatWasClicked)
|
andrewm@41
|
398 {
|
andrewm@41
|
399 //[UserbuttonClicked_Pre]
|
andrewm@41
|
400 //[/UserbuttonClicked_Pre]
|
andrewm@41
|
401
|
andrewm@41
|
402 if (buttonThatWasClicked == cc14BitButton)
|
andrewm@41
|
403 {
|
andrewm@41
|
404 //[UserButtonCode_cc14BitButton] -- add your button handler code here..
|
andrewm@41
|
405 factory_.setUses14BitControl(cc14BitButton->getToggleState());
|
andrewm@41
|
406 //[/UserButtonCode_cc14BitButton]
|
andrewm@41
|
407 }
|
andrewm@41
|
408 else if (buttonThatWasClicked == ignore2FingersButton)
|
andrewm@41
|
409 {
|
andrewm@41
|
410 //[UserButtonCode_ignore2FingersButton] -- add your button handler code here..
|
andrewm@41
|
411 factory_.setIgnoresTwoFingers(ignore2FingersButton->getToggleState());
|
andrewm@41
|
412 //[/UserButtonCode_ignore2FingersButton]
|
andrewm@41
|
413 }
|
andrewm@41
|
414 else if (buttonThatWasClicked == ignore3FingersButton)
|
andrewm@41
|
415 {
|
andrewm@41
|
416 //[UserButtonCode_ignore3FingersButton] -- add your button handler code here..
|
andrewm@41
|
417 factory_.setIgnoresThreeFingers(ignore3FingersButton->getToggleState());
|
andrewm@41
|
418 //[/UserButtonCode_ignore3FingersButton]
|
andrewm@41
|
419 }
|
andrewm@41
|
420
|
andrewm@41
|
421 //[UserbuttonClicked_Post]
|
andrewm@41
|
422 //[/UserbuttonClicked_Post]
|
andrewm@41
|
423 }
|
andrewm@41
|
424
|
andrewm@41
|
425
|
andrewm@41
|
426
|
andrewm@41
|
427 //[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
|
andrewm@41
|
428
|
andrewm@41
|
429 void TouchkeyControlMappingExtendedEditor::textEditorReturnKeyPressed(TextEditor &editor)
|
andrewm@41
|
430 {
|
andrewm@41
|
431 if(&editor == inputRangeLowEditor) {
|
andrewm@41
|
432 float range = atof(inputRangeLowEditor->getText().toUTF8());
|
andrewm@41
|
433 factory_.setRangeInputMin(range);
|
andrewm@41
|
434 factory_.setRangeInputCenter(range);
|
andrewm@41
|
435 }
|
andrewm@41
|
436 else if(&editor == inputRangeHighEditor) {
|
andrewm@41
|
437 float range = atof(inputRangeHighEditor->getText().toUTF8());
|
andrewm@41
|
438 factory_.setRangeInputMax(range);
|
andrewm@41
|
439 }
|
andrewm@41
|
440 else if(&editor == outputRangeLowEditor) {
|
andrewm@41
|
441 float range = atof(outputRangeLowEditor->getText().toUTF8());
|
andrewm@41
|
442 factory_.setRangeOutputMin(range);
|
andrewm@41
|
443 }
|
andrewm@41
|
444 else if(&editor == outputRangeHighEditor) {
|
andrewm@41
|
445 float range = atof(outputRangeHighEditor->getText().toUTF8());
|
andrewm@41
|
446 factory_.setRangeOutputMax(range);
|
andrewm@41
|
447 }
|
andrewm@41
|
448 else if(&editor == outputDefaultEditor) {
|
andrewm@41
|
449 float range = atof(outputDefaultEditor->getText().toUTF8());
|
andrewm@41
|
450 factory_.setRangeOutputDefault(range);
|
andrewm@41
|
451 }
|
andrewm@41
|
452 else if(&editor == thresholdEditor) {
|
andrewm@41
|
453 float thresh = atof(thresholdEditor->getText().toUTF8());
|
andrewm@41
|
454 factory_.setThreshold(thresh);
|
andrewm@41
|
455 }
|
andrewm@41
|
456 }
|
andrewm@41
|
457
|
andrewm@41
|
458 void TouchkeyControlMappingExtendedEditor::textEditorEscapeKeyPressed(TextEditor &editor)
|
andrewm@41
|
459 {
|
andrewm@41
|
460
|
andrewm@41
|
461 }
|
andrewm@41
|
462
|
andrewm@41
|
463 void TouchkeyControlMappingExtendedEditor::textEditorFocusLost(TextEditor &editor)
|
andrewm@41
|
464 {
|
andrewm@41
|
465 textEditorReturnKeyPressed(editor);
|
andrewm@41
|
466 }
|
andrewm@41
|
467
|
andrewm@41
|
468 void TouchkeyControlMappingExtendedEditor::synchronize()
|
andrewm@41
|
469 {
|
andrewm@41
|
470 // Set the title label
|
andrewm@41
|
471 titleLabel->setText(getDescriptionHelper("Control Mapping"), dontSendNotification);
|
andrewm@41
|
472
|
andrewm@41
|
473 // Update the editors to reflect the current status
|
andrewm@41
|
474 if(!inputRangeLowEditor->hasKeyboardFocus(true)) {
|
andrewm@41
|
475 float value = factory_.getRangeInputMin();
|
andrewm@41
|
476 char st[16];
|
andrewm@41
|
477 #ifdef _MSC_VER
|
andrewm@41
|
478 _snprintf_s(st, 16, _TRUNCATE, "%.2f", value);
|
andrewm@41
|
479 #else
|
andrewm@41
|
480 snprintf(st, 16, "%.2f", value);
|
andrewm@41
|
481 #endif
|
andrewm@41
|
482 inputRangeLowEditor->setText(st);
|
andrewm@41
|
483 }
|
andrewm@41
|
484
|
andrewm@41
|
485 if(!inputRangeHighEditor->hasKeyboardFocus(true)) {
|
andrewm@41
|
486 float value = factory_.getRangeInputMax();
|
andrewm@41
|
487 char st[16];
|
andrewm@41
|
488 #ifdef _MSC_VER
|
andrewm@41
|
489 _snprintf_s(st, 16, _TRUNCATE, "%.2f", value);
|
andrewm@41
|
490 #else
|
andrewm@41
|
491 snprintf(st, 16, "%.2f", value);
|
andrewm@41
|
492 #endif
|
andrewm@41
|
493
|
andrewm@41
|
494 inputRangeHighEditor->setText(st);
|
andrewm@41
|
495 }
|
andrewm@41
|
496
|
andrewm@41
|
497 if(!outputRangeLowEditor->hasKeyboardFocus(true)) {
|
andrewm@41
|
498 float value = factory_.getRangeOutputMin();
|
andrewm@41
|
499 char st[16];
|
andrewm@41
|
500 #ifdef _MSC_VER
|
andrewm@41
|
501 _snprintf_s(st, 16, _TRUNCATE, "%.2f", value);
|
andrewm@41
|
502 #else
|
andrewm@41
|
503 snprintf(st, 16, "%.2f", value);
|
andrewm@41
|
504 #endif
|
andrewm@41
|
505
|
andrewm@41
|
506 outputRangeLowEditor->setText(st);
|
andrewm@41
|
507 }
|
andrewm@41
|
508
|
andrewm@41
|
509 if(!outputRangeHighEditor->hasKeyboardFocus(true)) {
|
andrewm@41
|
510 float value = factory_.getRangeOutputMax();
|
andrewm@41
|
511 char st[16];
|
andrewm@41
|
512 #ifdef _MSC_VER
|
andrewm@41
|
513 _snprintf_s(st, 16, _TRUNCATE, "%.2f", value);
|
andrewm@41
|
514 #else
|
andrewm@41
|
515 snprintf(st, 16, "%.2f", value);
|
andrewm@41
|
516 #endif
|
andrewm@41
|
517
|
andrewm@41
|
518 outputRangeHighEditor->setText(st);
|
andrewm@41
|
519 }
|
andrewm@41
|
520
|
andrewm@41
|
521 if(!outputDefaultEditor->hasKeyboardFocus(true)) {
|
andrewm@41
|
522 float value = factory_.getRangeOutputDefault();
|
andrewm@41
|
523 char st[16];
|
andrewm@41
|
524 #ifdef _MSC_VER
|
andrewm@41
|
525 _snprintf_s(st, 16, _TRUNCATE, "%.2f", value);
|
andrewm@41
|
526 #else
|
andrewm@41
|
527 snprintf(st, 16, "%.2f", value);
|
andrewm@41
|
528 #endif
|
andrewm@41
|
529
|
andrewm@41
|
530 outputDefaultEditor->setText(st);
|
andrewm@41
|
531 }
|
andrewm@41
|
532
|
andrewm@41
|
533 if(factory_.getInputType() == TouchkeyControlMapping::kTypeFirstTouchRelative
|
andrewm@41
|
534 || factory_.getInputType() == TouchkeyControlMapping::kTypeNoteOnsetRelative) {
|
andrewm@41
|
535 thresholdEditor->setEnabled(true);
|
andrewm@41
|
536 if(!thresholdEditor->hasKeyboardFocus(true)) {
|
andrewm@41
|
537 float value = factory_.getThreshold();
|
andrewm@41
|
538 char st[16];
|
andrewm@41
|
539 #ifdef _MSC_VER
|
andrewm@41
|
540 _snprintf_s(st, 16, _TRUNCATE, "%.2f", value);
|
andrewm@41
|
541 #else
|
andrewm@41
|
542 snprintf(st, 16, "%.2f", value);
|
andrewm@41
|
543 #endif
|
andrewm@41
|
544
|
andrewm@41
|
545 thresholdEditor->setText(st);
|
andrewm@41
|
546 }
|
andrewm@41
|
547
|
andrewm@41
|
548 if(typeWasAbsolute_) {
|
andrewm@41
|
549 // Add all three direction items
|
andrewm@41
|
550 directionComboBox->clear();
|
andrewm@41
|
551 directionComboBox->addItem("Normal", TouchkeyControlMapping::kDirectionPositive);
|
andrewm@41
|
552 directionComboBox->addItem("Reverse", TouchkeyControlMapping::kDirectionNegative);
|
andrewm@41
|
553 directionComboBox->addItem("Always Positive", TouchkeyControlMapping::kDirectionBoth);
|
andrewm@41
|
554 }
|
andrewm@41
|
555
|
andrewm@41
|
556 typeWasAbsolute_ = false;
|
andrewm@41
|
557 }
|
andrewm@41
|
558 else {
|
andrewm@41
|
559 thresholdEditor->setEnabled(false);
|
andrewm@41
|
560 thresholdEditor->setText("", false);
|
andrewm@41
|
561
|
andrewm@41
|
562 if(!typeWasAbsolute_) {
|
andrewm@41
|
563 // Add only one direction item
|
andrewm@41
|
564 directionComboBox->clear();
|
andrewm@41
|
565 directionComboBox->addItem("Normal", TouchkeyControlMapping::kDirectionPositive);
|
andrewm@41
|
566 }
|
andrewm@41
|
567
|
andrewm@41
|
568 typeWasAbsolute_ = true;
|
andrewm@41
|
569 }
|
andrewm@41
|
570
|
andrewm@41
|
571 if(factory_.getController() == MidiKeyboardSegment::kControlPitchWheel) {
|
andrewm@41
|
572 cc14BitButton->setEnabled(false);
|
andrewm@41
|
573 cc14BitButton->setToggleState(true, dontSendNotification);
|
andrewm@41
|
574 }
|
andrewm@41
|
575 else if(factory_.getController() == MidiKeyboardSegment::kControlPolyphonicAftertouch ||
|
andrewm@41
|
576 factory_.getController() == MidiKeyboardSegment::kControlChannelAftertouch) {
|
andrewm@41
|
577 cc14BitButton->setEnabled(false);
|
andrewm@41
|
578 cc14BitButton->setToggleState(false, dontSendNotification);
|
andrewm@41
|
579 }
|
andrewm@41
|
580 else {
|
andrewm@41
|
581 cc14BitButton->setEnabled(true);
|
andrewm@41
|
582 cc14BitButton->setToggleState(factory_.getUses14BitControl(), dontSendNotification);
|
andrewm@41
|
583 }
|
andrewm@41
|
584 ignore2FingersButton->setToggleState(factory_.getIgnoresTwoFingers(), dontSendNotification);
|
andrewm@41
|
585 ignore3FingersButton->setToggleState(factory_.getIgnoresThreeFingers(), dontSendNotification);
|
andrewm@41
|
586
|
andrewm@41
|
587 parameterComboBox->setSelectedId(factory_.getInputParameter(), dontSendNotification);
|
andrewm@41
|
588 typeComboBox->setSelectedId(factory_.getInputType(), dontSendNotification);
|
andrewm@41
|
589 controlComboBox->setSelectedId(factory_.getController(), dontSendNotification);
|
andrewm@41
|
590 directionComboBox->setSelectedId(factory_.getDirection(), dontSendNotification);
|
andrewm@41
|
591 outOfRangeComboBox->setSelectedId(factory_.getOutOfRangeBehavior(), dontSendNotification);
|
andrewm@41
|
592 }
|
andrewm@41
|
593
|
andrewm@41
|
594 // Return a human-readable description of this mapping for the window
|
andrewm@41
|
595 String TouchkeyControlMappingExtendedEditor::getDescription() {
|
andrewm@41
|
596 return getDescriptionHelper("Control");
|
andrewm@41
|
597 }
|
andrewm@41
|
598
|
andrewm@41
|
599 // Return a human-readable description of this mapping for the window
|
andrewm@41
|
600 String TouchkeyControlMappingExtendedEditor::getDescriptionHelper(String baseName) {
|
andrewm@41
|
601 String desc = baseName;
|
andrewm@41
|
602
|
andrewm@41
|
603 desc += " (Zone ";
|
andrewm@41
|
604
|
andrewm@41
|
605 int zone = factory_.segment().outputPort();
|
andrewm@41
|
606 desc += zone;
|
andrewm@41
|
607 desc += ", #";
|
andrewm@41
|
608
|
andrewm@41
|
609 int mappingNumber = factory_.segment().indexOfMappingFactory(&factory_);
|
andrewm@41
|
610 desc += mappingNumber;
|
andrewm@41
|
611 desc += ")";
|
andrewm@41
|
612
|
andrewm@41
|
613 return desc;
|
andrewm@41
|
614 }
|
andrewm@41
|
615
|
andrewm@41
|
616 //[/MiscUserCode]
|
andrewm@41
|
617
|
andrewm@41
|
618
|
andrewm@41
|
619 //==============================================================================
|
andrewm@41
|
620 #if 0
|
andrewm@41
|
621 /* -- Introjucer information section --
|
andrewm@41
|
622
|
andrewm@41
|
623 This is where the Introjucer stores the metadata that describe this GUI layout, so
|
andrewm@41
|
624 make changes in here at your peril!
|
andrewm@41
|
625
|
andrewm@41
|
626 BEGIN_JUCER_METADATA
|
andrewm@41
|
627
|
andrewm@41
|
628 <JUCER_COMPONENT documentType="Component" className="TouchkeyControlMappingExtendedEditor"
|
andrewm@41
|
629 componentName="" parentClasses="public MappingEditorComponent, public TextEditor::Listener"
|
andrewm@41
|
630 constructorParams="TouchkeyControlMappingFactory& factory"
|
andrewm@41
|
631 variableInitialisers="factory_(factory)" snapPixels="8" snapActive="1"
|
andrewm@41
|
632 snapShown="1" overlayOpacity="0.330" fixedSize="1" initialWidth="448"
|
andrewm@41
|
633 initialHeight="248">
|
andrewm@41
|
634 <BACKGROUND backgroundColour="ffd2d2d2"/>
|
andrewm@41
|
635 <TEXTEDITOR name="range low text editor" id="db0f62c03a58af03" memberName="inputRangeLowEditor"
|
andrewm@41
|
636 virtualName="" explicitFocusOrder="0" pos="112 72 56 24" initialText=""
|
andrewm@41
|
637 multiline="0" retKeyStartsLine="0" readonly="0" scrollbars="1"
|
andrewm@41
|
638 caret="1" popupmenu="1"/>
|
andrewm@41
|
639 <LABEL name="range label" id="1ca2d422f4c37b7f" memberName="rangeLabel"
|
andrewm@41
|
640 virtualName="" explicitFocusOrder="0" pos="8 72 104 24" edTextCol="ff000000"
|
andrewm@41
|
641 edBkgCol="0" labelText="Input Range:" editableSingleClick="0"
|
andrewm@41
|
642 editableDoubleClick="0" focusDiscardsChanges="0" fontname="Default font"
|
andrewm@41
|
643 fontsize="15" bold="0" italic="0" justification="33"/>
|
andrewm@41
|
644 <LABEL name="control label" id="f953b12999632418" memberName="controlLabel"
|
andrewm@41
|
645 virtualName="" explicitFocusOrder="0" pos="256 40 64 24" edTextCol="ff000000"
|
andrewm@41
|
646 edBkgCol="0" labelText="To Control:" editableSingleClick="0"
|
andrewm@41
|
647 editableDoubleClick="0" focusDiscardsChanges="0" fontname="Default font"
|
andrewm@41
|
648 fontsize="15" bold="0" italic="0" justification="34"/>
|
andrewm@41
|
649 <COMBOBOX name="control combo box" id="f1c84bb5fd2730fb" memberName="controlComboBox"
|
andrewm@41
|
650 virtualName="" explicitFocusOrder="0" pos="320 40 112 24" editable="0"
|
andrewm@41
|
651 layout="33" items="" textWhenNonSelected="" textWhenNoItems="(no choices)"/>
|
andrewm@41
|
652 <LABEL name="control label" id="5ef7c1b78fdcf616" memberName="controlLabel2"
|
andrewm@41
|
653 virtualName="" explicitFocusOrder="0" pos="8 40 72 24" edTextCol="ff000000"
|
andrewm@41
|
654 edBkgCol="0" labelText="Parameter:" editableSingleClick="0" editableDoubleClick="0"
|
andrewm@41
|
655 focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
andrewm@41
|
656 bold="0" italic="0" justification="33"/>
|
andrewm@41
|
657 <COMBOBOX name="parameter combo box" id="f12f6f6e31042be1" memberName="parameterComboBox"
|
andrewm@41
|
658 virtualName="" explicitFocusOrder="0" pos="80 40 160 24" editable="0"
|
andrewm@41
|
659 layout="33" items="" textWhenNonSelected="" textWhenNoItems="(no choices)"/>
|
andrewm@41
|
660 <LABEL name="control label" id="9ded92e82db31777" memberName="controlLabel3"
|
andrewm@41
|
661 virtualName="" explicitFocusOrder="0" pos="264 104 56 24" edTextCol="ff000000"
|
andrewm@41
|
662 edBkgCol="0" labelText="Type:" editableSingleClick="0" editableDoubleClick="0"
|
andrewm@41
|
663 focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
andrewm@41
|
664 bold="0" italic="0" justification="34"/>
|
andrewm@41
|
665 <COMBOBOX name="type combo box" id="82d38054016f6c4f" memberName="typeComboBox"
|
andrewm@41
|
666 virtualName="" explicitFocusOrder="0" pos="320 104 112 24" editable="0"
|
andrewm@41
|
667 layout="33" items="" textWhenNonSelected="" textWhenNoItems="(no choices)"/>
|
andrewm@41
|
668 <TEXTEDITOR name="range hi text editor" id="c34ac3e87db289d1" memberName="inputRangeHighEditor"
|
andrewm@41
|
669 virtualName="" explicitFocusOrder="0" pos="184 72 56 24" initialText=""
|
andrewm@41
|
670 multiline="0" retKeyStartsLine="0" readonly="0" scrollbars="1"
|
andrewm@41
|
671 caret="1" popupmenu="1"/>
|
andrewm@41
|
672 <LABEL name="range label" id="19e0ad80306cc4c0" memberName="rangeLabel2"
|
andrewm@41
|
673 virtualName="" explicitFocusOrder="0" pos="168 72 16 24" edTextCol="ff000000"
|
andrewm@41
|
674 edBkgCol="0" labelText="-" editableSingleClick="0" editableDoubleClick="0"
|
andrewm@41
|
675 focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
andrewm@41
|
676 bold="0" italic="0" justification="33"/>
|
andrewm@41
|
677 <LABEL name="range label" id="24ab2fe34fec697f" memberName="rangeLabel3"
|
andrewm@41
|
678 virtualName="" explicitFocusOrder="0" pos="8 104 96 24" edTextCol="ff000000"
|
andrewm@41
|
679 edBkgCol="0" labelText="Output Range:" editableSingleClick="0"
|
andrewm@41
|
680 editableDoubleClick="0" focusDiscardsChanges="0" fontname="Default font"
|
andrewm@41
|
681 fontsize="15" bold="0" italic="0" justification="33"/>
|
andrewm@41
|
682 <TEXTEDITOR name="output range low text editor" id="15865c99a3cac858" memberName="outputRangeLowEditor"
|
andrewm@41
|
683 virtualName="" explicitFocusOrder="0" pos="112 104 56 24" initialText=""
|
andrewm@41
|
684 multiline="0" retKeyStartsLine="0" readonly="0" scrollbars="1"
|
andrewm@41
|
685 caret="1" popupmenu="1"/>
|
andrewm@41
|
686 <TEXTEDITOR name="output range hi text editor" id="6f3a73d113c72696" memberName="outputRangeHighEditor"
|
andrewm@41
|
687 virtualName="" explicitFocusOrder="0" pos="184 104 56 24" initialText=""
|
andrewm@41
|
688 multiline="0" retKeyStartsLine="0" readonly="0" scrollbars="1"
|
andrewm@41
|
689 caret="1" popupmenu="1"/>
|
andrewm@41
|
690 <LABEL name="range label" id="a86c42d542ee8780" memberName="rangeLabel4"
|
andrewm@41
|
691 virtualName="" explicitFocusOrder="0" pos="168 104 16 24" edTextCol="ff000000"
|
andrewm@41
|
692 edBkgCol="0" labelText="-" editableSingleClick="0" editableDoubleClick="0"
|
andrewm@41
|
693 focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
andrewm@41
|
694 bold="0" italic="0" justification="33"/>
|
andrewm@41
|
695 <LABEL name="control label" id="ff30dace0846c523" memberName="controlLabel4"
|
andrewm@41
|
696 virtualName="" explicitFocusOrder="0" pos="248 136 72 24" edTextCol="ff000000"
|
andrewm@41
|
697 edBkgCol="0" labelText="Direction:" editableSingleClick="0" editableDoubleClick="0"
|
andrewm@41
|
698 focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
andrewm@41
|
699 bold="0" italic="0" justification="34"/>
|
andrewm@41
|
700 <COMBOBOX name="direction combo box" id="c46a92a83dfb204b" memberName="directionComboBox"
|
andrewm@41
|
701 virtualName="" explicitFocusOrder="0" pos="320 136 112 24" editable="0"
|
andrewm@41
|
702 layout="33" items="" textWhenNonSelected="" textWhenNoItems="(no choices)"/>
|
andrewm@41
|
703 <LABEL name="title label" id="2346b62ce034bea2" memberName="titleLabel"
|
andrewm@41
|
704 virtualName="" explicitFocusOrder="0" pos="8 8 424 24" edTextCol="ff000000"
|
andrewm@41
|
705 edBkgCol="0" labelText="Control Mapping (Zone N, #M)" editableSingleClick="0"
|
andrewm@41
|
706 editableDoubleClick="0" focusDiscardsChanges="0" fontname="Default font"
|
andrewm@41
|
707 fontsize="15" bold="1" italic="0" justification="33"/>
|
andrewm@41
|
708 <LABEL name="range label" id="41edb21ea9cb0304" memberName="rangeLabel5"
|
andrewm@41
|
709 virtualName="" explicitFocusOrder="0" pos="8 168 72 24" edTextCol="ff000000"
|
andrewm@41
|
710 edBkgCol="0" labelText="Threshold:" editableSingleClick="0" editableDoubleClick="0"
|
andrewm@41
|
711 focusDiscardsChanges="0" fontname="Default font" fontsize="15"
|
andrewm@41
|
712 bold="0" italic="0" justification="33"/>
|
andrewm@41
|
713 <TEXTEDITOR name="threshold text editor" id="48a7ef0bf62a7fe6" memberName="thresholdEditor"
|
andrewm@41
|
714 virtualName="" explicitFocusOrder="0" pos="112 168 56 24" initialText=""
|
andrewm@41
|
715 multiline="0" retKeyStartsLine="0" readonly="0" scrollbars="1"
|
andrewm@41
|
716 caret="1" popupmenu="1"/>
|
andrewm@41
|
717 <TOGGLEBUTTON name="new toggle button" id="f75c92be72563883" memberName="cc14BitButton"
|
andrewm@41
|
718 virtualName="" explicitFocusOrder="0" pos="320 72 112 24" buttonText="Use 14-bit CC"
|
andrewm@41
|
719 connectedEdges="0" needsCallback="1" radioGroupId="0" state="0"/>
|
andrewm@41
|
720 <TOGGLEBUTTON name="ignore 2 fingers toggle button" id="ec82d35a4bbc6688" memberName="ignore2FingersButton"
|
andrewm@41
|
721 virtualName="" explicitFocusOrder="0" pos="8 192 128 24" buttonText="Ignore 2 Fingers"
|
andrewm@41
|
722 connectedEdges="0" needsCallback="1" radioGroupId="0" state="0"/>
|
andrewm@41
|
723 <TOGGLEBUTTON name="ignore 3 fingers toggle button" id="9b08149fc48c8b0" memberName="ignore3FingersButton"
|
andrewm@41
|
724 virtualName="" explicitFocusOrder="0" pos="8 216 128 24" buttonText="Ignore 3 Fingers"
|
andrewm@41
|
725 connectedEdges="0" needsCallback="1" radioGroupId="0" state="0"/>
|
andrewm@41
|
726 <LABEL name="control label" id="668b66775f7ab754" memberName="controlLabel6"
|
andrewm@41
|
727 virtualName="" explicitFocusOrder="0" pos="216 168 104 24" edTextCol="ff000000"
|
andrewm@41
|
728 edBkgCol="0" labelText="Out of Range:" editableSingleClick="0"
|
andrewm@41
|
729 editableDoubleClick="0" focusDiscardsChanges="0" fontname="Default font"
|
andrewm@41
|
730 fontsize="15" bold="0" italic="0" justification="34"/>
|
andrewm@41
|
731 <COMBOBOX name="out of range combo box" id="6c7a92d782955f43" memberName="outOfRangeComboBox"
|
andrewm@41
|
732 virtualName="" explicitFocusOrder="0" pos="320 168 112 24" editable="0"
|
andrewm@41
|
733 layout="33" items="" textWhenNonSelected="" textWhenNoItems="(no choices)"/>
|
andrewm@41
|
734 <LABEL name="range label" id="6f03f49baf05157b" memberName="rangeLabel6"
|
andrewm@41
|
735 virtualName="" explicitFocusOrder="0" pos="8 136 96 24" edTextCol="ff000000"
|
andrewm@41
|
736 edBkgCol="0" labelText="Default Output:" editableSingleClick="0"
|
andrewm@41
|
737 editableDoubleClick="0" focusDiscardsChanges="0" fontname="Default font"
|
andrewm@41
|
738 fontsize="15" bold="0" italic="0" justification="33"/>
|
andrewm@41
|
739 <TEXTEDITOR name="output default text editor" id="403f9ffcb91633fd" memberName="outputDefaultEditor"
|
andrewm@41
|
740 virtualName="" explicitFocusOrder="0" pos="112 136 56 24" initialText=""
|
andrewm@41
|
741 multiline="0" retKeyStartsLine="0" readonly="0" scrollbars="1"
|
andrewm@41
|
742 caret="1" popupmenu="1"/>
|
andrewm@41
|
743 </JUCER_COMPONENT>
|
andrewm@41
|
744
|
andrewm@41
|
745 END_JUCER_METADATA
|
andrewm@41
|
746 */
|
andrewm@41
|
747 #endif
|
andrewm@41
|
748
|
andrewm@41
|
749
|
andrewm@41
|
750 //[EndFile] You can add extra defines here...
|
andrewm@41
|
751 //[/EndFile]
|