Commit Graph

134 Commits

Author SHA1 Message Date
Mathew Sutcliffe
4f4b77f2b2 CSequence: added sort method, an in-place companion to the sorted method
refs #81
2014-01-10 00:20:22 +00:00
Mathew Sutcliffe
08e978c8d6 moved from CContainerBase to CSequence those methods which only support sequential containers
refs #81
2014-01-10 00:20:21 +00:00
Mathew Sutcliffe
bc611263e9 slight change to how we declare our qHash overload for CValueObject,
which fixes some include order dependency shenanigans when compiling with GCC,
which was caused by the requirement to overload qHash for CCollection
and the way qHash interacts with the dreaded two-phase lookup for C++ templates

refs #81
2014-01-09 01:16:02 +00:00
Klaus Basan
64e14b7965 input and output volume stored as part of CModulator
refs #81
2014-01-09 01:16:02 +00:00
Mathew Sutcliffe
b475d7eff1 INetwork builds up the ATIS as it is received, line-by-line, keeping this implementation detail more encapsulated
refs #81
2014-01-09 01:16:01 +00:00
Klaus Basan
37d1466a83 added CCallsign::m_callsignPronounced
refs #81
2014-01-09 01:15:59 +00:00
Klaus Basan
1c1fdabd2e all voice changes from kbatclist branch
refs #81
2014-01-09 01:15:58 +00:00
Klaus Basan
bb61654a29 style and consistency:
* rename CStatusMessages to CStatusMessageList
* rename NetworkVatlib to CNetworkVatlib
* replace all occurrences of Realname with RealName (correct camel case)
* CSequence method corresponding to CList::append is push_back
* don't compile the qdbuscpp2xml metadata plugin by default
* CAircraftIcao string members always trimmed and capitalized
* added CComSystem::roundTo25KHz
* using epsilon comparison in a couple of places

refs #81
2014-01-09 01:15:56 +00:00
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