The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated by the Jucer!
  4. It contains the basic startup code for a Juce application.
  5. ==============================================================================
  6. */
  7. #ifndef __PLUGINEDITOR_H_4ACCBAA__
  8. #define __PLUGINEDITOR_H_4ACCBAA__
  9. #include "../JuceLibraryCode/JuceHeader.h"
  10. #include "PluginProcessor.h"
  11. //==============================================================================
  12. /** This is the editor component that our filter will display.
  13. */
  14. class JuceDemoPluginAudioProcessorEditor : public AudioProcessorEditor,
  15. public SliderListener,
  16. public Timer
  17. {
  18. public:
  19. JuceDemoPluginAudioProcessorEditor (JuceDemoPluginAudioProcessor* ownerFilter);
  20. ~JuceDemoPluginAudioProcessorEditor();
  21. //==============================================================================
  22. void timerCallback();
  23. void paint (Graphics& g);
  24. void resized();
  25. void sliderValueChanged (Slider*);
  26. private:
  27. MidiKeyboardComponent midiKeyboard;
  28. Label infoLabel, gainLabel, delayLabel;
  29. Slider gainSlider;
  30. Slider delaySlider;
  31. ScopedPointer<ResizableCornerComponent> resizer;
  32. ComponentBoundsConstrainer resizeLimits;
  33. AudioPlayHead::CurrentPositionInfo lastDisplayedPosition;
  34. JuceDemoPluginAudioProcessor* getProcessor() const
  35. {
  36. return static_cast <JuceDemoPluginAudioProcessor*> (getAudioProcessor());
  37. }
  38. void displayPositionInfo (const AudioPlayHead::CurrentPositionInfo& pos);
  39. };
  40. #endif // __PLUGINEDITOR_H_4ACCBAA__