ui - remove ui components unecessary for instrument mode (todo > remove leftover padding and gaps)

pull/295/head
Fabian Gonzalez 2025-04-05 22:55:35 -04:00
rodzic 7421d4d59f
commit 11dc609df0
3 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -5,7 +5,9 @@
EffectsComponent::EffectsComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), itemData(p, editor), listBoxModel(listBox, itemData) {
setText("Audio Effects");
#if !defined(MIDI_ALWAYS_ENABLED) || (MIDI_ALWAYS_ENABLED == 0)
addAndMakeVisible(frequency);
#endif
frequency.slider.setSkewFactorFromMidPoint(500.0);
frequency.slider.setTextValueSuffix("Hz");

Wyświetl plik

@ -2,6 +2,7 @@
#include "parser/FileParser.h"
#include "parser/FrameProducer.h"
#include "PluginEditor.h"
#include "MidiAlwaysEnabled.h"
MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
setText("Main Settings");
@ -48,11 +49,12 @@ MainComponent::MainComponent(OscirenderAudioProcessor& p, OscirenderAudioProcess
closeFileButton.setTooltip("Close the currently open file.");
#if !defined(MIDI_ALWAYS_ENABLED) || (MIDI_ALWAYS_ENABLED == 0)
addAndMakeVisible(inputEnabled);
inputEnabled.onClick = [this] {
audioProcessor.inputEnabled->setBoolValueNotifyingHost(!audioProcessor.inputEnabled->getBoolValue());
};
#endif
addAndMakeVisible(fileLabel);
fileLabel.setJustificationType(juce::Justification::centred);
updateFileLabel();

Wyświetl plik

@ -1,10 +1,13 @@
#include "MidiComponent.h"
#include "PluginEditor.h"
#include "MidiAlwaysEnabled.h"
MidiComponent::MidiComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
setText("MIDI Settings");
addAndMakeVisible(midiToggle);
if (!isMidiAlwaysEnabled()) {
addAndMakeVisible(midiToggle);
}
addAndMakeVisible(voicesSlider);
addAndMakeVisible(voicesLabel);
addAndMakeVisible(keyboard);