Mathew Sutcliffe
3cb9a783d2
just something I missed earlier - no need to use qint32 here
2013-08-19 18:18:30 +01:00
Mathew Sutcliffe
cec9de5cc5
use enums instead of bools to distinguish true/magnetic headings and tracks and MSL/AGL altitudes
2013-08-19 18:11:54 +01:00
Mathew Sutcliffe
5f267e8245
minor regularization of vectors and matrices
2013-08-19 17:44:33 +01:00
Mathew Sutcliffe
f9f35f27d5
make construct-from-CAngle constructors explicit in CLatitude and CLongitude to make it harder to convert between incompatible CAngle subclasses
2013-08-19 14:28:55 +01:00
Mathew Sutcliffe
21ca361bc1
removed operator= and copy ctor from classes where they only duplicated the behaviour of the default implementations that C++ generates automatically
2013-08-19 03:21:12 +01:00
Mathew Sutcliffe
a6f89ce9ea
renamed CBaseStreamStringifier to CStreamable
2013-08-19 03:05:09 +01:00
Mathew Sutcliffe
da8ba9aac3
First major wave of PQ refactoring, including but not limited to:
...
* Default unit is more clearly stated in one place, not restated in many different places, and is not always the SI unit
* Converter strategy pattern in CMeasurementUnit, covering linear, affine, and different kinds of sexagesimal units
* General reorganization of CMeasurementUnit construction and CPhysicalQuantity methods, not removing any behvaiour
* Move duplicated method unitFromSymbol from derived classes into base class CMeasurementUnit
* For DBus, CPhysicalQuantity marshals both in its own unit and in the default unit
2013-08-19 03:05:08 +01:00
Mathew Sutcliffe
a8036f1ce5
in geodetic coordinates, latitude(), longitude(), and height() return by reference to const instead of by value
2013-08-18 23:15:33 +01:00
Mathew Sutcliffe
c8114c2d85
Remove switchUnit() from CHeading and CTrack; they already inherit switchUnit() from CPhysicalQuantity
2013-08-18 23:13:56 +01:00
Mathew Sutcliffe
5d4fcc8d40
resolved pressure constants 1013.2hPa != 29.92inHg
2013-08-18 17:29:37 +01:00
Mathew Sutcliffe
baa0ac147e
remove integer quantities
2013-08-14 18:05:15 +01:00
Mathew Sutcliffe
a6756f2043
suppress/fix a few more GCC and MSVC warnings and errors
2013-08-14 18:05:12 +01:00
Mathew Sutcliffe
d4279a8c28
move QT_TRANSLATE_NOOP to suppress GCC warnings
2013-08-14 18:05:10 +01:00
Mathew Sutcliffe
1c1aa4cad3
moved Q_DECLARE_METATYPE outside of namespace
2013-08-13 22:47:19 +01:00
Mathew Sutcliffe
5257560265
fixed repeatedly increasing memory usage in units unmarshalling code
2013-08-13 22:44:01 +01:00
Mathew Sutcliffe
117021aadf
fixed copy/paste mistake in CModulator
2013-08-13 22:30:52 +01:00
Mathew Sutcliffe
2c781e8b36
style fixes: mostly just things that make my eyes bleed :)
2013-08-13 22:29:48 +01:00
Mathew Sutcliffe
e8b52b33d0
removed CAviationVerticalPositions
2013-08-13 22:23:55 +01:00
Klaus Basan
e6e6dea4cd
More DBus tests
2013-08-06 13:56:15 +02:00
Klaus Basan
62591a750f
Refactoring, renamed: convertToQString (old: stringForConvert)
2013-07-28 03:31:04 +02:00
Klaus Basan
a53ea0c5fd
DBus: track, heading, transponder. Added I18N for track/heading, added further I18N keys. Of course not all I18N strings are translated yet.
2013-07-28 03:20:04 +02:00
Klaus Basan
40a97c3d82
Added I18N for PQs, initial version. Hence resource file and language files. Changed samplesphysicalquantities to check some I18N topics.
2013-07-27 20:23:23 +02:00
Klaus Basan
581638ec7f
Enabled coordinate classes for DBus, added generation method for lat/lng by WGS84 strings
2013-07-25 23:58:09 +02:00
Klaus Basan
7316980a5c
Enabled coordinates for DBus
2013-07-25 12:37:51 +02:00
Klaus Basan
2fc08a0376
Enabled DBus with matrix classes, noticed issue with QList Signature (ad, addddd)
2013-07-25 00:10:50 +02:00
Klaus Basan
9b2cb3b517
Shifted DBus operators to CBaseStreamStringifier, much easier to provide streaming - especially for derived classes.
...
Still required but unwanted overloaded DBus operator in aviomodulator.h - no compilation without them. Need to be removed.
Enabled more classes for DBus.
2013-07-24 02:20:32 +02:00
Klaus Basan
8b512ba818
DBus enabling of base classes plus sample for testing / show how to use them. Also qdbuscpp2xml plugin for blackmisc classes.
2013-07-22 14:33:50 +02:00
Mathew Sutcliffe
126ea9b8ac
- Fixed: using Qt5 plugin system based on Q_PLUGIN_METADATA
2013-07-05 23:22:11 +01:00
Roland Winklmeier
7564973b14
- Fixed: toAscii() and fromAscii() Methods are deprecated
...
- Fixed: Namespace conflict with IContext in blackd.cpp
- Fixed: Missing include of QMessageBox, QMenu
- Fixed: QBool was removed in Qt5
- Fixed: Missing include QDataStream in basestreamstringifier.h
2013-07-05 21:03:05 +02:00
Mathew Sutcliffe
495a37d4bc
Added protected CBaseStreamStringifier::operator=() as discussed in https://dev.vatsim-germany.org/boards/15/topics/497
2013-05-22 15:29:04 +01:00
Klaus Basan
abfd72552b
Removed template from basestreamstringifier as discussed in https://dev.vatsim-germany.org/boards/15/topics/497?r=503
2013-05-10 22:56:36 +02:00
Klaus Basan
7b3174fd96
Merge with MS "private instead of protected in CRTP" changes
2013-05-01 00:51:57 +02:00
Klaus Basan
837809b96d
Changed round and renamed length in vector / matrix
2013-05-01 00:00:03 +02:00
Mathew Sutcliffe
e5afc2c627
made derived() private instead of protected in CRTP
2013-04-30 20:12:47 +01:00
Klaus Basan
b84df5fc21
Merged with changes of MS, some similar bug fixes done in parallel
2013-04-30 02:34:15 +02:00
Klaus Basan
8f5d9263fd
Fixed all issues detected by the test cases under MinGW - such as usage of abs() -> changed to qAbs(), rounding issues detected during calculations, and changed streaming methods with qDebug() (QDebug vs &QDebug issue).
2013-04-30 01:43:14 +02:00
Mathew Sutcliffe
a05b85135c
replaced "clone" with "derived" in CRTP (more usual, more flexible, more clear in its intent, and avoids copying the object twice on compilers that don't optimise return by value)
2013-04-30 00:09:32 +01:00
Mathew Sutcliffe
ba70a150e0
fix for g++ 4.5.2: this is the correct way to overload @operator<<@ for QDebug and CLogMessage because they are flyweight objects
2013-04-29 23:45:30 +01:00
Mathew Sutcliffe
177efba563
including qmath.h instead of math.h fixes problem with M_PI in MSVC
2013-04-29 23:32:13 +01:00
Mathew Sutcliffe
715e6e8340
fixed CMath::PI2()
2013-04-29 23:28:41 +01:00
Klaus Basan
c6426a0759
Move Math constants into class (to be consistent with other constants), tested against minGW / gcc 4.7.2 and fixed various issues (mainly initializer lists, unused variables). BlackMisc compiles now in MinGW, but still issues (especially with qDebug() friend methods)
2013-04-29 16:00:41 +02:00
Klaus Basan
7c7ca2dfae
Fixed some issues with MinGW gcc, e.g. added some includes, removed nullptr, changed some initializer lists (prevents warnings)
2013-04-29 00:15:32 +02:00
Klaus Basan
c97ddc4e3b
Polymorphic clone for CRT Pattern in templates (basically a static_cast for concrete initializations of template class)
2013-04-27 17:18:32 +02:00
Klaus Basan
b257862aac
Before changing to polymorphic clone
2013-04-27 15:46:22 +02:00
Klaus Basan
c5b9c48cd6
Changed interpolator (preliminary) to work with PQs and new classes, added stubs for unit tests in BlackCore
2013-04-27 02:09:42 +02:00
Klaus Basan
5eac9be7d5
Unit tests for acceleration and more for vector
2013-04-25 20:21:04 +02:00
Klaus Basan
2d8720c6ae
Added PQ acceleration and units for mile / statute mile
2013-04-25 12:06:54 +02:00
Klaus Basan
a31e405b6b
Implemented commutative multiplications as friends in the templates, further test cases (unit tests), fixed Doxygen attributes, renamed test classes
2013-04-25 01:56:18 +02:00
Klaus Basan
919913dd95
merge with master
2013-04-24 13:31:19 +02:00
Klaus Basan
472521f281
Further details on classes like epsilon compare, further unit tests.
2013-04-24 01:59:17 +02:00