annotate 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
rev   line source
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 #ifndef __JUCE_HEADER_AD461861885EB942__
andrewm@41 21 #define __JUCE_HEADER_AD461861885EB942__
andrewm@41 22
andrewm@41 23 //[Headers] -- You can add your own extra header files here --
andrewm@41 24 #include "JuceHeader.h"
andrewm@41 25 #include "TouchkeyControlMappingFactory.h"
andrewm@41 26 //[/Headers]
andrewm@41 27
andrewm@41 28
andrewm@41 29
andrewm@41 30 //==============================================================================
andrewm@41 31 /**
andrewm@41 32 //[Comments]
andrewm@41 33 An auto-generated component, created by the Introjucer.
andrewm@41 34
andrewm@41 35 Describe your class and how it works here!
andrewm@41 36 //[/Comments]
andrewm@41 37 */
andrewm@41 38 class TouchkeyControlMappingExtendedEditor : public MappingEditorComponent,
andrewm@41 39 public TextEditor::Listener,
andrewm@41 40 public ComboBoxListener,
andrewm@41 41 public ButtonListener
andrewm@41 42 {
andrewm@41 43 public:
andrewm@41 44 //==============================================================================
andrewm@41 45 TouchkeyControlMappingExtendedEditor (TouchkeyControlMappingFactory& factory);
andrewm@41 46 ~TouchkeyControlMappingExtendedEditor();
andrewm@41 47
andrewm@41 48 //==============================================================================
andrewm@41 49 //[UserMethods] -- You can add your own custom methods in this section.
andrewm@41 50 void textEditorTextChanged(TextEditor &editor) {}
andrewm@41 51 void textEditorReturnKeyPressed(TextEditor &editor);
andrewm@41 52 void textEditorEscapeKeyPressed(TextEditor &editor);
andrewm@41 53 void textEditorFocusLost(TextEditor &editor);
andrewm@41 54
andrewm@41 55 void synchronize();
andrewm@41 56 String getDescription();
andrewm@41 57 //[/UserMethods]
andrewm@41 58
andrewm@41 59 void paint (Graphics& g);
andrewm@41 60 void resized();
andrewm@41 61 void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
andrewm@41 62 void buttonClicked (Button* buttonThatWasClicked);
andrewm@41 63
andrewm@41 64
andrewm@41 65
andrewm@41 66 private:
andrewm@41 67 //[UserVariables] -- You can add your own custom variables in this section.
andrewm@41 68 String getDescriptionHelper(String baseName);
andrewm@41 69
andrewm@41 70 TouchkeyControlMappingFactory& factory_;
andrewm@41 71 bool typeWasAbsolute_;
andrewm@41 72 //[/UserVariables]
andrewm@41 73
andrewm@41 74 //==============================================================================
andrewm@41 75 ScopedPointer<TextEditor> inputRangeLowEditor;
andrewm@41 76 ScopedPointer<Label> rangeLabel;
andrewm@41 77 ScopedPointer<Label> controlLabel;
andrewm@41 78 ScopedPointer<ComboBox> controlComboBox;
andrewm@41 79 ScopedPointer<Label> controlLabel2;
andrewm@41 80 ScopedPointer<ComboBox> parameterComboBox;
andrewm@41 81 ScopedPointer<Label> controlLabel3;
andrewm@41 82 ScopedPointer<ComboBox> typeComboBox;
andrewm@41 83 ScopedPointer<TextEditor> inputRangeHighEditor;
andrewm@41 84 ScopedPointer<Label> rangeLabel2;
andrewm@41 85 ScopedPointer<Label> rangeLabel3;
andrewm@41 86 ScopedPointer<TextEditor> outputRangeLowEditor;
andrewm@41 87 ScopedPointer<TextEditor> outputRangeHighEditor;
andrewm@41 88 ScopedPointer<Label> rangeLabel4;
andrewm@41 89 ScopedPointer<Label> controlLabel4;
andrewm@41 90 ScopedPointer<ComboBox> directionComboBox;
andrewm@41 91 ScopedPointer<Label> titleLabel;
andrewm@41 92 ScopedPointer<Label> rangeLabel5;
andrewm@41 93 ScopedPointer<TextEditor> thresholdEditor;
andrewm@41 94 ScopedPointer<ToggleButton> cc14BitButton;
andrewm@41 95 ScopedPointer<ToggleButton> ignore2FingersButton;
andrewm@41 96 ScopedPointer<ToggleButton> ignore3FingersButton;
andrewm@41 97 ScopedPointer<Label> controlLabel6;
andrewm@41 98 ScopedPointer<ComboBox> outOfRangeComboBox;
andrewm@41 99 ScopedPointer<Label> rangeLabel6;
andrewm@41 100 ScopedPointer<TextEditor> outputDefaultEditor;
andrewm@41 101
andrewm@41 102
andrewm@41 103 //==============================================================================
andrewm@41 104 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TouchkeyControlMappingExtendedEditor)
andrewm@41 105 };
andrewm@41 106
andrewm@41 107 //[EndFile] You can add extra defines here...
andrewm@41 108 //[/EndFile]
andrewm@41 109
andrewm@41 110 #endif // __JUCE_HEADER_AD461861885EB942__