Adriaan de Groot
49c56add7d
Merge branch 'calamares' into work-3.3
2022-03-21 23:21:54 +01:00
Adriaan de Groot
b44091b4e3
SPDX: tag forgotten files
2022-03-15 14:59:05 +01:00
Adriaan de Groot
f0d4788e6d
[libcalamaresui] SPDX-tagging for Bob
2022-03-15 14:42:27 +01:00
Adriaan de Groot
28bf8478c4
[libcalamaresui] Simplify log-window
...
Scrolling explicitly to the bottom isn't needed; leaving it
up to appendPlainText() has the following behavior:
- if the text is scrolled all the way down, follows the text
and scrolls further down (tailing)
- if it is not scrolled all the way down, keeps current position.
2022-03-15 14:39:59 +01:00
Adriaan de Groot
d998c9e24b
[libcalamaresui] Try to improve 'tailing' experience
2022-03-15 14:02:24 +01:00
Adriaan de Groot
1a3f41ff33
[libcalamaresui] Allow more options for icon
2022-03-15 12:45:19 +01:00
Adriaan de Groot
d5e0fca490
[libcalamaresui] Allow starting and stopping the log-follower.
2022-03-15 12:45:19 +01:00
Adriaan de Groot
87c8c3e6ee
[libcalamaresui] Convenience for 'give-me-one-of-these-icons'
2022-03-15 12:44:19 +01:00
Adriaan de Groot
1a6fb1c3d2
[libcalamaresui] Polish on LogWidget
...
- apply coding style
- reduce shadowed variables
- use Q_EMIT to mark signals
2022-03-14 16:14:40 +01:00
Bob van der Linden
ea061ae239
destruct LogThread correctly
2022-03-10 20:33:22 +01:00
Bob van der Linden
9e522eddf8
replace text widget with log widget
2022-03-10 20:08:13 +01:00
Bob van der Linden
923379def6
use terminal icon for log toggle button
2022-03-10 20:07:16 +01:00
Bob van der Linden
53d3fcb2fd
introduce widget that shows logs
2022-03-10 20:06:37 +01:00
Bob van der Linden
a6afb6be7c
add log widget to ExecutionViewStep
2022-03-06 12:33:06 +01:00
Adriaan de Groot
b167d8da03
[libcalamares,ui] Make KF5::CoreAddons explicit
...
- libcalamares doesn't need it anymore, because it ported away
from KPluginLoader,
- libcalamaresui does need it, because of KMacroExpander.
2022-02-08 16:13:40 +01:00
Adriaan de Groot
8f769006d6
Merge branch 'calamares' into work-3.3
2022-02-08 13:28:20 +01:00
Adriaan de Groot
9f6f82405b
[libcalamaresui] Avoid crash if modules-list is empty
...
If there are no modules at all before an exec: section is
reached (e.g. right now due to a bug in module-loading)
then the last() call would crash. Instead, use a nullptr
for the last-module-loaded.
While here, apply code-formatting.
2022-02-07 19:05:55 +01:00
Adriaan de Groot
24a881ad75
Merge branch 'calamares' into work-3.3
2021-12-24 17:01:08 +01:00
Adriaan de Groot
0b6239a996
[libcalamaresui] Warnings-- : we know TCP ports are 16 bit
2021-12-07 14:28:55 +01:00
Adriaan de Groot
79ae3cd00f
Merge branch 'shuffle-error-dialog' into calamares
2021-12-07 14:27:13 +01:00
Adriaan de Groot
c2e63f4a6b
[libcalamaresui] Don't bother tagging nonexistent 3rdparty sources
2021-12-07 14:20:31 +01:00
Adriaan de Groot
8b804c4ae0
[libcalamaresui] Improve icon+heading layout
...
- Icon was too wide, heading and message placed off to the side
2021-12-07 14:15:43 +01:00
Adriaan de Groot
3030a710cc
[libcalamaresui] Simplify
2021-12-07 12:58:22 +01:00
Adriaan de Groot
b07c9bb4af
[libcalamaresui] Use meaningful type for Upload info
...
- use a struct with named fields instead of a tuple
- offer an operator bool() for the logic of does-it-make-sense-to-upload
2021-12-07 12:53:43 +01:00
Adriaan de Groot
3234de5753
[libcalamaresui] Make web-paste decision more readable
2021-12-07 12:48:17 +01:00
Adriaan de Groot
2f9edb3e08
[libcalamaresui] Code style
2021-12-07 12:44:19 +01:00
Adriaan de Groot
ca7f288488
[libcalamaresui] APIDOX for ErrorDialog
2021-12-07 12:40:05 +01:00
Adriaan de Groot
49890acd04
[libcalamaresui] Fix build after move
2021-12-07 12:39:50 +01:00
Adriaan de Groot
dc11dd2203
[libcalamaresui] Move ErrorDialog to the widgets/ part
2021-12-07 12:24:41 +01:00
Artem Grinev
aa332477fd
[libcalamaresui] Run clang-format on TranslationFix.cpp
2021-12-06 03:11:16 +04:00
Artem Grinev
d9f7726f7d
[libcalamaresui] Add SPDX-header for Error Dialog files
2021-12-06 02:41:17 +04:00
Artem Grinev
2f2a418cc4
[libcalamaresui] Run clang-format
2021-12-06 02:37:11 +04:00
Artem Grinev
2dd77ee828
[libcalamaresui] Initialize Error Dialog field
2021-12-06 02:31:05 +04:00
Artem Grinev
bfa7b9a792
[libcalamaresui] Use translation fix for Error Dialog
2021-12-06 02:27:18 +04:00
Artem Grinev
32c5e18db0
[libcalamaresui] Add QDialogButtonBox translation fix
2021-12-06 02:26:13 +04:00
Artem Grinev
6bf0da7230
[libcalamaresui] Initial rework of error dialog
2021-12-05 04:50:13 +04:00
Adriaan de Groot
dde55471ba
Merge branch 'calamares' into work-3.3
2021-10-30 15:00:54 +02:00
Adriaan de Groot
329f21093b
[libcalamaresui] More careful in unmarginLayout
2021-10-04 00:27:03 +02:00
Adriaan de Groot
60cc8696e3
Remove PythonQt support -- C++ bits
2021-09-28 23:56:52 +02:00
Adriaan de Groot
ca4dbabf70
Remove PythonQt support
...
Nothing beyond the example module was ever built with the
PythonQt bindings, as far as I can tell. They have been
deprecated, defaulting OFF for over two years now.
QML modules fill the gap with customizable, run-time
interpreted UI and stronger support from the C++ side
of Calamares.
2021-09-28 23:49:08 +02:00
Adriaan de Groot
1bd5628256
[libcalamaresui] Redundant call, not available in Qt 5.15 anyway
2021-09-16 12:04:50 +02:00
Adriaan de Groot
714605ebaa
[libcalamaresui] Missing header, needed in Qt 5.15
2021-09-16 12:04:29 +02:00
Adriaan de Groot
f49627f417
[libcalamaresui] Improve sizeLimit handling in log upload
...
The log sizeLimit can be 0 (disable log upload) but that's
not so clear in the code. While here, tidy up and add
some comments to surprising bits.
2021-09-15 13:30:06 +02:00
Adriaan de Groot
6e0a8d8ca1
[libcalamaresui] Translate button texts for paste-message
2021-09-08 11:15:12 +02:00
Adriaan de Groot
dcfbb766dc
[libcalamaresui] Use fixed standard-buttons labels
...
Move some of the texts to the new TranslationFix, from ViewManager,
and use them. Keep them in ViewManager, too, so that the translations
with context ViewManager are not removed just now.
2021-09-08 11:14:46 +02:00
Adriaan de Groot
683bad19fc
i18n: introduce a "TranslationFix"
...
This is intended to apply translations to some common Qt UI components.
Example: a QMessageBox with standard buttons OK and Cancel; the text
for that is determined at startup using the system locale, and later
changes to the current locale or the current translation catalog,
do not affect OK and Cancel. It might be possible to load a catalog
with the right translation strings, except that there is no way to
know what the context or catalog **is** for the strings that are
used to label standard buttons: they can come from Qt base, or
the platform, or the theme. Merely loading the Qt Base translations
for the correct language does not help, because those translations
do not contain an "OK" string with the context used for standard
buttons.
Do the translation by hand; then we have all of the Calamares
languages covered, too, which is more than the Qt translations do.
2021-09-08 11:14:46 +02:00
Adriaan de Groot
38c65e80f3
[libcalamaresui] Warn when asking for nonexistent Branding instance
2021-08-24 11:57:37 +02:00
Adriaan de Groot
4114a2bbe8
CMake: chase renamed YAMLCPP
2021-07-26 15:08:29 +02:00
Adriaan de Groot
cbb1a5ef36
CMake: within Calamares repo, use the (eventual) imported names of libraries
2021-07-26 14:22:28 +02:00
Adriaan de Groot
59f11e9b67
i18n: make retranslator more consistent
...
- Improve naming.
- Both lambda and slot versions call the code immediately.
2021-07-24 23:26:02 +02:00