andrewm@41: /* andrewm@41: ============================================================================== andrewm@41: andrewm@41: This is an automatically generated GUI class created by the Introjucer! andrewm@41: andrewm@41: Be careful when adding custom code to these files, as only the code within andrewm@41: the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded andrewm@41: and re-saved. andrewm@41: andrewm@41: Created with Introjucer version: 3.1.0 andrewm@41: andrewm@41: ------------------------------------------------------------------------------ andrewm@41: andrewm@41: The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions" andrewm@41: Copyright 2004-13 by Raw Material Software Ltd. andrewm@41: andrewm@41: ============================================================================== andrewm@41: */ andrewm@41: andrewm@41: #ifndef __JUCE_HEADER_248C56742F074362__ andrewm@41: #define __JUCE_HEADER_248C56742F074362__ andrewm@41: andrewm@41: //[Headers] -- You can add your own extra header files here -- andrewm@50: #ifndef TOUCHKEYS_NO_GUI andrewm@41: #include "JuceHeader.h" andrewm@41: andrewm@41: class MainApplicationController; andrewm@41: //[/Headers] andrewm@41: andrewm@41: andrewm@41: andrewm@41: //============================================================================== andrewm@41: /** andrewm@41: //[Comments] andrewm@41: An auto-generated component, created by the Introjucer. andrewm@41: andrewm@41: Describe your class and how it works here! andrewm@41: //[/Comments] andrewm@41: */ andrewm@41: class PreferencesComponent : public Component, andrewm@41: public ComboBoxListener, andrewm@41: public ButtonListener andrewm@41: { andrewm@41: public: andrewm@41: //============================================================================== andrewm@41: PreferencesComponent (); andrewm@41: ~PreferencesComponent(); andrewm@41: andrewm@41: //============================================================================== andrewm@41: //[UserMethods] -- You can add your own custom methods in this section. andrewm@41: andrewm@41: void setMainApplicationController(MainApplicationController *controller) { andrewm@41: // Attach the user interface to the controller and vice-versa andrewm@41: controller_ = controller; andrewm@41: } andrewm@41: andrewm@41: // Synchronize UI state to match underlying state of the back end andrewm@41: void synchronize(bool forceUpdates = false); andrewm@41: andrewm@41: //[/UserMethods] andrewm@41: andrewm@41: void paint (Graphics& g); andrewm@41: void resized(); andrewm@41: void comboBoxChanged (ComboBox* comboBoxThatHasChanged); andrewm@41: void buttonClicked (Button* buttonThatWasClicked); andrewm@41: andrewm@41: andrewm@41: andrewm@41: private: andrewm@41: //[UserVariables] -- You can add your own custom variables in this section. andrewm@41: enum { andrewm@41: kStartupPresetNone = 1, andrewm@41: kStartupPresetVibratoPitchBend, andrewm@41: kStartupPresetLastSaved, andrewm@41: kStartupPresetChoose andrewm@41: }; andrewm@41: andrewm@41: MainApplicationController *controller_; // Pointer to the main application controller andrewm@41: andrewm@41: //[/UserVariables] andrewm@41: andrewm@41: //============================================================================== andrewm@41: ScopedPointer startupPresetComboBox; andrewm@41: ScopedPointer