Klaus Basan
5a15e74f63
Ref T241, misc. logger improvements
...
* string formatting of logger info
* display longer in simulator
* better formatting of message
2018-02-05 03:45:25 +01:00
Klaus Basan
78711487a6
Ref T241, moved inner logger classes out CInterpolationLogger
...
Reason: More options, such as forward declaration
2018-02-04 09:00:23 +01:00
Klaus Basan
4482e6fdc3
Include order
2018-02-04 09:00:20 +01:00
Klaus Basan
52bf09eaf7
Ref T241, some improvements for timestamp based
...
* this->m_ => m_
* is[Older/Newer]ThanAdjusted
2018-02-04 09:00:17 +01:00
Klaus Basan
2eb7e602e3
Inperolator log. improvements
2018-02-04 09:00:14 +01:00
Roland Winklmeier
c286635e76
Further CRawFsdMessageComponent UI improvements
...
* Replace CheckBox with Pushbutton and Statusbar to enable/disable
* Add Clear button to clear all messages in display and buffer
* Keep all widgets always enabled
ref T240
2018-02-04 09:00:11 +01:00
Roland Winklmeier
0c7d2b23f4
Fix race condition between previous and next weather request
...
Once a weather request was finished, its worker gets destroyed automatically
but not immediately. This can cause it to still exist, when the next
request is being processed.
Therefore wait with sending the fetchingFinished() signal, until the
worker is fully destroyed.
ref T235
2018-02-04 09:00:08 +01:00
Roland Winklmeier
597f3f7a6a
Add basic weather handling to emulated simulator
...
It won't do much apart from requesting a weather grid. It might be useful
in the future to debug the weather engine. But for now it helps to detect
issues in the request path.
ref T235
2018-02-04 09:00:05 +01:00
Roland Winklmeier
1b5a0a7f4d
Rename private slots to private functions
2018-02-04 09:00:02 +01:00
Roland Winklmeier
266e8a768d
Add .astylerc to project
...
By adding it, QtCreator automatically finds and uses it in its
Beautifier plugin.
2018-02-04 08:59:59 +01:00
Klaus Basan
7f492c5ad3
Ref T243, BLACKMISC_EXPORT_DEFINE_TEMPLATE fixes for gcc
2018-02-04 08:59:57 +01:00
Klaus Basan
7c9f2e9aa2
Ref T243, verify parts/positions order (latest first)
2018-02-04 08:59:54 +01:00
Klaus Basan
89f98a3137
Ref T240, added push_backMaxElements in CSequence
2018-02-04 08:59:45 +01:00
Klaus Basan
17e1d42da1
Ref T240, formatting
2018-02-04 08:59:42 +01:00
Klaus Basan
80f5d9b595
Ref T240, use ITimestampBased / ITimestampObjectList
...
* using the existing base classes (interfaces) gives you plenty of useful utility functions
* hint: we do not init with current timestamp as default as this is relatively slow
2018-02-04 08:59:39 +01:00
Klaus Basan
5b87b60682
Ref T240, style/minor fixes
...
* Q_DECLARE_METATYPE was wrong
* missing/unused include
* suppress CPP check warning
2018-02-04 08:59:36 +01:00
Klaus Basan
686f8067d1
Formatting, style
2018-02-04 08:59:33 +01:00
Klaus Basan
16b49cfa46
Ref T226, completer improvements
...
* a location can home multiple airports
* use a combined name for that reason in completers
2018-02-04 08:59:30 +01:00
Klaus Basan
d903a20f5e
Ref T243, use offset times from network vatlib
...
* no need to check on own situations if the offset time is already set
* use push_frontKeepLatestFirst to ensure order (latest parts/situations first)
2018-02-04 08:59:20 +01:00
Klaus Basan
9fd54864f0
Ref T243, const value in provider to have it in a single place
2018-02-04 08:57:53 +01:00
Klaus Basan
7e0c1033ba
Ref T243, use offset times from network vatlib
...
* changed network config received signature (now with offset time)
* removed code to fix offset time, no longer needed
* using push_frontKeepLatestAdjustedFirst guaranteeing correct order
2018-02-04 08:57:32 +01:00
Klaus Basan
6e933b089c
Ref T243, track position updates to determine offset times directly in network vatlib
...
* track position updates and keep records of offset times
* hence parts and positions can already have a dynamic offset time
* parts config received will include this offset time
2018-02-04 08:53:54 +01:00
Klaus Basan
278056c62b
Ref T241, Ref T243, utility function toIncrementalJson for parts (adds the JSON attribute)
2018-02-04 08:53:52 +01:00
Klaus Basan
51ba6398bb
Ref T241, Ref T243, ITimestampWithOffsetObjectList
...
* there was already ITimestampWithOffsetBased for objects
* this creates the container version
* functions to add objects (parts/situations) and guarantee the sort order
* moved push_frontMaxElements to CSequence (not specific for timestamp lists)
* added in-place reverse
2018-02-04 08:53:50 +01:00
Klaus Basan
e9e0ae1ff4
Ref T241, Ref T243 formatting and minor tweaks
...
* unified how we write thread_local const
* ASSERTs
* formatting
2018-02-04 08:53:48 +01:00
Klaus Basan
f99e82ac24
Ref T243, track the interpolated time ("real time" of interpolated situation)
...
* keep that time in interpolant
* set it for current position
* some comments and renamings
2018-02-04 08:53:45 +01:00
Klaus Basan
6a2435074c
Ref T241, further improved interpolation logging
...
* all interpolation positions can be logged (3 for spline, 2 for linear)
* interpolated (log) time, setting to real time (i.e. unadjusted time)
* only set logger values with logger attached
2018-02-04 08:50:55 +01:00
Klaus Basan
74098cffa8
Ref T226, using airport completer
2018-02-02 21:34:44 +01:00
Klaus Basan
2da12e2dd8
Ref T226, airport completer
...
* a bigger one with name
* same as dialog
* smaller one, using the dialog
2018-02-02 21:34:42 +01:00
Klaus Basan
37ff498e7e
Ref T226, country selector
2018-02-02 21:26:54 +01:00
Klaus Basan
bb65b7c280
Ref T226, renamed to swiftDbAllDataRead
2018-02-02 21:26:52 +01:00
Klaus Basan
5aad426ced
Ref T239, removed "QTimer m_xxx { this };" pattern
...
* not in worker classes as parent might have a relevance there
* in UI classes it is useless
2018-02-02 21:26:50 +01:00
Roland Winklmeier
b12002caa2
Improve the performance and usability of the raw FSD message display
...
* Replaced QListView with QPlainTextEdit
* Added filter options for packet type and text
* Option to globally disable/enable the feature. Default disabled
Maniphest Tasks: Ref T240
2018-02-02 21:26:25 +01:00
Roland Winklmeier
58d128a9da
qgsttools_p was renamed to Qt5MultimediaGstTools in Qt 5.10 onwards
2018-02-02 21:26:23 +01:00
Klaus Basan
0101e31db2
Ref T237, find latest DB cache ts and only init caches if there are no or old cache data
2018-01-30 23:34:12 +01:00
Klaus Basan
fd6bfdb7c0
Ref T237, using EntitySet = QSet<CEntityFlags::Entity>
2018-01-30 23:34:10 +01:00
Klaus Basan
9781f106ad
Minor UI fix (renaming)
2018-01-30 23:34:08 +01:00
Klaus Basan
8f8c2fb96d
Formatting
2018-01-30 20:35:39 +01:00
Klaus Basan
9d1c30e3d4
Ref T237, latest DB data
2018-01-30 20:35:37 +01:00
Klaus Basan
801b584c87
Ref T237, init DB caches from installer files
2018-01-30 20:35:34 +01:00
Klaus Basan
f3afde76ff
Ref T237, init/read from JSON files
...
* multi format compatible (automatically detect format)
* flag if cache values shall be overridden
* init from resource files (those are the files coming with the installer)
* automatically read in background if reader is (already) in its own thread (otherwise cache.set() ASSERT)
2018-01-30 20:35:32 +01:00
Klaus Basan
28b5ec9ec6
Ref T237, JSON functions
...
* container file JSON function automatically detecting JSON format (swift, cache, DB)
* utility functions
2018-01-30 20:35:30 +01:00
Klaus Basan
deddf7c957
Ref T237, init caches from resource files (means the files delivered with swift)
...
* initFromLocalResourceFiles reads all local DB data
* made 2 functions virtual readFromJsonFiles, readFromJsonFilesInBackground
2018-01-30 20:35:25 +01:00
Klaus Basan
c6b942dc15
Fixes an issue reported by @rphohl that XSwiftBus is not found
...
* only download non-restricted versions
* utility functions to find non-restricted versions
2018-01-30 20:35:22 +01:00
Klaus Basan
39533a7508
Ref T231, Ref T236, Ref T238 improved logging "toQString" of hints/setup improved
2018-01-30 20:35:20 +01:00
Klaus Basan
27fb57ca39
Minor UI fix (wrap label)
2018-01-30 20:35:17 +01:00
Klaus Basan
1f1ea1de5b
Minor Ui adjustments ATC component
2018-01-30 20:35:14 +01:00
Klaus Basan
2d0fbfa3c5
METAR formatting, style, string concat (builder)
2018-01-30 20:35:11 +01:00
Klaus Basan
69e2ed6efe
Ref T231, Ref T236, Ref T238 improvements based on Unit test
...
* check for a correct callsign (assert)
* set callsign if missing (fallback)
* resetLastInterpolation - null last inperpolation
2018-01-30 20:35:09 +01:00
Klaus Basan
0a06ad223f
Ref T231, Ref T236, Ref T238 improvements of interpolator
...
* keep last interpolated sitation, removed m_isFirstInterpolation
* allow to obtain the old/new situation
* transfer of elevations to newer situations
2018-01-30 20:35:07 +01:00