Commit Graph

265 Commits

Author SHA1 Message Date
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
Klaus Basan
f4d1eadbe5 refs #139 , allows to store the native scan code and the virtual key code. Adjusted list to use changed constructor. 2014-02-26 03:38:33 +01:00
Klaus Basan
b52ef641c2 refs #91 , Doxygen 2014-02-26 03:38:32 +01:00
Klaus Basan
87352df468 refs #139 added keyboard key list to settings, so values can be changed 2014-02-26 03:38:30 +01:00
Klaus Basan
bb5865936b refs #139 added registration for CKeyboardKey et.al. 2014-02-26 03:38:29 +01:00
Klaus Basan
a42f67ef9a refs #139 list for keyboard keys and the corresponding models for the GUI 2014-02-26 03:38:28 +01:00
Klaus Basan
141706158f refs #139 , based on RW's class added a platform independent CKeyboardKey class
* Key value stored similar to Qt::Key
* 2 modifiers
2014-02-26 03:38:25 +01:00
Mathew Sutcliffe
7dafb522e0 refs #91 doxygen cleanup 2014-02-18 18:32:40 +00:00
Mathew Sutcliffe
35e0c3e085 refs #91 & #124 using override and \copydoc throughout blackmisc 2014-02-17 16:37:04 +00:00
Mathew Sutcliffe
3c8d4819e9 refs #124 fixed wrongly named virtual methods which failed to override virtuals in the base class,
discovered thanks to the override keyword
2014-02-17 16:37:03 +00:00
Mathew Sutcliffe
f60b58ccd2 using intptr_t as the size_type for containers
refs #92 fixes MSVC "possible loss of data" warning when compiling for 64bits
2014-02-17 16:37:02 +00:00
Mathew Sutcliffe
2dd72c6d3e refs #104 replaced all remaining hash-based comparisons with the multimethod compare() 2014-02-17 16:37:01 +00:00