wavetable/plugin/Source/PluginEditor.cpp
Roland Rabien 3dbcbf73e5 More UI
2023-08-25 09:47:50 -07:00

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);
}