Initial UI work: Fix param changes
[juce-lv2.git] / demo / Source / PluginEditor.h
blobebaac3219fcb1f1f3bc15abdd22dd7fdc5a68463
1 /*
2 ==============================================================================
4 This file was auto-generated by the Jucer!
6 It contains the basic startup code for a Juce application.
8 ==============================================================================
9 */
11 #ifndef __PLUGINEDITOR_H_4ACCBAA__
12 #define __PLUGINEDITOR_H_4ACCBAA__
14 #include "../JuceLibraryCode/JuceHeader.h"
15 #include "../JuceLibraryCode/JucePluginCharacteristics.h"
16 #include "PluginProcessor.h"
19 //==============================================================================
20 /** This is the editor component that our filter will display.
22 class JuceDemoPluginAudioProcessorEditor : public AudioProcessorEditor,
23 public SliderListener,
24 public Timer
26 public:
27 JuceDemoPluginAudioProcessorEditor (JuceDemoPluginAudioProcessor* ownerFilter);
28 ~JuceDemoPluginAudioProcessorEditor();
30 //==============================================================================
31 void timerCallback();
32 void paint (Graphics& g);
33 void resized();
34 void sliderValueChanged (Slider*);
36 private:
37 MidiKeyboardComponent midiKeyboard;
38 Label infoLabel, gainLabel, delayLabel;
39 Slider gainSlider;
40 Slider delaySlider;
41 ScopedPointer<ResizableCornerComponent> resizer;
42 ComponentBoundsConstrainer resizeLimits;
44 AudioPlayHead::CurrentPositionInfo lastDisplayedPosition;
46 JuceDemoPluginAudioProcessor* getProcessor() const
48 return static_cast <JuceDemoPluginAudioProcessor*> (getAudioProcessor());
51 void displayPositionInfo (const AudioPlayHead::CurrentPositionInfo& pos);
55 #endif // __PLUGINEDITOR_H_4ACCBAA__