diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Mappings/Control/TouchkeyControlMappingExtendedEditor.h	Sat Jun 21 23:32:33 2014 +0100
@@ -0,0 +1,110 @@
+/*
+  ==============================================================================
+
+  This is an automatically generated GUI class created by the Introjucer!
+
+  Be careful when adding custom code to these files, as only the code within
+  the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
+  and re-saved.
+
+  Created with Introjucer version: 3.1.0
+
+  ------------------------------------------------------------------------------
+
+  The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
+  Copyright 2004-13 by Raw Material Software Ltd.
+
+  ==============================================================================
+*/
+
+#ifndef __JUCE_HEADER_AD461861885EB942__
+#define __JUCE_HEADER_AD461861885EB942__
+
+//[Headers]     -- You can add your own extra header files here --
+#include "JuceHeader.h"
+#include "TouchkeyControlMappingFactory.h"
+//[/Headers]
+
+
+
+//==============================================================================
+/**
+                                                                    //[Comments]
+    An auto-generated component, created by the Introjucer.
+
+    Describe your class and how it works here!
+                                                                    //[/Comments]
+*/
+class TouchkeyControlMappingExtendedEditor  : public MappingEditorComponent,
+                                              public TextEditor::Listener,
+                                              public ComboBoxListener,
+                                              public ButtonListener
+{
+public:
+    //==============================================================================
+    TouchkeyControlMappingExtendedEditor (TouchkeyControlMappingFactory& factory);
+    ~TouchkeyControlMappingExtendedEditor();
+
+    //==============================================================================
+    //[UserMethods]     -- You can add your own custom methods in this section.
+    void textEditorTextChanged(TextEditor &editor) {}
+    void textEditorReturnKeyPressed(TextEditor &editor);
+    void textEditorEscapeKeyPressed(TextEditor &editor);
+    void textEditorFocusLost(TextEditor &editor);
+
+    void synchronize();
+    String getDescription();
+    //[/UserMethods]
+
+    void paint (Graphics& g);
+    void resized();
+    void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
+    void buttonClicked (Button* buttonThatWasClicked);
+
+
+
+private:
+    //[UserVariables]   -- You can add your own custom variables in this section.
+    String getDescriptionHelper(String baseName);
+
+    TouchkeyControlMappingFactory& factory_;
+    bool typeWasAbsolute_;
+    //[/UserVariables]
+
+    //==============================================================================
+    ScopedPointer<TextEditor> inputRangeLowEditor;
+    ScopedPointer<Label> rangeLabel;
+    ScopedPointer<Label> controlLabel;
+    ScopedPointer<ComboBox> controlComboBox;
+    ScopedPointer<Label> controlLabel2;
+    ScopedPointer<ComboBox> parameterComboBox;
+    ScopedPointer<Label> controlLabel3;
+    ScopedPointer<ComboBox> typeComboBox;
+    ScopedPointer<TextEditor> inputRangeHighEditor;
+    ScopedPointer<Label> rangeLabel2;
+    ScopedPointer<Label> rangeLabel3;
+    ScopedPointer<TextEditor> outputRangeLowEditor;
+    ScopedPointer<TextEditor> outputRangeHighEditor;
+    ScopedPointer<Label> rangeLabel4;
+    ScopedPointer<Label> controlLabel4;
+    ScopedPointer<ComboBox> directionComboBox;
+    ScopedPointer<Label> titleLabel;
+    ScopedPointer<Label> rangeLabel5;
+    ScopedPointer<TextEditor> thresholdEditor;
+    ScopedPointer<ToggleButton> cc14BitButton;
+    ScopedPointer<ToggleButton> ignore2FingersButton;
+    ScopedPointer<ToggleButton> ignore3FingersButton;
+    ScopedPointer<Label> controlLabel6;
+    ScopedPointer<ComboBox> outOfRangeComboBox;
+    ScopedPointer<Label> rangeLabel6;
+    ScopedPointer<TextEditor> outputDefaultEditor;
+
+
+    //==============================================================================
+    JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TouchkeyControlMappingExtendedEditor)
+};
+
+//[EndFile] You can add extra defines here...
+//[/EndFile]
+
+#endif   // __JUCE_HEADER_AD461861885EB942__