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.

44 lines
1.3KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. It contains the basic framework code for a JUCE plugin editor.
  5. ==============================================================================
  6. */
  7. #include "PluginProcessor.h"
  8. #include "PluginEditor.h"
  9. //==============================================================================
  10. PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (PaulstretchpluginAudioProcessor& p)
  11. : AudioProcessorEditor (&p), processor (p)
  12. {
  13. const auto& pars = processor.getParameters();
  14. for (int i=0;i<pars.size();++i)
  15. {
  16. m_parcomps.push_back(std::make_shared<ParameterComponent>(pars[i]));
  17. m_parcomps.back()->setBounds(1, i * 25, 598, 24);
  18. addAndMakeVisible(m_parcomps.back().get());
  19. }
  20. setSize (600, pars.size()*25);
  21. }
  22. PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor()
  23. {
  24. }
  25. //==============================================================================
  26. void PaulstretchpluginAudioProcessorEditor::paint (Graphics& g)
  27. {
  28. g.fillAll(Colours::darkgrey);
  29. }
  30. void PaulstretchpluginAudioProcessorEditor::resized()
  31. {
  32. // This is generally where you'll want to lay out the positions of any
  33. // subcomponents in your editor..
  34. }