annotate Source/GUI/PreferencesComponent.h @ 56:b4a2d2ae43cf tip

merge
author Andrew McPherson <andrewm@eecs.qmul.ac.uk>
date Fri, 23 Nov 2018 15:48:14 +0000
parents 114427cb39f0
children
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_248C56742F074362__
andrewm@41 21 #define __JUCE_HEADER_248C56742F074362__
andrewm@41 22
andrewm@41 23 //[Headers] -- You can add your own extra header files here --
andrewm@50 24 #ifndef TOUCHKEYS_NO_GUI
andrewm@41 25 #include "JuceHeader.h"
andrewm@41 26
andrewm@41 27 class MainApplicationController;
andrewm@41 28 //[/Headers]
andrewm@41 29
andrewm@41 30
andrewm@41 31
andrewm@41 32 //==============================================================================
andrewm@41 33 /**
andrewm@41 34 //[Comments]
andrewm@41 35 An auto-generated component, created by the Introjucer.
andrewm@41 36
andrewm@41 37 Describe your class and how it works here!
andrewm@41 38 //[/Comments]
andrewm@41 39 */
andrewm@41 40 class PreferencesComponent : public Component,
andrewm@41 41 public ComboBoxListener,
andrewm@41 42 public ButtonListener
andrewm@41 43 {
andrewm@41 44 public:
andrewm@41 45 //==============================================================================
andrewm@41 46 PreferencesComponent ();
andrewm@41 47 ~PreferencesComponent();
andrewm@41 48
andrewm@41 49 //==============================================================================
andrewm@41 50 //[UserMethods] -- You can add your own custom methods in this section.
andrewm@41 51
andrewm@41 52 void setMainApplicationController(MainApplicationController *controller) {
andrewm@41 53 // Attach the user interface to the controller and vice-versa
andrewm@41 54 controller_ = controller;
andrewm@41 55 }
andrewm@41 56
andrewm@41 57 // Synchronize UI state to match underlying state of the back end
andrewm@41 58 void synchronize(bool forceUpdates = false);
andrewm@41 59
andrewm@41 60 //[/UserMethods]
andrewm@41 61
andrewm@41 62 void paint (Graphics& g);
andrewm@41 63 void resized();
andrewm@41 64 void comboBoxChanged (ComboBox* comboBoxThatHasChanged);
andrewm@41 65 void buttonClicked (Button* buttonThatWasClicked);
andrewm@41 66
andrewm@41 67
andrewm@41 68
andrewm@41 69 private:
andrewm@41 70 //[UserVariables] -- You can add your own custom variables in this section.
andrewm@41 71 enum {
andrewm@41 72 kStartupPresetNone = 1,
andrewm@41 73 kStartupPresetVibratoPitchBend,
andrewm@41 74 kStartupPresetLastSaved,
andrewm@41 75 kStartupPresetChoose
andrewm@41 76 };
andrewm@41 77
andrewm@41 78 MainApplicationController *controller_; // Pointer to the main application controller
andrewm@41 79
andrewm@41 80 //[/UserVariables]
andrewm@41 81
andrewm@41 82 //==============================================================================
andrewm@41 83 ScopedPointer<ComboBox> startupPresetComboBox;
andrewm@41 84 ScopedPointer<Label> label4;
andrewm@41 85 ScopedPointer<ToggleButton> startTouchKeysButton;
andrewm@41 86 ScopedPointer<ToggleButton> autodetectButton;
andrewm@41 87 ScopedPointer<TextButton> defaultsButton;
andrewm@41 88
andrewm@41 89
andrewm@41 90 //==============================================================================
andrewm@41 91 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PreferencesComponent)
andrewm@41 92 };
andrewm@41 93
andrewm@41 94 //[EndFile] You can add extra defines here...
andrewm@50 95 #endif // TOUCHKEYS_NO_GUI
andrewm@41 96 //[/EndFile]
andrewm@41 97
andrewm@41 98 #endif // __JUCE_HEADER_248C56742F074362__