| @@ -353,7 +353,7 @@ public: | |||||
| ~EditorCompWrapper() | ~EditorCompWrapper() | ||||
| { | { | ||||
| removeChildComponent (editorComp); | |||||
| removeChildComponent (getEditor()); | |||||
| #if JUCE_WINDOWS && ! JucePlugin_EditorRequiresKeyboardFocus | #if JUCE_WINDOWS && ! JucePlugin_EditorRequiresKeyboardFocus | ||||
| Desktop::getInstance().removeFocusChangeListener (this); | Desktop::getInstance().removeFocusChangeListener (this); | ||||
| @@ -364,16 +364,14 @@ public: | |||||
| #endif | #endif | ||||
| } | } | ||||
| void paint (Graphics&) | |||||
| { | |||||
| } | |||||
| void paint (Graphics&) {} | |||||
| void resized() | void resized() | ||||
| { | { | ||||
| juce::Component* const c = getChildComponent (0); | |||||
| juce::Component* const ed = getEditor(); | |||||
| if (c != nullptr) | |||||
| c->setBounds (0, 0, getWidth(), getHeight()); | |||||
| if (ed != nullptr) | |||||
| ed->setBounds (getLocalBounds()); | |||||
| repaint(); | repaint(); | ||||
| } | } | ||||
| @@ -399,9 +397,7 @@ public: | |||||
| owner->updateSize(); | owner->updateSize(); | ||||
| } | } | ||||
| void userTriedToCloseWindow() | |||||
| { | |||||
| } | |||||
| void userTriedToCloseWindow() {} | |||||
| #if JUCE_MAC && JucePlugin_EditorRequiresKeyboardFocus | #if JUCE_MAC && JucePlugin_EditorRequiresKeyboardFocus | ||||
| bool keyPressed (const KeyPress& kp) | bool keyPressed (const KeyPress& kp) | ||||
| @@ -419,6 +415,8 @@ public: | |||||
| JuceCustomUIView* const owner; | JuceCustomUIView* const owner; | ||||
| int titleW, titleH; | int titleW, titleH; | ||||
| Component* getEditor() const { return getChildComponent (0); } | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EditorCompWrapper); | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EditorCompWrapper); | ||||
| }; | }; | ||||
| }; | }; | ||||