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
|
|
@ -73,7 +73,7 @@ struct OnlineUnlockForm::OverlayComp : public Component,
|
|||
g.setColour (Colours::black);
|
||||
g.setFont (15.0f);
|
||||
|
||||
g.drawFittedText (TRANS("Contacting XYZ...").replace ("XYZ", form.status.getWebsiteName()),
|
||||
g.drawFittedText (TRANS ("Contacting XYZ...").replace ("XYZ", form.status.getWebsiteName()),
|
||||
getLocalBounds().reduced (20, 0).removeFromTop (proportionOfHeight (0.6f)),
|
||||
Justification::centred, 5);
|
||||
}
|
||||
|
|
@ -170,7 +170,7 @@ OnlineUnlockForm::OnlineUnlockForm (OnlineUnlockStatus& s,
|
|||
bool overlayHasCancelButton)
|
||||
: message (String(), userInstructions),
|
||||
passwordBox (String(), getDefaultPasswordChar()),
|
||||
registerButton (TRANS("Register")),
|
||||
registerButton (TRANS ("Register")),
|
||||
cancelButton (TRANS ("Cancel")),
|
||||
status (s),
|
||||
showOverlayCancelButton (overlayHasCancelButton)
|
||||
|
|
@ -267,8 +267,8 @@ void OnlineUnlockForm::lookAndFeelChanged()
|
|||
{
|
||||
Colour labelCol (findColour (TextEditor::backgroundColourId).contrasting (0.5f));
|
||||
|
||||
emailBox.setTextToShowWhenEmpty (TRANS("Email Address"), labelCol);
|
||||
passwordBox.setTextToShowWhenEmpty (TRANS("Password"), labelCol);
|
||||
emailBox.setTextToShowWhenEmpty (TRANS ("Email Address"), labelCol);
|
||||
passwordBox.setTextToShowWhenEmpty (TRANS ("Password"), labelCol);
|
||||
}
|
||||
|
||||
void OnlineUnlockForm::showBubbleMessage (const String& text, Component& target)
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ struct KeyFileUtils
|
|||
xml = parseXML (mb.toString());
|
||||
}
|
||||
|
||||
return xml != nullptr ? *xml : XmlElement("key");
|
||||
return xml != nullptr ? *xml : XmlElement ("key");
|
||||
}
|
||||
|
||||
static XmlElement getXmlFromKeyFile (String keyFileText, RSAKey rsaPublicKey)
|
||||
|
|
@ -461,17 +461,17 @@ OnlineUnlockStatus::UnlockResult OnlineUnlockStatus::handleFailedConnection()
|
|||
|
||||
String OnlineUnlockStatus::getMessageForConnectionFailure (bool isInternetConnectionWorking)
|
||||
{
|
||||
String message = TRANS("Couldn't connect to XYZ").replace ("XYZ", getWebsiteName()) + "...\n\n";
|
||||
String message = TRANS ("Couldn't connect to XYZ").replace ("XYZ", getWebsiteName()) + "...\n\n";
|
||||
|
||||
if (isInternetConnectionWorking)
|
||||
message << TRANS("Your internet connection seems to be OK, but our webserver "
|
||||
"didn't respond... This is most likely a temporary problem, so try "
|
||||
"again in a few minutes, but if it persists, please contact us for support!");
|
||||
message << TRANS ("Your internet connection seems to be OK, but our webserver "
|
||||
"didn't respond... This is most likely a temporary problem, so try "
|
||||
"again in a few minutes, but if it persists, please contact us for support!");
|
||||
else
|
||||
message << TRANS("No internet sites seem to be accessible from your computer.. Before trying again, "
|
||||
"please check that your network is working correctly, and make sure "
|
||||
"that any firewall/security software installed on your machine isn't "
|
||||
"blocking your web connection.");
|
||||
message << TRANS ("No internet sites seem to be accessible from your computer.. Before trying again, "
|
||||
"please check that your network is working correctly, and make sure "
|
||||
"that any firewall/security software installed on your machine isn't "
|
||||
"blocking your web connection.");
|
||||
|
||||
return message;
|
||||
}
|
||||
|
|
@ -479,7 +479,7 @@ String OnlineUnlockStatus::getMessageForConnectionFailure (bool isInternetConnec
|
|||
String OnlineUnlockStatus::getMessageForUnexpectedReply()
|
||||
{
|
||||
return TRANS ("Unexpected or corrupted reply from XYZ").replace ("XYZ", getWebsiteName()) + "...\n\n"
|
||||
+ TRANS("Please try again in a few minutes, and contact us for support if this message appears again.");
|
||||
+ TRANS ("Please try again in a few minutes, and contact us for support if this message appears again.");
|
||||
}
|
||||
|
||||
OnlineUnlockStatus::UnlockResult OnlineUnlockStatus::attemptWebserverUnlock (const String& email,
|
||||
|
|
|
|||
|
|
@ -935,7 +935,7 @@ private:
|
|||
|
||||
auto* env = getEnv();
|
||||
|
||||
if (env->CallIntMethod(purchase, AndroidPurchase.getPurchaseState) != 1 /* PURCHASED */)
|
||||
if (env->CallIntMethod (purchase, AndroidPurchase.getPurchaseState) != 1 /* PURCHASED */)
|
||||
return {};
|
||||
|
||||
return { juceString (LocalRef<jstring> { (jstring) env->CallObjectMethod (purchase, AndroidPurchase.getOrderId) }),
|
||||
|
|
@ -1058,7 +1058,7 @@ private:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_WEAK_REFERENCEABLE(Pimpl)
|
||||
JUCE_DECLARE_WEAK_REFERENCEABLE (Pimpl)
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Pimpl)
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -600,7 +600,7 @@ struct InAppPurchases::Pimpl
|
|||
NSMutableArray<SKDownload*>* skDownloads = [NSMutableArray arrayWithCapacity: (NSUInteger) downloads.size()];
|
||||
|
||||
for (const auto& d : downloads)
|
||||
if (auto impl = dynamic_cast<DownloadImpl*>(d))
|
||||
if (auto impl = dynamic_cast<DownloadImpl*> (d))
|
||||
[skDownloads addObject: impl->download];
|
||||
|
||||
return skDownloads;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue