Commit Graph

505 Commits

Author SHA1 Message Date
Klaus Basan
0767deb41d Ref T701, IAircraftModelSetProvider 1st version
* added to matcher
* and simulator context
* in facade changed init order, as we need getCContextOwnAircraft() / getCContextSimulator()

Remark: Need 2 contexts is not ideal, but accepted for the moment
2019-09-16 22:40:26 +01:00
Klaus Basan
ca7f11eb81 Ref T660, fixed and renamed to "getRelativeSubDirectories" plus sample 2019-09-16 22:40:25 +01:00
Klaus Basan
821e7e73c9 Ref T698, added remote aircraft context to network class 2019-09-16 22:40:15 +01:00
Klaus Basan
3510e20290 Ref T660, FSX/P3D config file functions 2019-09-16 20:29:59 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
18c96791b8 Disable console logging for sampleweatherdata 2019-02-22 20:36:21 +00:00
Roland Rossgotterer
9d1299741e [GFS] Use Pressure at MSL instead of surface
Pressure at surface level was the wrong value. All barometers and
altimeters use pressure reduced to mean sea level. Reading that value
from GFS instead returns much more reasonable values.

ref T537
2019-02-22 20:36:20 +00:00
Roland Rossgotterer
d50811c941 Fix sampleweatherdata to accept negative Lat/Lon values 2019-02-22 20:36:20 +00:00
Mat Sutcliffe
dd655bcb25 Ref T486 Using QRandomGenerator. 2019-02-22 20:34:53 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
926082e756 Fixed clazy warning: signal CLineReader::quit hides signal QThread::quit. 2019-02-22 20:23:38 +00:00
Klaus Basan
31ba0c1520 Ref T437, samples for FSUIPC 2018-11-23 02:14:51 +01:00
Klaus Basan
484d89dd85 Ref T390, Ref T372, check for equal coordinates to avoid NaN 2018-10-07 16:17:26 +02:00
Klaus Basan
e312718bbb Ref T379, style 2018-10-05 17:39:57 +02:00
Klaus Basan
6c1a882231 Ref T365, samples for addon/fsx config files 2018-09-22 01:26:36 +02:00
Klaus Basan
f6dee9e7ff Ref T308, use optimized version in model reader/performance samples 2018-08-31 20:08:02 +02:00
Klaus Basan
183280fa75 Ref T308, using an optimized (faster) function for YYYYmmdd string parsing
Ref T309, found that QDateTime::fromString returns a QDateTime object with local timestamp. Using a optimized version returns UTC objects now.

