Commit Graph

1969 Commits

Author SHA1 Message Date
Mathew Sutcliffe
816f3bd48e New X-Plane flyable plane model string schema
Summary:
New aircraft for XP11 should include a name, author, and studio. These can be used to generate a better model string that doesn't depend on file or directory names.

If the `.acf` contains studio, this is used as the distributor. Otherwise, we use author as distributor instead (truncated in case it is a long list of names).

Then the model string is constructed by combining distributor and model name. If the model name already contains the distributor, we just use the model name.

If the name and distributor are missing, we fall back to the old scheme based on `.acf` filename and dirname.

I have also added a space between aircraft and livery. And I have added default description strings.

After this has landed and been deployed to users, we will need to remove all flyable X-Plane planes from the database and start again with them. (These are the excluded ones.) And we can't accept mappings that use the fallback old scheme if the submitted has renamed the `.acf` file or directory name.

Reviewers: rwinklmeier, kbasan

Reviewed By: kbasan

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D16
2017-05-05 23:07:28 +01:00
Mathew Sutcliffe
fbc9c37646 X-Plane model loader: performance tweaks.
Summary:
Using `QStringRef` and `QLatin1String` to avoid unnecessary allocations and conversions.

Depends on D12.

Reviewers: rwinklmeier, kbasan

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D13
2017-05-05 23:07:27 +01:00
Mathew Sutcliffe
4e23cd1382 X-Plane model loader: support extra properties of .acf files
Summary:
There are optional fields in an X-Plane flyable aircraft that we can use if they are present:

* Description
* Name
* Distributor

If not present, the user has to edit them manually.

@kbasan Any problem with constructing a `CDistributor` with empty db key?

Reviewers: rwinklmeier, kbasan

Reviewed By: rwinklmeier

Subscribers: jenkins, kbasan

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D12
2017-05-05 23:07:25 +01:00
Mathew Sutcliffe
4a4dea8d4d Rename xbus to xswiftbus
Summary:
I wanted to rename xbus because its relation to //swift// is not immediately clear from the name.

xswiftbus seems reasonable.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: kbasan

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D14
2017-05-05 23:07:11 +01:00
Klaus Basan
5aa9cb1dca Ref T41, default values for channel/platform
Later I want to get rid of such hardcoded values, but for now it is a workaround
2017-05-05 22:43:57 +01:00
Klaus Basan
8ac609a166 Formatting and UI fixes 2017-05-05 22:40:46 +01:00
Klaus Basan
523f650a34 Ref T40, utility functions 2017-05-05 22:40:24 +01:00
Klaus Basan
fad7d4b8c9 Ref T35, optional model description when mapping 2017-05-05 22:40:16 +01:00
Klaus Basan
8ad7c1e3c7 Fixed issue with still using header instead of info object data
plus some utility functionality
2017-05-05 22:40:10 +01:00
Klaus Basan
640ad99520 Allow to pass timeout to obtainNextWorkingUrl
Sometimes timeout for news in launcher, needs to be investigated
2017-05-05 22:39:56 +01:00
Klaus Basan
88ef2ee019 Ref T32, utility functions for URL/URL list
* keep error messages of failed URLs
* append query
2017-04-21 03:11:00 +02:00
Klaus Basan
db3370f8f7 Ref T24, shared info file name and flag for SharedInfoObjectEntity 2017-04-20 20:38:30 +02:00
Klaus Basan
65f4d1f9e2 Increase timeout a bit (WLAN experience) 2017-04-20 20:35:48 +02:00
Mathew Sutcliffe
e3fe8ec39f refs #937 Resolved clazy warnings: miscellaneous. 2017-04-19 19:31:50 +01:00
Mathew Sutcliffe
045b149164 refs #937 Resolved clazy warnings: Q_ENUMS is deprecated. 2017-04-19 19:31:47 +01:00
Mathew Sutcliffe
a8302b310e refs #937 Resolved clazy warnings: QString::arg. 2017-04-19 19:31:45 +01:00
Mathew Sutcliffe
b20ebd6dfd refs #937 Resolved clazy warnings: rule of three. 2017-04-19 19:31:44 +01:00
Mathew Sutcliffe
3ea9e33e6b refs #937 Resolved clazy warnings: pass-by-value/reference. 2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
b7f69c6887 refs #937 Resolved clazy warnings: unnecessary memory allocation. 2017-04-19 19:31:39 +01:00
Mathew Sutcliffe
fce1513dae refs #937 Resolved clazy warnings: unnecessary detaching of containers. 2017-04-19 19:31:38 +01:00
Mathew Sutcliffe
488f42b0a1 refs #928 Parse and load OBJ8 CSL packages. 2017-04-19 19:31:33 +01:00
Klaus Basan
88f9a4d04a Log. category for wizard added 2017-04-18 00:08:47 +01:00
Klaus Basan
7b6337e6ad refs #933, added icon for MCX 2017-04-18 00:08:44 +01:00
Klaus Basan
8eb9a8b217 refs #933, utility class to start MCX and settings trait 2017-04-18 00:08:37 +01:00
Klaus Basan
5c32a912f3 Based on unit test failure (clang):
* now ignore incomplete entities for airline/aircraft ICAOs from DB
* utility functions to find invalid designators
* adjusted unit test, avoid taking a random element
* and fixed 4 wrong ICAO entries in DB
2017-04-18 00:08:08 +01:00
Klaus Basan
f2602a8915 Formatting, const, Doxygen
#930
2017-04-18 00:08:02 +01:00
Klaus Basan
660798e43c refs #930, moved multipart functions to database utils and added support for compression 2017-04-18 00:08:00 +01:00
Roland Winklmeier
5c37ccdbeb Use CProcessCtrl::startDetached in dbus server and sample
refs #866
2017-04-18 00:07:41 +01:00
Roland Winklmeier
b80f204293 Refactor CProcessCtrl to start detached with or without console
QTBUG-53833 - which caused a console application to launch with a console
if it was started with QProcess::startDetached - is fixed in 5.8.0.
There were use cases for both options - with and without console -
but not offered by Qt API. Therefore CProcessCtrl is refactored  as a
wrapper to offer both options. If no console is required, it defaults to
QProcess::startDetached. Otherwise uses its own implementation.

