-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPluginEditor.h
39 lines (34 loc) · 1.36 KB
/
PluginEditor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "PluginProcessor.h"
#include "JadeLookAndFeel.h"
#include "PresetHandler.h"
#include "Spectrogram.h"
//==============================================================================
class JadeSpectrogramAudioProcessorEditor : public juce::AudioProcessorEditor
{
public:
explicit JadeSpectrogramAudioProcessorEditor (JadeSpectrogramAudioProcessor&);
~JadeSpectrogramAudioProcessorEditor() override;
//==============================================================================
void paint (juce::Graphics&) override;
void resized() override;
bool getRunningStatus(){return m_processorRef.getRunningStatus();};
void setFFTSize(int fftsize){m_processorRef.setFFTSize(fftsize);};
void mouseDown (const MouseEvent& event);
private:
JadeLookAndFeel m_jadeLAF;
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
JadeSpectrogramAudioProcessor& m_processorRef;
PresetComponent m_presetGUI;
#if WITH_MIDIKEYBOARD
MidiKeyboardComponent m_keyboard;
#endif
// plugin specific components
SpectrogramComponent m_spec;
Image m_TitleImage;
Image m_JadeLogo;
Image m_AboutBox;
bool m_aboutboxvisible;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JadeSpectrogramAudioProcessorEditor)
};