Commit Graph

3233 Commits

Author SHA1 Message Date
Klaus Basan
2ae2370299 refs #649, read data per simulator, not for "current simulator" 2016-06-08 18:20:43 +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
4b8ab847a0 refs #661, added a label/icon to context order menu as proposed in the meeting 2016-06-08 18:20:41 +02:00
Klaus Basan
2281b2f030 Minor fix for country 2016-06-08 18:20:40 +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
771c531125 Avoid scaling for null pixmaps (results in warnings) 2016-06-08 18:20:38 +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
467f37db7f refs #649, added check for changed base URL to database reader
(continued #649 after fixes of #664)
2016-06-08 18:20:35 +02:00
Klaus Basan
8ad640704c refs #661, allow to sort by distributor order in builder
* some style changes
* pass distributors to builder
* distributor model mode
* flags
2016-06-08 18:20:34 +02:00
Klaus Basan
c13b9ded55 refs #661, prepared value objects for distributor sort order 2016-06-08 18:20:33 +02:00
Klaus Basan
46d849830f Removed unused code 2016-06-08 18:20:32 +02:00
Klaus Basan
cd8d06c0b5 Fix doxygen issue noticed on gcc Jenkins build 2016-06-08 18:20:31 +02:00
Klaus Basan
97742f4a87 refs #661, improved model set dialog
* allow to change simulator
* consider distributor preferences for new model set
* error messages in dialog, therefor use CForm as base class
2016-06-08 18:20:30 +02:00
Klaus Basan
cc166020b9 refs #661, fixed server settings
(settings were not displayed added in GUI as displayed in presentation)
2016-06-08 18:20:29 +02:00
Klaus Basan
988251b079 refs #661, default value for enabled simulators 2016-06-08 18:20:28 +02:00
Klaus Basan
0aa916f057 clang: error: default initialization of an object of const type 'const BlackMisc::Aviation::CAirlineIcaoCodeList' without a user-provided default constructor 2016-06-08 18:20:27 +02:00
Klaus Basan
f92765d515 refs #661, reset order when creating a new model set
(found during demo in meeting)
2016-06-08 18:20:26 +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
Klaus Basan
0ff7791532 refs #661, info in context menu when force reload is unavailable
(KB/RW slack discussion)
2016-06-08 18:20:24 +02:00
Klaus Basan
54b1234f7f refs #649, refs #658 fixed includes to new subfolders "db"
some style changes in same step
2016-06-08 18:20:23 +02:00
Klaus Basan
5789bdd722 * refs #658, set user-agent "swift" to swift requests
some style changes in same step
2016-06-08 18:20:22 +02:00
Klaus Basan
954ddfb2e7 refs #649, refs #656, using caches in ICAO data reader
* access to info data reader (get DB metadata)
* adjusted database base class to support caches, info objects
* moved classes to subdir
2016-06-08 18:20:21 +02:00
Klaus Basan
6b7e05077c refs #656, info data reader (load DB metadata) 2016-06-08 18:20:20 +02:00
Klaus Basan
e5f8a5108f refs #649, refs #656, adjusted flags
* removed now outdated enums
* sorted enums (better debugging)
* utility functions
2016-06-08 18:20:19 +02: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
9606ab12db refs #649, enum to specify which swift application is running
(remark: used to check which caches will be used)
2016-06-08 03:59:05 +02:00
Klaus Basan
239f410cef refs #649, info reader and shared URLs 2016-06-08 03:59:04 +02:00
Klaus Basan
74638c4c10 refs #649, caches for DB data 2016-06-08 03:59:03 +02:00
Klaus Basan
bedcc675be refs #649, refs #656, register metadata for value objects and further adjustments
* .pro files for new subdirs
* property index
2016-06-08 03:59:02 +02:00
Klaus Basan
2e4d5fd40e Added operator for QFlags 2016-06-08 03:59:01 +02:00
Klaus Basan
2df190514f refs #649, added flags amd configuration class for caching strategies of DB data
(use cache? TTL? ...)
2016-06-08 03:59:00 +02:00
Klaus Basan
7767e53652 refs #649, refs #656, move swift DB classes to own namespace/directory 2016-06-08 03:58:59 +02:00
Klaus Basan
f7659e9021 refs #656, value objects for DB metadata (latest changes) 2016-06-08 03:58:57 +02:00
Mathew Sutcliffe
e67c07f8c5 refs #659, #657 Fixed a mistake where admitting an uncached value could cause synchronize() to wait forever. 2016-06-06 18:27:52 +01:00
Mathew Sutcliffe
d53237cebc refs #659, #657 Fixed mistake in synchronize() where a future would be broken prematurely if async load had not yet started after 1 second timeout. 2016-06-06 18:27:51 +01:00
Mathew Sutcliffe
aefef81cd7 refs #659 Read-only versions of cache value access classes. 2016-06-05 21:18:52 +01:00
Mathew Sutcliffe
a2b0602c53 refs #659 Fixed minor mistakes. 2016-06-05 21:18:49 +01:00
Mathew Sutcliffe
36cb07cb1f refs #665 Cache will only load and save the values that it really needs to. 2016-06-04 01:15:31 +01:00
Mathew Sutcliffe
50de252ff6 refs #659 Fixed a bug where valid timestamps of unloaded values would be lost when writing a new .rev file. 2016-06-04 00:51:01 +01:00
Mathew Sutcliffe
0bb17414ac refs #659 Cache value with timestamp of 0 should still be loadable. 2016-06-04 00:51:00 +01:00
Mathew Sutcliffe
8377ab2e51 refs #659 Method to get timestamp from revision file without loading value. 2016-06-04 00:50:59 +01:00
Mathew Sutcliffe
5559d1fcc6 refs #659 Use a threadsafe queue for admit(), to avoid a race with synchronize(). 2016-06-04 00:50:54 +01:00
Mathew Sutcliffe
f1a9ae5a13 refs #659 Add the method CData::admit() which causes a value with deferred loading to be loaded. 2016-06-04 00:50:47 +01:00
Mathew Sutcliffe
29cea55bc9 refs #659 Allow setting a "deferred" flag in data cache values, causing the value not to be loaded. 2016-05-26 20:03:13 +01:00
Mathew Sutcliffe
4c08d1cc86 refs #659 Use constexpr with isPinned method of data cache traits. 2016-05-26 19:57:22 +01:00
Mathew Sutcliffe
d0d100da5e refs #664 Use timestamps from .rev file instead of the filesystem timestamps of the json files. 2016-05-26 18:03:21 +01:00
Mathew Sutcliffe
4bc8326389 refs #664 Fixed bug in data cache log message creation. 2016-05-26 18:01:42 +01:00
Mathew Sutcliffe
fa7aa6446b refs #662 Work around MSVC2015 bug causing failure to detect getLogCategories() in some conditions. 2016-05-25 19:25:52 +01:00