-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginEditor.h
More file actions
66 lines (44 loc) · 1.8 KB
/
Copy pathPluginEditor.h
File metadata and controls
66 lines (44 loc) · 1.8 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
#include "PluginProcessor.h"
#include "GuiParams.h"
//==============================================================================
/**
*/
class GarageLightsAudioProcessorEditor : public AudioProcessorEditor, public Button::Listener
{
public:
GarageLightsAudioProcessorEditor(GarageLightsAudioProcessor&, AudioProcessorValueTreeState& vts);
~GarageLightsAudioProcessorEditor();
//==============================================================================
void paint (Graphics&) override;
void resized() override;
void buttonClicked(Button* button) override;
typedef AudioProcessorValueTreeState::SliderAttachment SliderAttachment;
private:
void pageChange(int);
void determineConnectionStatus();
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
GarageLightsAudioProcessor& processor;
AudioProcessorValueTreeState& valueTreeState;
GuiParams gp;
MyLookAndFeel myLookAndFeel;
Slider dmxLevelSlider[NUMBER_CHANNELS];
ScopedPointer<SliderAttachment> dmxLevelSliderAttachment[NUMBER_CHANNELS];
TextButton connectUsbButton;
TextButton blackoutButton;
TextButton disconnectButton;
ArrowButton pageRightButton{ "pageRightButton", 0.0f, Colours::white };
ArrowButton pageLeftButton{ "pageLeftButton", 0.5f, Colours::white };
OwnedArray<ShapeButton> colorSelectButtons;
String consoleText;
boolean connectAttempt;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(GarageLightsAudioProcessorEditor)
};