mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Formatting
This commit is contained in:
parent
ff0cb4ad5b
commit
4153d59e39
279 changed files with 1281 additions and 1281 deletions
|
|
@ -344,7 +344,7 @@ void AlertWindow::paint (Graphics& g)
|
|||
|
||||
for (int i = textBoxes.size(); --i >= 0;)
|
||||
{
|
||||
auto* te = textBoxes.getUnchecked(i);
|
||||
auto* te = textBoxes.getUnchecked (i);
|
||||
|
||||
g.drawFittedText (textboxNames[i],
|
||||
te->getX(), te->getY() - 14,
|
||||
|
|
@ -354,7 +354,7 @@ void AlertWindow::paint (Graphics& g)
|
|||
|
||||
for (int i = comboBoxNames.size(); --i >= 0;)
|
||||
{
|
||||
auto* cb = comboBoxes.getUnchecked(i);
|
||||
auto* cb = comboBoxes.getUnchecked (i);
|
||||
|
||||
g.drawFittedText (comboBoxNames[i],
|
||||
cb->getX(), cb->getY() - 14,
|
||||
|
|
@ -556,7 +556,7 @@ bool AlertWindow::keyPressed (const KeyPress& key)
|
|||
|
||||
if (key.isKeyCode (KeyPress::returnKey) && buttons.size() == 1)
|
||||
{
|
||||
buttons.getUnchecked(0)->triggerClick();
|
||||
buttons.getUnchecked (0)->triggerClick();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -589,7 +589,7 @@ void AlertWindow::showMessageBox (MessageBoxIconType iconType,
|
|||
.withIconType (iconType)
|
||||
.withTitle (title)
|
||||
.withMessage (message)
|
||||
.withButton (buttonText.isEmpty() ? TRANS("OK") : buttonText)
|
||||
.withButton (buttonText.isEmpty() ? TRANS ("OK") : buttonText)
|
||||
.withAssociatedComponent (associatedComponent));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ void JUCE_CALLTYPE NativeMessageBox::showMessageBox (MessageBoxIconType iconType
|
|||
showNativeBoxUnmanaged (MessageBoxOptions().withIconType (iconType)
|
||||
.withTitle (title)
|
||||
.withMessage (message)
|
||||
.withButton (TRANS("OK"))
|
||||
.withButton (TRANS ("OK"))
|
||||
.withAssociatedComponent (associatedComponent),
|
||||
nullptr,
|
||||
ResultCodeMappingMode::plainIndex);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ ThreadWithProgressWindow::ThreadWithProgressWindow (const String& title,
|
|||
{
|
||||
alertWindow.reset (LookAndFeel::getDefaultLookAndFeel()
|
||||
.createAlertWindow (title, {},
|
||||
cancelButtonText.isEmpty() ? TRANS("Cancel")
|
||||
cancelButtonText.isEmpty() ? TRANS ("Cancel")
|
||||
: cancelButtonText,
|
||||
{}, {}, MessageBoxIconType::NoIcon, hasCancelButton ? 1 : 0,
|
||||
componentToCentreAround));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue