Sprint 1: Add PluginBridgeEditor.h/.cpp — minimal status GUI
Browse files- Source/PluginBridgeEditor.h +25 -0
Source/PluginBridgeEditor.h
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <juce_gui_basics/juce_gui_basics.h>
|
| 4 |
+
#include "PluginBridgeProcessor.h"
|
| 5 |
+
|
| 6 |
+
class PluginBridgeEditor : public juce::AudioProcessorEditor,
|
| 7 |
+
private juce::Timer
|
| 8 |
+
{
|
| 9 |
+
public:
|
| 10 |
+
explicit PluginBridgeEditor(PluginBridgeProcessor&);
|
| 11 |
+
~PluginBridgeEditor() override;
|
| 12 |
+
|
| 13 |
+
void paint(juce::Graphics&) override;
|
| 14 |
+
void resized() override;
|
| 15 |
+
|
| 16 |
+
private:
|
| 17 |
+
void timerCallback() override;
|
| 18 |
+
|
| 19 |
+
PluginBridgeProcessor& processorRef;
|
| 20 |
+
juce::Label titleLabel;
|
| 21 |
+
juce::Label statusLabel;
|
| 22 |
+
juce::Label portLabel;
|
| 23 |
+
|
| 24 |
+
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
|
| 25 |
+
};
|