PluginEditor.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. ==============================================================================
  3. This file contains the basic framework code for a JUCE plugin editor.
  4. ==============================================================================
  5. */
  6. #include "PluginProcessor.h"
  7. #include "PluginEditor.h"
  8. //==============================================================================
  9. CMLSProjectAudioProcessorEditor::CMLSProjectAudioProcessorEditor (CMLSProjectAudioProcessor& p)
  10. : AudioProcessorEditor (&p), audioProcessor (p)
  11. {
  12. // OSC receiver
  13. this->oscReceiver = new OSCReceiverWrapper(57121, p.getApvts());
  14. // Make sure that before the constructor has finished, you've set the
  15. // editor's size to whatever you need it to be.
  16. }
  17. CMLSProjectAudioProcessorEditor::~CMLSProjectAudioProcessorEditor()
  18. {
  19. }
  20. //==============================================================================
  21. void CMLSProjectAudioProcessorEditor::paint (juce::Graphics& g)
  22. {
  23. // (Our component is opaque, so we must completely fill the background with a solid colour)
  24. g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
  25. }
  26. void CMLSProjectAudioProcessorEditor::resized()
  27. {}