Commit Graph

46 Commits

Author SHA1 Message Date
Klaus Basan
a8a36591f8 Ref T285, Ref T292 central caches only work in same thread 2018-07-27 23:27:10 +02:00
Klaus Basan
ceaad53375 Ref T292, Ref T285 avoid unnecessary calls of cache synchronize in model set/model caches 2018-07-27 01:13:16 +02:00
Klaus Basan
94e3b89479 Ref T292, Ref T285 model loader and cache improvements
* multi caches also emit when values are set and synchronized
* model loader detects cache changed
* added CCentralMultiSimulatorModelCachesAware
2018-07-26 04:32:40 +02:00
Klaus Basan
a6ee6d4b72 Ref T292, Ref T285 minor style improvements, renamings 2018-07-26 04:32:38 +02:00
Klaus Basan
74fa7d7289 Ref T292, Ref T285 signal when "real" loading was started (loading from disk) 2018-07-25 02:37:13 +02:00
Klaus Basan
1d29b6b36f Ref T292, Ref T285 CCentralMultiSimulatorModelCachesProviderBase base class to create model/model set providers 2018-07-25 02:37:01 +02:00
Klaus Basan
b25e4ff3c0 Ref T292, model caches changes
* no longer track "current" simulator, as this resulted in too many signals
* CCentralMultiSimulatorModelCachesProvider keeping all model caches "in one memory location"
* style changes
2018-07-25 02:36:51 +02:00
Klaus Basan
d632d1ad4f Fixes in model loader and caches
* loader/multi cache can clear caches if that is ever needed
* check if cache needs to be synchronized when loaded and if, do it
* emit changed signal if caches are set
2018-07-25 02:36:46 +02:00
Klaus Basan
0023fbb57f Ref T246, function to display model count and timestamp of model/set caches 2018-07-17 19:05:07 +02:00
Klaus Basan
76334b75d1 Ref T246, model loader improvements / renamings 2018-07-17 19:04:55 +02:00
Klaus Basan
f2820d81a4 Ref T286, multi caches/setting utility functions to check other versions 2018-07-09 22:30:34 +02:00
Klaus Basan
ccd7c477e2 Ref T246, unified signal handling in model caches and loader
* setSimulator as checked, simulatorChanged as unchecked version
* some renamings
* made some functions private, turned public slots -> public
2018-02-10 01:33:48 +01:00
Klaus Basan
44b2e27d11 Ref T246, use different caches to remember single/multi simulator selections
* selector UI "can remember"
* different caches
2018-02-09 04:44:02 +01:00
Klaus Basan
f0d2336eb6 Ref T199, all file names of multi simulator caches 2018-01-14 18:47:46 +01:00
Klaus Basan
0975abcc46 Ref T215, remember last server and model as cache value
* also remember last server not VATSIM server
* remember last model used
* server list selector uses remembered value
* login component sets those values
2018-01-13 05:04:11 +01:00
Klaus Basan
8b8bc9b994 Ref T152, unified member usage: this->m_xx -> m_xx 2017-09-24 20:29:07 +01:00
Klaus Basan
725341cdbe Fixed some formatting for T152 (before changing the classes) 2017-09-24 20:29:05 +01:00
Klaus Basan
4d156ad8fc Ref T28, description for caches 2017-05-05 23:07:51 +01:00
Klaus Basan
0b29ef3f78 Clang warnings 2017-04-18 00:06:32 +01:00
Klaus Basan
2b50fe1fdb refs #906, utility functions in simulator info and model caches 2017-04-18 00:05:08 +01:00
Klaus Basan
ff0c37ff58 refs #889, log categories 2017-04-17 23:56:53 +01:00
Klaus Basan
8e55baaf85 Typos, QStringBuilder 2017-03-01 20:51:39 +01:00
Klaus Basan
73ba4e5ff2 refs #834, improved default value for last set/models simulator
Remark: The bug itself was slightly related to the default value, as only the default loader suffered from a not reset flag
2016-12-15 04:06:20 +01:00
Klaus Basan
2ccf3fd4a2 refs #787, caches/model set loader
* Caches initialized
* simulators with model set
2016-12-13 19:01:27 +01:00
Klaus Basan
f385e46d67 refs #781, added admit functions for model caches
* interface constructor protected
* flag for synchronize in ctor
2016-12-06 09:34:33 +01:00
Klaus Basan
1678ca8919 refs #780, improved model string completion
* added signatures for completer string (when send via context size matters)
* support of all instaled models in completer
* added BLACKMISC_EXPORT in model cache classes
2016-12-06 09:34:31 +01:00
Klaus Basan
11e32a065e refs #743, utility functions and formatting / typos
* simulator info for FS family / as set
* fixed synchronized typo
* info string for caches
* getter for cached models from the loaders
* get all FS family models (FSX/P3D/FS9) from list
2016-10-17 14:33:58 +01:00
Mathew Sutcliffe
0ae1e70923 refs #697 Data cache traits renamed with T prefix. 2016-08-03 02:20:27 +01:00
Klaus Basan
2a99bed0cd refs #656, MS review items https://dev.vatsim-germany.org/issues/656#note-4
Remove defaultValue where not needed
2016-06-08 18:21:03 +02:00
Mathew Sutcliffe
9bef6854ca Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get. 2016-06-08 18:21:01 +02:00
Klaus Basan
c39882e5db refs #649, further fixes and improvements
* call of non-virtual function in ctor
* use getCopy
* return number of merged models
* change current simulator in model set loader (fixes infinite loop: change data -> signal -> change data).
2016-06-08 18:20:59 +02:00
Klaus Basan
8673d2eada refs #649, use utility function to emit signal
(can be better traced in debugger)
2016-06-08 18:20:45 +02:00
Klaus Basan
81d88837f9 refs #649, add.function getSyncronizedValues
Normally getValue should transparently sync. But this force me to make the function non-const.
2016-06-08 18:20:42 +02:00
Klaus Basan
875b311ede refs #649, with #659 deferred caches available
* adjustments to use deferred caches
* removed simulator from CAircraftModelSetLoader`s signature as it was not used
* only change current simulator when explicitly set (avoid unintended setting)
* added function to obtain number of elements from model caches
2016-06-08 18:20:39 +02:00
Klaus Basan
bc926e592e refs #649, allow to guess used simulator (for default values) 2016-06-08 18:20:37 +02:00
Klaus Basan
e6f0db73c5 refs #656, using deferred for large caches 2016-06-08 18:20:36 +02:00
Klaus Basan
c0fda8687d refs #661, improved own model set handling
* fixed simulator selector
* added simulator selector to own model set component
* pinned last selections
* fixed model cache to use "getCopy"
2016-06-08 18:20:25 +02:00
Roland Winklmeier
3d7a39ed00 Fix BlackMisc header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #630
2016-05-13 17:05:49 +02:00
Mathew Sutcliffe
bf2a84b67c refs #614, allow CCached::NotifySlot to refer to a base class method 2016-05-07 20:11:42 +02:00
Klaus Basan
43f9515eaa refs #641, moved last simulator selection to caches
* removed from component cache
* kept renamed component caches as stubs for later usage

refs #646, removed gui state cache as it causes build issues on Jenkins
(idea was to keep the classes as stubs for later usage)
2016-05-07 20:11:41 +02:00
Klaus Basan
314c005ff2 refs #614, a generic interface to modify / update models so I can write generic functions for that purpose and use them
* interface for the caches
* generic model interfaces
2016-04-11 20:22:15 +02:00
Klaus Basan
f3ef7ad7ea refs #614, renamed to CAircraftModelSetLoader and detect changes in cache 2016-04-11 20:16:26 +02:00
Klaus Basan
057c88b0f2 refs #614, using threadsafe version of getCopy and Doxygen 2016-04-11 20:16:11 +02:00
Klaus Basan
a1d6492ff2 refs #614, moved cache to vPilot reader 2016-04-11 20:16:03 +02:00
Klaus Basan
c339a3d1e0 refs #619, use a combined cache class
* moved caches to blackmisc
* used CModelCaches in loader
* applied changes in simulator specific loader classes
* renamed find function to findFirstByModelStringOrDefault
* made merge function static so it can be used elsewhere
2016-03-30 13:41:51 +02:00
Klaus Basan
4087d63d9c refs #619, change model loader to use caches (one per simulator)
* removed caching from GUI component
* added caches in model loader
* adjusted samples
2016-03-23 03:24:54 +01:00