Skip to content

Commit c53d26e

Browse files
committed
Adjust options form. Add license form. Modify license file.
1 parent 89eb4b3 commit c53d26e

18 files changed

Lines changed: 871 additions & 196 deletions

LICENSE.txt

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
1-
The navigation data shipped with this program is Aerosoft's property and shall not be copied, modified, or distributed without Aerosoft's permission.
1+
The navigation data (all files in `/QSimPlanner/[Version]/NavData` folder)
2+
shipped with this program is Aerosoft's property and is under Aerosoft's
3+
NavDataPro license.
24

3-
The rest of this software is under MIT License.
5+
All source code of this software is under MIT License.
46

5-
******************************************************************************
7+
*********************************************************************
8+
9+
Aerosoft's NavDataPro license:
10+
11+
Aerosoft NavDataPro
12+
13+
Diese Navigationsdaten dürfen ausschließlich für die Flugsimulation verwendet werden und weichen von den aktuellen Navigationsdaten ab!
14+
Benutzen Sie diese Navigationsdaten in keinem Fall für die Navigation in der realen Luftfahrt!
15+
These navdata are intended for flight simulation use only and will vary from current aeronautical navdata!
16+
Do not use for real navigation!
17+
18+
Diese Navigationsdaten, die Software und sonstiges zugehöriges Material sind durch Urheberrechtsgesetze geschützt. Die Navigationsdaten und die Software werden lizenziert, nicht verkauft.
19+
Sie dürfen eine Kopie der Navigationsdaten und der Software auf einem Computer für Ihre persönliche, nicht kommerzielle Nutzung installieren und verwenden.
20+
Die Navigationsdaten, die Software und alle anderen zugehörigen Materialien dürfen ohne vorherige, schriftliche Erlaubnis der Aerosoft GmbH weder kopiert, fotokopiert, übersetzt, zurückentwickelt, dekompiliert, diassembliert oder in anderer Form für elektronische Maschinen lesbar gemacht werden.
21+
22+
These navdata, the software and all the related materials are protected by copyright laws. The navdata and the software is licensed, not sold.
23+
You may install and run one copy of the navdata and the software on one computer for your personal, non-commercial use.
24+
The navdata, the software and all related materials must not be copied, photocopied, translated, reverse engineered, decompiled or reduced to any electronic medium or machine legible form, neither completely nor in part, without the previous written permission of AEROSOFT GmbH.
25+
26+
© Copyright Aerosoft GmbH, alle Rechte vorbehalten, all rights reserved.
27+
28+
website: www.aerosoft.com
29+
support: http://forum.aerosoft.com/
30+
31+
*********************************************************************
632

733
The MIT License (MIT)
834

@@ -26,9 +52,8 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
2652
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2753
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2854

29-
*******************************************************************************
55+
*********************************************************************
56+
57+
Licenses of third-party packages (included in /third-party folder)
3058

31-
This application uses third-party packages. Their licenses are included in
32-
\third-party folder.
3359

34-
*******************************************************************************

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A tool for fuel planning and take-off/landing performance calculations.
2121
- Landing calculation with custom flaps, autobrakes setting, and runway surface conditions.
2222

2323
### Nav Data
24-
Aerosoft kindly provided an AIRAC cycle to be bundled with this program. The NavData can be updated with [Aerosoft's NavDataPro](http://www.aerosoft.com/cgi-local/us/iboshop.cgi?showd,7411699320,D11688) service. If you are using other sources such as Navigraph, use the version for Aerosoft Airbus A318/A319/A320/A321.
24+
This program comes with the NavDataPro dataset by Aerosoft. The NavData can be updated with [Aerosoft's NavDataPro](https://www.aerosoft.com/en/fsxp3d/flight-simulator-2004/tools-missions/1750/navdatapro-one-year-subscription-13-datasets) service. If you are using other sources such as Navigraph, use the version for Aerosoft Airbus A318/A319/A320/A321.
2525

2626
### Project Status
2727
Currently the aircrafts available are
@@ -37,8 +37,3 @@ You are welcomed to submit pull requests to this repository. Feel free to leave
3737

3838
### Special thanks
3939
To Aerosoft for providing an AIRAC cycle for this program.
40-
41-
### License
42-
The navigation data (all files in `/QSimPlanner/[Version]/NavData` folder) shipped with this program is Aerosoft's property and shall not be copied, modified, or distributed without Aerosoft's permission.
43-
44-
The rest of this software is under MIT License.

src/Installer/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# Build results
22
[Oo]utput
33
[Rr]esults
4-
/navdata

src/Installer/InstallerBuilder/AiracFile.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,12 @@ private static void GetAirac()
2222
throw new NotImplementedException();
2323
}
2424
}
25-
26-
private static void WriteReadmeFile()
27-
{
28-
var content = "All files in this folder is provided by Aerosoft and should not be " +
29-
"distributed without permission.";
30-
var path = Path.Combine(FileOutputGenerator.TmpOutputFolder, "NavData/readme.txt");
31-
File.WriteAllText(path, content);
32-
}
33-
25+
3426
public static void CopyNavData()
3527
{
3628
GetAirac();
3729
var dest = Path.Combine(FileOutputGenerator.TmpOutputFolder, "NavData");
3830
ZipFile.ExtractToDirectory(NavDataFilePath, dest);
39-
WriteReadmeFile();
4031
}
4132
}
4233
}

