| @@ -206,7 +206,7 @@ bool Value::operator!= (const Value& other) const | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void Value::addListener (ValueListener* const listener) | |||||
| void Value::addListener (Value::Listener* listener) | |||||
| { | { | ||||
| if (listener != nullptr) | if (listener != nullptr) | ||||
| { | { | ||||
| @@ -217,7 +217,7 @@ void Value::addListener (ValueListener* const listener) | |||||
| } | } | ||||
| } | } | ||||
| void Value::removeListener (ValueListener* const listener) | |||||
| void Value::removeListener (Value::Listener* listener) | |||||
| { | { | ||||
| listeners.remove (listener); | listeners.remove (listener); | ||||
| @@ -230,7 +230,7 @@ void Value::callListeners() | |||||
| if (listeners.size() > 0) | if (listeners.size() > 0) | ||||
| { | { | ||||
| Value v (*this); // (create a copy in case this gets deleted by a callback) | Value v (*this); // (create a copy in case this gets deleted by a callback) | ||||
| listeners.call ([&] (ValueListener& l) { l.valueChanged (v); }); | |||||
| listeners.call ([&] (Value::Listener& l) { l.valueChanged (v); }); | |||||
| } | } | ||||
| } | } | ||||
| @@ -237,7 +237,5 @@ private: | |||||
| /** Writes a Value to an OutputStream as a UTF8 string. */ | /** Writes a Value to an OutputStream as a UTF8 string. */ | ||||
| OutputStream& JUCE_CALLTYPE operator<< (OutputStream&, const Value&); | OutputStream& JUCE_CALLTYPE operator<< (OutputStream&, const Value&); | ||||
| /** This typedef is just for compatibility with old code - newer code should use the Value::Listener class directly. */ | |||||
| typedef Value::Listener ValueListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -514,9 +514,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Button) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Button) | ||||
| }; | }; | ||||
| #ifndef DOXYGEN | |||||
| /** This typedef is just for compatibility with old code and VC6 - newer code should use Button::Listener instead. */ | |||||
| typedef Button::Listener ButtonListener; | |||||
| #endif | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -427,7 +427,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ScrollBar) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ScrollBar) | ||||
| }; | }; | ||||
| /** This typedef is just for compatibility with old code - newer code should use the ScrollBar::Listener class directly. */ | |||||
| typedef ScrollBar::Listener ScrollBarListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -187,7 +187,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MenuBarModel) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MenuBarModel) | ||||
| }; | }; | ||||
| /** This typedef is just for compatibility with old code - newer code should use the MenuBarModel::Listener class directly. */ | |||||
| typedef MenuBarModel::Listener MenuBarModelListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -32,7 +32,7 @@ class TextPropertyComponent::LabelComp : public Label, | |||||
| { | { | ||||
| public: | public: | ||||
| LabelComp (TextPropertyComponent& tpc, int charLimit, bool multiline, bool editable) | LabelComp (TextPropertyComponent& tpc, int charLimit, bool multiline, bool editable) | ||||
| : Label (String(), String()), | |||||
| : Label ({}, {}), | |||||
| owner (tpc), | owner (tpc), | ||||
| maxChars (charLimit), | maxChars (charLimit), | ||||
| isMultiline (multiline) | isMultiline (multiline) | ||||
| @@ -159,15 +159,8 @@ void TextPropertyComponent::textWasEdited() | |||||
| callListeners(); | callListeners(); | ||||
| } | } | ||||
| void TextPropertyComponent::addListener (TextPropertyComponentListener* const listener) | |||||
| { | |||||
| listenerList.add (listener); | |||||
| } | |||||
| void TextPropertyComponent::removeListener (TextPropertyComponentListener* const listener) | |||||
| { | |||||
| listenerList.remove (listener); | |||||
| } | |||||
| void TextPropertyComponent::addListener (TextPropertyComponent::Listener* l) { listenerList.add (l); } | |||||
| void TextPropertyComponent::removeListener (TextPropertyComponent::Listener* l) { listenerList.remove (l); } | |||||
| void TextPropertyComponent::callListeners() | void TextPropertyComponent::callListeners() | ||||
| { | { | ||||
| @@ -156,9 +156,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TextPropertyComponent) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TextPropertyComponent) | ||||
| }; | }; | ||||
| #ifndef DOXYGEN | |||||
| /** This typedef is just for compatibility with old code and VC6 - newer code should use TextPropertyComponent::Listener instead. */ | |||||
| typedef TextPropertyComponent::Listener TextPropertyComponentListener; | |||||
| #endif | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -623,8 +623,8 @@ void ComboBox::setScrollWheelEnabled (bool enabled) noexcept | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void ComboBox::addListener (ComboBoxListener* listener) { listeners.add (listener); } | |||||
| void ComboBox::removeListener (ComboBoxListener* listener) { listeners.remove (listener); } | |||||
| void ComboBox::addListener (ComboBox::Listener* l) { listeners.add (l); } | |||||
| void ComboBox::removeListener (ComboBox::Listener* l) { listeners.remove (l); } | |||||
| void ComboBox::handleAsyncUpdate() | void ComboBox::handleAsyncUpdate() | ||||
| { | { | ||||
| @@ -447,7 +447,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ComboBox) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ComboBox) | ||||
| }; | }; | ||||
| /** This typedef is just for compatibility with old code - newer code should use the ComboBox::Listener class directly. */ | |||||
| typedef ComboBox::Listener ComboBoxListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -190,7 +190,7 @@ void Label::textWasChanged() {} | |||||
| void Label::editorShown (TextEditor* textEditor) | void Label::editorShown (TextEditor* textEditor) | ||||
| { | { | ||||
| Component::BailOutChecker checker (this); | Component::BailOutChecker checker (this); | ||||
| listeners.callChecked (checker, [this, textEditor] (LabelListener& l) { l.editorShown (this, *textEditor); }); | |||||
| listeners.callChecked (checker, [this, textEditor] (Label::Listener& l) { l.editorShown (this, *textEditor); }); | |||||
| } | } | ||||
| void Label::editorAboutToBeHidden (TextEditor* textEditor) | void Label::editorAboutToBeHidden (TextEditor* textEditor) | ||||
| @@ -199,7 +199,7 @@ void Label::editorAboutToBeHidden (TextEditor* textEditor) | |||||
| peer->dismissPendingTextInput(); | peer->dismissPendingTextInput(); | ||||
| Component::BailOutChecker checker (this); | Component::BailOutChecker checker (this); | ||||
| listeners.callChecked (checker, [this, textEditor] (LabelListener& l) { l.editorHidden (this, *textEditor); }); | |||||
| listeners.callChecked (checker, [this, textEditor] (Label::Listener& l) { l.editorHidden (this, *textEditor); }); | |||||
| } | } | ||||
| void Label::showEditor() | void Label::showEditor() | ||||
| @@ -395,15 +395,8 @@ KeyboardFocusTraverser* Label::createFocusTraverser() | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void Label::addListener (LabelListener* listener) | |||||
| { | |||||
| listeners.add (listener); | |||||
| } | |||||
| void Label::removeListener (LabelListener* listener) | |||||
| { | |||||
| listeners.remove (listener); | |||||
| } | |||||
| void Label::addListener (Label::Listener* l) { listeners.add (l); } | |||||
| void Label::removeListener (Label::Listener* l) { listeners.remove (l); } | |||||
| void Label::callChangeListeners() | void Label::callChangeListeners() | ||||
| { | { | ||||
| @@ -349,7 +349,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Label) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Label) | ||||
| }; | }; | ||||
| /** This typedef is just for compatibility with old code - newer code should use the Label::Listener class directly. */ | |||||
| typedef Label::Listener LabelListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -960,7 +960,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Slider) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Slider) | ||||
| }; | }; | ||||
| /** This typedef is just for compatibility with old code - newer code should use the Slider::Listener class directly. */ | |||||
| typedef Slider::Listener SliderListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -453,7 +453,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TableHeaderComponent) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TableHeaderComponent) | ||||
| }; | }; | ||||
| /** This typedef is just for compatibility with old code - newer code should use the TableHeaderComponent::Listener class directly. */ | |||||
| typedef TableHeaderComponent::Listener TableHeaderListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -770,7 +770,5 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TextEditor) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TextEditor) | ||||
| }; | }; | ||||
| /** This typedef is just for compatibility with old code - newer code should use the TextEditor::Listener class directly. */ | |||||
| typedef TextEditor::Listener TextEditorListener; | |||||
| } // namespace juce | } // namespace juce | ||||
| @@ -159,11 +159,6 @@ private: | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CameraDevice) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CameraDevice) | ||||
| }; | }; | ||||
| #ifndef DOXYGEN | |||||
| /** This typedef is just for compatibility with VC6 - newer code should use the CameraDevice::Listener class directly. */ | |||||
| typedef CameraDevice::Listener CameraImageListener; | |||||
| #endif | |||||
| #endif | #endif | ||||
| } // namespace juce | } // namespace juce | ||||