Mat Sutcliffe
4a0d8e9864
Fixed most Qt 5.14 deprecation warnings
2020-01-07 19:57:25 +00:00
Mat Sutcliffe
25eb13a83f
Fixed off-by-one in assert condition: %0 is not a valid format string placeholder.
...
Part 3 of hotfix for assert caused by percent character in vatsim-data.txt
2019-09-16 22:41:29 +01:00
Mat Sutcliffe
b2bfbabb18
Downgrade assert to verify, in case the format string came from an external data source.
...
Part 2 of hotfix for assert caused by percent character in vatsim-data.txt
2019-09-16 22:41:29 +01:00
Klaus Basan
c51dce8bfd
Style
2019-05-13 11:20:44 +02:00
Mat Sutcliffe
a78f455c18
Ref T585 Check for missing %n placeholders in log message format strings.
2019-04-12 14:54:48 +01:00
Mat Sutcliffe
d29576b67a
Ref T552 Register value classes with qRegisterMetaTypeStreamOperators.
2019-04-12 13:57:17 +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
b9bc0757c5
Status message string concat
2019-02-22 20:36:02 +00:00
Klaus Basan
3ba88c7c2f
Ref T529, added order for CStatusMessage
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
66a06427f9
Ref T495 Using QThreadStorage because thread_local caused a static destruction order fiasco.
2019-02-22 20:35:11 +00:00
Mat Sutcliffe
e709d27e05
Ref T488 Fixed mistake in CStatusMessage::severitiesToString.
2019-02-22 20:34:57 +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
Mat Sutcliffe
d6b5dca6b2
Return a default-constructed QString instead of implicitly converting an empty string literal.
2019-02-22 20:23:49 +00:00
Mat Sutcliffe
ace7650ebe
Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals.
2019-02-22 20:23:46 +00:00
Mat Sutcliffe
333ea1b8df
Fixed clazy warnings: empty QStringLiteral.
2019-02-22 20:23:32 +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
4098cc843f
Ref T306, remember directories value class
2018-08-26 15:27:00 +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
Mathew Sutcliffe
e8219efdde
Removed own implementation of std::index_sequence that was needed for GCC 4.9.
2017-11-14 17:51:09 +00: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
Klaus Basan
9eff387207
Removed deprecated funtions and changed code to use new functions
2017-01-10 23:47:10 +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
95a82f37a0
refs #800 QtInfoMsg severity was added in Qt 5.5, we can remove the category suffix workaround.
2016-12-13 19:00:36 +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
Klaus Basan
2b49591f1b
refs #649 , do not init to current timestamp
...
* force explicit init (performance/invalid objects)
* allow to find mising timestamps
* style
2016-06-08 03:59:06 +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
Klaus Basan
78b117cc6d
refs #618 , allow to directly create validation messages
...
Needed frequently, easier than always to join categories
2016-03-30 18:21:38 +02:00
Mathew Sutcliffe
bb1d9edfe9
Fixed missing mutex locks in CStatusMessage.
2016-03-22 00:31:12 +00:00
Mathew Sutcliffe
caa01f846b
refs #624 , #492 Refactor parts of CLogMessage into base class and use inheriting constructors to unify the construction idiom of CLogMessage and CStatusMessage.
2016-03-22 00:31:09 +00:00
Klaus Basan
c3722f9198
refs #485 , refs #584 removed include blackmiscfreefunctions.h
2016-03-18 01:07:49 +00:00
Klaus Basan
144ba62572
refs #601 , #600 , #485 Status message handling.
...
* follow up of debug session, added failure/success to status message
* return status messages instead of directly logging in functions returning CStatusMessage.
* Ignore empty preformatted messages.
* new log category
2016-03-17 19:45:04 +00:00
Klaus Basan
b09dbd4828
refs #568 , improved display / sorting for status message categories
...
* display technical categories when no hr categories are available
* compare function for status message
2016-01-28 16:32:01 +01:00
Klaus Basan
6802880e52
refs #568 , improved display for status message categories
2016-01-28 16:31:56 +01:00
Klaus Basan
6fc39fb2d5
refs #526 , category/statusmessage
...
* new categories
* utility functions in status message
2016-01-28 16:31:18 +01:00
Klaus Basan
3387caabdc
refs #562 , allow to validate models
...
* GUI part
* allow to merge a list of messages into one
* validation function
2016-01-28 16:27:32 +01:00
Klaus Basan
d6733d49bb
refs #522 , mutex for mutable members (thread safe)
...
* copy/assignment/lock for mutable members
* also removed redundant in status message (slack discussion MS/KB)
2015-11-26 13:54:47 +01:00
Klaus Basan
a4ba45ce75
refs #522 , as preparation for mutable in status message
...
* added the new human readable patterns ( also for #506 )
* adjusted using functions
Meeting:
https://dev.vatsim-germany.org/boards/22/topics/2786?r=2787#message-2787
2015-11-26 13:54:45 +01:00
Mathew Sutcliffe
d13e863218
refs #472 Removed static_cast<int> for enums in blackmisc, no longer needed.
2015-11-19 21:02:16 +00:00
Mathew Sutcliffe
a102fc73b6
refs #466 Resolved TODO items in logging.
2015-11-19 21:00:59 +00:00
Klaus Basan
b5477c7c94
refs #452 , status messages
...
* DB support
* finders and convenience methods
2015-11-19 20:58:51 +00:00
Mathew Sutcliffe
2aef4a2881
refs #297 Added CStatusException, a throwable exception class containing a CStatusMessage.
2015-11-19 20:51:24 +00:00