Commit Graph

1369 Commits

Author SHA1 Message Date
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
Roland Winklmeier
3e4e49a6b6 Set last modification timestamp when loading X-Plane models
This feature was already implemented for MS Flight Simulator model
loaders and missing in the X-Plane model loader.
2016-05-24 16:59:16 +02:00
Roland Winklmeier
602beb0da2 Remove obsolete plugin storage
Plugin storage was used before the value cache existed. With the
value cache this is no longer used and can be removed.

refs #660
2016-05-24 16:45:14 +02:00
Roland Winklmeier
2d8f56a598 Link CBuildConfig and CVersion into static library blackconfig
CBuildConfig including private keys etc. should not be part of a
public library API. Therefore link it into a static library, which
is not available to end users.

refs #645
2016-05-24 13:12:23 +02:00
Roland Winklmeier
26a78ac2a6 Workaround gcc warning -Wmissing-field-initializers
gcc raises a warning when initializing std::array with
empty-braces. This is fixed in gcc 5.1.1, so a workaround
for 4.9 was necessary.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
2016-05-24 13:12:00 +02:00
Mathew Sutcliffe
fe5e122f12 Comparison mixins implemented with forEachMemberPair instead of toCaseAwareTuple. 2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
f523197dfd refs #657 Fixed race condition in synchronize(). 2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
6aa67f638a refs #657 Applications started at the same time should write to different log files. 2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
9da53bd58b refs #646 Added timestamps in data cache load/save log messages. 2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
74f577eec9 refs #646 Using new CStatusMessage construction style in CValueCache. 2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
05b5971caf refs #646 Log messages when saving and loading data cache values. 2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
5a43ff8d20 refs #646 Fixed race condition between synchronize() and saveToStoreAsync(). 2016-05-22 15:34:05 +01:00
Roland Winklmeier
df4ac9538a Fix launching of shipped dbus-daemon
When using QProcess::startDetached on Windows, a console Window is
visible. Since dbus-daemon should run silently in the background,
use our customized CProcess instead which supports starting without
console.
This commit also fixes a race condition. CDBusServer launched the
dbus-daemon and immediatly tried to register. If dbus-daemon was not yet
initialized and ready to accept connections, registering the service
failed. This is fixed by a small timeout.

refs #615
2016-05-20 01:42:47 +02:00
Roland Winklmeier
e12e655d70 CProcessCtrl
Derives from QProcess and adds a static method to start a detached
application without a console window.

refs #615
2016-05-20 01:42:32 +02:00
Roland Winklmeier
014c218afa Fix swiftlauncher executable names for Linux platforms
refs #615
2016-05-20 01:41:21 +02:00
Roland Winklmeier
ab1491f085 Rename share/dbus-1 to etc/dbus-1 to not mix it up with data/shared
refs #615
2016-05-20 01:41:19 +02:00
Roland Winklmeier
20aa59c537 Properly cleanup open QDBusConnection's
Everytime you connect to DBus, the connection stays open until it
is manually disconnected or cleaned up by the QCoreApplication
destructor. In case of xbus, ~QCoreApplication is not necessarily
be called and the connection not cleaned up. Hence do it manually.

refs #615
2016-05-20 01:41:18 +02:00
Roland Winklmeier
d4248d2661 Util methods to modify the custom library search path
refs #615
2016-05-20 01:41:10 +02:00
Roland Winklmeier
45b0503896 Include Mac OS X platform in installer project
refs #615
2016-05-20 01:40:04 +02:00
Roland Winklmeier
0ba46360dd Move sounds and stylesheet directory configuration to buildconfig.h.in
refs #615
2016-05-20 01:36:44 +02:00
Roland Winklmeier
9ef34c4b96 Group all resources in data/ subfolder
refs #615
2016-05-20 01:35:19 +02:00
Roland Winklmeier
d0313c7524 Style 2016-05-20 01:31:26 +02:00
Roland Winklmeier
f4c2939253 Fix BlackGui header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:31:11 +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
Klaus Basan
0f5d2a29a8 refs #655, Change signature (order) of setProperty/compareProperty 2016-05-13 16:44:17 +02:00
Klaus Basan
49094115b1 static assert as discussed here https://dev.vatsim-germany.org/issues/648#note-10
#648
2016-05-13 16:43:58 +02:00
Klaus Basan
4b11eb3f83 refs #648, refs #640 review of MS
https://dev.vatsim-germany.org/issues/648#note-5
2016-05-07 20:11:54 +02:00
Klaus Basan
96189f530b Fixed typo setGroundSpeed 2016-05-07 20:11:50 +02:00
Klaus Basan
1a62de8dc3 refs #641, improvements/fixes of orderable lists / models / views
* set sort order automatically to IndexOrder when changing order of items
* call onChanged when model is changed and then update view (needed when model is changed directly, not via view)
* support for digest signal so redundant updates can be avoided
* renamed rowCountChanged (signal) to modelDataChanged - detecting row count changes only was useless
* updated Doxygen / fixed typos
2016-05-07 20:11:49 +02:00
Klaus Basan
2da14e3b62 refs #648, change existing context menus 2016-05-07 20:11:46 +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
48bcb105cd refs #613, changes as proposed by MS
https://dev.vatsim-germany.org/issues/613#note-3
2016-05-07 20:11:40 +02:00
Klaus Basan
8da559a186 refs #642, as proposed by MS
https://dev.vatsim-germany.org/issues/642#note-4
2016-05-07 20:11:40 +02:00
Klaus Basan
bb6eea6c72 refs #641, using order in model caches 2016-05-05 20:49:24 +02:00
Klaus Basan
1bb6f98e56 refs #641, using IOrderable and some formatting 2016-05-05 20:49:23 +02:00
Klaus Basan
c42df3ed4d Formatting and fixed dropbase (unimplemented function) 2016-05-05 20:49:20 +02:00
Klaus Basan
d487a84acb refs #640, distributor list preferences value object and settings 2016-05-05 20:49:19 +02:00
Klaus Basan
5f2110b81a refs #640, value object orderable interface (same as ITimestampBased ..)
* interface and list
* added Q_DECLARE_INTERFACE
2016-05-05 20:49:19 +02:00
Klaus Basan
5d39c906e4 refs #640, support for simulator in distributor
* changed backend (JSON) and added support for simulator data
* get distributors by simulator
* renamed to setSimulator / getSimulator
2016-05-05 20:49:18 +02:00
Klaus Basan
b78308b059 follow up of refs #643, allow to display icon in overlay window
* some optimization to check if icon is available
* menus for context menu
* allow to display icon/image in overlay window
2016-05-05 20:49:17 +02:00
Klaus Basan
ddc7347927 refs #643, moved aircraft model icon loading to model class
* removed iconForModel from interface and aircraft config parser
* CPixmap support for loading pixmap from file
* Access to model of model set loader by model string
* icon path as member of CAircraftModel
2016-05-05 20:49:16 +02:00
Klaus Basan
a3a3380008 Typo 2016-05-05 20:49:15 +02:00
Klaus Basan
bc4efbfd71 refs #642, fixed 2nd issue reported by RW via slack
(assert with default values)
2016-05-05 20:49:14 +02:00
Klaus Basan
d0daad7d34 refs #642, fixed setup loading, in same step refs #636 clear cache
* changed signals in setup reader
* explicit mode is default
* detailed information what is loaded
* new log pattern
* allow to add message list to log component
* allow to clear cache by cmd line arg
* consolidated cmd names
2016-05-05 20:49:13 +02:00
Klaus Basan
bd9de9308c refs #640, alternatives for combined code 2016-05-05 20:49:12 +02:00