Commit Graph

4747 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
83adc66ec7 Ref T41, download auto info triggered in mapping tool 2017-05-05 22:44:07 +01:00
Klaus Basan
b2d95f471e Ref T41, download dialog available for all swift UI applications 2017-05-05 22:44:05 +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
7f0a971b4a Ref T41, adjusted info component to be used with dialog 2017-05-05 22:40:51 +01:00
Klaus Basan
d1bf788f07 Ref T41, independent dialog for downloading swift 2017-05-05 22:40:48 +01:00
Klaus Basan
8ac609a166 Formatting and UI fixes 2017-05-05 22:40:46 +01:00
Roland Winklmeier
a3bc5c2936 Add <swiftInstall>/bin to library lookup paths
Summary:
This change adds <swiftInstall>/bin to the library lookup paths.
Without, QFactoryLoader is not able to find the Qt plugins
on Mac OS since on this platform the hard coded path defaults to
'foo.app/Contents/MacOS' for app bundles.
This change also adds the installation of QtPrintSupport framework which
is a dependency from cocoa platform plugin.

ref T48

Reviewers: kbasan, msutcliffe

Reviewed By: kbasan

Subscribers: jenkins

Maniphest Tasks: T48

Differential Revision: https://dev.swift-project.org/D15
2017-05-05 22:40:43 +01:00
Klaus Basan
9c9f3e82ae Comment 2017-05-05 22:40:32 +01:00
Klaus Basan
bd99141bba Ref T40, show update info in mapping tool 2017-05-05 22:40:29 +01:00
Klaus Basan
b39f9a33a2 Ref T40, allow to pass timeout 2017-05-05 22:40:27 +01:00
Klaus Basan
523f650a34 Ref T40, utility functions 2017-05-05 22:40:24 +01:00
Klaus Basan
64da9f215a Updated CLA (legal) 2017-05-05 22:40:20 +01:00
Klaus Basan
fad7d4b8c9 Ref T35, optional model description when mapping 2017-05-05 22:40:16 +01:00
Klaus Basan
5687f5c176 Allow some time when .rev file is generated before files are overriden
(copied over in wizard)

There was an issue that the copied over file was afterwards not present
2017-05-05 22:40:13 +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
b444361c7c Some minor UI tweaks (min.height) 2017-05-05 22:40:07 +01:00
Roland Winklmeier
862794cb02 Add audio device settings
Summary:
Up to now, the audio device settings were not persistent. With this
commit, the last audio device will be restored after application
start.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D7
2017-05-05 22:40:04 +01:00
Roland Winklmeier
f0bfad40b7 Remove outdated todos
Summary: This commits removes todos which are done or obsolete.

Reviewers: kbasan, msutcliffe

Reviewed By: kbasan

Differential Revision: https://dev.swift-project.org/D6
2017-05-05 22:40:01 +01:00
Klaus Basan
ed132add45 Ref T34, renamed function as requested by RW 2017-05-05 22:39:59 +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
f7c4292695 Removed VATSIM server from shared files distribution server was frequently down last weeks
"url": "https://vatsim-germany.org:50443/datastore/shared"

Summary: Removed VATSIM server from shared files distribution

Reviewers: msutcliffe, rwinklmeier

Differential Revision: https://dev.swift-project.org/D10
2017-04-21 23:15:00 +02:00
Klaus Basan
f37057f761 Ref T34, added font.qss (generic and specific for MacOS) and removed build based qss 2017-04-21 21:41:36 +02:00
Klaus Basan
ce8e5c1f10 Ref T34, OS specific stylesheets
e.g. fonts.mac.qss / default is fonts.qss
2017-04-21 19:47:44 +02:00
Klaus Basan
e13f7e3e68 Log messages when URL for news/help is missing
Found during Ref T32
2017-04-21 03:14:19 +02:00
Klaus Basan
61a140a5a4 Ref T32, add query parameter for swift application 2017-04-21 03:12:39 +02: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
cbe3122c40 Ref T24, use shared info objects, not header timestamps 2017-04-20 20:41:47 +02:00
Klaus Basan
0696eed04f Ref T24, adjusted web data services
* no longer using header timestamps, removed functions
* renamed functions to distinguish shared/DB info data
* added 2nd reader m_sharedInfoDataReader
2017-04-20 20:41:29 +02:00
Klaus Basan
77c539b650 Ref T24, adjusted readers
* utility functions for shared info objects (count/timestamp)
* support for shared and DB info objects
* renamed functions reflecting using info objects now (no longer headers)
2017-04-20 20:38:30 +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
485c95101b Ref T24, preparations to read dbinfo.json for shared files
This will replace http header file timestamps
* read function in info reader has retrieval mode flag, unused parameters removed
* waitForDbInfoObjects/getDbInfoDataReader (added "Db"), there will be a 2nd reader
* CWebReaderFlags::DbInfoDataReader (added "Db")
* removed ps_read, only read (public)
2017-04-20 20:38:06 +02:00
Klaus Basan
65f4d1f9e2 Increase timeout a bit (WLAN experience) 2017-04-20 20:35:48 +02:00
Roland Winklmeier
7bc731d548 Update git submodules to new urls
Summary:
Since the prime repository got changed to dev.swift-project.org the submodules
need to be updated as well.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D5
2017-04-20 17:06:43 +01:00
Mathew Sutcliffe
5380c62ce8 Version number 0.8.0 2017-04-19 19:31:52 +01:00
Mathew Sutcliffe
e3fe8ec39f refs #937 Resolved clazy warnings: miscellaneous. 2017-04-19 19:31:50 +01:00
Mathew Sutcliffe
2134b4e874 refs #937 Resolved clazy warnings: wrong usage of emit keyword. 2017-04-19 19:31:48 +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
ce1730b453 refs #937 Support for clazy. 2017-04-19 19:31:36 +01:00
Mathew Sutcliffe
69b75ad265 refs #555 Fixed egregious copypaste mistake
*%{font-size:16pt}😠%*
2017-04-19 19:31:34 +01:00
Mathew Sutcliffe
488f42b0a1 refs #928 Parse and load OBJ8 CSL packages. 2017-04-19 19:31:33 +01:00
Mathew Sutcliffe
65ac945281 refs #925 Animate landing gear by linear interpolation. 2017-04-19 19:31:31 +01:00