Commit Graph

3226 Commits

Author SHA1 Message Date
Roland Winklmeier
dd2e212f92 Add value object CAircraftSituationList
refs #169
2014-03-30 13:45:04 +02:00
Mathew Sutcliffe
c847237505 Using nested tie to workaround implementations with a maximum tuple size of 10.
refs #182
2014-03-28 17:07:36 +00:00
Mathew Sutcliffe
e1e024e62e Change compare to be recursive in the case of nested calls to tie.
refs #182
2014-03-28 17:04:50 +00:00
Mathew Sutcliffe
1dfb406d54 Replaced std::tie with BlackMisc::tie, to help workaround tuples with more than 10 members.
This required some changes to the signatures of compare, qHash, and stream operators.
refs #182
2014-03-28 17:02:49 +00:00
Mathew Sutcliffe
6cf5089b18 minor style improvement:
traits class should have a static const bool value member
2014-03-28 17:00:51 +00:00
Mathew Sutcliffe
bfce2d186f removing/simplifying uses of enable_if for JSON streaming operators 2014-03-28 15:03:56 +00:00
Mathew Sutcliffe
3ac59f0872 fixing typos, doxygen, and style from #192 2014-03-28 15:02:47 +00:00
Klaus Basan
bbb4ddbaef refs #196, fixed wrong inits with ModeS instead of StateStdby (Transponder) 2014-03-27 01:55:19 +01:00
Klaus Basan
d4f1221665 refs #197, unit test and preliminary fix for nullUnit comparison 2014-03-27 01:16:14 +01:00
Klaus Basan
5bdb8659ca refs #196, encapsulated transponder mode selection (combo box)
* promoted QComboBox in GUI
* features automatic reset for ident
* Conversion to CTransponder::TransponderMode from string
2014-03-27 01:13:19 +01:00
Klaus Basan
5b11de4da0 refs #192 , minor fixes after integration of #126 2014-03-26 21:28:25 +01:00
Klaus Basan
87e4267872 Slightly improved version of compareImpl in containerbase.h 2014-03-26 20:18:49 +01:00
Klaus Basan
57435b2a73 refs #192, some housekeeping during the JSON introduction
* removed unused tryGet methods for transponder / COM
* adjusted unit tests
2014-03-26 20:18:47 +01:00
Klaus Basan
e2461cb67c refs #192, Doxygen / formatting 2014-03-26 20:18:46 +01:00
Klaus Basan
853259709a Fixed transponder mode from String conversion 2014-03-26 20:18:45 +01:00
Klaus Basan
b9ed8c7186 Fixed comparison of callsign, which should be string based, not tupel based 2014-03-26 20:18:43 +01:00
Klaus Basan
88fb9e8832 refs #192, enable value objects for JSON:
* from/toJson methods
* jsonMembers where applicable
2014-03-26 20:18:42 +01:00
Klaus Basan
586e1e4053 refs #192 , enabled CValueObject for JSON
* operators
* from/toJson method
2014-03-26 20:11:34 +01:00
Klaus Basan
0d4abb4c91 refs #192, JSON operators except for CValueObject 2014-03-26 20:11:32 +01:00
Klaus Basan
a724f7ee91 refs #192, Doxygen and other cosmetic changes 2014-03-26 20:11:31 +01:00
Klaus Basan
9d1f8a63f3 refs #192 , added JSON support to tupel
* jsonMembers() method in Macro
* serializeJson / deserializeJson for tupels
2014-03-26 19:51:03 +01:00
Klaus Basan
23e54e383e refs #189, fixed CPqString::getMetaTypeId() 2014-03-26 19:51:02 +01:00
Klaus Basan
f9246cb5f9 refs #189 , PQ string class which allows parsing strings like 100m/s.
pqbase contains template method to determine a valid unit.
2014-03-26 19:51:00 +01:00
Klaus Basan
09b1daf8ec refs #185 , new StatusMessage type: TypeSimulator, 2014-03-26 19:50:54 +01:00
Klaus Basan
8848655235 refs #185 , added checks for IPs 2014-03-26 19:50:53 +01:00
Klaus Basan
a38385e6e6 refs #184 , moved template into global namespace, see https://dev.vatsim-germany.org/issues/184#note-2 2014-03-26 19:50:51 +01:00
Mathew Sutcliffe
fd926b867d refs #126 using the new null unit infrastructure instead of -1 sentinel values 2014-03-26 13:26:09 +00:00
Mathew Sutcliffe
8b1ef4345d refs #126 null unit infrastructure, a sentinel to mark an uninitialized or unused physical quantity 2014-03-26 13:20:53 +00:00
Mathew Sutcliffe
afc494ee5e Replaced certain doxygen comments with \private commands without introducing any warnings.
refs #91
2014-03-23 21:25:47 +00:00
Roland Winklmeier
5cac09f625 Fixed issues arised after merge
- wrong namespace in newly created headers
- wrong includes
- Fixed members in CKeyboardKey
- Fixed CKeyboardKey unit test
2014-03-11 22:24:25 +01:00
Roland Winklmeier
e978b6dee1 Central build configuration
* config.pri: Build configuration version
* library.pri project library dependencies
* build.pri: compiler/qmake configuration

