Lars Toenning
72ac4e6b47
Fix doxygen warnings
...
Fixes #188
2023-04-05 18:59:41 +02:00
Mat Sutcliffe
7691e42a5b
Fix doxygen warnings
...
Fixes #188
2023-04-05 18:57:11 +02:00
Mat Sutcliffe
2b72600937
Explicit template instantiations for mixins for value classes
...
To reduce compile time.
2021-10-11 14:20:07 +01:00
Mat Sutcliffe
3d129dc83f
Issue #77 Break cyclic dependency between CStatusMessage and CLogPattern by moving methods from one to the other
2020-12-19 18:50:38 +00:00
Mat Sutcliffe
211fd42eaf
Issue #77 Break cyclic dependency between CStatusMessage and CStatusException, by removing unused methods
2020-12-19 18:50:38 +00:00
Mat Sutcliffe
1991b4847a
Issue #77 Break cyclic dependency between CPropertyIndex and all other value classes
2020-12-19 18:50:36 +00:00
Mat Sutcliffe
363758e8ea
Issue #77 Move GlobalIndex enum from CPropertyIndex to CPropertyIndexRef
2020-12-19 18:50:36 +00:00
Mat Sutcliffe
0971c8ce68
Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant
2020-12-19 18:50:35 +00:00
Mat Sutcliffe
63e8de8f00
Issue #77 getLogCategories returns a simple QStringList instead of our own class
2020-12-19 18:50:34 +00:00
Mat Sutcliffe
b1185eb541
Issue #77 toIcon returns a simple enum instead of a full object
2020-12-19 18:50:31 +00:00
Mat Sutcliffe
89659fdeaa
Issue #77 Break cyclic dependency statusmessage <-> jsonexception
2020-08-29 14:16:19 +01:00
Mat Sutcliffe
b80114213d
Issue #77 Move mixin classes to separate files
...
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
2dc86652c2
Issue #77 Include style
2020-08-28 00:45:26 +01:00
Mat Sutcliffe
20c6bef800
Fixed mistakes in CStatusMessage copy assignment operator
2020-06-12 18:42:53 +01:00
Mat Sutcliffe
07e64099b1
Ref T725 Extend CLogMessage to allow ICoordinateGeodetic arguments,
...
using a system of traits to select the stringifier corresponding to the argument type.
2019-10-23 00:38:25 +02:00
Klaus Basan
3cb3724556
Status message << overload
...
https://discordapp.com/channels/539048679160676382/539925070550794240/598604482246475789
2019-09-16 22:40:24 +01:00
Mat Sutcliffe
6d9f9a286d
Ref T552 Using QDataStream marshalling mixins in value classes.
2019-04-12 13:30:55 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Klaus Basan
fe840613cb
Ref T529, added "IndexSeverityAsIcon", use logic sort order
2019-02-22 20:36:05 +00:00
Klaus Basan
3ba88c7c2f
Ref T529, added order for CStatusMessage
2019-02-22 20:36:01 +00:00
Klaus Basan
aa47d7bb03
Ref T529, style
2019-02-22 20:36:01 +00:00
Mat Sutcliffe
8599cbbd23
Ref T516 CStatusMessage constructors for UTF-16 string literals.
2019-02-22 20:35:51 +00:00
Mat Sutcliffe
d088a9bec4
Minor adjustments in CLogMessage implementation.
2019-02-22 20:34:58 +00:00
Mat Sutcliffe
cba820cbce
Ref T485 Update for efficient QString usage in CLogMessage:
...
- `debug()`, `warning()`, `error()` etc. overloaded on `const char16_t[]` to accept UTF-16 string literals.
- Overloads on `const char *` are deleted to avoid accidents.
- Message is stored as QString and/or QStringView depending which overload is used.
- The multiplexing between QString and QStringView is handled by a special value class, to keep the metaclass simple.
- QStringView does not have `arg()` method, so had to implement our own.
2019-02-22 20:34:54 +00:00
Klaus Basan
c8ba6946bd
Allow to enable HTML color (as tooltip must be "black")
2018-11-22 19:55:02 +01:00
Klaus Basan
753511cafb
HTML overlay status message, smaller form of overlay message
...
* improved toHTML (with icon)
* overlay message
2018-11-22 19:54:51 +01:00
Klaus Basan
b0814726d8
Status message without tabs/CR
2018-11-04 17:42:46 +01:00
Klaus Basan
dd687b7d90
Cppcheck and unit test fixes
2018-08-07 20:39:06 +02:00
Klaus Basan
1f9f148519
Status message fix, copy timestamp in assigmnet operator
...
* the timestamp of status message was not copied, so every time a status message was sorted or otherwise assigned the ts got lost or wrongly assigned.
* this meant the log messages were in wrong order, leading to very confusing results in the log screen or file.
* also added new timestamp formatter
* new function "BlackMisc::CVariant displayRole(const PQ &pq) const" which can be used if the PQ is already available
2018-05-12 21:40:27 +02:00
Klaus Basan
6c50c4ea72
Formatting, minor tweaks
2018-05-12 21:40:23 +02:00
Klaus Basan
77cd49cb0f
Ref T215, severity can be set for validation
2018-01-13 05:04:05 +01:00
Mathew Sutcliffe
047b9279b6
Provide CMessageBase::log for logging with severity configurable as parameter
...
Summary: Ref T198
Reviewers: kbasan, #swift_developers
Reviewed By: kbasan
Subscribers: jenkins
Tags: #swift_pilot_client
Maniphest Tasks: T198
Differential Revision: https://dev.swift-project.org/D64
2017-11-23 22:15:46 +00:00
Mathew Sutcliffe
921ef30eda
Use C++14 features to simplify our container base classes
...
Summary: Using C++14 function return type deduction we can simplify the CRTP in CContainerBase etc.
Reviewers: #swift_developers, rwinklmeier
Reviewed By: #swift_developers, rwinklmeier
Subscribers: jenkins
Tags: #swift_pilot_client
Differential Revision: https://dev.swift-project.org/D65
2017-11-23 21:59:09 +00:00
Mathew Sutcliffe
23becf9619
Ref T184 Use CTokenBucket to throttle identical log messages.
2017-11-12 13:48:04 +00:00
Klaus Basan
782639e7c9
Allow to use status message debug() with << like info(), ...
...
Slack discussion: https://swift-project.slack.com/archives/C04J6J76N/p1504372206000004
2017-09-24 19:54:00 +01:00
Klaus Basan
224c61c7e9
Ref T108, avoid duplicates in status message categories
...
and using string builder in CStatusMessage::convertToQString
2017-09-24 19:50:27 +01:00
Mathew Sutcliffe
b20ebd6dfd
refs #937 Resolved clazy warnings: rule of three.
2017-04-19 19:31:44 +01:00
Mathew Sutcliffe
3ea9e33e6b
refs #937 Resolved clazy warnings: pass-by-value/reference.
2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
4f6d3ed3a3
refs #815 Added convertFromJsonNoThrow methods which catch CJsonException and return CStatusMessage.
2017-01-10 23:46:34 +00:00
Klaus Basan
8341da2310
refs #846 , support message as HTML
2017-01-10 23:45:57 +00:00
Klaus Basan
24bf0b940f
refs #506 , utility function for status message
2017-01-10 23:45:45 +00:00
Mathew Sutcliffe
a0c20baf53
refs #697 Type traits renamed with T prefix.
2016-08-03 02:20:45 +01:00
Klaus Basan
0be85cf4fe
refs #649 , do not init to current timestamp follow up
...
Removed inherited constructors since I need to call non-default ITimestampBased constructor
In extra commit so I can replace it when there is a better solution
2016-06-08 03:59:07 +02:00
Roland Winklmeier
d0313c7524
Style
2016-05-20 01:31:26 +02:00
Klaus Basan
0f5d2a29a8
refs #655 , Change signature (order) of setProperty/compareProperty
2016-05-13 16:44:17 +02:00
Klaus Basan
8da559a186
refs #642 , as proposed by MS
...
https://dev.vatsim-germany.org/issues/642#note-4
2016-05-07 20:11:40 +02:00
Klaus Basan
d0daad7d34
refs #642 , fixed setup loading, in same step refs #636 clear cache
...
* changed signals in setup reader
* explicit mode is default
* detailed information what is loaded
* new log pattern
* allow to add message list to log component
* allow to clear cache by cmd line arg
* consolidated cmd names
2016-05-05 20:49:13 +02:00
Klaus Basan
a4e7ccd25c
Fixed status message verification/validation
...
slack discussion MS/KB
2016-04-11 20:16:18 +02:00
Mathew Sutcliffe
4e9d7d3efe
refs #628 Metaclass style compatible with the AStyle beautifier.
2016-04-06 15:15:12 +01:00
Mathew Sutcliffe
4bd4baa535
refs #628 Use the metaclass mixins in all value classes.
2016-04-03 18:17:43 +01:00