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
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
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
21b74dc912
fixed error caught by gcc
2013-09-01 17:55:38 +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
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
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
Roland Winklmeier
efacac77eb
refs #42
...
- Added DBus handler interface
- Added more complex flow to both samples
- Added custom class to be transfered
2013-08-07 01:32:13 +02:00
Klaus Basan
e6e6dea4cd
More DBus tests
2013-08-06 13:56:15 +02:00
Mathew Sutcliffe
0c310227b4
refs #22
...
* storing callsign and realname as QByteArray instead of QString makes it easier to ensure that C-strings passed to the shim have lifetimes coincident with the shim
* added a bit more error handling and invariant enforcement
* now we terminate the connection automatically on fatal errors
* added first doxygen comment (first of many)
2013-08-04 17:58:05 +01:00
gmt2001
d1e35c0b27
refs #22
...
Fix leading space and trailing LF in real name
Use proper const char* to const char* copy in NetworkVatlib::initiateConnection()
2013-08-04 01:54:03 -04:00
Mathew Sutcliffe
b8f26dce4a
refs #22
...
* Implemented a few more signals
* Support for storing the INetwork object in the IContext
* Improved exception handling
* Fixed some mistakes
2013-07-31 21:51:18 +01: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