1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00
This commit is contained in:
jules 2007-06-19 19:50:19 +00:00
parent c762fb243f
commit 9a9502f302
2 changed files with 8 additions and 8 deletions

View file

@ -78,7 +78,7 @@ Button::~Button()
}
//==============================================================================
void Button::setButtonText (const String& newText)
void Button::setButtonText (const String& newText) throw()
{
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;
@ -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 (! 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);
}
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!

View file

@ -95,7 +95,7 @@ public:
@see getButtonText
*/
void setButtonText (const String& newText);
void setButtonText (const String& newText) throw();
/** 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
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.
@ -194,13 +194,13 @@ public:
@see removeButtonListener
*/
void addButtonListener (ButtonListener* const newListener);
void addButtonListener (ButtonListener* const newListener) throw();
/** Removes a previously-registered button listener
@see addButtonListener
*/
void removeButtonListener (ButtonListener* const listener);
void removeButtonListener (ButtonListener* const listener) throw();
//==============================================================================
/** Causes the button to act as if it's been clicked.