Commit Graph

49 Commits

Author SHA1 Message Date
Lars Toenning
573b7ce550 refactor: Remove manual high-dpi support
This removes the --scale command line option.
Qt6 seems to have this already integrated to scale according to the
nativ display settings: https://doc.qt.io/qt-6.8/highdpi.html
Adjusting the scale on a per-application basis is not intended (anymore)
according to the documentation.
Tested on a (near) high-dpi screen.
2025-07-21 21:49:22 +02:00
Lars Toenning
1a0b2a8c5f refactor: clang format line length 2024-11-17 09:25:46 +01:00
Lars Toenning
97eed9562a refactor: clang-format 2024-11-16 21:40:55 +01:00
Lars Toenning
64b765529e refactor: Fix some clang-tidy warnings 2024-11-15 20:55:53 +01:00
Lars Toenning
6d1812b164 refactor: Rename blackgui to swift::gui 2024-11-11 15:11:40 +01:00
Lars Toenning
3a2447770f refactor: Rename blackcore to swift::core 2024-11-11 15:11:39 +01:00
Lars Toenning
9142a3649b refactor: Rename blackmisc to swift::misc 2024-11-11 15:11:39 +01:00
Lars Toenning
da98932997 refactor: Rename old vatlib function 2024-10-13 19:32:08 +02:00
Lars Toenning
7a33e74fee fix: Add missing CLI option to swiftlauncher
The DBus server address selector tries to fetch the address from the
command line parser. But the option was only added to the parser for
CSwiftGuiStdApplications. This resulted in a log message from the parser.
2024-10-13 15:40:34 +02:00
Lars Toenning
2ba2d5bc8e refactor: Clarify CApplication method names 2024-02-18 23:09:13 +01:00
Lars Toenning
a664371567 refactor: Move installer flag handling to launcher
This is only used by the launcher
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
9da0630063 refactor: Transform launcher into QMainWindow 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
Lars Toenning
970b7c3650 clang-format src 2023-04-18 16:07:19 +02: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
Klaus Basan
cde18d23aa [AFV] Style, Doxygen 2019-10-24 01:22:56 +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
8103df18f7 Ref T195, formatting 2017-12-21 19:45:46 +01:00
Klaus Basan
450028d2d2 Formatting, this->m_XX to m_XX 2017-09-24 20:29:23 +01: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
eab22e86b0 Based on slack discussion, pass arguments from launcher to started application
https://swift-project.slack.com/archives/C04J6J76N/p1504449711000040

* utility functions in CApplication and CNetworkVatlib for cmd args
* a.addVatlibOptions() in launcher
* function CSwiftLauncher::startDetached to unify startup and simplify debugging
2017-09-24 19:54:15 +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
221e4c2b9c refs #886, start config wizard when -i is passed to launcher
made -i an optional flag
2017-04-17 23:58:55 +01: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
7bc53ada3e refs #883, fixes and formatting
* QProcess::startDetached is static, removed startNewProcess
* QStringBuilder
2017-02-24 15:21:42 +00:00
Klaus Basan
ee27ca4d44 Fixed startup in launcher 2017-01-10 23:47:12 +00:00
Klaus Basan
2821cd5213 Minor improvements at startup
Found due to expiry date
2017-01-10 23:46:26 +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
Klaus Basan
80ab55c4be refs #709, GUI component (load info) added to launcher
(plus enabled webservices for launcher)
2016-07-28 21:08:17 +02: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
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
45496ce08e refs #485, support splash screen 2016-03-18 01:10:21 +00:00
Klaus Basan
bcb00b1b91 refs #608, generic menus are now available via CGuiApplication and don`t have to be redefined over and over again 2016-03-18 01:10:04 +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
1fc7300982 refs #507, split up blackmiscfreefunctions
* single register metadata functions
* string utils
* metadata utils
* some formatting / license header where applicable
2015-11-22 02:42:29 +01:00
Klaus Basan
30e6831bf8 refs #507, launcher (new GUI) 2015-11-19 21:07:47 +00:00
Klaus Basan
6dd66284ca refs #473, own launcher subproject
* command line args for swift GUI
* removed _ from swiftgui_standard
* removed _ from swift_resources
2015-11-19 21:06:36 +00:00