diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 2abe343..c76edec 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -12,7 +12,7 @@ #include "PluginEditor.h" //============================================================================== -LazarusAudioProcessorEditor::LazarusAudioProcessorEditor (JuicySFAudioProcessor& p) +JuicySFAudioProcessorEditor::JuicySFAudioProcessorEditor (JuicySFAudioProcessor& p) : AudioProcessorEditor (&p), processor (p), midiKeyboard (p.keyboardState, SurjectiveMidiKeyboardComponent::horizontalKeyboard), @@ -37,12 +37,12 @@ LazarusAudioProcessorEditor::LazarusAudioProcessorEditor (JuicySFAudioProcessor& addAndMakeVisible(filePicker); } -LazarusAudioProcessorEditor::~LazarusAudioProcessorEditor() +JuicySFAudioProcessorEditor::~JuicySFAudioProcessorEditor() { } //============================================================================== -void LazarusAudioProcessorEditor::paint (Graphics& g) +void JuicySFAudioProcessorEditor::paint (Graphics& g) { // (Our component is opaque, so we must completely fill the background with a solid colour) g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId)); @@ -61,7 +61,7 @@ void LazarusAudioProcessorEditor::paint (Graphics& g) } } -void LazarusAudioProcessorEditor::resized() +void JuicySFAudioProcessorEditor::resized() { const int padding = 8; const int pianoHeight = 70; @@ -86,7 +86,7 @@ void LazarusAudioProcessorEditor::resized() processor.setLastUIHeight(getHeight()); } -bool LazarusAudioProcessorEditor::keyPressed(const KeyPress &key) { +bool JuicySFAudioProcessorEditor::keyPressed(const KeyPress &key) { // if (!hasKeyboardFocus(false)) // return false; // if (key.getKeyCode() == KeyPress::upKey){ @@ -113,7 +113,7 @@ bool LazarusAudioProcessorEditor::keyPressed(const KeyPress &key) { return false; } -bool LazarusAudioProcessorEditor::keyStateChanged (bool isKeyDown) { +bool JuicySFAudioProcessorEditor::keyStateChanged (bool isKeyDown) { return midiKeyboard.keyStateChanged(isKeyDown); // for(auto childComponent : getChildren()) { // if (childComponent->keyStateChanged(isKeyDown)) return true; diff --git a/Source/PluginEditor.h b/Source/PluginEditor.h index 4949512..d855481 100644 --- a/Source/PluginEditor.h +++ b/Source/PluginEditor.h @@ -19,11 +19,11 @@ //============================================================================== /** */ -class LazarusAudioProcessorEditor : public AudioProcessorEditor +class JuicySFAudioProcessorEditor : public AudioProcessorEditor { public: - LazarusAudioProcessorEditor (JuicySFAudioProcessor&); - ~LazarusAudioProcessorEditor(); + JuicySFAudioProcessorEditor (JuicySFAudioProcessor&); + ~JuicySFAudioProcessorEditor(); //============================================================================== void paint (Graphics&) override; @@ -43,5 +43,5 @@ private: bool focusInitialized; - JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LazarusAudioProcessorEditor) + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JuicySFAudioProcessorEditor) }; diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 5e37aae..3cdadf4 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -174,7 +174,7 @@ bool JuicySFAudioProcessor::hasEditor() const AudioProcessorEditor* JuicySFAudioProcessor::createEditor() { - return new LazarusAudioProcessorEditor (*this); + return new JuicySFAudioProcessorEditor (*this); } //==============================================================================