Commit Graph

3443 Commits

Author SHA1 Message Date
Mathew Sutcliffe
f8fc82019d Invert logic of CAtomicFile destructor:
abandon changes if destruction is due to an exception,
instead of applying changes if destruction is NOT due to an exception.
Because otherwise QFile destructor will apply changes regardless,
by calling the close method via virtual dispatch.
2016-08-26 21:04:42 +01:00
Mathew Sutcliffe
3c82bb3a9c Data cache shall emit an error message if it fails to save the revision file. 2016-08-26 21:04:40 +01:00
Roland Winklmeier
4733c72553 Simplify CThreadedReader to avoid race conditions
refs #731
2016-08-26 21:04:39 +01:00
Klaus Basan
6b0412d68d refs #725, fixed tab orders 2016-08-26 21:04:38 +01:00
Klaus Basan
d65c2dddfb refs #726, flight plan fixes
* airports as normal 4 character fields
* validation messsage if validation is OK
2016-08-26 21:04:37 +01:00
Klaus Basan
a8834d0511 refs #720, remove highlight DB data menu (we use the DB icon instead)
* removed menu item
* fixed menu action, so parents submenus are searched upwards
2016-08-26 21:04:36 +01:00
Klaus Basan
009bfc3ed1 refs #720, finder by Telephony designator (aka callsign) and name 2016-08-26 21:04:35 +01:00
Klaus Basan
dbdea2d846 Fix handling of base index properties in CAirport/ICoordinateWithRelativePosition 2016-08-26 21:04:33 +01:00
Roland Winklmeier
82324d3246 Fix injection of static weather scenarios 2016-08-26 21:04:32 +01:00
Klaus Basan
227262c2cc refs #720, finetuning
* show menus even if DB is not present
* avoid selection of too big data set (which takes to long to handle)
* remaining renamings
* show all sims in menu, even if not intalled
2016-08-26 21:04:31 +01:00
Klaus Basan
ecfe4ab1fc refs #720, stash component
* use centralized consolidation function (removed local duplicate)
* renamings
2016-08-26 21:04:30 +01:00
Klaus Basan
fa4b90c43a refs #720, support of filtered data 2016-08-26 21:04:29 +01:00
Klaus Basan
a9464ef537 refs #720, use interfaces directly with component
(menus functions can directly update data)
2016-08-26 21:04:28 +01:00
Klaus Basan
c591fe2517 refs #720, force reload of DB data loads directly from DB 2016-08-26 21:04:27 +01:00
Klaus Basan
c5dc61d64f refs #720, renaming in writer 2016-08-26 21:04:26 +01:00
Klaus Basan
6f61d323c2 refs #720, improved menu action
* show info when DB is not available
* allow to grey out menus (better as hiding them)
2016-08-26 21:04:24 +01:00
Klaus Basan
1167735897 refs #720, adjusted exposed functions to new naming
* some minor formatting
* use the new condolidation functions
2016-08-26 21:04:23 +01:00
Klaus Basan
d9a35563e3 refs #720, allow to filter by DB data
* tristate checkboxes
* can hide count element
* tab order
2016-08-26 21:04:22 +01:00
Klaus Basan
019b623f43 refs #720, adjusted model loader
* callback function to data consolidation (so I can refer to consolidation in BlackCore)
* use status message in parser
* avoid duplicate keys (WOAI has ambiguous model strings which are to be excluded)
2016-08-26 21:04:21 +01:00
Klaus Basan
d75b105ee3 refs #720, moved data consolidation with DB data into own class in BlackCore
(in blackcore I can access the readers)
2016-08-26 20:54:52 +01:00
Klaus Basan
f9922353c4 refs #720, improved distributor and airline/livery detection
* mark data read from DB (req. for string key where existing key value is not reliable indicator for DB data)
* detect distributors by part of model string
* use a simplified name (no spaces, no special characters) to find a match
* allow to obtain model strings (=keys) as set and list
2016-08-26 20:54:52 +01:00
Michał Garapich
39dae7ed45 Fix possible memleak in CDatabaseWriter
* CApplication network methods cleanup
2016-08-26 00:18:41 +02:00
Michał Garapich
1032b2f506 refs #650 Implement CAirportDataReader
* Add BlackCore::CAirportDataReader class
* Add cache traits for airport list
* Add corresponding WebReaderFlag
* Add CAirport::convertFromDatabaseJson()
* Add CApplication::headerFromNetwork() to handle HTTP HEAD method
2016-08-26 00:18:41 +02:00
Roland Winklmeier
a87a4a7ef1 Install crashpad binaries
refs #490
2016-08-09 17:52:28 +02:00
Roland Winklmeier
080e22fa4a create_symbolstore - a script to build breakpad symbol dir structure
Runs dump_syms on each debug info file specified on the command line,
then places the resulting symbol file in the proper directory
structure in the symbol store path.

