mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Make the source code editor respect line endings when loading and saving a file and add an option to set the preferred line feed for a project
This commit is contained in:
parent
7b09d14695
commit
b8a4e00cb4
11 changed files with 96 additions and 56 deletions
|
|
@ -200,6 +200,8 @@ void Project::initialiseProjectValues()
|
|||
if (projectUIDValue.isUsingDefault())
|
||||
projectUIDValue = projectUIDValue.getDefault();
|
||||
|
||||
projectLineFeedValue.referTo (projectRoot, Ids::projectLineFeed, getUndoManager(), "\r\n");
|
||||
|
||||
companyNameValue.referTo (projectRoot, Ids::companyName, getUndoManager());
|
||||
companyCopyrightValue.referTo (projectRoot, Ids::companyCopyright, getUndoManager());
|
||||
companyWebsiteValue.referTo (projectRoot, Ids::companyWebsite, getUndoManager());
|
||||
|
|
@ -928,6 +930,10 @@ void Project::createPropertyEditors (PropertyListBuilder& props)
|
|||
"The project's version number. This should be in the format major.minor.point[.point] where you should omit the final "
|
||||
"(optional) [.point] if you are targeting AU and AUv3 plug-ins as they only support three number versions.");
|
||||
|
||||
props.add (new ChoicePropertyComponent (projectLineFeedValue, "Project Line Feed", { "\\r\\n", "\\n", }, { "\r\n", "\n" }),
|
||||
"Use this to set the line feed which will be used when creating new source files for this project "
|
||||
"(this won't affect any existing files).");
|
||||
|
||||
props.add (new TextPropertyComponent (companyNameValue, "Company Name", 256, false),
|
||||
"Your company name, which will be added to the properties of the binary where possible");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue