Commit Graph

20 Commits

Author SHA1 Message Date
Mathew Sutcliffe
155b957cee refs #247 CVariant can inherit from CValueObjectStdTuple.
But if valueobject.h includes variant.h then it would create a circular dependency.
2014-12-13 01:41:49 +00:00
Klaus Basan
44d0cd002b refs #288, adjusted server and network views
* aircraft settings are gone, move to login screen
* no selected server needed anymore
* marked outdated methods as deprecated
2014-11-30 00:55:09 +01:00
Klaus Basan
5ff28cb3a1 refs #288, formatting, minor tweaks, utility methods, tabstops 2014-11-30 00:55:04 +01:00
Mathew Sutcliffe
4c8148acf1 refs #345 First wave of value classes using the CValueObjectStdTuple CRTP class template. 2014-11-10 20:44:25 +00:00
Mathew Sutcliffe
a294e8db0f refs #336 Using the new CLogMessage syntax to log messages. 2014-10-16 17:05:50 +01:00
Mathew Sutcliffe
b16b02c3d6 refs #316 Changed blackmisc and blacksim to use CLogMessage to emit messages.
Also changed functions which always returned CStatusMessageList containing a single CStatusMessage,
to return CStatusMessage instead for simplicity.
2014-10-04 22:16:40 +01:00
Klaus Basan
40b428a315 refs #314, renamed convertFromQVariant, convertFromJson
discussion: https://dev.vatsim-germany.org/issues/314#note-19
2014-08-24 02:47:16 +02:00
Klaus Basan
25122fad10 refs #273, fixed changed detection 2014-06-28 18:02:13 +02:00
Klaus Basan
9afe8b0f8b Formatting, tweaks, style sheet 2014-06-28 18:02:05 +02:00
Klaus Basan
42db1fe9ae refs #273, added settings for simulator
* added class
* adjusted settings context
* adjusted "global" methods as register metadata
* improved settings utility
* renamed "settingsallclasses" as settings can also be in other namespaces, settingsallclasses now in core
2014-06-28 18:01:55 +02:00
Mathew Sutcliffe
1b82536913 refs #116 demonstrate CVariant by using it in the settings context 2014-06-05 21:04:27 +01:00
Klaus Basan
a70bc1cb38 fixes as follow-up of meeting https://dev.vatsim-germany.org/boards/22/topics/1671
* asserts for relaySignals
* relay "message" in connection status changed
* bug in status message
* bug in saving settings

refs #198 refs #199 refs #207 refs #209
2014-04-17 00:11:59 +02:00
Klaus Basan
4a180fc27f refs #198, updated network settings so they can read/write JSON and be used with persistent settings 2014-04-17 00:05:56 +02:00
Klaus Basan
cf009d7b17 refs #198, renaming of method (for consistency) and Doxygen/formatting only 2014-04-17 00:05:39 +02: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
87352df468 refs #139 added keyboard key list to settings, so values can be changed 2014-02-26 03:38:30 +01:00
Mathew Sutcliffe
2dd72c6d3e refs #104 replaced all remaining hash-based comparisons with the multimethod compare() 2014-02-17 16:37:01 +00:00
Mathew Sutcliffe
db4c05dd9f refs #84 removed the CValueObject::compare method and added a friend function BlackMisc::compare to replace it.
The new compare is implemented using "multimethods" described in the book Advanced C++ Programming Styles and Idioms by James Coplien.

First, the isA method is used to determine which of the values being compared is the most general. (For example, CLength is more general than CAltitude.)
Then the compareImpl method is called on the most general value, with the other value as an argument.
If there is not a direct inheritance relation between the two values (or they are the same class) then the comparison is invalid and a assert is triggered.
2014-01-17 01:38:27 +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
4747b3b484 new value objects for aviation, network, and settings
refs #81
2014-01-08 00:59:39 +00:00