Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
9a9502f302
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      src/juce_appframework/gui/components/buttons/juce_Button.cpp
  2. +4
    -4
      src/juce_appframework/gui/components/buttons/juce_Button.h

+ 4
- 4
src/juce_appframework/gui/components/buttons/juce_Button.cpp 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!


+ 4
- 4
src/juce_appframework/gui/components/buttons/juce_Button.h 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.


Loading…
Cancel
Save