Commit Graph

3716 Commits

Author SHA1 Message Date
Roland Winklmeier
9515109719 Initially fill hotkey settings component from settings
When the component was constructed, the table view with configured
hotkeys was empty even if hotkeys were configured.
This commit reloads the configured settings during component construction
and populates the table.
2016-08-26 21:05:20 +01:00
Roland Winklmeier
c6bfd3b01d [Mac OS/X] Enable event taps in case it got disabled by timeout 2016-08-26 21:05:19 +01:00
Roland Winklmeier
8210423c44 Set selection background color stylesheet to blue
refs #683
2016-08-26 21:05:17 +01:00
Roland Winklmeier
b78b40bbc0 Make widget style configurable with Fusion as default
Up to now the UI appearance on all platforms was aligned as much as
possible with stylesheets. Since the base widget styles still were
platform dependent defaults, there were many small differences in
details and controls. Some of them were even broken. Instead of
trying to tweak all platform specific styles, default to one on all
platforms. This guarantees that the UI is truly cross platform and
all styles and fixes cover all platforms at the same time.
For users who want to change the default style, they have now a gui
setting. But it is strongly recommended to stick with the default.

refs #683
2016-08-26 21:05:16 +01:00
Roland Winklmeier
10810f5003 Explicitly use QTabBar scroll buttons
Even though QTabBar's property usesScrollButtons is set to true in Qt
Designer, it is not set explicitly in generated C++ code. The default
value is style dependent, which caused the scroll buttons to be visibile
everywhere except Mac OS/X.

refs #683
2016-08-26 21:05:09 +01:00
Klaus Basan
c0a898c6c9 refs #555, allow to filter by file name
* also allow to filter by color
* and military
2016-08-26 21:05:08 +01:00
Roland Winklmeier
4e6c4a076a Delay initial weather injection until simulator is connected
Up to know, the initial weather injection was done in the constructor
of ISimulator implementation. This was to early, since in the best case
the injection was not doing anything and in the worst case, crashed
the application because the plugin wasn't ready yet.
This change also replaces ps_reloadSettings with a specific non-slot
version to avoid code duplication.
2016-08-26 21:05:07 +01:00
Klaus Basan
e3fc72d775 refs #720, fixed: display all models when only selected models are consolidated
* in same step fixed location of error message
* minor renaming
2016-08-26 21:05:06 +01:00
Klaus Basan
4582387684 refs #720, treat auto gen. descriptions as "empty" 2016-08-26 21:05:03 +01:00
Klaus Basan
da343d81c1 refs #720, allow to publish when there are errors, but some models pass validation
* return valid and invalid models
* return value "success" when there are any valid models
2016-08-26 21:05:02 +01:00
Klaus Basan
d10fe5ad18 refs #728, hide load indicator when no vPilot rules are loaded 2016-08-26 21:05:01 +01:00
Klaus Basan
364914cc31 refs #720, file name handling in models
* normalize file name before writing to DB
* use local file paths for local models
* display "C" for color liveries
2016-08-26 21:05:00 +01:00
Klaus Basan
1a4b0c5e76 refs #720, show file name in editor (mapping tool) 2016-08-26 21:04:55 +01:00
Klaus Basan
bb8a0ca3f5 refs #724, context menu
* in stash view data from DB can be removed
* it can be stashed from own model set view too
2016-08-26 21:04:53 +01:00
Klaus Basan
89ac38a072 refs #720, ui context menu finetuning
* renaming / formatting
* const predefined subdir menus
2016-08-26 21:04:52 +01:00
Klaus Basan
017c593b67 refs #723, reset order when adding models to own model set 2016-08-26 21:04:51 +01:00
Mathew Sutcliffe
f85db3cffb refs #730 Updated tests. 2016-08-26 21:04:50 +01:00
Mathew Sutcliffe
661254371c refs #730 Avoid duplicate "empty cache value" debug messages. 2016-08-26 21:04:49 +01:00
Mathew Sutcliffe
67b36bbfcf refs #721 Trying the unaltered name first is slower
because in nearly all cases, it just leads to comparing the names twice.
2016-08-26 21:04:48 +01:00
Mathew Sutcliffe
15cf07c1c5 refs #721 For performance, avoid regular expressions where a simple algorithm would suffice. 2016-08-26 21:04:47 +01:00
Mathew Sutcliffe
ffa24411d2 Narrow the explicit iterator category of our iterator adaptors to reflect their implicit category. 2016-08-26 21:04:45 +01:00
Mathew Sutcliffe
4071fcb6d3 Fixed mistake. 2016-08-26 21:04:44 +01:00
Mathew Sutcliffe
a30eb18a9c On Windows, warn if a thread was terminated with its QThread still in running state.
I hope this catches if the data cache serializer is killed in the middle of a save.
2016-08-26 21:04:43 +01:00
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