mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#include "PluginProcessor.h"
|
|
#include "PluginEditor.h"
|
|
|
|
//==============================================================================
|
|
WavetableAudioProcessorEditor::WavetableAudioProcessorEditor (WavetableAudioProcessor& p)
|
|
: ProcessorEditor (p), vaProc (p)
|
|
{
|
|
addAndMakeVisible (editor);
|
|
|
|
setSize (901, 753);
|
|
}
|
|
|
|
WavetableAudioProcessorEditor::~WavetableAudioProcessorEditor()
|
|
{
|
|
}
|
|
|
|
//==============================================================================
|
|
void WavetableAudioProcessorEditor::showAboutInfo()
|
|
{
|
|
#if JUCE_DEBUG
|
|
if (inspector == nullptr)
|
|
{
|
|
inspector = std::make_unique<melatonin::Inspector> (*this);
|
|
inspector->setVisible(true);
|
|
}
|
|
else
|
|
{
|
|
inspector = nullptr;
|
|
}
|
|
#else
|
|
ProcessorEditor::showAboutInfo();
|
|
#endif
|
|
}
|
|
|
|
void WavetableAudioProcessorEditor::paint (juce::Graphics& g)
|
|
{
|
|
ProcessorEditor::paint (g);
|
|
|
|
titleBar.setShowBrowser (true);
|
|
|
|
g.fillAll (findColour (gin::PluginLookAndFeel::blackColourId));
|
|
}
|
|
|
|
void WavetableAudioProcessorEditor::resized()
|
|
{
|
|
ProcessorEditor::resized ();
|
|
|
|
auto rc = getLocalBounds().reduced (1);
|
|
rc.removeFromTop (40);
|
|
|
|
editor.setBounds (rc);
|
|
}
|