rename editor

This commit is contained in:
Alex Birch 2018-02-27 23:34:22 +00:00
parent f89da1834c
commit 289ddff4da
No known key found for this signature in database
GPG Key ID: 305EB1F98D44ACBA
3 changed files with 11 additions and 11 deletions

View File

@ -12,7 +12,7 @@
#include "PluginEditor.h" #include "PluginEditor.h"
//============================================================================== //==============================================================================
LazarusAudioProcessorEditor::LazarusAudioProcessorEditor (JuicySFAudioProcessor& p) JuicySFAudioProcessorEditor::JuicySFAudioProcessorEditor (JuicySFAudioProcessor& p)
: AudioProcessorEditor (&p), : AudioProcessorEditor (&p),
processor (p), processor (p),
midiKeyboard (p.keyboardState, SurjectiveMidiKeyboardComponent::horizontalKeyboard), midiKeyboard (p.keyboardState, SurjectiveMidiKeyboardComponent::horizontalKeyboard),
@ -37,12 +37,12 @@ LazarusAudioProcessorEditor::LazarusAudioProcessorEditor (JuicySFAudioProcessor&
addAndMakeVisible(filePicker); 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) // (Our component is opaque, so we must completely fill the background with a solid colour)
g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId)); 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 padding = 8;
const int pianoHeight = 70; const int pianoHeight = 70;
@ -86,7 +86,7 @@ void LazarusAudioProcessorEditor::resized()
processor.setLastUIHeight(getHeight()); processor.setLastUIHeight(getHeight());
} }
bool LazarusAudioProcessorEditor::keyPressed(const KeyPress &key) { bool JuicySFAudioProcessorEditor::keyPressed(const KeyPress &key) {
// if (!hasKeyboardFocus(false)) // if (!hasKeyboardFocus(false))
// return false; // return false;
// if (key.getKeyCode() == KeyPress::upKey){ // if (key.getKeyCode() == KeyPress::upKey){
@ -113,7 +113,7 @@ bool LazarusAudioProcessorEditor::keyPressed(const KeyPress &key) {
return false; return false;
} }
bool LazarusAudioProcessorEditor::keyStateChanged (bool isKeyDown) { bool JuicySFAudioProcessorEditor::keyStateChanged (bool isKeyDown) {
return midiKeyboard.keyStateChanged(isKeyDown); return midiKeyboard.keyStateChanged(isKeyDown);
// for(auto childComponent : getChildren()) { // for(auto childComponent : getChildren()) {
// if (childComponent->keyStateChanged(isKeyDown)) return true; // if (childComponent->keyStateChanged(isKeyDown)) return true;

View File

@ -19,11 +19,11 @@
//============================================================================== //==============================================================================
/** /**
*/ */
class LazarusAudioProcessorEditor : public AudioProcessorEditor class JuicySFAudioProcessorEditor : public AudioProcessorEditor
{ {
public: public:
LazarusAudioProcessorEditor (JuicySFAudioProcessor&); JuicySFAudioProcessorEditor (JuicySFAudioProcessor&);
~LazarusAudioProcessorEditor(); ~JuicySFAudioProcessorEditor();
//============================================================================== //==============================================================================
void paint (Graphics&) override; void paint (Graphics&) override;
@ -43,5 +43,5 @@ private:
bool focusInitialized; bool focusInitialized;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LazarusAudioProcessorEditor) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JuicySFAudioProcessorEditor)
}; };

View File

@ -174,7 +174,7 @@ bool JuicySFAudioProcessor::hasEditor() const
AudioProcessorEditor* JuicySFAudioProcessor::createEditor() AudioProcessorEditor* JuicySFAudioProcessor::createEditor()
{ {
return new LazarusAudioProcessorEditor (*this); return new JuicySFAudioProcessorEditor (*this);
} }
//============================================================================== //==============================================================================