wavetable/plugin/Source/PluginEditor.cpp
Roland Rabien c8a79d4693 More UI
2023-08-27 07:57:23 -07:00

53 lines
1.3 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);
patchBrowser.setBounds (rc);
}