comparison Source/Mappings/Control/TouchkeyControlMappingExtendedEditor.h @ 41:85577160a0d4

Many changes: implement global application preferences on devices etc.; extended editor window support with Control mapping features for now
author Andrew McPherson <andrewm@eecs.qmul.ac.uk>
date Sat, 21 Jun 2014 23:32:33 +0100
parents
children 114427cb39f0
comparison
equal deleted inserted replaced
40:50e4859d9769 41:85577160a0d4
1 /*
2 ==============================================================================
3
4 This is an automatically generated GUI class created by the Introjucer!
5
6 Be careful when adding custom code to these files, as only the code within
7 the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
8 and re-saved.
9
10 Created with Introjucer version: 3.1.0
11
12 ------------------------------------------------------------------------------
13
14 The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
15 Copyright 2004-13 by Raw Material Software Ltd.
16
17 ==============================================================================
18 */
19
20 #ifndef __JUCE_HEADER_AD461861885EB942__
21 #define __JUCE_HEADER_AD461861885EB942__
22
23 //[Headers] -- You can add your own extra header files here --
24 #include "JuceHeader.h"
25 #include "TouchkeyControlMappingFactory.h"
26 //[/Headers]
27
28
29
30 //==============================================================================
31 /**
32 //[Comments]
33 An auto-generated component, created by the Introjucer.
34
35 Describe your class and how it works here!
36 //[/Comments]
37 */
38 class TouchkeyControlMappingExtendedEditor : public MappingEditorComponent,
39 public TextEditor::Listener,
40 public ComboBoxListener,
41 public ButtonListener
42 {
43 public:
44 //==============================================================================
45 TouchkeyControlMappingExtendedEditor (TouchkeyControlMappingFactory& factory);
46 ~TouchkeyControlMappingExtendedEditor();
47
48 //==============================================================================
49 //[UserMethods] -- You can add your own custom methods in this section.
50 void textEditorTextChanged(TextEditor &editor) {}
51 void textEditorReturnKeyPressed(TextEditor &editor);
52 void textEditorEscapeKeyPressed(TextEditor &editor);
53 void textEditorFocusLost(TextEditor &editor);
54
55 void synchronize();
56 String getDescription();
57 //[/UserMethods]
58
59 void paint (Graphics& g);
60 void resized();
61 void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
62 void buttonClicked (Button* buttonThatWasClicked);
63
64
65
66 private:
67 //[UserVariables] -- You can add your own custom variables in this section.
68 String getDescriptionHelper(String baseName);
69
70 TouchkeyControlMappingFactory& factory_;
71 bool typeWasAbsolute_;
72 //[/UserVariables]
73
74 //==============================================================================
75 ScopedPointer<TextEditor> inputRangeLowEditor;
76 ScopedPointer<Label> rangeLabel;
77 ScopedPointer<Label> controlLabel;
78 ScopedPointer<ComboBox> controlComboBox;
79 ScopedPointer<Label> controlLabel2;
80 ScopedPointer<ComboBox> parameterComboBox;
81 ScopedPointer<Label> controlLabel3;
82 ScopedPointer<ComboBox> typeComboBox;
83 ScopedPointer<TextEditor> inputRangeHighEditor;
84 ScopedPointer<Label> rangeLabel2;
85 ScopedPointer<Label> rangeLabel3;
86 ScopedPointer<TextEditor> outputRangeLowEditor;
87 ScopedPointer<TextEditor> outputRangeHighEditor;
88 ScopedPointer<Label> rangeLabel4;
89 ScopedPointer<Label> controlLabel4;
90 ScopedPointer<ComboBox> directionComboBox;
91 ScopedPointer<Label> titleLabel;
92 ScopedPointer<Label> rangeLabel5;
93 ScopedPointer<TextEditor> thresholdEditor;
94 ScopedPointer<ToggleButton> cc14BitButton;
95 ScopedPointer<ToggleButton> ignore2FingersButton;
96 ScopedPointer<ToggleButton> ignore3FingersButton;
97 ScopedPointer<Label> controlLabel6;
98 ScopedPointer<ComboBox> outOfRangeComboBox;
99 ScopedPointer<Label> rangeLabel6;
100 ScopedPointer<TextEditor> outputDefaultEditor;
101
102
103 //==============================================================================
104 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TouchkeyControlMappingExtendedEditor)
105 };
106
107 //[EndFile] You can add extra defines here...
108 //[/EndFile]
109
110 #endif // __JUCE_HEADER_AD461861885EB942__