1
0
Fork 0
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:
Julian Storer 2010-05-07 15:07:47 +01:00
parent 9ec78100e0
commit 87e416a278
34 changed files with 412 additions and 121 deletions

View file

@ -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,