refs #145
2014-03-11 22:01:31 +01:00
Roland Winklmeier
f3076372d1 Add CKeyboardKey unit tests to BlackMisc testcases
refs #83
2014-03-11 21:50:24 +01:00
Roland Winklmeier
492a950877 Add methods to generally add/remove modifiers in CKeyboardKey
It adds a modifier if modifer1 or modifer2 are set to None.

refs #83
2014-03-11 21:50:23 +01:00
Roland Winklmeier
9a5f2b2003 Remove native scan code from CKeyboardKey
Remove isPressed status from CKeyboardKey
Switched key value to Qt::Key

There is no way on OSX to get the native scan code of a key.
Therefore it is removed from this class, because we might
create dependent code which will not run on OSX.
CKeyboardKey is a abstraction of platform keys. It was representing
also the status when CKeyboardKey was sent in signals. So this
can be removed. Pressed status is sent as argument to the registered
method.

refs #83
2014-03-11 21:50:22 +01:00
Klaus Basan
0d306861f0 refs #140, removed MACRO DBUS_ENUM_MARSHALLING, changed to template
discussed in https://dev.vatsim-germany.org/issues/140#change-864
2014-03-11 21:08:59 +01:00
Klaus Basan
2911c1d14a refs #127, CAircraftIcao: rename members 2014-03-11 01:28:27 +01:00
Klaus Basan
53c3c814f8 refs #74 , minor tweak in CValueObject 2014-03-10 20:03:40 +01:00
Klaus Basan
5ef31069d2 refs #140 , Doxygen comments to avoid warnings 2014-03-10 14:57:29 +01:00
Klaus Basan
34320ad3e1 refs #140, changed CValueObject classes to tupel concept
Remarks: Changes looking like an added file result from the shift of namespace voice -> audio
2014-03-10 14:48:56 +01:00
Klaus Basan
8f6a22e833 refs #140 , macro to enable enums in CValueObject classes for DBus marshalling, and hence to be used woth tupels. 2014-03-10 14:44:29 +01:00
Klaus Basan
dde9710144 Refs #140 , refs #85 Rename namespace voice to audio.
In #85 the voice context will be renamed to audio context, so the CValueObject classes will be renamed to namespace Audio too.
As #140 changes many CValueClasses, this crossover change is done in the same unit of work.
2014-03-10 14:43:06 +01:00
Mathew Sutcliffe
e93ef236af refs #140 doxygen, comment, and include tweaks 2014-03-07 23:15:58 +01:00
Mathew Sutcliffe
7f92b5dbc9 refs #140 to demonstrate the new tuple framework, adapted five typical value classes to use it 2014-03-07 23:15:57 +01:00
Mathew Sutcliffe
fcd3dc09ef refs #140 framework for using std::tuple to reduce repetitive coding in value classes 2014-03-07 23:01:25 +01:00
Klaus Basan
724b424d60 refs #146 , added methods to update from data file reader (e.g.) updateFromVatsimDataFileAircraft
* updateFromVatsimDataFileStation
* updateFromVatsimDataFileAircraft
* Changed to 1 line comments //! where applicable
2014-02-26 03:44:36 +01:00
Klaus Basan
8208e5858a refs #146 , using ", " in convertToQString -> better readability and word wrap 2014-02-26 03:44:33 +01:00
Klaus Basan
92c0a23749 refs #146, changed CStatusMessage so type can be set for getInfoMessage 2014-02-26 03:44:32 +01:00
Klaus Basan
6a24626c79 refs #146, Minor changes and cleanup tasks
* CCallsign::getCallsignPronounced -> getTelephonyDesignator
* CAircraft , comments renamed to 1 line style //!
* CAtcStation, comments renamed to 1 line style //! and added method hasValidFrequency()
* CAvioTransponder changed formatting
* CUser, comments renamed to 1 line style //!
* CCallsign, m_callsignPronounced -> m_telephonyDesignator , comments renamed to 1 line style //!
2014-02-26 03:44:31 +01:00
Klaus Basan
59ff750b4a refs #144 , improved file deleter , no dependency of QObject anymore, now using single deleter object 2014-02-26 03:40:57 +01:00
Klaus Basan
7b1fa5617d refs #144 Util class, deleting temp files when application shuts down. First used with soundgenerator's temp. wav-files 2014-02-26 03:40:55 +01:00