2020-05-20 16:44:46 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <JuceHeader.h>
|
|
|
|
|
#include "PluginProcessor.h"
|
2023-08-23 08:45:23 -07:00
|
|
|
#include "Panels.h"
|
2023-08-24 13:25:21 -07:00
|
|
|
#include "Editor.h"
|
2020-05-20 16:44:46 -07:00
|
|
|
|
|
|
|
|
//==============================================================================
|
2023-09-04 09:56:25 -07:00
|
|
|
class WavetableAudioProcessorEditor : public gin::ProcessorEditor,
|
|
|
|
|
public juce::DragAndDropContainer
|
2020-05-20 16:44:46 -07:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
WavetableAudioProcessorEditor (WavetableAudioProcessor&);
|
|
|
|
|
~WavetableAudioProcessorEditor() override;
|
|
|
|
|
|
|
|
|
|
//==============================================================================
|
2023-08-23 08:45:23 -07:00
|
|
|
void paint (juce::Graphics&) override;
|
2020-05-20 16:44:46 -07:00
|
|
|
void resized() override;
|
2023-08-31 21:02:23 -07:00
|
|
|
void addMenuItems (juce::PopupMenu& m) override;
|
2020-05-20 16:44:46 -07:00
|
|
|
|
2023-08-25 09:47:50 -07:00
|
|
|
void showAboutInfo() override;
|
|
|
|
|
|
2020-05-20 16:44:46 -07:00
|
|
|
private:
|
2023-09-23 11:10:21 -07:00
|
|
|
WavetableAudioProcessor& wtProc;
|
2020-05-20 16:44:46 -07:00
|
|
|
|
2023-09-23 11:10:21 -07:00
|
|
|
gin::TriggeredScope scope { wtProc.scopeFifo };
|
|
|
|
|
gin::SynthesiserUsage usage { wtProc };
|
2023-10-05 05:23:29 -07:00
|
|
|
gin::ModulationOverview modOverview { wtProc.modMatrix };
|
2023-09-07 20:46:00 -07:00
|
|
|
|
2023-09-23 11:10:21 -07:00
|
|
|
Editor editor { wtProc };
|
2020-05-20 16:44:46 -07:00
|
|
|
|
2023-08-25 09:47:50 -07:00
|
|
|
#if JUCE_DEBUG
|
|
|
|
|
std::unique_ptr<melatonin::Inspector> inspector;
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-05-20 16:44:46 -07:00
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WavetableAudioProcessorEditor)
|
|
|
|
|
};
|