mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Minor additions to AlertWindow, tweak for 64-bit Atomics, minor clean-ups. Jucer development.
This commit is contained in:
parent
9ec78100e0
commit
87e416a278
34 changed files with 412 additions and 121 deletions
|
|
@ -192,6 +192,20 @@ int AlertWindow::getNumButtons() const
|
|||
return buttons.size();
|
||||
}
|
||||
|
||||
void AlertWindow::triggerButtonClick (const String& buttonName)
|
||||
{
|
||||
for (int i = buttons.size(); --i >= 0;)
|
||||
{
|
||||
TextButton* const b = (TextButton*) buttons[i];
|
||||
|
||||
if (buttonName == b->getName())
|
||||
{
|
||||
b->triggerClick();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void AlertWindow::addTextEditor (const String& name,
|
||||
const String& initialContents,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue