Oscilloscope 0.5.0
A simple oscilloscope VST
Loading...
Searching...
No Matches
PluginEditor.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file contains the basic framework code for a JUCE plugin editor.
5
6 ==============================================================================
7*/
8
9#pragma once
10
11#include <JuceHeader.h>
12#include "PluginProcessor.h"
16#include "ControlSection.h"
17#include "GuiTransformer.h"
18#include "TriggerListener.h"
19
20//==============================================================================
23class OscilloscopeAudioProcessorEditor : public juce::AudioProcessorEditor
24{
25public:
28
29 //==============================================================================
30 void paint(juce::Graphics &) override;
31 void resized() override;
32
33private:
34 // This reference is provided as a quick way for your editor to
35 // access the processor object that created it.
36 OscilloscopeAudioProcessor &audioProcessor;
37
42 ControlSection controlSection;
43
49 std::unique_ptr<GuiTransformer> guiTransformer;
50
55 std::unique_ptr<TriggerListener> triggerListener;
56
62 std::unique_ptr<OscilloscopeComponent> oscilloscopeComponent;
63
68 float margin_multiplier;
69
70 // GUI animation callbacks
71 void expandCallback();
72 void expansionEndedCallback();
73 void contractCallback();
74 void contractionEndedCallback();
75 void expansionStartedCallback();
76 void contractionStartedCallback();
77
78 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(OscilloscopeAudioProcessorEditor)
79};
void paint(juce::Graphics &) override
Oscilloscope audio processor.