-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPluginEditor.h
27 lines (21 loc) · 894 Bytes
/
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
#pragma once
#include "PluginProcessor.h"
//==============================================================================
class NeuralProcessorEditor : public juce::GenericAudioProcessorEditor
{
public:
explicit NeuralProcessorEditor (NeuralProcessor&);
~NeuralProcessorEditor() override;
//==============================================================================
void paint (juce::Graphics&) override;
void resized() override;
void loadCheckpoint();
private:
void loadModel(const nlohmann::json&);
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
NeuralProcessor& processorRef;
std::unique_ptr<juce::FileChooser> chooser;
std::unique_ptr<juce::TextButton> button;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NeuralProcessorEditor)
};