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.

59 lines
2.0KB

  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. void sliderDragStarted (Slider*) override;
  27. void sliderDragEnded (Slider*) override;
  28. private:
  29. MidiKeyboardComponent midiKeyboard;
  30. Label infoLabel, gainLabel, delayLabel;
  31. Slider gainSlider, delaySlider;
  32. ScopedPointer<ResizableCornerComponent> resizer;
  33. ComponentBoundsConstrainer resizeLimits;
  34. AudioPlayHead::CurrentPositionInfo lastDisplayedPosition;
  35. //==============================================================================
  36. JuceDemoPluginAudioProcessor& getProcessor() const
  37. {
  38. return static_cast<JuceDemoPluginAudioProcessor&> (processor);
  39. }
  40. AudioProcessorParameter* getParameterFromSlider (const Slider*) const;
  41. void displayPositionInfo (const AudioPlayHead::CurrentPositionInfo& pos);
  42. };
  43. #endif // __PLUGINEDITOR_H_4ACCBAA__