Commit Graph

3226 Commits

Author SHA1 Message Date
Klaus Basan
0c01da4c8e Minor changes such as parameter warnings, added metatype registration for voice
refs #81
2014-01-08 01:01:26 +00:00
Roland Winklmeier
db4a3c5de4 Refactoring and clean up of voice implementation
refs #36
- Cleanup of library and sample code
- Completed now all signals in voice sample
- Fixed minor bugs with the user list
- TODO: Remove the VATSIM id from the user string

refs #81
2014-01-08 01:01:23 +00:00
Roland Winklmeier
0bae898db8 Added commands to voice sample. Test successfull refs #36 - Added commands to list input and output devices - Fixed some compiler errors on win - Voice confirmed working on windows and linux
Signed-off-by: Roland Winklmeier <roland.m.winklmeier@gmail.com>

refs #81
2014-01-08 01:01:20 +00:00
Roland Winklmeier
158de31c0b Added CAudioDevice and cleaning up IVoice
refs #36
- Added a common class CAudioDevice encapsulating each audio device
- One subclass for input and output devices
- Changed IVoice interface slightly to better fit into the event flow

refs #81
2014-01-08 01:00:57 +00:00
Roland Winklmeier
fcebc44b02 Added class CVoiceRoom
refs #36
- This class encapsulates the information on a voice server room.
- It basically consists of the tuple hostname and channel

refs #81
2014-01-08 01:00:50 +00:00
Roland Winklmeier
f24d16019f Minor fixes for linux build
refs #36
- Fixed compiler error in context.cpp (is not used anymore, but was still annoying)
- GCC was complaining about the template definitons in blackgui. Removing typename fixed it.
- Fixed a bug in qmake. Unfortunately qmake mkspec was just linux-g++ (not linux-g++-64), so added this case.
- Fixed a PRE_TARGETDEPS bug
- QMake has strange behaviour with DBUS_ADAPTORS: include the header somewhere, otherwise it won't be generated.

refs #81
2014-01-08 01:00:39 +00:00
Klaus Basan
7410d6aeb2 translations files for all kbatclist branch changes
refs #81
2014-01-08 01:00:31 +00:00
Klaus Basan
1f2a88e502 context classes, runtime classes, and related infrastructure
refs #81
2014-01-08 01:00:24 +00:00
Klaus Basan
7cbfca1402 do rounding in CModulator::setFrequency functions
refs #81
2014-01-08 01:00:10 +00:00
Klaus Basan
2bf9042ffa fixed mistake in CModulator::getFrequencyStandby
refs #81
2014-01-08 01:00:06 +00:00
Klaus Basan
bf0a849a7c CTransponder: setting code as string and refactored validation
refs #81
2014-01-08 01:00:02 +00:00
Mathew Sutcliffe
c37e160a42 simple memory profiling on Windows using the CRT debug heap
refs #81
2014-01-08 00:59:59 +00:00
Klaus Basan
4747b3b484 new value objects for aviation, network, and settings
refs #81
2014-01-08 00:59:39 +00:00
Klaus Basan
fe1a570c39 classes for status messages
refs #81
2014-01-08 00:59:34 +00:00
Mathew Sutcliffe
a57e640398 generic type-erased container types CSequence and CCollection, including predicate-based algorithms
refs #81
2014-01-08 00:59:31 +00:00
Klaus Basan
c72e8a4a27 made strictness optional in CMeasurementUnit::unitFromSymbol
refs #81
2014-01-08 00:59:27 +00:00
Klaus Basan
f247399575 register CMeasurementUnit as a Qt meta type
refs #81
2014-01-08 00:59:24 +00:00
Klaus Basan
2cdc2abeb5 CMath::epsilonEqual fuzzy comparison function for doubles
refs #81
2014-01-08 00:59:19 +00:00
Klaus Basan
b0e212998f degree/radian conversion functions
refs #81
2014-01-08 00:59:16 +00:00
Klaus Basan
f49341841e suppress a compiler warning
refs #81
2014-01-08 00:59:13 +00:00
Klaus Basan
f6905d1d8b format latitude and longitude strings with cardinal directions
refs #81
2014-01-08 00:59:10 +00:00
Klaus Basan
76e2421ba2 WGS84 function in CCoordinateGeodetic
refs #81
2014-01-08 00:59:06 +00:00
Klaus Basan
bf1837b414 CValueMap generic representation of a value object as a map of QVariants
refs #81
2014-01-08 00:59:03 +00:00
Klaus Basan
a280d239e6 using hashes to perform comparisons between blackmisc value objects stored inside of QVariant
refs #81
2014-01-08 00:59:00 +00:00
Klaus Basan
67a5dbfe48 converting value objects to/from QVariant
refs #81
2014-01-08 00:58:56 +00:00
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
ac1b014f1b minor fix, only in doxygen comments 2013-10-21 03:43:09 +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
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
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
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