src/Installer/InstallerBuilder/FileOutputGenerator.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void Build()
3333
Directory.Move(TmpOutputFolder, folder);
3434

3535
WriteLicenseText(folder);
36-
CopyDirectory(Path.Combine(RepositoryRoot(), "manual"),
36+
CopyDirectory(Path.Combine(RepositoryRoot, "manual"),
3737
Path.Combine(folder, "manual"));
3838

3939
CompileLauncher();
@@ -68,7 +68,7 @@ private static void GenerateVersionConfig(string version)
6868
File.WriteAllText(path, new XDocument(elem).ToString());
6969
}
7070

71-
private static string RepositoryRoot() => Path.Combine(OutputFolder, "../../..");
71+
public static string RepositoryRoot => Path.Combine(OutputFolder, "../../..");
7272

7373
private static string ProjectFolder()
7474
{
@@ -80,8 +80,7 @@ private static string ProjectFolder()
8080

8181
private static void WriteLicenseText(string folder)
8282
{
83-
var gen = new LicenseTextGenerator(RepositoryRoot());
84-
83+
var gen = new LicenseTextGenerator(RepositoryRoot);
8584
File.WriteAllText(Path.Combine(folder, "LICENSE.txt"), gen.Generate());
8685
}
8786

@@ -99,7 +98,7 @@ private static void CompileApp(string folder)
9998

10099
private static void CompileLauncher()
101100
{
102-
var projFile = Path.Combine(RepositoryRoot(), "src/Launcher/Launcher.csproj");
101+
var projFile = Path.Combine(RepositoryRoot, "src/Launcher/Launcher.csproj");
103102
Compile(projFile, OutputFolder);
104103
}
105104

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
using System;
2-
using System.IO;
1+
using System.IO;
32
using System.Text;
43
using System.Text.RegularExpressions;
54

65
namespace InstallerBuilder
76
{
87
public class LicenseTextGenerator
98
{
10-
private static readonly string target = "******************";
11-
129
private string license, thirdParty;
1310

1411
public LicenseTextGenerator(string rootFolder)
@@ -19,7 +16,7 @@ public LicenseTextGenerator(string rootFolder)
1916

2017
public string Generate()
2118
{
22-
var output = new StringBuilder(ModifiedMainLicense());
19+
var output = new StringBuilder(File.ReadAllText(license));
2320
var files = Directory.GetFiles(thirdParty);
2421

2522
foreach (var i in files)
@@ -35,27 +32,5 @@ public string Generate()
3532

3633
return output.ToString();
3734
}
38-
39-
private string ModifiedMainLicense()
40-
{
41-
var output = new StringBuilder();
42-
var mainTxt = File.ReadAllText(license);
43-
int index = mainTxt.IndexOf(target);
44-
45-
if (index == -1)
46-
{
47-
throw new ArgumentException("Wrong LICENSE.txt format.");
48-
}
49-
50-
output.Append(mainTxt.Substring(0, index));
51-
output.Append(
52-
@"*******************************************************************************
53-
54-
This application uses third-party packages. Their licenses are included below:
55-
56-
*******************************************************************************");
57-
output.Append("\n\n");
58-
return output.ToString();
59-
}
6035
}
6136
}

src/Installer/navdata/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AerosoftAirbusX_1705.zip

src/QSP/ChangeLog.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
version 0.3.6
1+
version 0.4.0
2+
* Add Airac cycle from Aerosoft.
3+
4+
version 0.3.6
25
* Fix a bug where click on 'show map' without finding a route first results in NullReferenceException.
36
* Fix a bug where saving new aircraft causes NullReferenceException.
47

src/QSP/Common/Options/AppOptions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
using QSP.LibraryExtension.XmlSerialization;
12
using QSP.RouteFinding.FileExport;
23
using System;
34
using System.Collections.Generic;
4-
using System.Xml.Linq;
5+
using System.IO;
56
using System.Linq;
6-
using QSP.LibraryExtension.XmlSerialization;
7+
using System.Xml.Linq;
78
using static QSP.LibraryExtension.XmlSerialization.SerializationHelper;
89
using static QSP.Utilities.ExceptionHelpers;
910

@@ -44,7 +45,7 @@ public AppOptions(
4445
}
4546

4647
public static AppOptions Default => new AppOptions(
47-
"",
48+
Path.GetFullPath("NavData"),
4849
true,
4950
true,
5051
true,

src/QSP/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("0.3.6.0")]
34+
[assembly: AssemblyVersion("0.4.0.0")]
3535
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)