1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Projucer: Added a company copyright field to the project settings

This commit is contained in:
ed 2017-10-04 11:18:20 +01:00
parent 758351a28f
commit bffc53b336
5 changed files with 10 additions and 1 deletions

View file

@ -148,6 +148,9 @@ void Project::setMissingDefaultValues()
if (! projectRoot.hasProperty (Ids::cppLanguageStandard) && ! setCppVersionFromOldExporterSettings())
getCppStandardValue() = "11";
if (getCompanyCopyright().toString().isEmpty())
getCompanyCopyright() = getCompanyName().toString();
ProjucerApplication::getApp().updateNewlyOpenedProject (*this);
}
@ -629,6 +632,9 @@ void Project::createPropertyEditors (PropertyListBuilder& props)
props.add (new TextPropertyComponent (getCompanyName(), "Company Name", 256, false),
"Your company name, which will be added to the properties of the binary where possible");
props.add (new TextPropertyComponent (getCompanyCopyright(), "Company Copyright", 256, false),
"Your company copyright, which will be added to the properties of the binary where possible");
props.add (new TextPropertyComponent (getCompanyWebsite(), "Company Website", 256, false),
"Your company website, which will be added to the properties of the binary where possible");

View file

@ -93,6 +93,7 @@ public:
String getDefaultAAXIdentifier() { return getDefaultBundleIdentifier(); }
Value getCompanyName() { return getProjectValue (Ids::companyName); }
Value getCompanyCopyright() { return getProjectValue (Ids::companyCopyright); }
Value getCompanyWebsite() { return getProjectValue (Ids::companyWebsite); }
Value getCompanyEmail() { return getProjectValue (Ids::companyEmail); }

View file

@ -1677,6 +1677,7 @@ protected:
<< " BEGIN" << newLine;
writeRCValue (mo, "CompanyName", project.getCompanyName().toString());
writeRCValue (mo, "LegalCopyright", project.getCompanyCopyright().toString());
writeRCValue (mo, "FileDescription", project.getTitle());
writeRCValue (mo, "FileVersion", version);
writeRCValue (mo, "ProductName", project.getTitle());

View file

@ -1174,7 +1174,7 @@ public:
addPlistDictionaryKey (dict, "CFBundleSignature", xcodeBundleSignature);
addPlistDictionaryKey (dict, "CFBundleShortVersionString", owner.project.getVersionString());
addPlistDictionaryKey (dict, "CFBundleVersion", owner.project.getVersionString());
addPlistDictionaryKey (dict, "NSHumanReadableCopyright", owner.project.getCompanyName().toString());
addPlistDictionaryKey (dict, "NSHumanReadableCopyright", owner.project.getCompanyCopyright().toString());
addPlistDictionaryKeyBool (dict, "NSHighResolutionCapable", true);
StringArray documentExtensions;

View file

@ -45,6 +45,7 @@ namespace Ids
DECLARE_ID (info);
DECLARE_ID (description);
DECLARE_ID (companyName);
DECLARE_ID (companyCopyright);
DECLARE_ID (companyWebsite);
DECLARE_ID (companyEmail);
DECLARE_ID (displaySplashScreen);