Roland Winklmeier
5fbb8deb02
Fixed bug in blackcore:
...
- vatlib.h path has changed
- externals.pri missing
2013-09-21 20:34:19 +02:00
Mathew Sutcliffe
5483f71c9b
test_blackcore.pro includes externals.pri
...
removed TODO comments
fixed mistake regarding backslash line continuations
2013-09-21 14:50:01 +01:00
Roland Winklmeier
2517f3b8a7
Uncommented one line in client.pro again.
...
I temporary commented it, since I didn't have the module in my current Qt
build.
2013-09-21 15:33:25 +02:00
Roland Winklmeier
6092cc7193
refs #60
...
Added externals.pri looking for the external headers/libraries in 3 steps:
1. Manually set absolut path. Currently commented. Uncomment for local
use.
2. Enviromental variable "VATSIM_EXTERNAL_DIR"
3. default path client/externals.
2013-09-21 15:21:32 +02:00
Mathew Sutcliffe
95858559bb
fixed bug in CMath::round(),
...
was using qRound() instead of qRound64(),
which caused wrong answers when fractional part was 10 digits or more
2013-09-16 23:15:11 +01:00
Mathew Sutcliffe
8844774fbe
fixed bug when compiling with MinGW:
...
CPhysicalQuantity::operator== used the wrong abs() so it was only comparing integers
2013-09-16 23:12:41 +01:00
Mathew Sutcliffe
3e0c38b921
API fix: CPhysicalQuantity::setValueSameUnit() is supposed to be public
2013-09-16 23:09:54 +01:00
Mathew Sutcliffe
e12d7fbd7a
Had a bit of spare time so tried out the policy design pattern I've been learning about, applying it to PQ converters.
...
Some interesting results:
* Minor simplification of PQ converters and unit ctors; may not seem like much, but I think it enables possible future simplifications of a similar kind.
* CMeasurementPrefix is gone, no longer needed. Now prefixes are applied at the template stage.
* Apart from that, PQs public API is unchanged.
* Discovered that ft/s^2 conversion factor was wrong: fixed.
2013-09-15 22:01:11 +01:00
Mathew Sutcliffe
00473e6f5f
improved error reporting in BlackCoreTest::Expect
2013-09-03 19:29:04 +01:00
Mathew Sutcliffe
891d47c8ff
Pure Qt/C++ test harness for INetwork
2013-09-01 21:09:22 +01:00
Mathew Sutcliffe
21b74dc912
fixed error caught by gcc
2013-09-01 17:55:38 +01:00
Mathew Sutcliffe
7a7fd69ee1
Perl-based test harness for the commandline client sample
2013-08-31 01:04:34 +01:00
Mathew Sutcliffe
0ae6ae5fea
fixed atclist unittest: call QCoreApplication::processEvents() after each signal is emitted, because they use Qt::QueuedConnection
2013-08-29 00:12:57 +01:00
Mathew Sutcliffe
a011bb18e6
fixed compile errors caused by inconsistencies between merged branches
2013-08-29 00:02:47 +01:00
Mathew Sutcliffe
20c33bf77c
Merge branch 'fsd'
2013-08-28 23:29:10 +01:00
Mathew Sutcliffe
31955f0913
fixed missing space character in fsd sample
2013-08-28 23:26:57 +01:00
Mathew Sutcliffe
dcc4f4aa8d
Merge branch 'kbdbusbaseclasses'
2013-08-28 22:49:01 +01:00
Mathew Sutcliffe
611f1ecaeb
consistent stringification of sexagesimal angle and time values with and without units
2013-08-28 20:42:31 +01:00
Mathew Sutcliffe
7117545fd6
Operator function templates, using std::enable_if to match only classes
...
derived from CStreamable, for streaming to/from QtDBusArgument, avoiding
the unrelated operator function template for streaming Container<T>
defined by Qt, by being a better match in overload resolution.
2013-08-26 21:15:59 +01:00
Mathew Sutcliffe
0107d24523
create a dummy implementation of INetwork for testing purposes, and use it in the atc list unittest
2013-08-24 16:54:36 +01:00
gmt2001
974f8b0141
Merge branch 'fsd' of git@dev.vatsim-germany.org:vatpilotclient/client.git into fsd
2013-08-24 09:42:29 -04:00
gmt2001
4edd28e0fa
Fix for always getting suspended message
2013-08-24 09:41:45 -04:00
Mathew Sutcliffe
ea4d0dedbb
removed escaped double-quote character from i18n string
2013-08-22 20:08:53 +01:00
Mathew Sutcliffe
74452599bf
disambiguate metric tonne (1,000kg) and US ton (2,000lb)
2013-08-22 19:59:41 +01:00
Mathew Sutcliffe
669af6b691
give prefixed units their own names and symbols instead of concatenating prefix and base unit
2013-08-22 19:44:19 +01:00
Mathew Sutcliffe
e8736cf31d
unit names singular not plural
2013-08-22 18:32:15 +01:00
Mathew Sutcliffe
9b239f12aa
fixes for MinGW, including adding CONFIG += c++11 in all qmake project files
2013-08-19 18:46:37 +01:00
Mathew Sutcliffe
3567dace6f
fixed mistakenly big epsilons
2013-08-19 18:25:39 +01:00
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
586be27502
update unit tests
2013-08-14 18:05:13 +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
Mathew Sutcliffe
e194773c5b
CAtcListManager class
2013-08-09 00:55:46 +01:00
Mathew Sutcliffe
eade49799b
corrected error message
2013-08-09 00:49:12 +01:00
Mathew Sutcliffe
e8b412dd25
dbusclient sample: partial fix for compiling with MSVC
2013-08-08 20:46:41 +01:00