Commit Graph

398 Commits

Author SHA1 Message Date
Lars Toenning
6cf7571dff Add user-defined literals for physical quantities
Fixes #14
2020-07-17 10:33:01 +02:00
Lars Toenning
368dd1f46d [PQ] Add unary minus operator 2020-07-17 10:33:01 +02:00
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
Klaus Basan
1d72d89461 [FSD] Fix UNIT tests, as pilot rating now is correctly send 2020-06-12 18:42:51 +01:00
Klaus Basan
1ab1e8ca70 [FG] Fixed UnitTest which got broken by the FG "modelstring" changes 2020-06-12 18:42:46 +01:00
Klaus Basan
92d53a4077 [FG] Do not send modelstring or a shorter livery string for FG
* FG does not support modelstrings for "flyable" planes
* remove unused setSimInfo functions, consolidated, cleanup
* simulator dependent "getSwiftLiveryString"
* encapsulated in getConfiguredLiveryString, getConfiguredModelString
* see https://discordapp.com/channels/539048679160676382/567091362030419981/698124094482415616
2020-06-12 18:42:45 +01:00
Roland Rossgotterer
f98e8f00e1 Add missing linker library 2020-06-12 18:42:40 +01:00
Klaus Basan
f840244bdb [FSD] Adjust UNIT tests for *-1 fix 2020-06-12 18:42:38 +01:00
Klaus Basan
a1ea9a2e10 Fixed unit test warnings as discussed, see https://discordapp.com/channels/539048679160676382/539925070550794240/663426372651319336 2020-01-07 19:57:28 +00:00
Mat Sutcliffe
48d1521d3a Correct filename extension 2020-01-07 19:57:25 +00:00
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Klaus Basan
3a4f114308 [FSD] In order to get the UNIT tests working, we need to call the "FSD direct message" send function
* added sendDirectMessage and renamed other function to sendQueudedMessage
* UNIT tests call "direct message" sending
* minor style changes
2020-01-07 19:57:20 +00:00
Klaus Basan
f38bfc5cf9 [FSD] Style 2020-01-07 19:57:19 +00:00
Roland Rossgotterer
0b8db1a612 [FSD] Don't use CCallsign object to send incremental parts update to special receiver
A client query can be sent to any type of receiver,
not only to valid callsigns. For example also to "@94835".

This fixes the corrupted receiver for incremental aircraft parts.
2020-01-07 19:05:42 +00:00
Roland Rossgotterer
0a730ff5dd [FSD] Make sure sysuid is properly zero terminated 2019-10-23 00:38:26 +02:00
Klaus Basan
4f4474336d [FSD], use consolidateTextMessage again 2019-10-23 00:38:25 +02:00
Klaus Basan
afe72b029f Doxygen/style 2019-10-23 00:38:24 +02:00
Klaus Basan
de75cdc214 [AFV] Ref T730 incorporated MS fixes
see https://discordapp.com/channels/539048679160676382/623947987822837779/633025547999510530
2019-10-16 17:40:32 +02:00
Klaus Basan
1d9cd50463 [AFV] Fix context UNIT test crash
* crash: A crash occurred in C:\jenkins\workspace\swift_wip_fsd_and_afv_client\build\out\release\bin\testcontext.exe.
* ASSERT in const QList<QAudioDeviceInfo> allQtDevices2 = QAudioDeviceInfo::availableDevices(QAudio::AudioInput)
* figured out it fails in a Qt console app, runs in a widget app
* see https://discordapp.com/channels/539048679160676382/623947987822837779/631939335255752704
2019-10-11 19:00:54 +01:00
Mat Sutcliffe
ad627fa351 [FSD] Fixed failing test and crashing test 2019-10-11 19:00:39 +01:00
Mat Sutcliffe
077476c138 [FSD] Style 2019-10-11 19:00:39 +01:00
Klaus Basan
81ade55cb5 Ref T730, added QT multimedia in some projects, as it is now needed in blackmisc 2019-10-11 18:59:58 +01:00
Klaus Basan
5e3b758e44 Ref T732, renamed to CFsdClient adjustments 2019-10-11 18:59:05 +01:00
Roland Rossgotterer
b5a2f2ad13 AFV initial commit 2019-10-11 18:58:47 +01:00
Roland Rossgotterer
acf540be34 Long live FsdClient 2019-09-18 13:49:37 +02:00
Roland Rossgotterer
e0b52db77a [MinGW] Fix many unresolved symbols 2019-09-16 22:41:33 +01:00
Klaus Basan
add649c321 Ref T709, improved normalization and space pressed handling, unit test 2019-09-16 22:41:14 +01:00
Klaus Basan
e62aa6fb2f Ref T715, setting for "night texture"
* settings class
* UI
2019-09-16 22:41:12 +01:00
Klaus Basan
34aa8333cc Ref T709, sync Qt free timestamp after parsing with swift version 2019-09-16 22:40:58 +01:00
Klaus Basan
6a2f08b49f Ref T709, UNIT test for JSON settings 2019-09-16 22:40:56 +01:00
Mat Sutcliffe
dd86be3335 String simplification (accent removal) using Unicode decomposition 2019-09-16 22:40:44 +01:00
Klaus Basan
9965fd039e Ref T704, improved airline prefix parsing (from callsign) 2019-09-16 22:40:31 +01:00
Klaus Basan
821e7e73c9 Ref T698, added remote aircraft context to network class 2019-09-16 22:40:15 +01:00
Mat Sutcliffe
35b0836754 Ref T696 Fix number formatting for CTime and CAngle.
- Removed the 'L' in the format strings, so the C locale is used.
- Added `1 + digits` to the `fieldWidth`, as this actually includes the
  decimal point and the digits after it.
