2020-04-03 13:23:19 +02:00
|
|
|
#include "PluginProcessor.h"
|
|
|
|
#include "PluginEditor.h"
|
|
|
|
#include "Veno/Core/Config.h"
|
|
|
|
|
|
|
|
VenoAudioProcessorEditor::VenoAudioProcessorEditor(VenoAudioProcessor &p)
|
|
|
|
: AudioProcessorEditor(&p), processor(p) {
|
2020-06-08 21:27:17 +02:00
|
|
|
m_id = p.m_id;
|
|
|
|
Config::getInstance()->registerEditor(this, m_id);
|
|
|
|
LookAndFeel::setDefaultLookAndFeel(m_look);
|
2020-04-03 13:23:19 +02:00
|
|
|
setSize(400, 300);
|
|
|
|
}
|
|
|
|
|
|
|
|
VenoAudioProcessorEditor::~VenoAudioProcessorEditor() {
|
|
|
|
LookAndFeel::setDefaultLookAndFeel(nullptr);
|
2020-06-08 21:27:17 +02:00
|
|
|
Config::getInstance()->removeEditor(m_id);
|
|
|
|
delete m_look;
|
2020-04-03 13:23:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void VenoAudioProcessorEditor::paint(Graphics &g) {
|
|
|
|
g.fillAll(getLookAndFeel().findColour(ResizableWindow::backgroundColourId));
|
|
|
|
g.setColour(Colours::white);
|
|
|
|
g.setFont(15.0f);
|
|
|
|
}
|
|
|
|
|
|
|
|
void VenoAudioProcessorEditor::resized() {
|
|
|
|
}
|