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.

56 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 "../JuceLibraryCode/JucePluginCharacteristics.h"
  11. #include "PluginProcessor.h"
  12. //==============================================================================
  13. /** This is the editor component that our filter will display.
  14. */
  15. class JuceDemoPluginAudioProcessorEditor : public AudioProcessorEditor,
  16. public SliderListener,
  17. public Timer
  18. {
  19. public:
  20. JuceDemoPluginAudioProcessorEditor (JuceDemoPluginAudioProcessor* ownerFilter);
  21. ~JuceDemoPluginAudioProcessorEditor();
  22. //==============================================================================
  23. void timerCallback();
  24. void paint (Graphics& g);
  25. void resized();
  26. void sliderValueChanged (Slider*);
  27. private:
  28. MidiKeyboardComponent* midiKeyboard;
  29. Label* infoLabel;
  30. Slider* gainSlider;
  31. Slider* delaySlider;
  32. ResizableCornerComponent* resizer;
  33. ComponentBoundsConstrainer resizeLimits;
  34. AudioPlayHead::CurrentPositionInfo lastDisplayedPosition;
  35. JuceDemoPluginAudioProcessor* getProcessor() const
  36. {
  37. return static_cast <JuceDemoPluginAudioProcessor*> (getAudioProcessor());
  38. }
  39. void displayPositionInfo (const AudioPlayHead::CurrentPositionInfo& pos);
  40. };
  41. #endif // __PLUGINEDITOR_H_4ACCBAA__