-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a34365a
commit 87ad3ae
Showing
7 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
source/InnoSetup.ScriptBuilder/Builder/Abstractions/ILangOptionsBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace InnoSetup.ScriptBuilder | ||
{ | ||
public interface ILangOptionsBuilder | ||
{ | ||
LangOptionsBuilder Create(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
source/InnoSetup.ScriptBuilder/Builder/LangOptionsBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
namespace InnoSetup.ScriptBuilder | ||
{ | ||
using Model.LangOptionsSection; | ||
|
||
public class LangOptionsBuilder : | ||
KeyValueSectionBuilderBase<LangOptionsBuilder, LangOptionsSection>, | ||
ILangOptionsBuilder | ||
{ | ||
public override string SectionName => "LangOptions"; | ||
|
||
public LangOptionsBuilder Create() | ||
{ | ||
CreateEntryInternal(); | ||
return this; | ||
} | ||
|
||
public LangOptionsBuilder LanguageName(string value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder DialogFontName(string value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder DialogFontSize(int value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder WelcomeFontName(string value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder WelcomeFontSize(int value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder TitleFontName(string value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder TitleFontSize(int value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder CopyrightFontName(string value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder CopyrightFontSize(int value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder RightToLeft(YesNo value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder LanguageID(string value) => SetPropertyValue(value); | ||
|
||
public LangOptionsBuilder LanguageCodePage(long value) => SetPropertyValue(value); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
source/InnoSetup.ScriptBuilder/Model/LangOptionsSection/LangOptionsSection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace InnoSetup.ScriptBuilder.Model.LangOptionsSection | ||
{ | ||
public class LangOptionsSection : KeyValueSection | ||
{ | ||
public string LanguageName { get; set; } | ||
|
||
public string DialogFontName { get; set; } | ||
|
||
public int? DialogFontSize { get; set; } | ||
|
||
public string WelcomeFontName { get; set; } | ||
|
||
public int? WelcomeFontSize { get; set; } | ||
|
||
public string TitleFontName { get; set; } | ||
|
||
public int? TitleFontSize { get; set; } | ||
|
||
public string CopyrightFontName { get; set; } | ||
|
||
public int? CopyrightFontSize { get; set; } | ||
|
||
public YesNo? RightToLeft { get; set; } | ||
|
||
public string LanguageID { get; set; } | ||
|
||
public long? LanguageCodePage { get; set; } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
source/InnoSetup.ScriptBuilder/Model/SetupSection/SetupSection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters