view Source/Mappings/Control/TouchkeyControlMappingShortEditor.h @ 20:dfff66c07936

Lots of minor changes to support building on Visual Studio. A few MSVC-specific #ifdefs to eliminate things Visual Studio doesn't like. This version now compiles on Windows (provided liblo, Juce and pthread are present) but the TouchKeys device support is not yet enabled. Also, the code now needs to be re-checked on Mac and Linux.
author Andrew McPherson <andrewm@eecs.qmul.ac.uk>
date Sun, 09 Feb 2014 18:40:51 +0000
parents 3580ffe87dc8
children 114427cb39f0
line wrap: on
line source
/*
  ==============================================================================

  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_61C9A7081A6F3E0__
#define __JUCE_HEADER_61C9A7081A6F3E0__

//[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 TouchkeyControlMappingShortEditor  : public MappingEditorComponent,
                                           public TextEditor::Listener,
                                           public ComboBoxListener
{
public:
    //==============================================================================
    TouchkeyControlMappingShortEditor (TouchkeyControlMappingFactory& factory);
    ~TouchkeyControlMappingShortEditor();

    //==============================================================================
    //[UserMethods]     -- You can add your own custom methods in this section.
    // TextEditor listener methods
    void textEditorTextChanged(TextEditor &editor) {}
    void textEditorReturnKeyPressed(TextEditor &editor);
    void textEditorEscapeKeyPressed(TextEditor &editor);
    void textEditorFocusLost(TextEditor &editor);

    void synchronize();
    //[/UserMethods]

    void paint (Graphics& g);
    void resized();
    void comboBoxChanged (ComboBox* comboBoxThatHasChanged);



private:
    //[UserVariables]   -- You can add your own custom variables in this section.
    TouchkeyControlMappingFactory& factory_;
    //[/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;


    //==============================================================================
    JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TouchkeyControlMappingShortEditor)
};

//[EndFile] You can add extra defines here...
//[/EndFile]

#endif   // __JUCE_HEADER_61C9A7081A6F3E0__