| @@ -78,7 +78,7 @@ Button::~Button() | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void Button::setButtonText (const String& newText) | |||||
| void Button::setButtonText (const String& newText) throw() | |||||
| { | { | ||||
| if (text != newText) | if (text != newText) | ||||
| { | { | ||||
| @@ -145,7 +145,7 @@ void Button::setToggleState (const bool shouldBeOn, | |||||
| } | } | ||||
| } | } | ||||
| void Button::setClickingTogglesState (const bool shouldToggle) | |||||
| void Button::setClickingTogglesState (const bool shouldToggle) throw() | |||||
| { | { | ||||
| clickTogglesState = shouldToggle; | clickTogglesState = shouldToggle; | ||||
| @@ -333,7 +333,7 @@ void Button::handleCommandMessage (int commandId) | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void Button::addButtonListener (ButtonListener* const newListener) | |||||
| void Button::addButtonListener (ButtonListener* const newListener) throw() | |||||
| { | { | ||||
| jassert (newListener != 0); | jassert (newListener != 0); | ||||
| jassert (! buttonListeners.contains (newListener)); // trying to add a listener to the list twice! | jassert (! buttonListeners.contains (newListener)); // trying to add a listener to the list twice! | ||||
| @@ -342,7 +342,7 @@ void Button::addButtonListener (ButtonListener* const newListener) | |||||
| buttonListeners.add (newListener); | buttonListeners.add (newListener); | ||||
| } | } | ||||
| void Button::removeButtonListener (ButtonListener* const listener) | |||||
| void Button::removeButtonListener (ButtonListener* const listener) throw() | |||||
| { | { | ||||
| jassert (buttonListeners.contains (listener)); // trying to remove a listener that isn't on the list! | jassert (buttonListeners.contains (listener)); // trying to remove a listener that isn't on the list! | ||||
| @@ -95,7 +95,7 @@ public: | |||||
| @see getButtonText | @see getButtonText | ||||
| */ | */ | ||||
| void setButtonText (const String& newText); | |||||
| void setButtonText (const String& newText) throw(); | |||||
| /** Returns the text displayed in the button. | /** Returns the text displayed in the button. | ||||
| @@ -153,7 +153,7 @@ public: | |||||
| If set to true, then before the clicked() callback occurs, the toggle-state | If set to true, then before the clicked() callback occurs, the toggle-state | ||||
| of the button is flipped. | of the button is flipped. | ||||
| */ | */ | ||||
| void setClickingTogglesState (const bool shouldToggle); | |||||
| void setClickingTogglesState (const bool shouldToggle) throw(); | |||||
| /** Returns true if this button is set to be an automatic toggle-button. | /** Returns true if this button is set to be an automatic toggle-button. | ||||
| @@ -194,13 +194,13 @@ public: | |||||
| @see removeButtonListener | @see removeButtonListener | ||||
| */ | */ | ||||
| void addButtonListener (ButtonListener* const newListener); | |||||
| void addButtonListener (ButtonListener* const newListener) throw(); | |||||
| /** Removes a previously-registered button listener | /** Removes a previously-registered button listener | ||||
| @see addButtonListener | @see addButtonListener | ||||
| */ | */ | ||||
| void removeButtonListener (ButtonListener* const listener); | |||||
| void removeButtonListener (ButtonListener* const listener) throw(); | |||||
| //============================================================================== | //============================================================================== | ||||
| /** Causes the button to act as if it's been clicked. | /** Causes the button to act as if it's been clicked. | ||||