Commit Graph

33 Commits

Author SHA1 Message Date
Lars Toenning
2ba2d5bc8e refactor: Clarify CApplication method names 2024-02-18 23:09:13 +01:00
Lars Toenning
7b6f087247 refactor: Fix some clang-tidy warnings
- Mark single argument constructors as explicit
- Remove unused functions
- Avoid default parameters in virtual functions
- Clean up includes
- Do not call static methods through an instance
- And some more...
2024-02-18 23:09:12 +01:00
Lars Toenning
9d3ae3e2b3 refactor: Restructure parsing and setup loading methods 2024-02-18 22:16:54 +01:00
Lars Toenning
99de8009be refactor: Emit CApplication::startUpComplete on starting event loop 2024-02-18 22:16:54 +01:00
Lars Toenning
389431ccef refactor: Clean up setup file reader
Previously we already switch to loading the bootstrap file only from the
local file (ec42553910).
This removes the remaining parts of loading the bootstrap file from a
remote location.
This also updates the UI in case of parsing errors of the bootstrap.json.
2024-02-05 22:23:40 +01:00
Lars Toenning
bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00
Mat Sutcliffe
0c78c187f8 Issue #77 Style 2020-08-28 00:45:27 +01:00
Mat Sutcliffe
86dd91a064 Issue #15 [GUI] Use CLogHistoryReplica in CLogComponent and swift applications 2020-08-01 19:48:36 +01:00
Klaus Basan
8f4c4a249c [5.14.1] UI adjustments
* OS native check of screen resolution (Qt free, experimental)
* changed rounding
* use string for scale factor so we can use fractions as 2/3
* utility functions to clean numbers, parse fractions

It looks like:

* my WIN10 scaling is 250%
* obviously swift rounds that to 3 (device ratio)
* now using FLOOR policy down-rounding to 2
* rational: scaling up (scale factor) is better as down-scaling as the factors would be clearer
* 2->3 1.5, but 3->2 means 0.66667
2020-06-12 18:42:30 +01:00
Roland Rossgotterer
a7509669f9 Refactor crashpad initialization
Crashpad handler was initialized quite late since we were waiting for settings. However the settings in crashpad are persistent itself, hence we can start it at the earliest possible time and change the upload settings independently later. The only prerequisite is to have QCoreApplication constructed in order for the application name to be available.
ref T652
2019-05-13 11:21:05 +02:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
86d02716a2 Allow to scale GUI on high DPI screens 2018-05-25 21:35:12 +02:00
Klaus Basan
fedcd76a05 Ref T156, allow to interactively resolve setup issues
* interactivelySynchronizeSetup
* utility function parseAndSynchronizeSetup, explicit loading of setup
* removed m_startSetupReader;
2017-09-24 20:28:42 +01:00
Klaus Basan
07b096b398 Ref T103, verify important files/directories
* utility function in CDirectoryUtils
* deployed in main/application
2017-09-24 19:49:58 +01:00
Roland Winklmeier
cf2c0d0f35 Use qt.conf to override plugin path on Mac OS
Summary:
QCoreApplication::addLibraryPath is called before QCoreApplication
was constructed and this caused the returned string to be different
depending from which working directory it was called and not always
the intended binary path.
Using qt.conf has a fixed prefix relative to the binary path
inside the application bundle and therefore is easier to be used
with a relative path.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D18
2017-05-05 23:08:40 +01:00
Roland Winklmeier
a3bc5c2936 Add <swiftInstall>/bin to library lookup paths
Summary:
This change adds <swiftInstall>/bin to the library lookup paths.
Without, QFactoryLoader is not able to find the Qt plugins
on Mac OS since on this platform the hard coded path defaults to
'foo.app/Contents/MacOS' for app bundles.
This change also adds the installation of QtPrintSupport framework which
is a dependency from cocoa platform plugin.

ref T48

Reviewers: kbasan, msutcliffe

Reviewed By: kbasan

Subscribers: jenkins

Maniphest Tasks: T48

Differential Revision: https://dev.swift-project.org/D15
2017-05-05 22:40:43 +01:00
Klaus Basan
142bc82e03 refs #912, application description as functions
(can be reused in identifier)
2017-04-18 00:04:43 +01:00
Klaus Basan
2821cd5213 Minor improvements at startup
Found due to expiry date
2017-01-10 23:46:26 +00:00
Klaus Basan
1e85842c71 Some minor fixes (typos, doxygen, etc.) found during #846 2017-01-10 23:45:58 +00:00
Mathew Sutcliffe
cf9b6f039c refs #777 Moved enum CApplication::SwiftApplication to CApplicationInfo::Application. 2016-12-06 09:33:47 +01:00
Klaus Basan
ccb14b4d19 refs #760, new 3D swift icons
* removed old icons
* new icons in CIcons class
* and as ico / icns (MAC)
2016-09-19 16:18:54 +02:00
Roland Winklmeier
2434c7bbe2 Add swiftdata splash screen
refs #738
2016-08-26 21:05:27 +01: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
Roland Winklmeier
c249efe155 Fix swiftdata header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:31:40 +02:00
Roland Winklmeier
d379f14133 Introduce build config template buildconfig.h.in
refs #625
2016-03-31 17:12:01 +02:00
Klaus Basan
46a8d37c08 Support for high DPI screens 2016-03-30 13:42:01 +02:00
Klaus Basan
d687255ef1 Fixed typo and exit application when parsing fails 2016-03-30 03:07:16 +02:00
Klaus Basan
65af7d87da refs #602, CWebDataServices and CCookieManager now part of CApplication
* New hint flag: DB data for the client will no longer be web loaded but fetched from cache whenever possible
* No public constructors for the 2 classes
* adjusted main
2016-03-18 01:08:51 +00:00
Klaus Basan
7a38afe8c3 refs #485, adjusted samples 2016-03-18 01:08:07 +00:00
Klaus Basan
158efe819a refs #485, first version of a Gui/Core application class
Also specialized GUI application class for standard GUI
2016-03-18 01:08:02 +00:00
Klaus Basan
864ca20be3 refs #507, improvements on frameless window base class
* handle minimized / normal in window base class
* removed initial on top flag

and project
* executable names
* version number check (for launcher)
2015-11-19 21:07:42 +00:00
Klaus Basan
19df8a5d71 refs #478, CUrl class and moved network utils
* moved network utils into network folder
* CUrl / CUrlList as DBus/JSON compliant class for locations
* Added support for selsigned certificates in network utils
2015-11-19 21:03:20 +00:00
Klaus Basan
d7bd20dd26 refs #445, data entry GUI
* component for main info area
* component for data mapping
* new subproject
2015-11-19 20:57:29 +00:00