2023-08-29 19:47:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <JuceHeader.h>
|
|
|
|
#include "PluginProcessor.h"
|
|
|
|
#include "MainComponent.h"
|
|
|
|
#include "LuaComponent.h"
|
2024-01-17 01:26:07 +00:00
|
|
|
#include "PerspectiveComponent.h"
|
2023-08-29 19:47:13 +00:00
|
|
|
#include "TxtComponent.h"
|
|
|
|
#include "EffectsComponent.h"
|
2023-12-18 13:41:56 +00:00
|
|
|
#include "MidiComponent.h"
|
2023-08-29 19:47:13 +00:00
|
|
|
|
|
|
|
class OscirenderAudioProcessorEditor;
|
|
|
|
class SettingsComponent : public juce::Component {
|
|
|
|
public:
|
|
|
|
SettingsComponent(OscirenderAudioProcessor&, OscirenderAudioProcessorEditor&);
|
|
|
|
|
|
|
|
void resized() override;
|
|
|
|
void fileUpdated(juce::String fileName);
|
|
|
|
void update();
|
2023-12-18 13:41:56 +00:00
|
|
|
void mouseMove(const juce::MouseEvent& event) override;
|
|
|
|
void mouseDown(const juce::MouseEvent& event) override;
|
2023-08-29 19:47:13 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
OscirenderAudioProcessor& audioProcessor;
|
|
|
|
OscirenderAudioProcessorEditor& pluginEditor;
|
|
|
|
|
|
|
|
MainComponent main{audioProcessor, pluginEditor};
|
2024-01-17 01:26:07 +00:00
|
|
|
PerspectiveComponent perspective{audioProcessor, pluginEditor};
|
2023-08-29 19:47:13 +00:00
|
|
|
TxtComponent txt{audioProcessor, pluginEditor};
|
|
|
|
EffectsComponent effects{audioProcessor, pluginEditor};
|
2023-12-18 13:41:56 +00:00
|
|
|
MidiComponent midi{audioProcessor, pluginEditor};
|
2023-08-29 19:47:13 +00:00
|
|
|
|
2023-12-18 13:41:56 +00:00
|
|
|
juce::StretchableLayoutManager midiLayout;
|
|
|
|
juce::StretchableLayoutResizerBar midiResizerBar{&midiLayout, 1, false};
|
|
|
|
juce::StretchableLayoutManager mainLayout;
|
|
|
|
juce::StretchableLayoutResizerBar mainResizerBar{&mainLayout, 1, true};
|
2024-02-12 22:33:06 +00:00
|
|
|
|
|
|
|
juce::Component* toggleComponents[1] = { &midi };
|
|
|
|
juce::StretchableLayoutManager* toggleLayouts[1] = { &midiLayout };
|
|
|
|
double prefSizes[1] = { 300 };
|
2024-01-17 01:26:07 +00:00
|
|
|
|
2023-08-29 19:47:13 +00:00
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(SettingsComponent)
|
|
|
|
};
|