-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginEditor.h
More file actions
38 lines (31 loc) · 1.34 KB
/
PluginEditor.h
File metadata and controls
38 lines (31 loc) · 1.34 KB
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
#pragma once
#include <JuceHeader.h>
#include "PluginProcessor.h"
#include "CustomLookAndFeel.h"
//==============================================================================
/**
*/
class BaxterAudioProcessorEditor : public juce::AudioProcessorEditor
{
public:
// Change the type of customLookAndFeel to match your CustomLookAndFeel class
std::unique_ptr<CustomLookAndFeel> customLookAndFeel;
BaxterAudioProcessorEditor (BaxterAudioProcessor&);
~BaxterAudioProcessorEditor() override;
//==============================================================================
void paint (juce::Graphics&) override;
void resized() override;
private:
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
BaxterAudioProcessor& audioProcessor;
// Add a slider (knob) and a label
juce::Slider fuzzAmountSlider;
juce::Label fuzzAmountLabel;
std::unique_ptr<juce::Drawable> dogDrawable;
std::unique_ptr<juce::Drawable> knobDrawable;
// Declare customLookAndFeel and fuzzAmountAttachment
std::unique_ptr<CustomLookAndFeel> customLookAndFeel;
std::unique_ptr<juce::AudioProcessorValueTreeState::SliderAttachment> fuzzAmountAttachment;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BaxterAudioProcessorEditor)
};