refs #866
2017-04-18 00:07:39 +01:00
Klaus Basan
ba45da4851 Changed RegExp to match new file format
swift-installer-linux-64-0.7.3.20170402204123.run
2017-04-18 00:07:27 +01:00
Klaus Basan
a4a3dd1504 refs #921, support both timestamp formats
* DB
* JSON object (backend side)
2017-04-18 00:07:01 +01:00
Klaus Basan
f85501c7bf refs #921, use QVersionNumber
* CVersion removed
* remaining utility functions moved to CBuildConfig
* patch version -> micro version (Qt naming)
* using classes adjusted
2017-04-18 00:06:58 +01:00
Klaus Basan
929e2883d0 refs #921, renaming follow ups 2017-04-18 00:06:34 +01:00
Klaus Basan
0b29ef3f78 Clang warnings 2017-04-18 00:06:32 +01:00
Klaus Basan
7cd49d38d9 refs #921, support for 4 segment version number 2017-04-18 00:06:29 +01:00
Klaus Basan
8299552812 refs #921, string utility functions 2017-04-18 00:06:26 +01:00
Klaus Basan
5ce704c963 refs #921, distribution value object/object list
* registration
* property index
2017-04-18 00:06:24 +01:00
Klaus Basan
08f8916344 refs #922, refs #911, JSON cut/copy/paste
* utility function for CVariant
* use CVariant for cut/copy/paste
2017-04-18 00:06:15 +01:00
Mathew Sutcliffe
c1a82ad60e Fixed undescriptive error message generated by CNetworkUtils::canConnect. 2017-04-18 00:06:08 +01:00
Roland Winklmeier
53abc6aaa3 Include cleanup
refs #918
2017-04-18 00:05:59 +01:00
Roland Winklmeier
5958669bf1 Refactor queryToQString to queryStringFileInfo
String building is now done using QString::arg.
Renamed the method to clearer state what it does.

refs #918
2017-04-18 00:05:57 +01:00
Roland Winklmeier
959c290108 Initialize value type and cast to void pointer before passing to VerQueryValue
refs #918
2017-04-18 00:05:54 +01:00
Roland Winklmeier
621f6f6ca7 Fix -fpermissive error with MinGW
Changed const vector output buffer parameter to non-const raw pointer.
Writing to const vector is not possible, and vector was not necessary

refs #918
2017-04-18 00:05:52 +01:00
Roland Winklmeier
a92a9f13f4 Use QString::arg() instead of QString::sprintf()
QString::sprintf() and also QString::asprintf are both not recommended
to be used in new code.

refs #918
2017-04-18 00:05:50 +01:00
Roland Winklmeier
87420e7890 Use C++11 features in CWinDllUtils
* Use std::vector::data() to get a raw pointer
* Use reinterpret_cast instead of C style cast
* Consistenly use generic WINAPI functions without suffix

refs #918
2017-04-18 00:05:48 +01:00
Klaus Basan
b785e32256 refs #911, utility functions for cut and paste JSON 2017-04-18 00:05:33 +01:00
Klaus Basan
05b7226a08 refs #911, icons for cut and paste 2017-04-18 00:05:29 +01:00
Klaus Basan
6d97f477c9 refs #911, support for Windows UNC paths in parser 2017-04-18 00:05:18 +01:00
Klaus Basan
b0fe4ce930 refs #911, allow to set model dir relative to simulator directory
* utility functions in simulator info
* and fscommonutil
* and button in UI to set default
2017-04-18 00:05:15 +01:00
Klaus Basan
2b50fe1fdb refs #906, utility functions in simulator info and model caches 2017-04-18 00:05:08 +01:00