Commit Graph

169 Commits

Author SHA1 Message Date
Klaus Basan
0518e680c3 add greatCircleDistance
refs #81
2014-01-08 00:58:53 +00:00
Klaus Basan
ded6fc012e rename CStreamable to CValueObject
refs #81
2014-01-08 00:58:50 +00:00
Klaus Basan
c6da7b0d35 removing unneeded code
refs #81
2014-01-08 00:58:08 +00:00
Klaus Basan
978f3c88e5 style changes and removals of typeid
refs #81
2014-01-08 00:57:43 +00:00
Mathew Sutcliffe
229d7c6068 initialize some pointers to null 2013-11-25 17:34:12 +00:00
Mathew Sutcliffe
ac1b014f1b minor fix, only in doxygen comments 2013-10-21 03:43:09 +01:00
Mathew Sutcliffe
a9624dfc80 fixed a small mistake 2013-10-07 22:59:01 +01:00
Mathew Sutcliffe
e607121cc4 Updating IContext to our current style and making it less reliant on macros.
Updating code that uses IContext to a more conformant pattern of usage.
2013-10-05 18:12:16 +01:00
Mathew Sutcliffe
01af31d4da fixed bug which was discovered due to a GCC warning 2013-09-24 01:04:22 +01:00
Mathew Sutcliffe
dc436735cc suppressing various GCC warnings 2013-09-24 01:01:07 +01:00
Mathew Sutcliffe
0a6fbb8aac Specify full path to Windows find.exe, so GNU find is never used.
Argument to @contains()@ is @enabled@, not @-m64@, otherwise it will always return true.
2013-09-21 23:54:56 +01:00
Roland Winklmeier
0d2742fe96 Added proper mingw identification for external libraries 2013-09-21 21:58:44 +02:00
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