Adriaan de Groot
bed884c971
[tracking] Move setup of initial-tracking states to Config
...
- the *default* level from the config, can be handled inside
the Config object as well; remove TrackingPage method that
does the same.
2020-05-25 09:22:51 -04:00
Adriaan de Groot
1d143d95a0
[tracking] Setup UI in the .ui file
2020-05-25 08:30:37 -04:00
Adriaan de Groot
935f443a4d
[tracking] Simplify policy display
...
- Don't need an own slot for this, just connect to signals from Config
and the label, neither of which need any state.
2020-05-25 05:24:20 -04:00
Adriaan de Groot
689a65e107
Merge pull request #1414 from gportay/remove-unused-locals
...
[partition] Remove unused locals
2020-05-25 10:43:56 +02:00
Calamares CI
a318fc8f56
i18n: [python] Automatic merge of Transifex translations
2020-05-25 03:40:18 -04:00
Calamares CI
bc9544bf14
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-05-25 03:40:18 -04:00
Calamares CI
ff0676b79b
i18n: [desktop] Automatic merge of Transifex translations
2020-05-25 03:40:18 -04:00
Calamares CI
885fe80d5b
i18n: [calamares] Automatic merge of Transifex translations
2020-05-25 03:40:18 -04:00
Gaël PORTAY
629bb2e2f6
[partition] Remove unused locals
...
- Unused since commit 0d284759f5
2020-05-20 11:06:39 -04:00
Adriaan de Groot
69c2d089f2
Merge pull request #1413 from gportay/rawfs-fix-crash-if-bogus-is-unset
...
[rawfs] Fix crash if bogus is unset
2020-05-20 14:50:57 +02:00
Adriaan de Groot
738a6a9019
[calamares] Make module-tester configurable in slideshow mode
...
- Uses global storage to steer the jobs that are created, in case
the slideshow needs to be tweaked by percentages or whatever.
- While here, add some code docs and apply coding style.
2020-05-20 12:12:11 +02:00
Adriaan de Groot
d51a545fcf
[calamares] onInitComplete() already activates first step
...
- In the test application, there is only one viewstep, so it is
already activated; avoid double-activation.
2020-05-20 11:44:27 +02:00
Adriaan de Groot
39b5dd4e6e
[libcalamaresui] Avoid deadlock
...
- When loading QML V2, both loadQmlV2Complete() and changeSlideShowState()
lock the same mutex, introduced in e7f4479df1
.
- Explicitly unlock when loading is done and we need to change the state
immediately.
2020-05-20 11:36:44 +02:00
Adriaan de Groot
376cb3c042
[calamares] Give the fake ExecutionViewModule a name
...
- This is needed for addModule() so the module manager knows there
is a module by the name x@x.
- Tell the ExecutionViewStep to run jobs from x@x.
2020-05-20 11:03:21 +02:00
Adriaan de Groot
28500de2f8
[calamares] Register modules in test-loader
...
- When a viewmodule is loaded, register it with the module manager
(especially relevant for the slideshow module).
2020-05-20 10:54:48 +02:00
Adriaan de Groot
c7d0df223a
[libcalamaresui] Expose registering-a-single-module
...
- For testing purposes, it's useful to load a module externally
and then register it to the ModuleManager (this hands off ownership).
- Refactor overall module loading to use the exposed single-module method.
2020-05-20 10:36:42 +02:00
Adriaan de Groot
1fec95ac48
[libcalamares] Move QML search-path initialization
...
- QML files need to be searched in specific places; this was initialized
by Calamares, but not for the text application. Move initialization
into the library.
2020-05-19 21:25:05 +02:00
Adriaan de Groot
6dffec2730
[libcalamaresui] Move QML-related directory functions to Qml.cpp
2020-05-19 21:02:06 +02:00
Adriaan de Groot
4491fb8c27
[libcalamaresui] Name QML-wrangling functions consistently
...
- Use "Qml" in camel-cased names
2020-05-19 21:00:05 +02:00
Gaël PORTAY
40dd34c7d0
[rawfs] Fix crash if bogus is unset
...
- fixes:
12:44:25 [6]: Python Error:
<class 'TypeError'>
'builtin_function_or_method' object is not subscriptable
File "/usr/lib/calamares/modules/rawfs/main.py", line 188, in run
item.copy(filesystems.index(item), len(filesystems))
File "/usr/lib/calamares/modules/rawfs/main.py", line 99, in copy
if libcalamares.job.configuration["bogus"]:
2020-05-19 12:58:36 -04:00
Adriaan de Groot
0947da3d41
[libcalamaresui] Report on QML errors
...
- If the slideshow fails to load entirely, say so
2020-05-19 17:08:49 +02:00
Adriaan de Groot
ae861f7ec0
[calamares] Give slideshow-test some jobs to run
2020-05-19 16:44:56 +02:00
Adriaan de Groot
bd73981c5f
[calamares] Add -s option to module-tester
...
- The -s will run the slideshow with a bogus job-queue, allowing easier
testing of the slideshow. This is more convenient than having a Calamares
with an empty show and a bogus exec section.
- The -s option for running the slideshow / execution phase of
Calamares needs to create a bogus Module for the ExecutionViewStep.
2020-05-19 16:44:44 +02:00
Adriaan de Groot
ec2fc5a763
[libcalamaresui] Better default font size
...
- Previously, unless setDefaultFontSize() was called explicitly,
the default size would be 0, leading to unexpected and weird
displays (and a warning on stderr).
- If setDefaultFontSize() is not called, get a sensible size instead
(like defaultFontHeight() was already trying to do).
2020-05-19 16:44:44 +02:00
Adriaan de Groot
8db8752a41
[libcalamaresui] Remove spurious Q_FUNC_INFO
2020-05-19 16:44:44 +02:00
Adriaan de Groot
3e51fe4651
[partition] Remove spurious Q_FUNC_INFO from logging
...
- The Q_FUNC_INFO was integrated into regular logging with commit
5248a37eb3
2020-05-19 16:44:44 +02:00
Adriaan de Groot
8465dcbc19
[calamares] Don't crash in test-loader
...
- When loading *view* modules, we always need a QApplication for GUI
bits, because the widget for a module is created is very early.
- If it's a view module, replace the application object with one
that supports GUIs; without the --ui flag, though, it will just
run the jobs.
2020-05-19 11:39:53 +02:00
Adriaan de Groot
a7c4e2d203
[tracking] Remove widget-setting stuff not needed with Config
2020-05-19 11:12:16 +02:00
Adriaan de Groot
dfd6bb6a8b
[tracking] Massage the displayed explanation
2020-05-19 11:05:32 +02:00
Adriaan de Groot
49e66b11a2
[tracking] Refactor creation of jobs
...
- Let the jobs handle their own styling and handling, simplify
the ViewStep code.
2020-05-19 10:42:25 +02:00
Adriaan de Groot
309b2f872d
[tracking] Drop configuration fields from ViewStep
...
- All the configuration lives in the Config object (or the
tracking objects that it exposes).
- Get data from the config object for the jobs; TODO: give the
jobs a less-clunky interface.
The UI isn't hooked up to the Config object yet, though.
2020-05-18 20:18:34 +02:00
Adriaan de Groot
5763799ba9
[tracking] Load all the tracking bits into the configuration
2020-05-18 17:48:51 +02:00
Adriaan de Groot
528b98c1c4
[tracking] Configurations for machine and user tracking
2020-05-18 17:42:51 +02:00
Adriaan de Groot
f97a0756a9
[tracking] Introduce configuration for install-tracking
...
- subclass of TrackingStyleConfig holds the URL that is pinged with
information when the installation is done.
2020-05-18 17:09:01 +02:00
Adriaan de Groot
d9fb9c19a8
[tracking] Refactor the information for one tracking type
...
- a single tracking type can be enabled for configuration in the
config file; each must have a policy URL. Class TrackingStyleConfig
is a base class for that kind of configuration.
2020-05-18 16:41:25 +02:00
Adriaan de Groot
68bb066755
[partition] Consolidate SwapChoice handling
...
- pickOne() may be useful, given a set of swap choices; expose it
- move type definitions to PartitionActions, where some of them
come from.
2020-05-18 14:12:50 +02:00
Adriaan de Groot
4ae398c18d
[partition] Move swap choices into config
2020-05-18 14:03:31 +02:00
Adriaan de Groot
a381d6794f
[partition] Migrate required-storage setting to Config object
...
- Create and use the config object in the view step
- Add setConfigurationMap() to Config
2020-05-18 13:07:12 +02:00
Adriaan de Groot
c7857b7749
[partition] Coding style on tests
2020-05-18 12:23:13 +02:00
Adriaan de Groot
b33e54abb9
[partition] Stub of a Config object
...
- Even though this isn't a QML'able module, work towards
a decoupled Config object anyway
- Not actually used yet.
2020-05-18 12:23:13 +02:00
Adriaan de Groot
ca59c8419c
[partition] Goal of this branch: configurable default action
2020-05-18 12:23:13 +02:00
Adriaan de Groot
6d07527123
[partition] Comment-out unsupported swap options
...
- I notice they get copied into distro configurations a lot,
leading to warnings in the logs
2020-05-18 12:23:13 +02:00
Adriaan de Groot
72857b75d0
[partition] Chase moving PrettyRadioButton to libcalamaresui
...
- Update includes
- Use exposed API instead of accessing internals of the button
2020-05-18 11:26:22 +02:00
Adriaan de Groot
17231ae41f
[libcalamaresui] Sanitize API of PrettyRadioButton
...
- Don't expose internals
- Drop unnecessary virtual
- Offer new API to do the things, for which internals were exposed
2020-05-18 11:26:22 +02:00
Adriaan de Groot
3b7c3c4f5d
[libcalamaresui] Coding style
...
- Apply coding style
- Place the widget classes in namespace Calamares
- Export symbols for widgets
2020-05-18 11:26:12 +02:00
Adriaan de Groot
c4951d5090
[libcalamaresui] Move PrettyRadioButton from partition
2020-05-18 10:38:45 +02:00
Adriaan de Groot
8d4c7767d4
[libcalamaresui] Document ClickableLabel
2020-05-18 10:32:25 +02:00
Adriaan de Groot
f67d8ef162
[3rdparty] Chase API deprecation in Qt
...
- QElapsedTimer has existed since Qt 4.7
2020-05-18 10:25:19 +02:00
Adriaan de Groot
4c0a212b68
[partition] Warnings-- (Qt 5.14)
...
QVariant::fromValue doesn't have *since* documentation, so I expect it to be 5.6-and-later.
2020-05-18 10:12:12 +02:00
Adriaan de Groot
27d4fa675b
[locale] remove unneeded this->
2020-05-18 10:03:34 +02:00