Commit Graph

57 Commits

Author SHA1 Message Date
Mat Sutcliffe
63f5d28622 Issue #77 Break cyclic dependency between CVariant and all other value classes 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
1991b4847a Issue #77 Break cyclic dependency between CPropertyIndex and all other value classes 2020-12-19 18:50:36 +00:00
Mat Sutcliffe
0971c8ce68 Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant 2020-12-19 18:50:35 +00:00
Mat Sutcliffe
4eb496c8e3 Issue #77 Remove pointless function 2020-08-29 14:16:13 +01:00
Lars Toenning
368dd1f46d [PQ] Add unary minus operator 2020-07-17 10:33:01 +02:00
Klaus Basan
0a2b25e409 [PQ] Parsing with default unit, bug fixed 2020-06-12 18:42:51 +01:00
Klaus Basan
9b031bb582 [PQ] Allow to provide a default unit for parsing, e.g. "0" -> "0ft" 2020-06-12 18:42:47 +01:00
Klaus Basan
5bc09ed2c8 [PQ] added static "parsedFromString" 2020-06-12 18:42:41 +01:00
Klaus Basan
ae5ede5667 [PQ] Rounding to int as discussed here https://discordapp.com/channels/539048679160676382/623947987822837779/642145431794745344 2020-01-07 19:46:18 +00:00
Klaus Basan
9b27041684 Ref T717, return "null" for null PQ 2019-09-16 22:41:36 +01:00
Klaus Basan
4ecd8a78ad Handled some potentially "dangerous" parsing issues for VATSIM file (no coordinate)
https://discordapp.com/channels/539048679160676382/539486489977946112/593081121512751116
2019-09-16 22:40:00 +01:00
Klaus Basan
daeea07090 Ref T683, style 2019-09-16 22:39:49 +01:00
Mat Sutcliffe
6d9f9a286d Ref T552 Using QDataStream marshalling mixins in value classes. 2019-04-12 13:30:55 +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
Mat Sutcliffe
38fe2d1c49 Removed null check in CPhysicalQuantity::compareImpl as it was wrong and useless. 2019-04-11 22:12:04 +01:00
Mat Sutcliffe
798a0b8f06 Using friend function comparison and arithmetic operators, for parameter symmetry. 2019-04-11 22:12:03 +01:00
Klaus Basan
246d9abca8 Ref T578, CG null and DB key improvements 2019-04-11 22:12:02 +01:00
Mat Sutcliffe
83dec5408b Ref T557 Metaclass flag to preserve measurement unit when marshalling PQ's in flight plans. 2019-04-11 22:11:35 +01:00
Klaus Basan
3e0d318a48 Ref T554, PQ "valueRoundedAsString" 2019-04-11 22:11:33 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
d89b217e9b PQ parsing using "best guess" strategy as default plus renamings 2019-02-22 20:23:54 +00:00
Klaus Basan
ef21ec67f3 Ref T424, PQ strings without (thousand) separators
* separator can cause issue when sending data (WebService, FSD)
* re-parsing (print and parse again) can cause to undesired results as the separator is mistaken as decimal separator with a different locale
* separator now a parameter so it can still be used
2018-11-06 01:41:48 +01:00
Klaus Basan
3d2d999f7a Ref T338, style 2018-09-09 02:55:16 +02:00
Roland Winklmeier
29f464189b Move template in-class function definitions out of class
Keeping them defined in-class caused linker issues with the extern template
declaration in a non-optimized MinGW debug build. Apparently it did not
inline them but instead relied on the extern declaration and expected
them defined somewhere else.
2018-08-31 20:08:14 +02:00
Roland Winklmeier
ca9a2e5fd1 Fix floating point comparison 2018-08-25 22:12:03 +02:00
Klaus Basan
d489bed370 Ref T268, compare for PQs 2018-07-10 17:17:21 +02:00
Klaus Basan
fc1a2bbb0f Ref T275, Ref T280, avoid nan (not a number) values in PQs/elevation 2018-06-20 00:58:45 +02:00
Klaus Basan
23c54938ea Ref T261, unify unit handling in situation altitude related values
* this is an optimization, it would work without that, but there are numerous calculations in interpolation which are faster and easier to debug in the same unit
* PQ switch unit functions use "const &PQUnit"
2018-05-08 16:06:53 +02:00
Klaus Basan
8e3b55b4ca Ref T261, utility functions in value classes
* set offset values
* do not change PQs if PQ is null
* sorted by callsign
2018-05-08 16:06:52 +02:00
Klaus Basan
1f3e5c6abf Formatting, minor tweaks 2018-05-08 16:06:43 +02:00
Klaus Basan
cf98c46231 Ref T259, Ref T243 return unit by reference 2018-05-04 23:03:27 +02:00
Klaus Basan
5744c260c5 Ref T259, Ref T243 improvements of PQ
* null()
* allow chaining for makePositive
* abs()
2018-04-05 02:54:22 +02:00
Klaus Basan
844436e744 Ref T231, Ref T238 maxValue for PQs
Remark: max() as function name caused compile errors
2018-01-30 20:34:45 +01:00
Klaus Basan
b2c0d726bc Ref T215, PQ integer support 2018-01-13 05:04:33 +01:00
Klaus Basan
efd4e110b7 Ref T172, formatting
* this->m_ => m_
* formatting
* comments / doxygen
2017-12-28 18:44:32 +01:00
Klaus Basan
e55480737e Ref T111, lat/lng/angle changes
* get struct CAngle::DegMinSecFractionalSec to obtain parts
* round to epsilon utility functions and fix (qint64)
2017-09-24 19:51:09 +01:00
Mathew Sutcliffe
07ec7e6bc1 T73 Pass units by value.
Class types which are trivial to copy should be passed by value.
2017-05-14 17:21:30 +01:00
Klaus Basan
b77c04c99c refs #875, fixed PQ null for DBus 2017-02-24 15:21:01 +00:00
Klaus Basan
e49f9c2b38 Fixed output of PQ null values 2017-02-24 00:19:02 +00:00
Mathew Sutcliffe
1c7fb518ca Fixed broken link URLs in comments. 2017-02-24 00:18:16 +00:00
Mathew Sutcliffe
bbdbd26f82 refs #815 Throw CJsonException when required JSON objects are not found. 2017-01-10 23:46:33 +00:00
Mathew Sutcliffe
3ab121a593 refs #802 Fixed linker errors for exported explicit template instantiations with Clang on Windows. 2016-12-13 19:00:44 +01:00
Klaus Basan
8a5d50a167 refs #780, fixed property index compare issues found in the client 2016-12-06 09:46:57 +01:00
Roland Winklmeier
3d7a39ed00 Fix BlackMisc header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
0f5d2a29a8 refs #655, Change signature (order) of setProperty/compareProperty 2016-05-13 16:44:17 +02:00
Mathew Sutcliffe
3bdcd7e386 refs #584 Moved hash related stuff to dictionary.h
This also means moving Mixin::Icon from CContainerBase one step down the inheritance hierarchy
to resolve what would otherwise have been a circular include dependency.
2016-02-08 17:26:45 +00:00
Klaus Basan
0c94922bd6 refs #501, compareByPropertyIndex (performance for sort) 2015-11-19 21:04:34 +00:00
Klaus Basan
e04ada3a7c refs #437, remove convertFromCVariant 2015-05-31 01:31:09 +02:00
Roland Winklmeier
e4f2c9e88a Replace occurrences of CVariant::toCVariant() with CVariant::from() 2015-05-30 16:59:51 +02:00
Klaus Basan
f18cfed087 refs #395, refs #413, refs #403 Post merge tasks
* missing exports for new classes
* public non virtual convertToQString, propertyByIndex
* removed left-over of watchdog
* virtual destructor for avionicsbase.h
2015-05-12 21:03:39 +01:00