mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
Couple of minor tweaks, and a fix for menu bars.
This commit is contained in:
parent
d508109296
commit
acbfe6c645
10 changed files with 82 additions and 36 deletions
|
|
@ -226,13 +226,19 @@ void AlertWindow::addTextEditor (const String& name,
|
|||
updateLayout (false);
|
||||
}
|
||||
|
||||
const String AlertWindow::getTextEditorContents (const String& nameOfTextEditor) const
|
||||
TextEditor* AlertWindow::getTextEditor (const String& nameOfTextEditor) const
|
||||
{
|
||||
for (int i = textBoxes.size(); --i >= 0;)
|
||||
if (((TextEditor*)textBoxes[i])->getName() == nameOfTextEditor)
|
||||
return ((TextEditor*)textBoxes[i])->getText();
|
||||
if (static_cast <TextEditor*> (textBoxes.getUnchecked(i))->getName() == nameOfTextEditor)
|
||||
return static_cast <TextEditor*> (textBoxes.getUnchecked(i));
|
||||
|
||||
return String::empty;
|
||||
return 0;
|
||||
}
|
||||
|
||||
const String AlertWindow::getTextEditorContents (const String& nameOfTextEditor) const
|
||||
{
|
||||
TextEditor* const t = getTextEditor (nameOfTextEditor);
|
||||
return t != 0 ? t->getText() : String::empty;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue