Commit Graph

4051 Commits

Author SHA1 Message Date
Roland Winklmeier
63f625fe4e CEventLoop - swift's custom event loop 2017-02-24 15:22:17 +00:00
Roland Winklmeier
7faffc520d Remove obsolete network connection checks
refs #869
2017-02-24 15:22:15 +00:00
Roland Winklmeier
98b2061d3d Remove redundant checks in CNetworkUtils::getKnownLocalIpV4Addresses()
refs #869
2017-02-24 15:22:14 +00:00
Roland Winklmeier
7edd1bb621 Rename CThreadedReader::isNetworkConnectedAndAccessible() for consistency
refs #869
2017-02-24 15:22:13 +00:00
Roland Winklmeier
64a47da67f Use CApplication::isNetworkAccessible() wherever possible
Up to now we had a mixture of different methods to detect whether
network is connected, accessible or both. Even if they implied a
different meaning, they were all doing the same and internally
referred to almost the same code. Almost, since our implementation
of CNetworkUtils::hasConnectedInterface refers to code from Qt 4.4.
However, all of them returned a boolean status whether a network
interface is generally up or not. Instead of maintaining our own
version, use Qt functions.

refs #869
2017-02-24 15:22:11 +00:00
Roland Winklmeier
10f9c9c50a Fix typo 2017-02-24 15:22:10 +00:00
Klaus Basan
060a10dfb6 Replaced QLatin1Literal by QLatin1String
refs #883
2017-02-24 15:22:09 +00:00
Klaus Basan
c693423905 refs #883, OS independent version of CFileUtils::getSwiftExecutables 2017-02-24 15:22:07 +00:00
Klaus Basan
8ca8f51802 refs #883, overlay messages can have shadow 2017-02-24 15:22:06 +00:00
Klaus Basan
1690c560b7 refs #883, added functions for fade in/out 2017-02-24 15:22:05 +00:00
Klaus Basan
873823eaa1 refs #883, improved position and layout of overlay message frame 2017-02-24 15:22:04 +00:00
Klaus Basan
4ef64e4e22 refs #883, new log categories 2017-02-24 15:22:03 +00:00
Klaus Basan
d980f99300 refs #883, support for "single application" in CApplication 2017-02-24 15:22:01 +00:00
Klaus Basan
abbcd18d82 refs #883, shortcuts for dock widgets 2017-02-24 15:22:00 +00:00
Klaus Basan
c460505d2e refs #883, refs #869 using ping as socket is slow/sometimes has trouble 2017-02-24 15:21:59 +00:00
Klaus Basan
3b3cdf4566 refs #883, launcher improvements
* check if core is running before starting pilot client DBus UI
* avoid starting pilot client when already running
* save UI state (cache)
* made lauchner BlackMisc::CIdentifiable
2017-02-24 15:21:58 +00:00
Klaus Basan
5d81b23386 refs #883, some UI finetuning / Doxygen comments 2017-02-24 15:21:57 +00:00
Klaus Basan
6c72f8491c refs #883, improved detection if core is running
* use proxy to really ping core (not only checking connection)
* avoid closing Qt default connections -> crash
* some refactoring
2017-02-24 15:21:55 +00:00
Klaus Basan
d918ee4cfd refs #883, class for storing the launcher state
* removed DBus setting (causing crash as it was shared among launcher/pilot client, so using cache)
* also remember UI values
2017-02-24 15:21:54 +00:00
Klaus Basan
92100c85f7 refs #883, added utility function ping 2017-02-24 15:21:53 +00:00
Klaus Basan
1619a5ceb3 Formatting application context 2017-02-24 15:21:52 +00:00
Klaus Basan
4a31fa1cba refs #883, improved layout of launcher`s "new version" section
* group boxes
* header bar if new version is avilable
2017-02-24 15:21:50 +00:00
Klaus Basan
c5b4b01a90 refs #883, display of news/about
* use QTextBrowser, external links will be opened in browser
* display about in credits tabs
* added shortcuts for tabs