- The bug was found writing a unit test for Ref T308
- Slack: https://swift-project.slack.com/archives/G7GD2UP9C/p1534848725000100
2018-08-22 12:31:53 +02:00
Klaus Basan
cbb0805c7e Style 2018-08-19 14:31:47 +02:00
Klaus Basan
6548c71521 Synchronize model set in simulator context and improved setting of model set in matcher (ignored when same simulator) 2018-08-09 01:39:19 +02:00
Klaus Basan
08113e8c1d Ref T298, adjusting used aircraft matcher (using setup) 2018-08-07 20:40:29 +02:00
Klaus Basan
fe99eb0fed Style and some view columns/UI renamings 2018-08-01 03:06:26 +02:00
Klaus Basan
398ca4fb45 Ref T280, sample to test if QHash or QMap for key callsign is faster
* QHash seems to be faster and is const
* see also https://woboq.com/blog/qmap_qhash_benchmark.html
2018-06-13 14:00:35 +02:00
Roland Winklmeier
4aaccb44c3 Cleanup the enabled modules in all sub projects
Most modules were just enabled to add include path for dependent headers
2018-06-02 02:08:46 +02:00
Klaus Basan
afe4a09218 Formatting 2018-05-18 00:25:10 +02:00
Klaus Basan
2a0b81de5b Ref T259, Ref T243 client provider used with network classes
Also adds a dummy testing class
2018-04-05 02:54:46 +02:00
Klaus Basan
f049900e1f Ref T223, use const values for standard pressure
* standardISASeaLevelPressure
* use static const values for standard pressure
* minor formatting
2018-01-15 23:00:34 +01:00
Klaus Basan
3dc1c69653 Ref T219, some FP renamings and fix to set prefix/postfix in FP value object 2018-01-14 18:46:36 +01:00
Klaus Basan
8c539fab0a Ref T215, FP value class
* split into prefix / aircraft ICAO / suffix
* suffix equipment code functions
* fixed FP remarks loading (JSON file)
* fixed missing sending of aircraft ICAO
2018-01-13 05:04:17 +01:00
Klaus Basan
1f9337609a Ref T172, adjustments for ecosystem
* stricter equal comparison ("changed" flag)
* set VATSIM server type and ecosystem in VATSIM reader
2017-12-29 19:49:38 +01:00
Klaus Basan
69d1897f62 Ref T202, Ref T189 samples (based on RW's review and discussion) 2017-12-21 19:50:26 +01:00
Klaus Basan
63fbeecc00 Ref T192, formatting and minor tweaks 2017-12-21 19:46:33 +01:00
Mathew Sutcliffe
fcb6cf1a52 Removed type erasure in containers
Summary:
Refs T196
Using QVector as this is Qt's recommended container type.

Reviewers: #swift_developers, rwinklmeier

Reviewed By: #swift_developers, rwinklmeier

Subscribers: rwinklmeier, jenkins

Tags: #swift_pilot_client

Maniphest Tasks: T196

Differential Revision: https://dev.swift-project.org/D61
2017-11-23 22:15:23 +00:00
Roland Winklmeier
c553d24d0e Move GFS weather data url into global setup
Summary:
The GFS weather data url so far was hard coded. With this commit, it is
moved into the global setup (bootstrap file).
Also the url type was changed from QUrl to CUrl, which simplified the
generation of the url including its query by using CUrl::appendQuery().
Finally it fixes sampleweatherdata, which did not have a CApplication yet.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Tags: #swift_pilot_client

Maniphest Tasks: T151

Differential Revision: https://dev.swift-project.org/D57
2017-11-20 15:57:08 +01:00
Klaus Basan
3d541a8dd1 Ref T129, SVFR/VFR discussion
* utility functions in flight plan class
* adjusted flight plan component and client
2017-10-10 00:28:09 +01:00
Klaus Basan
1daa640972 Ref T129, added callsign in flight plan and made flight plan timestamp interface compliant 2017-10-10 00:27:39 +01:00
Mathew Sutcliffe
b163f2b4fb Removed std::random_shuffle which was deprecated in C++14 and removed in C++17. 2017-09-24 20:29:28 +01:00
Klaus Basan
a993ccd1c1 Fix CApplication::processEventsFor so it can be used in samples/unit tests 2017-09-24 19:53:07 +01:00
Klaus Basan
1387573e5b Ref T112, moved simulator settings in subdir/settings namespace 2017-09-24 19:51:46 +01:00
Klaus Basan
a9198e4f13 Ref T103, Unified naming of directory functions
* some started with get/some not (removed get, get is normally used for our getters)
* some used swift, getSwiftXZY dir (removed swift)
* used full word "directory", not dir/directory mixed
2017-09-24 19:49:53 +01:00
Klaus Basan
debd9c802f Ref T103, moved directory functions from CBuildConfig to CDirectoryUtils
getApplicationDir renamed to getBinDir() as it works different on MacOs
see https://dev.swift-project.org/w/dev/swiftpc/dirstructure/
2017-09-24 19:49:51 +01:00
Mathew Sutcliffe
55b7a519d1 Fixed missing override keywords
Summary: Fixed GCC 6.3 missing override warnings.

Reviewers: #swift_pilot_client, rwinklmeier

Reviewed By: #swift_pilot_client, rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D27
2017-06-23 18:18:05 +01:00
Roland Winklmeier
cf2c0d0f35 Use qt.conf to override plugin path on Mac OS
Summary:
QCoreApplication::addLibraryPath is called before QCoreApplication
was constructed and this caused the returned string to be different
depending from which working directory it was called and not always
the intended binary path.
Using qt.conf has a fixed prefix relative to the binary path
inside the application bundle and therefore is easier to be used
with a relative path.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D18
2017-05-05 23:08:40 +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
Mathew Sutcliffe
e3fe8ec39f refs #937 Resolved clazy warnings: miscellaneous. 2017-04-19 19:31:50 +01:00
Mathew Sutcliffe
a8302b310e refs #937 Resolved clazy warnings: QString::arg. 2017-04-19 19:31:45 +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
Roland Winklmeier
5c37ccdbeb Use CProcessCtrl::startDetached in dbus server and sample
refs #866
2017-04-18 00:07:41 +01:00
Klaus Basan
705e83e156 Simplified Ctor for application with CApplicationInfo::Application 2017-04-18 00:00:02 +01:00
Roland Winklmeier
ba1122533f Remove deprecated custom packet API from INetwork
Usage of this API was already discouraged, since all official
VATSIM packet handling should be in vatlib itself or for custom defined
packets in CNetworkVatlib. If a new custom packet needs to be added,
it should go into CNetworkVatlib directly and made available via normal
API methods to abstract the packets custom nature. The fact that
custom packets exist, should be kept internal. However, a debug message
is raised in case of an unknown custom packet in order to allow
detection and debugging.

refs #870
2017-04-17 23:57:37 +01:00