refs #490
2016-08-09 17:52:19 +02:00
Roland Winklmeier
78eeecf052 Make crash dump uploading configurable
refs #490
2016-08-09 17:52:10 +02:00
Roland Winklmeier
e47aec223e Integrate Crashpad crash handler into CApplication
Crash handler launches an external crash handler executable called
swift_crashpad_handler. It monitores the parent process and produces
a local dump in case of a crash.
For release builds, the dump is also uploaded to a crash report server.

refs #490
2016-08-09 17:51:57 +02:00
Roland Winklmeier
4c82009ac1 Define DirectInput Version for Windows builds 2016-08-08 11:23:13 +02:00
Roland Winklmeier
0c51323db0 Fix incorrect include in fscommonutil.cpp 2016-08-08 11:23:07 +02:00
Roland Winklmeier
9f3b3c2420 Fix Mac OS X keyboard inputs 2016-08-08 11:22:57 +02:00
Roland Winklmeier
5dd5ff501d Initialize simulator plugin settings in CContextSimulator constructor 2016-08-05 11:49:32 +02:00
Roland Winklmeier
91d2556b16 [FSX] Signal simulator connected once SIMCONNECT_RECV_OPEN is received
refs #549
2016-08-05 11:49:32 +02:00
Roland Winklmeier
c92a8ea32c Refactor CContextSimulator::loadSimulatorPlugin
When a plugin is loaded, existing aircrafts should not be added
immediatly, but as soon as the simulator is simulating.
CContextSimulator also handles now the case that no simulator is
attached and all aircraft slots are now doing nothing instead of
raising an assert.

refs #549
2016-08-05 11:49:32 +02:00
Klaus Basan
3aee6174ac refs #719, avoid infinite loop when info object read succeeds, but has incorrect authorizations
* marker for info reader that it failed
* distinguish between "server cannot be connected" and other errors
2016-08-04 17:11:37 +02:00
Mathew Sutcliffe
a0c20baf53 refs #697 Type traits renamed with T prefix. 2016-08-03 02:20:45 +01:00
Mathew Sutcliffe
0ae1e70923 refs #697 Data cache traits renamed with T prefix. 2016-08-03 02:20:27 +01:00
Mathew Sutcliffe
8ce885eeba refs #697 XBus setting renamed. 2016-08-03 02:19:12 +01:00
Mathew Sutcliffe
7a34cc6d9a refs #697 BlackCore settings renamed and reorganized. 2016-08-03 02:19:11 +01:00
Mathew Sutcliffe
8275b0d9bf refs #697 BlackMisc settings renamed and reorganized. 2016-08-03 02:19:08 +01:00
Mathew Sutcliffe
e7c9d3b62f CDataCacheRevision: always need to lock the mutex when accessing m_updateInProgress. 2016-08-02 17:14:14 +01:00
Mathew Sutcliffe
88920501bf refs #715 Assert no longer appropriate: pruning revision file means calling writeNewRevision when m_pendingWrite is false. 2016-08-02 05:09:39 +01:00
Klaus Basan
515ce9b7bf Typo 2016-08-01 16:48:48 +02:00
Klaus Basan
862a84b661 refs #697, BlackGui settings renamed 2016-08-01 16:48:48 +02:00
Klaus Basan
8013a6ac9c refs #716, UI component for simulator message (what messages to relay to simulator)
* component itself
* integrate in tab panel
* minor UI adjustmenets
2016-08-01 15:51:58 +02:00
Klaus Basan
3554c0b718 refs #716, value class / setting 2016-08-01 15:51:56 +02:00
Mathew Sutcliffe
6691f8776e Fixed mistake in CSwiftGuiStdApplication. 2016-07-31 23:17:49 +01:00
Mathew Sutcliffe
91ba7d9f12 CLogMessageHelper::stripFlags: fixed mistake when using QString::section(). 2016-07-31 23:17:48 +01:00
Mathew Sutcliffe
b0dd2a76ff CAtomicFile invariant: any method that closes the file must restore the original filename. 2016-07-31 23:17:47 +01:00
Mathew Sutcliffe
98a2b3253a refs #694 Use human readable names in cache validation messages. 2016-07-31 23:17:46 +01:00
Mathew Sutcliffe
87b2396edb refs #694 Support human readable names for settings and data cache traits. 2016-07-31 23:15:35 +01:00