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