commit 5db0609033302c1ad40b06fa9f0d60a81066843a
parent bc63782adaf177abeb7d22259d87b92b0d04ca98
Author: keith <kbloemer89@gmail.com>
Date: Wed, 11 Nov 2020 06:30:17 -0600
Added tone label
Diffstat:
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/plugins/SmartAmp/Source/PluginEditor.cpp b/plugins/SmartAmp/Source/PluginEditor.cpp
@@ -33,6 +33,11 @@ WaveNetVaAudioProcessorEditor::WaveNetVaAudioProcessorEditor (WaveNetVaAudioProc
loadButton.setButtonText("Load Tone");
loadButton.addListener(this);
+ addAndMakeVisible(modelLabel);
+ modelLabel.setText("", juce::NotificationType::dontSendNotification);
+ modelLabel.setJustificationType(juce::Justification::left);
+ modelLabel.setColour(juce::Label::textColourId, juce::Colours::black);
+
ampCleanLeadButton.setImages(true, true, true,
ImageCache::getFromMemory(BinaryData::power_switch_up_png, BinaryData::power_switch_up_pngSize), 1.0, Colours::transparentWhite,
Image(), 1.0, Colours::transparentWhite,
@@ -226,7 +231,7 @@ void WaveNetVaAudioProcessorEditor::resized()
// subcomponents in your editor..
loadButton.setBounds(50, 40, 125, 25);
-
+ modelLabel.setBounds(50, 65, 400, 25);
// Amp Widgets
ampPresenceKnob.setBounds(97, 495, 75, 105);
ampCleanBassKnob.setBounds(197, 495, 75, 105);
@@ -254,6 +259,8 @@ void WaveNetVaAudioProcessorEditor::loadButtonClicked()
{
File file = chooser.getResult();
processor.loadConfig(file);
+ juce::String fname = file.getFileName();
+ modelLabel.setText(fname, juce::NotificationType::dontSendNotification);
}
}
@@ -290,6 +297,7 @@ void WaveNetVaAudioProcessorEditor::ampCleanLeadButtonClicked() {
processor.loadConfigAmp();
processor.set_ampEQ(ampLeadBassKnob.getValue(), ampLeadMidKnob.getValue(), ampLeadTrebleKnob.getValue(), ampPresenceKnob.getValue());
}
+ modelLabel.setText("", juce::NotificationType::dontSendNotification);
repaint();
}
diff --git a/plugins/SmartAmp/Source/PluginEditor.h b/plugins/SmartAmp/Source/PluginEditor.h
@@ -60,6 +60,7 @@ private:
int current_background = 1;
TextButton loadButton;
+ Label modelLabel;
virtual void buttonClicked(Button* button) override;
void loadButtonClicked();
virtual void sliderValueChanged(Slider* slider) override;