/* ============================================================================== This file was auto-generated! It contains the basic framework code for a JUCE plugin editor. ============================================================================== */ #include "PluginProcessor.h" #include "PluginEditor.h" //============================================================================== ParameterProblemAudioProcessorEditor::ParameterProblemAudioProcessorEditor (ParameterProblemAudioProcessor& p, AudioProcessorValueTreeState& vts) : AudioProcessorEditor (&p), valueTreeState (vts), processor (p) { addAndMakeVisible(parameter); parameter.setSliderStyle(juce::Slider::RotaryHorizontalVerticalDrag); parameterAttach.reset(new SliderAttachment (valueTreeState, "parameter", parameter)); setSize (400, 300); } ParameterProblemAudioProcessorEditor::~ParameterProblemAudioProcessorEditor() { } //============================================================================== void ParameterProblemAudioProcessorEditor::paint (Graphics& g) { // (Our component is opaque, so we must completely fill the background with a solid colour) g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId)); g.setColour (Colours::white); g.setFont (15.0f); g.drawFittedText ("Hello World!", getLocalBounds(), Justification::centred, 1); } void ParameterProblemAudioProcessorEditor::resized() { parameter.setBoundsRelative(0.0, 0.0, 1.0, 1.0); }