2019-09-16 22:40:13 +01:00
Klaus Basan
74be3fa8c2 Added network to UNIT tests (needed for CUrl
Other includes where needed
2019-09-16 22:40:09 +01:00
Mat Sutcliffe
668a77d083 Ref T689 Settings validation can produce more descriptive error messages. 2019-09-16 22:40:05 +01:00
Mat Sutcliffe
4ab3e9a03b Ref T682 Don't convert text codec name to lower case, as it is case sensitive. 2019-09-16 22:40:03 +01:00
Klaus Basan
693c94c87a Send FP altitude without unit
https://discordapp.com/channels/539048679160676382/539846348275449887/593211815559823367
https://discordapp.com/channels/539048679160676382/539846348275449887/593063154238619649
2019-09-16 22:40:01 +01:00
Klaus Basan
680c47074f Ref T650, driver class support for SimulatedObject type AI aircraft
* use SimulatedObject object if NON ATC type failed (for helicopters)
* SimObject can handle SimulatedObject type (compared to NonATC)
* Send ATC data to simulator
2019-05-13 11:20:56 +02:00
Mat Sutcliffe
5d75d58784 Ref T570 Measure sortHint using true CPU time routines. 2019-04-12 14:54:47 +01:00
Mat Sutcliffe
6d9c1b4d5e Ref T552 Added unittest for QDataStream marshalling. 2019-04-12 13:57:18 +01:00
Mat Sutcliffe
e5e6c53c82 Fixed buggy implementation of CPhysicalQuantity::lessThan.
This bug could cause a variant containing a list containing a null PQ
to compare equal to a variant containing a list containing a non-null PQ.
2019-04-11 22:12:04 +01:00
Roland Rossgotterer
3f9042848f Use QDateTime::setOffsetFromUtc instead of QDateTime::setUtcOffset 2019-04-11 22:11:50 +01:00
Klaus Basan
804dcbf5b8 Temp disable sortHint UNIT test (until we know why it sporadically fails) 2019-04-11 22:11:41 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
fe7a45afcf Ref T516 Update CStatusMessage call sites to use new syntax. 2019-02-22 20:35:51 +00:00
Roland Rossgotterer
94c2859e18 Replace QDBusConnection::localMachineId with QSysInfo::machineUniqueId()
QSysInfo::machineUniqueId() was added in Qt 5.11 and is using DBus independent unique machine ids everywhere except on Linux. This prevents running into an assert in case DBus is not properly installed at a very early stage of the application without any chance to give the user a warning and handle it gracefully.
2019-02-22 20:35:16 +00:00
Mat Sutcliffe
73d8cf392b Ref T275 testaircraftsituation: repeat test 20 times to mitigate external influences. 2019-02-22 20:34:59 +00:00
Mat Sutcliffe
4f2579b812 Ref T275 testaircraftsituation: detach lists to get meaningful benchmark results. 2019-02-22 20:34:58 +00:00
Mat Sutcliffe
cba820cbce Ref T485 Update for efficient QString usage in CLogMessage:
- `debug()`, `warning()`, `error()` etc. overloaded on `const char16_t[]` to accept UTF-16 string literals.
- Overloads on `const char *` are deleted to avoid accidents.
- Message is stored as QString and/or QStringView depending which overload is used.
- The multiplexing between QString and QStringView is handled by a special value class, to keep the metaclass simple.
- QStringView does not have `arg()` method, so had to implement our own.
2019-02-22 20:34:54 +00:00