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.

54 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&);
  20. ~JuceDemoPluginAudioProcessorEditor();
  21. //==============================================================================
  22. void timerCallback() override;
  23. void paint (Graphics&) override;
  24. void resized() override;
  25. void sliderValueChanged (Slider*) override;
  26. private:
  27. MidiKeyboardComponent midiKeyboard;
  28. Label infoLabel, gainLabel, delayLabel;
  29. Slider gainSlider, delaySlider;
  30. ScopedPointer<ResizableCornerComponent> resizer;
  31. ComponentBoundsConstrainer resizeLimits;
  32. AudioPlayHead::CurrentPositionInfo lastDisplayedPosition;
  33. JuceDemoPluginAudioProcessor& getProcessor() const
  34. {
  35. return static_cast<JuceDemoPluginAudioProcessor&> (processor);
  36. }
  37. void displayPositionInfo (const AudioPlayHead::CurrentPositionInfo& pos);
  38. };
  39. #endif // __PLUGINEDITOR_H_4ACCBAA__