Remark: Gives us a first (not perfect) version of news/about in launcher
2017-02-24 15:21:49 +00:00
Klaus Basan
dd37945625 refs #883, added new "directories"
* directories for in buildconfig/globalsetup
* renamed to CBuildConfig::getSwiftShareDir
2017-02-24 15:21:47 +00:00
Klaus Basan
a0b5258346 refs #883, launcher can be started from the applications and navigator 2017-02-24 15:21:45 +00:00
Klaus Basan
24a9b332b0 refs #883, application class extended
* allow to register application as running (needed for launcher)
* getExecutableForApplication
* swift launcher can be started
2017-02-24 15:21:44 +00:00
Klaus Basan
c8c18b0b21 refs #883, utility functions
* get executable names
* containsApplication
2017-02-24 15:21:43 +00:00
Klaus Basan
7bc53ada3e refs #883, fixes and formatting
* QProcess::startDetached is static, removed startNewProcess
* QStringBuilder
2017-02-24 15:21:42 +00:00
Klaus Basan
455d9c7b7d refs #883, added menus for core and assigned shortcuts to menu items 2017-02-24 15:21:40 +00:00
Klaus Basan
a57b83f9de refs #879, moved testdata into small files
motivated by MS comment
2017-02-24 15:21:39 +00:00
Klaus Basan
368b955c66 refs #883, Kill button for overlay error messages
Example: swift pilot client started for core, but core not running. There is no way to stop the application as there are permanent errors.
2017-02-24 15:21:38 +00:00
Klaus Basan
83dbd3fcb6 refs #883, display core mode selection first
* show news only if new
* removed duplicate call of this->ps_loadedUpdateInfo (avoid redundant loads)
2017-02-24 15:21:37 +00:00
Klaus Basan
f73ee87e13 refs #882, support redirect transparently in CApplication
* SSL client certificate functionality used from utils
* support for max redirects

Remark:
QNetworkRequest::FollowRedirectsAttribute would allow auto redirect, but we use our approach as it gives us better control
2017-02-24 15:21:35 +00:00
Klaus Basan
74db515802 refs #882, support for 30x redirect and some more utility functions
* CNetworkUtils::setSwiftClientSslCertificate for shared URLs
* redirect functions
2017-02-24 15:21:34 +00:00
Klaus Basan
14125bf030 refs #881, possible fix for duplicates in combobox 2017-02-24 15:21:33 +00:00
Klaus Basan
8741b66578 refs #881, minor formatting/improvements 2017-02-24 15:21:32 +00:00
Klaus Basan
f581a40b75 refs #881, utility functions for identifier list 2017-02-24 15:21:31 +00:00
Klaus Basan
e73c8c4f36 refs #879, use test data in samples/unit tests 2017-02-24 15:21:30 +00:00
Klaus Basan
4b506f20ab refs #879, test data class
* added and renamed functions
* added some DB data
2017-02-24 15:21:28 +00:00
Klaus Basan
2f14886db5 refs #879, added utility function toQList in collection 2017-02-24 15:21:27 +00:00
Klaus Basan
5bea0e2a96 refs #879, added ctor for CSimulatedAircraft / CPropertyIndexVariantMap::size() 2017-02-24 15:21:26 +00:00
Klaus Basan
9b56c5bf51 refs #879, added static fromJson 2017-02-24 15:21:25 +00:00
Klaus Basan
d997ec1e30 refs #879, added std::initializer_list in CVariantList 2017-02-24 15:21:24 +00:00
Klaus Basan
f71cb04cd2 Formatting (#879) 2017-02-24 15:21:23 +00:00
Klaus Basan
20921b79b8 refs #875, refs #879, move functions only needed in performance samples to CSamplesPerformance
Also made some sample functions private
2017-02-24 15:21:21 +00:00
Klaus Basan
dc1d5d8586 refs #875, refs #879, renamed CTestUtils to CDBusUtils
* class now only contains DBus related code
* other functions have been moved to CTesting
2017-02-24 15:21:20 +00:00
Klaus Basan
d1827bd162 refs #875, refs #879, moved data generating functions to CTesting
(will be further split up/refactored)
2017-02-24 15:21:19 +00:00
Klaus Basan
7917769802 refs #875, adjusted using classes to use new namespaces 2017-02-24 15:21:18 +00:00
Klaus Basan
ed820da20d refs #875, refs #879, class for test data
(will be consolidated with existing utility classes)
2017-02-24 15:21:16 +00:00
Klaus Basan
ae5b0310b6 refs #875, moved already existing test utility classes to BlackMisc::Test 2017-02-24 15:21:15 +00:00