Adriaan de Groot
4d5ff6d5c4
[locale] Make the Page use the region model from Config
2020-07-20 16:27:15 +02:00
Adriaan de Groot
88d1d255f6
[locale] Add regions & zones models to Config
...
- The models are constant pointers, even if their contents aren't.
- Make the top-level (region) model point to the global TZ list.
2020-07-20 16:16:53 +02:00
Adriaan de Groot
51b7ec875f
[locale] Don't need own copy of zones list
2020-07-20 13:55:00 +02:00
Adriaan de Groot
439f828d9b
[locale] Document TZ widget
2020-07-20 13:47:23 +02:00
Adriaan de Groot
931ce20f30
[locale] Reduce API surface
...
- getLocationPosition doesn't need to be a method, since it calls out
to a static function of TimeZoneImageList anyway.
2020-07-20 13:38:20 +02:00
Adriaan de Groot
25ba1bb767
[locale] Remove localeGenLines from page
...
- the Config object took over loading of the string list
- expose the list as a property
- drop loading code from the page.
2020-07-20 13:24:31 +02:00
Adriaan de Groot
338635146f
[locale] Hand the Config object also to the page
2020-07-20 12:58:35 +02:00
Adriaan de Groot
b6b5c44996
[locale] Load supported locales in Config
2020-07-20 12:55:07 +02:00
Adriaan de Groot
8119c7e72a
[locale] Reset Config object
...
The Config object wasn't being used at all in the locale module;
reset it to empty and start using it in locale, so that
configuration functionality can be added to it as-needed,
and with the necessary refactoring built-in.
2020-07-20 12:37:27 +02:00
Adriaan de Groot
0d5db2dd06
[localeq] Config-handling is a total bodge-job, disable
2020-07-20 12:36:58 +02:00
Adriaan de Groot
724b92ee60
[partition] Drop documentation of vanished parameter
2020-07-11 16:35:54 +02:00
Adriaan de Groot
a91edfef89
[netinstall] auto-resize the columns
...
- previously, the first column (name) was sized to show the
names **that were visible at startup**, which fails when
there are long names hidden in groups that are not expanded
immediately.
- change the columns to resize according to the contents; this makes
the descriptions jump to the right as the name column gets wider.
FIXES #1448
2020-07-08 13:34:38 +02:00
Adriaan de Groot
240c703549
[partition] Don't leak the PM core object
2020-07-08 13:11:10 +02:00
Adriaan de Groot
7f1a59f02b
[partition] Fix typo
2020-07-08 13:11:10 +02:00
Adriaan de Groot
313531bc4b
[partition] Remove unused parameter
...
- there are no consumers for checking-the-capacity-of-the-drive
This parameter was introduced in 3cd18fd285
as "preparatory work"
but never completed. The architecture of the PartitionCoreModule
makes it very difficult to get the necessary parameters to
the right place, and it would probably be better to put
a SortFilterProxyModel in front of a partitioning model anyway.
Since the display code can already filter on size, just drop this one.
2020-07-08 13:08:51 +02:00
Adriaan de Groot
948c078e1a
[partition] winnow floppy drives
...
- don't list floppy drives
FIXES #1393
2020-07-07 23:03:12 +02:00
Adriaan de Groot
43ebcf8b61
[packages] Keep package-manager list alphabetized
2020-07-07 13:48:07 +02:00
Vitor Lopes
c16866fb88
pep8 302
2020-07-05 08:37:28 +01:00
Vitor Lopes
e29462bc05
[pamac] rework db_lock
2020-07-05 08:35:52 +01:00
Vitor Lopes
d78cbfc644
update example configurations and schema
2020-07-05 08:18:38 +01:00
Vitor Lopes
2c76106a66
Merge branch 'calamares' of https://github.com/calamares/calamares into calamares
2020-07-05 08:14:32 +01:00
Adriaan de Groot
46ad704ede
[partition] Fix build for old KPMCore
...
SEE #1444
2020-07-03 22:33:00 +02:00
Adriaan de Groot
36a9088480
Merge pull request #1444 from gportay/add-parttype-partattrs-to-global-storage
...
[partition] Add the GPT type and attributes to global storage
2020-07-03 16:18:56 -04:00
Adriaan de Groot
d3f9415bc1
[packages] Expand schema to cover the operations
...
- Not complete, since the items in the operations aren't done
2020-07-03 22:07:18 +02:00
Adriaan de Groot
8aa8ac2d26
[packages] Tidy up configuration
...
- fix the schema so the schema is valid json-schema
- the schema doesn't actually validate the *operations* yet
- sort the named backends (needs a double-check that the
list covers all the ones we currently support)
SEE #1441
2020-07-03 21:51:39 +02:00
Adriaan de Groot
08aa362c5c
[license] Warnings-reduction
...
- Don't do in code what is already done in the designer (.ui) file
- setFrameStyle() is difficult because it mixes different enums
into an int, which causes the warning from clang.
2020-06-27 00:33:50 +02:00
Adriaan de Groot
31a1b710bc
Docs: say something about QML modules
2020-06-25 15:26:48 +02:00
Adriaan de Groot
6735ff1cd0
Docs: give up on PythonQt modules
2020-06-25 14:45:35 +02:00
Adriaan de Groot
e206eb086b
[partition] Missing includes for Qt-compatibility
2020-06-23 17:05:08 +02:00
Adriaan de Groot
c3ff9edfa2
[tracking] Add a test executable
...
- just a stub, hardly tests useful functionality
2020-06-23 14:43:26 +02:00
Adriaan de Groot
1dfb25372b
[tracking] Warnings-reduction
...
- Give classes a virtual destructor that need them
- Remove spurious ;
- Refactor addJobs() because that doesn't need to be in a class
- Remove redundant intermediate base-classes
2020-06-23 13:37:56 +02:00
Adriaan de Groot
0bede0692a
[locale] Warnings-- on static_cast with no message
2020-06-23 13:18:30 +02:00
Adriaan de Groot
daf9451e69
[welcome] Warnings--
2020-06-23 13:16:56 +02:00
Adriaan de Groot
22fdca8f44
[libcalamares] Use Logger::Pointer for logging void-pointers
2020-06-23 13:02:06 +02:00
Adriaan de Groot
192263cf9d
[libcalamares][modules] Use compatibility for QString::split()
...
- Use the compatibility value, which has an enum value suitable
for the Qt version in use.
2020-06-23 11:13:55 +02:00
Gaël PORTAY
9392473fec
[partition] Add the GPT type and attributes to global storage
2020-06-22 16:37:20 -04:00
Adriaan de Groot
e24f812b2d
[libcalamares] Chase Permissions move
...
- Fix include names in *preservefiles*
- Tidy up include guards
- Fix CMakeLists in *perservefiles* and *libcalamares*
- Use SPDX license headers
2020-06-22 16:32:47 -04:00
Adriaan de Groot
4473d7f5dd
[preservefiles] Move permissions classes to libcalamares
2020-06-22 16:22:59 -04:00
Gaël PORTAY
4974d86932
[partition] Fix missing initialization of the attribute partAttributes
...
- Initialize the attribute partAttributes to 0; it is a primitive type
and it is not initialized in some constructors.
Fixes commit c1b5426c6
([partition] Add support for partition attributes).
- Move implementation of default constructor to cpp.
2020-06-22 14:24:14 -04:00
Adriaan de Groot
fde1aad465
CMake: add support for USE_*=none (from the os-modules branch)
2020-06-22 13:39:36 +02:00
Adriaan de Groot
bff0bed07e
[users] Apply coding style (only CreateUserJob.cpp though)
...
- use ci/calamaresstyle
- SPDX licensing
2020-06-22 13:17:39 +02:00
Vitor Lopes
976150bc1e
simplify install code
2020-06-22 00:12:02 +01:00
Vitor Lopes
ddfd120197
add missing self
2020-06-21 23:43:31 +01:00
Vitor Lopes
5bb49e252d
Update main.py
2020-06-21 18:28:17 +01:00
Vitor Lopes
75bba349be
Update main.py
2020-06-21 18:03:21 +01:00
Vitor Lopes
f8db15adc4
add pamac support
2020-06-21 17:24:29 +01:00
demmm
ccff4edd91
[keyboard] fully functional QML module
...
added missing components listed as ResponsiveBase, ListItemDelegate & ListViewTemplate
parts of which were on nitrux
keyboard.qml no longer uses buttons within ListView, can't work as buttons and have them visible
see https://doc.qt.io/qt-5/qml-qtquick-listview.html#footerPositioning-prop
set ListView as actually visible within a normal calamares window size
2020-06-19 17:05:29 +02:00
Adriaan de Groot
5da2012465
[users] Expand schema to support the keys documented in users.conf
...
- Now the documentation in the file and the source is leading
to update the schema, but in future those should go hand-in-hand
2020-06-18 16:23:32 +02:00
Adriaan de Groot
463545290e
[users] Fix up schema syntax
...
- Remove schema items *availableShells* and *avatarFilePath* because
those have no implementation.
2020-06-18 16:12:40 +02:00
Adriaan de Groot
c284024b0e
i18n: Update English translations
2020-06-18 15:47:18 +02:00
Adriaan de Groot
b9b79f11a4
[unpackfs] Prevent accidental 0777 permissions on /
...
FIXES #1418
2020-06-18 14:47:33 +02:00
Adriaan de Groot
0305476f8a
Merge branch 'issue-1287' into calamares
...
Major update to the 'tracking' module with improved wording,
functionality, QML-preparation, and a working kuserfeedback mode.
FIXES #1287
2020-06-18 13:46:57 +02:00
Adriaan de Groot
1b11cc90c4
[tracking] Polish the phrase for 'none' a bit
2020-06-18 13:37:43 +02:00
Adriaan de Groot
6365b7a362
Merge branch 'calamares' into issue-1287
2020-06-17 18:10:33 +02:00
demmm
fc91b4ce60
[localeq] use js to get the hasInternet status
...
switching between Map.qml & Offline.qml now happens properly
2020-06-17 16:52:59 +02:00
Adriaan de Groot
8ad221311d
[tracking] Can't uncheck 'none' box by itself
...
- If the 'no tracking' box is checked, then the way to uncheck
it is to tick some **other** box.
- It doesn't make sense to unselect 'none' and then have .. none
selected.
2020-06-17 15:31:53 +02:00
Adriaan de Groot
47b0fa5d55
[tracking] Get username from gs
2020-06-17 15:24:21 +02:00
Adriaan de Groot
9b8d591b5d
[tracking] Configure user-tracking areas
2020-06-17 15:11:11 +02:00
Adriaan de Groot
98ab4330c4
[tracking] expand documentation of configuration
2020-06-17 14:52:48 +02:00
Adriaan de Groot
3f55d415e9
[tracking] Make names of user-tracking styles consistent
...
- use kuserfeedback instead of "kde", to name the technology,
not the community
2020-06-17 14:27:28 +02:00
Adriaan de Groot
5623d8086b
[tracking] Apply coding style
...
- massage trackingSetup macro to look like a function call
2020-06-17 14:27:28 +02:00
Adriaan de Groot
789561be6a
[tracking] Apply coding style
2020-06-17 14:14:06 +02:00
Adriaan de Groot
8c1685d2cf
[tracking] Connect UI to configuration
...
- policy buttons open the policy URL
- hide tracking levels that are not configurable
2020-06-17 12:20:35 +02:00
Adriaan de Groot
756e3084dc
[tracking] Simplify updatemanager job
...
- sed all the URI lines with a simple replacement
- document policy requirements
2020-06-17 11:33:48 +02:00
Adriaan de Groot
9433311f24
[tracking] Explain which tracking style is disabled by URL-validation
2020-06-17 11:33:48 +02:00
Adriaan de Groot
48d0c5beeb
[tracking] Do user tracking in the job queue
2020-06-17 11:33:48 +02:00
Adriaan de Groot
cb2909f6d8
[tracking] Rename "neon" tracking
...
KDE neon does not do this kind of tracking -- although it was originally
requested by KDE neon, no server roll-out was done once the
privacy policy was thought out.
2020-06-17 11:33:48 +02:00
Adriaan de Groot
4d6a5d0cb5
[tracking] Use KMacroExpander instead of homebrew for install-URL
2020-06-17 11:33:47 +02:00
Adriaan de Groot
c797a30a72
[tracking] Bold more relevant parts of level-descriptions
2020-06-17 11:33:47 +02:00
Adriaan de Groot
dda4ab0b2e
[tracking] Improve naming
...
- give the on-some-checkbox-state-changed slots better names
- while here, refactor is-any-actual-tracking-option-checked
- improve other debug messages, to be a whole sentence
2020-06-17 11:33:30 +02:00
Adriaan de Groot
635f53a804
CI: add a BUILD_SCHEMA_TESTING
...
- ON by default, so if tests are built and the script works,
those tests will run as well.
- Check that the script works by invoking it once.
2020-06-16 17:36:59 +02:00
Adriaan de Groot
e3b8570d61
Merge remote-tracking branch 'origin/master' into calamares
...
Pick up some older MRs that apply to the older branch.
2020-06-16 16:45:49 +02:00
Adriaan de Groot
bfefbd117d
Merge pull request #1435 from gportay/partition-attributes
...
Partition Attributes
2020-06-16 16:42:30 +02:00
Adriaan de Groot
91f87ba838
Merge pull request #1409 from gportay/partition-uuid
...
Partition UUID
2020-06-16 16:42:24 +02:00
Adriaan de Groot
0cd8940363
[bootloader] Fix up schema
2020-06-16 16:16:07 +02:00
Adriaan de Groot
066acdbbc6
Merge branch 'yaml-schemata' into calamares
2020-06-16 16:07:57 +02:00
Adriaan de Groot
4a07bd4ae3
CI: import all the rest of the YAML schema
...
- These have **not** been fixed for validation, so the schema's themselves
will fail to load. This is a consequence of variations in JSON-Schema
representations through various drafts. Fixing the schemata is
fairly straightforward.
This gives us 19 new tests, all of which fail.
2020-06-16 16:06:56 +02:00
Adriaan de Groot
df183d4026
[welcome] Add schema for welcome config
...
- Note that this is missing *languageIcon* so if that gets uncommented,
it will fail validation.
- While here decide that should be
right up front in object (mappings) declaration.
2020-06-16 16:03:28 +02:00
Adriaan de Groot
b48c2745c1
CI: apply schema-validation to the example config files
...
- Any config file with a schema gets a test (validate-<module>)
to test the file.
2020-06-16 14:38:13 +02:00
Adriaan de Groot
62e7128ff6
CMake: document WITH_ and BUILD_ a little more
...
- also mark TODO:3.3: for incompatible / surprising changes for 3.3
2020-06-16 13:54:13 +02:00
Adriaan de Groot
deec0b862f
[finished] Add schema for config
...
- Original schema from artoo@manjaro.org , modified for current JSON-Schema use
2020-06-16 13:04:34 +02:00
Gaël PORTAY
c1b5426c66
[partition] Add support for partition attributes
2020-06-15 22:05:10 -04:00
Calamares CI
ba89b9f7f2
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-06-12 14:36:48 +02:00
Pablo Ovelleiro Corral
f034b55da2
[packages] add xbps package manager
2020-06-11 11:51:15 +02:00
Adriaan de Groot
6c272bc8be
[libcalamares] Link yamlcpp privately
...
- link the library privately -- the public API uses QVariantMap
- install FindYAMLCPP just in case
- add yamlcpp explicitly in the few places that really need it
(e.g. netinstall testing the parsing of netinstall.yaml)
2020-06-10 02:27:57 +02:00
Adriaan de Groot
38b4f45b92
[locale] Repair timezone graphics -- west-Africa and Pacific
2020-06-09 14:54:19 +02:00
Adriaan de Groot
d511cc2f7a
[locale] Norfolk Island gave up +11.5 in 2015
2020-06-09 14:21:11 +02:00
demmm
a617dba85e
[welcomeq]re-add the donate button example to welcomeq.conf
2020-06-09 13:34:16 +02:00
Adriaan de Groot
8c4b6e4804
Merge branch 'master' into issue-1287
2020-06-09 13:25:01 +02:00
Adriaan de Groot
35fb8dcc27
[mount] Warn if chcon is missing, rather than fail
...
FIXES #1429
2020-06-09 13:24:12 +02:00
Adriaan de Groot
d22178ca5e
[welcomeq] Show filtered list of requirements
...
- only the unsatisfied ones are shown; no need to filter and
fiddle about in QML
2020-06-09 12:13:44 +02:00
Adriaan de Groot
f68d0f0628
[welcome] Add a filtered model for unsatisfied requirements
2020-06-09 12:05:40 +02:00
Adriaan de Groot
d1165bea56
[welcomeq] Use just one component to display requirements
...
- Do all the status indication in one component, but vary
the top-level message based on whether the mandatory
requirements are satisfied.
- Vary color and icon based on each requirement's *mandatory* setting.
2020-06-08 10:22:03 -04:00
Adriaan de Groot
5b1e5a9e03
[welcome] Some API docs
2020-06-08 09:45:19 -04:00
Adriaan de Groot
f35fab24ac
[welcome] Remove name-tangle
...
- use useful, not-single-letter, variable names
- don't rename inconsistently in the lambda capture
2020-06-08 08:33:48 -04:00
Adriaan de Groot
8255bc3fc1
[welcome] Sanitize example configurations
...
- remove all duplicated documentation from ; it's the same as
`welcome.conf` in all respects except for *qmlSearch*.
2020-06-08 08:33:48 -04:00
demmm
73eb718c08
adding needed geoip section to welcomeq.conf
...
see https://github.com/calamares/calamares/issues/1427#issuecomment-640531710
2020-06-08 13:25:47 +02:00
Adriaan de Groot
5e79176f47
Merge pull request #1422 from andy1247008998/patch-2
...
remove unnecessary period mark since it's a title
2020-06-06 17:22:13 +02:00
Adriaan de Groot
0e7c984854
[partition] Add missing includes for Qt 5.15 compatibility
2020-06-03 16:43:31 +02:00
Adriaan de Groot
1c598d769b
[partition] Apply coding style (to just this one file)
2020-06-03 16:42:42 +02:00
Adriaan de Groot
25d36a8943
[netinstall] Improve documentation of translation framework
...
- Not country-code, but language-code
FIXES #1411
2020-06-03 16:02:43 +02:00
Adriaan de Groot
67d7c700fd
[locale] Update documentation to mention *fixed* style
2020-06-03 15:11:19 +02:00
Adriaan de Groot
24653c1cc6
[locale] C&P code with repeated bugs from QML branches
2020-06-03 13:42:15 +02:00
Adriaan de Groot
c6d147bde6
[keyboard] Give Canadian English the US keyboard layout, eh
2020-06-03 01:38:11 -07:00
AI Lion
c6174b027c
remove unnecessary period mark since it's a title
2020-05-31 00:31:05 +08:00
Adriaan de Groot
60e12174fd
[tracking] Switch out Radio for CheckBox
...
- The Radio's are replaced by CheckBoxes and some logic, so
that different tracking styles can be enabled independently.
None of the settings end up in the Config yet, though.
2020-05-25 10:32:56 -04:00
Adriaan de Groot
fab3ff2c41
[tracking] Implement KUserFeedback configuration
...
- write config files to turn on KUserFeedback (for known areas)
- TODO: get the right home directory to write in
2020-05-25 09:56:32 -04:00
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
bc9544bf14
i18n: [dummypythonqt] 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
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
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
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
c4951d5090
[libcalamaresui] Move PrettyRadioButton from partition
2020-05-18 10:38:45 +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
demmm
e2c99eeb5e
[welcomeq] adjust spacing
...
make sure the listviews fit in the default window size without overlapping
the language bar
2020-05-17 12:37:01 +02:00
Gaël PORTAY
3d2b9053b0
[partition] Add the GPT label and UUID to global storage
2020-05-15 16:12:19 -04:00
Gaël PORTAY
da6f728cd4
[partition] Add support for partition uuid
2020-05-15 16:12:19 -04:00
Gaël PORTAY
33f6bd5699
[bootloader] Remove unused variable root_mount_point
...
- root_mount_point was used initially for logging c1a139995
(adding new
bootloader job options are to use grub for BIOS, gummiboot for efi set
extra mountpoint when efi is found)
- the trace was removed since 533031b3c
([bootloader] print() does not
log)
2020-05-15 12:05:26 -04:00
Adriaan de Groot
c3d8112187
CMake: allow fine-tuning tests
...
- The Python configuration tests sometimes need extra setup, so
do that through a CMakeTests.txt file in the test directory.
- Patch up existing tests:
- grubcfg needs /tmp/calamares/etc/default to exist
- rawfs won't work on FreeBSD because of differences in /proc
2020-05-15 14:38:45 +02:00
Adriaan de Groot
fe069bdb23
[fstab] Add some discussion about *discard* option
...
- drop the *discard* from filesystems-on-SSD in the standard example
configuration.
- keep the table **with** *discard* around for referece and explanation.
Remember that the example configurations are intended as **examples**,
to document available settings, and do not reflect a sensible
production configuration.
FIXES #1395
2020-05-15 12:26:41 +02:00
demmm
153d605bb6
[welcomeq] use negatedText for better text on missing
2020-05-14 23:11:05 +02:00
demmm
a85ff30ad4
[welcomeq] smaller font size
...
correct color order Requirements.qml
2020-05-14 20:01:50 +02:00
demmm
fed89badd4
[welcomeq] connected to RequirementsModel
...
clean up obsolete lines in welcomeq.qml
add requirement section from welcome.conf to welcomeq.conf
data shows correctly in Recommended.qml, fails to show any in Requirements.qml if run without admin rights
2020-05-14 19:00:02 +02:00
Adriaan de Groot
47979555fe
CMake: optionally disable QML
...
This makes it possible to remove QML from Calamares, possibly yielding
a smaller, lighter installer; it takes with it the nice slideshow,
modern configurable navigation and the QML UIs built for various modules.
By default, WITH_QML is on and the "normal" feature set is retained.
- look for Qml modules only when WITH_QML is on (the default)
- look for Network, since that's pulled in only implicitly
- disable the QML Calamares models (modules/*q) if no QML is
enabled; longer-term plan is to merge the **pages** back to
the "upstream" modules, and have things be run-time switchable,
but that's not here yet. Also disable the notesqml module when
QML is off.
2020-05-14 16:31:39 +02:00
Adriaan de Groot
2b0b873159
[welcome] Remove spurious logging
2020-05-14 15:23:45 +02:00
Adriaan de Groot
3f9878afc1
[welcomeq] Use the model properties to show recommendations and requirements
2020-05-12 17:07:50 +02:00
Adriaan de Groot
1a1fde1885
[welcome] [welcomeq] Chase API change for requirements progress
2020-05-12 17:07:15 +02:00
Adriaan de Groot
90f8e748ef
[welcome] Improve debugging of general requirements
...
- distinguish 'this has not been checked' from 'checked and failed'
2020-05-12 15:29:16 +02:00
Adriaan de Groot
9e0aa76375
[welcome] Order member pointers
...
- Create config before the page
- .. and in doing so, create the page in the initializer list instead
2020-05-12 14:54:18 +02:00
Adriaan de Groot
e930c74e85
[welcomeq] Coding style
...
- Apply coding style tool
- Remove commented-out cruft
- Drop TODO's that don't apply anymore
2020-05-12 14:47:31 +02:00
Adriaan de Groot
ed71b2fbf5
[tracking] Only accept valid policy URLs
2020-05-12 14:42:04 +02:00
Adriaan de Groot
044f5ce2b5
[tracking] Use the config object
...
- right now only holds the global policy URL (as a string)
2020-05-12 14:39:42 +02:00
Adriaan de Groot
a69d47c115
[tracking] Add a Config object
2020-05-12 14:24:33 +02:00
Adriaan de Groot
8ed8b5dfa3
[tracking] Reduce compiler warnings
...
- Newly added enum value NoTracking needs explicit handling
in some switch()es, although it will never be passed in.
2020-05-12 12:11:11 +02:00
Adriaan de Groot
fd2853b2cf
[tracking] Switch setTrackingLevel() to use enum
2020-05-12 11:41:02 +02:00
Adriaan de Groot
6d744374db
[tracking] Use enum-conveniences
2020-05-12 11:24:16 +02:00
Adriaan de Groot
c0fa212fa9
[welcome] Be slightly more verbose in reporting missed req's
2020-05-11 20:45:47 +02:00
Adriaan de Groot
7d00f7e0dc
[welcome] Explain in the debug log what failed
2020-05-11 16:30:26 +02:00
Adriaan de Groot
fabe5ec439
[welcome] Config should not have its own RequirementsModel
...
- Use the one from ModuleManager
2020-05-11 16:30:26 +02:00
Adriaan de Groot
8306de731a
[welcome] Setting requirements from own reqs is totally wrong
...
- The requirements are collected by ModuleManager, checked
by an internal RequirementsChecker and changes to the
requirements state are all signalled from ModuleManager.
By connecting the requirements in the welcome modules' Config
only to their own configs -- and immediately checking them,
which is bad on its own -- we end up with a disconnect between
what the ModuleManager says about requirements, and what
the welcome modules report on.
2020-05-11 16:30:26 +02:00
Adriaan de Groot
0f5db0ba5e
[libcalamares] Remove direct access to model internals
...
- This was just for the ResultsListWidget, which can also use
normal role-based model access.
2020-05-11 16:30:26 +02:00
demmm
32ae0a7bf6
set a bogus username in Map.qml
2020-05-10 17:59:52 +02:00
demmm
34e7b06cc9
[localeq] move to QtLocation map based module
...
fully implemented:
* loading of a live map, ESRI based, zooming & dragging possible
* IP address is translated to map coordinates
* loading of the map centers to the obtained coordinates, with a marker set
* coordinates are translated to a timezone, label visible at bottom of the map
* mouse movement will show changing coordinates
* clicking on new location will center map there, marker moved too, timezone label adjusted
* hasInternet switch set to either load Map.qml or Offline.qml
not done:
* get hasInternet status
* fill the fine-tune 181n.qml with proper locale & language data
* connect the obtained timezone to globalstorage
comments are left in the various files for what needs attention/changes
2020-05-09 14:01:21 +02:00
Adriaan de Groot
36a1d60c0e
Merge branch 'rawfs-compat'
...
Improve testing framework while adding tests to rawfs to double-
check that the conversion (for Python 3.3 compatibility) of
capture_output is correct.
2020-05-08 22:09:20 +02:00
Adriaan de Groot
1ae38c8ebc
CMake: add tests when there are test-configs
...
- If a module has tests/#.global or tests/#.job, these are used
as arguments to a test-run of loadmodule (which reads them
and runs the module with that configuration).
- This makes the old python-loading test and test-runner entirely
obsolete, so remove them too.
2020-05-08 21:53:39 +02:00
Adriaan de Groot
91f88cebf0
[calamares] Move testing application out of intermediate dir
...
- src/modules doesn't seem like a really good place for stray sources
for a testing application. Move it.
2020-05-08 21:20:45 +02:00
Adriaan de Groot
74fb88f9ac
[rawfs] Minor testing support
...
- set *bogus* to do no harm
- add some test configurations
2020-05-08 21:07:17 +02:00
Adriaan de Groot
dc87c11ac4
[rawfs] Slightly more debugging
2020-05-08 20:58:17 +02:00
Adriaan de Groot
7ff97bbb94
Merge pull request #1398 from demmm/master
...
start of adding requirements to welcomeq
2020-05-08 20:44:31 +02:00
Adriaan de Groot
55fb7565d4
Merge pull request #1396 from FLVAL/master
...
Add files via upload
2020-05-08 17:19:15 +02:00
Adriaan de Groot
175082e3ad
[rawfs] Make compatible with Python 3.3
2020-05-08 17:09:37 +02:00
demmm
1ece171597
start of adding requirements to welcomeq
...
just QML, no real connections yet
hardcoded to not visible
not clear if requirementsModel is available to welcomeq
2020-05-08 13:37:50 +02:00
FLVAL
e5f2aba8e2
Add files via upload
...
Region "Africa" zones # 52
14:25:19 [6]: .. Zone "Asmara" QPoint(445,183)
14:25:19 [6]: .. First zone found 2 "2.0"
14:25:19 [6]: .. Also in zone 3 "3.0"
2020-05-07 13:46:48 +02:00
Adriaan de Groot
5dc358093e
[welcome] Apply coding style
2020-05-06 15:52:56 +02:00
Adriaan de Groot
713132d4af
[welcome] Move GeoIP loading into Config
...
- The Config object can handle GeoIP loading on its own. Both
View steps that used this had a derpy view->setCountry() that
didn't really do anything with the view anymore.
2020-05-06 15:46:23 +02:00
Adriaan de Groot
6434374bf3
[welcome] Move languageIcon loading into the Config object
...
- The QML module had an additional check that the normal one
did not; add it in the merged code.
2020-05-06 15:24:08 +02:00
Adriaan de Groot
120a2b0f03
[welcome] Move get-the-show*Url code into Config
...
- Since this is configuration-loading, put it in the Config
class; reduces code duplication between welcome and welcomeq.
2020-05-06 15:08:31 +02:00
Adriaan de Groot
e65a0ee617
[welcome] Update welcome example
...
- donate **does** have a corresponding branding setting
- show that "false" is a valid setting
2020-05-06 14:37:59 +02:00
Adriaan de Groot
9e344f50a7
[bootloader] Refactor efi-next-boot
...
- move the setup-next-boot code to a function on its own
- credit to Gaë
2020-05-06 13:31:02 +02:00
Adriaan de Groot
7c633f1253
Merge pull request #1394 from gportay/set-efi-bootnext
...
[bootloader] Set the EFI Boot Next
2020-05-06 13:10:13 +02:00
Calamares CI
b66867f0ff
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-05-06 11:52:16 +02:00
Gaël PORTAY
4a9c8d0278
[bootloader] Set the EFI Boot Next
...
- This forces the EFI firmware to boot the loader that was just
created, whatever the boot order set in the firmware setup (USB,
CD/DVD, HD...).
- It is safe to use the first Boot Entry listed in BootOrder as the
previous command creates the new entry and adds it to the first place
of the BootOrder.
2020-05-05 12:34:55 -04:00
Adriaan de Groot
7d1800a0d7
[welcome] Apply coding style
2020-05-04 13:00:00 +02:00
Adriaan de Groot
70054e5db4
[welcome] Chase Branding API change
2020-05-04 12:52:14 +02:00
Adriaan de Groot
0046c3f161
[tracking] Chase Branding API change
...
- While here, apply coding style
2020-05-04 12:52:14 +02:00
Adriaan de Groot
c0a3614f09
[partition] Chase Branding API change
2020-05-04 12:52:14 +02:00
Adriaan de Groot
da82adeeee
[finished] Chase Branding API change
...
- while here, also apply coding style
2020-05-04 12:52:14 +02:00
Philip Müller
e4bdeaa943
[displaymanager] don't write AutomaticLogin lines
...
- sometimes if you use external OEM modules you might have those lines already present
- by skipping them you won't have double lines when rerun the module in a later step
2020-05-01 09:11:50 +02:00
Adriaan de Groot
f4f720bc8f
i18n: update English sources
2020-04-30 23:13:45 +02:00
Adriaan de Groot
156a473565
[welcomeq] Hook the translations up to the language combobox
2020-04-30 18:04:14 +02:00
Adriaan de Groot
4786a91eb8
[welcome] Order get/setters consistently
...
- code styling OCD, all the other ones are get, then set
- getters can be in the header, they're boring
2020-04-30 17:41:17 +02:00
Calamares CI
d46122dab9
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-04-29 12:57:44 +02:00
Adriaan de Groot
cb99f446b3
Merge branch 'issue-1192'
...
FIXES #1192
(Calls it the *boot* flag when using KPMCore4, which also shows the
flag *boot* in the flags list of the partitioning dialogs)
2020-04-24 11:56:16 +02:00
Adriaan de Groot
479b467bb6
[partition] Substitute in the right flag name
...
- This uses "esp" in KPMCore 3 and "boot" in KPMCore 4
2020-04-23 13:53:30 +02:00
Adriaan de Groot
cc1a1079e4
Merge pull request #1383 from demmm/master
...
[welcomeq] add language bar
2020-04-23 13:26:49 +02:00
Adriaan de Groot
23af4fcdac
Merge pull request #1387 from gportay/set-efi-system-partition-name
...
[partition] Allow a configurable EFI System Partition name
2020-04-23 13:25:56 +02:00
Adriaan de Groot
4c3c8c6239
Merge pull request #1389 from gportay/update-debug-trace
...
[partition] Update debug output
2020-04-23 12:42:26 +02:00
Adriaan de Groot
1f6752307d
[welcome] Massage layout when banner is used
...
- simplify handling of image loading (if the image doesn't exist,
Branding will bail out on startup)
- reduce space above the banner if it is in use
2020-04-22 14:53:55 +02:00
Adriaan de Groot
c3941b6e65
[welcome] Shuffle code
...
- things that can be done in the designer file should be there,
not weirdly repeated in code elsewhere
- drop the insertion of an extra spacer (why not include it in the
designer file?)
- shuffle all the connect() calls down to the end of the constructor
2020-04-22 14:53:55 +02:00
Gaël PORTAY
77a31ac3b2
[partition] Update debug output
...
The mount-point is known as mountPoint in the global storage.
This commit updates the trace to reflect its real name.
2020-04-21 19:48:48 -04:00
Gaël PORTAY
d6c373c48d
[partition] Allow a configurable EFI System Partition name
...
This commit adds the new configuration `efiSystemPartitionName` to the
file partition.conf.
This option sets the partition name to the EFI System Partition that is
created. If this option is unset, the partition is left unnamed.
2020-04-21 18:47:05 -04:00
Adriaan de Groot
c59af8881c
[umount] Avoid SIGPIPE
...
- collect output from umount process, and then ignore it
2020-04-21 16:13:19 +02:00
Adriaan de Groot
e51fbdc851
[locale] Apply coding style
2020-04-21 15:35:10 +02:00
Adriaan de Groot
f8df49e40f
[partition] Fix up tests
...
- Although we long ago replaced the getPartitions implementation, the
test is still there, and on a machine with no /dev/sda (e.g. because
root is on nvme) the echo-awk-shell-pipeline can give an empty string;
this is turned into a QStringList{""} which has one element, while
the new version has 0 elements.
- Special-case the test that empty strings should be empty lists, rather
than 1-element lists with an empty element.
2020-04-21 13:35:01 +02:00
Adriaan de Groot
a0b4b2bf5e
Merge pull request #1381 from bill-auger/patch-welcome-banner
...
[welcome] add optional branding banner to welcome page
2020-04-21 13:18:44 +02:00
Adriaan de Groot
1f3046dcca
Merge branch 'issue-1374'
...
This is just updating tests, not fixing things.
2020-04-21 12:44:46 +02:00
Adriaan de Groot
69fae85fe8
[locale] Fix test-build
...
- needs <set> if it doesn't get pulled in implicitly
- mark tests as expected-to-fail to not block release
- SEE #1374
2020-04-21 12:43:45 +02:00
demmm
828448b2ff
[welcomeq] make release notes part of welcome window
...
use Loader option for those notes too, commented out file shows it is possible to load from anywhere
2020-04-20 16:47:12 +02:00
demmm
249150dd1b
[welcomeq] add language bar
...
reads data from languagesModel correctly, debug added to see index changes
code cleanup
button layout improved
install info text added, better spacing of text
about button no longer commented out, 3 reasons:
- info provided by any about is standard, will be odd if it can't be found
- about.qml is a seperate file, can be completely adjusted
- not showing it takes away the options for new QML cala users to see what is possible with Loader, thus stopping new possible contributors
2020-04-20 15:00:04 +02:00
bill-auger
7bce58f6f2
[welcome] add optional branding banner to welcome page
2020-04-19 04:01:22 -04:00
Adriaan de Groot
a63a92e3d5
[locale]Fix build (clang, Debian)
...
- This is a follow-up to d0c205c1cc6a2ae49935c92bfd52911b9a0d43f7;
I really don't know why static constexpr const elements that are
not referenced by address need to be defined separately.
2020-04-17 13:41:21 +02:00
Adriaan de Groot
ebb5efcd42
[locale] Mark test as expected-to-fail
...
- There are still 88 issues with the timezone images
2020-04-17 13:06:05 +02:00
Adriaan de Groot
e804ad2488
[libcalamaresui] Rename enlarge()
...
- rename enlarge to ensureSize() and change the meaning from
"make this much bigger" to "make sure this is displayed",
which is easier on the caller to calculate.
2020-04-17 12:56:47 +02:00
Adriaan de Groot
ade623f6b8
[locale] Shuffle code
...
- Put the building-up-the-overall-page in one spot
- Claim a little more vertical space for the TZ widget
2020-04-17 12:56:39 +02:00
Adriaan de Groot
c0be53523c
[locale] Give TZWidget a fixed size
2020-04-17 10:02:54 +02:00
Adriaan de Groot
a4c5e18c4b
[netinstall] Allow the netinstall.yaml to contain key *groups*
...
- This makes it easier to just copy the example, *groups*-key
and all, into an online YAML file and serve that up.
You get easier (local) testing.
2020-04-16 23:20:22 +02:00
Adriaan de Groot
2aca5464b7
[netinstall] Display package descriptions
...
- For packages with a description, show that
- Add an example in the config-file
2020-04-16 22:42:30 +02:00
Adriaan de Groot
960008b124
[netinstall] Allow rich descriptions of packages
...
- the *packages* list can now be package-names, or
package-names-and-a-description.
2020-04-16 22:42:26 +02:00
Adriaan de Groot
39ed591414
Merge pull request #1378 from FLVAL/master
...
[locale] Timezones correction + Pin reduced
2020-04-16 19:30:48 +02:00
FLVAL
3f6e242fd9
Add files via upload
...
Resaved cause showing not 100% upload with latest correction
2020-04-16 19:21:44 +02:00
FLVAL
82c4e7aa54
Add files via upload
...
- udpated the _0.0 and _1.0 to not get overlap between Gibraltar and Cueta
- Fakaofo correction on _10.0 and _-11.0
- pin reduced size
2020-04-16 19:09:49 +02:00
Adriaan de Groot
82ba4be5e7
[locale] Test for pixel-perfect location of Gibraltar and Ceuta
...
- Can't get Gibraltar (and Ceuta) to be distinguished
2020-04-16 17:59:12 +02:00
Adriaan de Groot
3db901bd09
[locale] Expand tests to show overlapping locations
...
- This isn't something that Calamares can acutally fix,
so the test will be disabled later. After all, if
Brazzaville and Kinshasa are close enough that on the
map they are the same pixel, we can't move the cities.
2020-04-16 15:48:17 +02:00
Adriaan de Groot
2633cf1ef6
[locale] Fix timezone maps for -1,0,1 timezones
...
- Merge branch 'master' of https://github.com/FLVAL/calamares
- Add credits to CHANGES
FIXES #1377
SEE #1374
2020-04-16 15:09:14 +02:00
Adriaan de Groot
7b4b268875
[netinstall] Hit the docs with a hammer
...
- Merge all the format documentation into netinstall.conf,
where the example is given in full as an embedded
*groups* entry.
- Get README.md to point to the example.
- Fix up headers in netinstall.yaml, pointing to the
embedded example in netinstall.conf.
2020-04-16 14:34:55 +02:00
FLVAL
e5b2faad9a
Add files via upload
...
Timezones updated for these countries found on pixel detection tool
Dublin is in 0 (-1 needs editing)
Gibraltar should be 1.0 (0 needs editing)
Guernsey and Jersey are in 0 (1.0 needs editing)
Lisbon is in 0 (-1 needs editing)
Vilnius should be in 2 (1 needs editing)
2020-04-16 02:54:38 +02:00
Adriaan de Groot
cd66405363
[locale] Test TZ images properly
...
- the test wasn't built with DEBUG_TIMEZONES, so it didn't get the
overlap-checking code at all.
2020-04-15 14:30:10 +02:00
Adriaan de Groot
d0c205c1cc
[locale] Fix build (gcc, Debian)
2020-04-15 14:19:47 +02:00
Adriaan de Groot
d20a621e93
[users] Apply coding style
2020-04-15 11:55:09 +02:00
Adriaan de Groot
ab5d5fb772
[users] Log pwquality error message as well (better than just "-14")
2020-04-15 11:49:43 +02:00
Adriaan de Groot
b890345b1f
[locale] Tidy includes
2020-04-15 11:45:27 +02:00
Adriaan de Groot
f7a87338b8
[locale] math headers got lost
2020-04-15 11:41:59 +02:00
Adriaan de Groot
a2a10d14b6
[locale] Improve logging in tests
2020-04-14 16:24:56 +02:00
Adriaan de Groot
29fd0e0319
[locale] Expand test to check zones-overlap
...
- Document index and find methods,
- Check that each location is claimed by only one image (e.g. by
one zone). This is currently false.
2020-04-14 16:21:24 +02:00
Adriaan de Groot
1d5c4f13aa
[locale] Move the find-a-zone-image-for position to the image list
2020-04-14 16:06:21 +02:00
Adriaan de Groot
6173f9337a
[locale] Refactor long+lat -> x,y mapping
...
- Move this code to a static method since it only depends on the
expected image size (which here, is managed by the image list).
2020-04-14 15:24:05 +02:00
Adriaan de Groot
3945008956
[locale] Test the TZ image loader
...
- QImage needs Qt5::Gui, so this isn't a guiless-test; it can use
the offscreen QPA, though.
- Check that the images are all the same size
- Debugging / check code removed from timezonewidget
2020-04-14 15:10:04 +02:00
Adriaan de Groot
340c462062
[locale] Refactor loading of timezone images
...
- Move the image-loading to a separate class
2020-04-14 14:44:24 +02:00
Adriaan de Groot
4b65600c08
[locale] Remove useless localeglobal
...
- Although ::init() was called, none of the actual functionality
from localeglobal was still in use.
2020-04-14 12:37:22 +02:00
Adriaan de Groot
36d9e7d8f4
[locale] Extend tests with tz-image-validation
...
- The idea is to check all the TZ images for consistency, like
TimeZoneWidget::setCurrentLocation() does when DEBUG_TIMEZONES is
on; a zone-pixel should be set in only **one** image.
The test so far is just a stub.
2020-04-14 11:59:45 +02:00
Adriaan de Groot
e84db033b0
[locale] Debug-message typo
2020-04-14 11:57:03 +02:00
Adriaan de Groot
f9d888ec24
[locale] Warnings--
...
- remove unused variables, tighten up code some
- while here, apply coding style
2020-04-14 11:32:15 +02:00
Adriaan de Groot
022e62b829
[licale] Fix build with DEBUG_TIMEZONES
...
- QLatin1String isn't a constexpr; the whole ZONE is a bit derpy,
so let's just #define it.
2020-04-14 11:26:03 +02:00
Adriaan de Groot
05990fb287
CMake: handle DEBUG_* consistently
...
- Make all four DEBUG_ flags actual CMake options, rather than
stuffing some of them in the rather-peculiar _enable_debug_flags.
Each debug option turns on suitable compile flags in the module(s)
that are affected.
2020-04-14 11:18:51 +02:00
Calamares CI
748973a17c
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-04-07 23:03:18 +02:00
Adriaan de Groot
8a6925c5be
i18n: update English texts
2020-04-07 22:59:52 +02:00
Adriaan de Groot
8b41a71668
[partition] Apply coding style to core/
2020-04-07 21:38:15 +02:00
Adriaan de Groot
b08cb52d0a
[partition] Mark /boot or / as bootable
...
FIXES #1175
2020-04-07 21:26:54 +02:00
Adriaan de Groot
0c6dd4e788
[partition] No "jobs/" needed in jobs includes
2020-04-07 11:46:03 +02:00
Adriaan de Groot
f85732ccb0
[partition] Coding style on Jobs
2020-04-07 11:44:26 +02:00
Adriaan de Groot
1e3ff51bfe
[finished] Don't translate placeholder text
2020-04-07 11:09:59 +02:00
Adriaan de Groot
087c88753c
[netinstall] Expand the table of common-strings
...
When one of these common names for the netinstall page is used,
it gets pulled out of the standard translations, so that it
doesn't have to be translated in the per-distro config file.
These labels are common enough that they make sense for
everyone to have lying around.
FIXES #1367
(I say "fixed" but of course it's going to depend on the translation
workflow to make these available)
2020-04-06 17:35:27 +02:00
Adriaan de Groot
11aa6da1e9
Merge branch 'issue-1335'
...
FIXES #1335
2020-04-06 17:27:41 +02:00
Adriaan de Groot
129bfa3a2e
[unpackfs] Counting works better when you update the variable
2020-04-06 17:14:29 +02:00
Adriaan de Groot
bea41465e2
[unpackfs] Update progress around every 1%
2020-04-06 17:08:27 +02:00
Adriaan de Groot
facf5af589
[unpackfs] Don't jump back in progress while counting
2020-04-06 17:06:53 +02:00
Adriaan de Groot
af0d04d523
[unpackfs] Report progress more carefully
...
- Mark entries as totally-done
- Show a message when counting an entry
2020-04-06 16:54:02 +02:00
Adriaan de Groot
21f060c3fd
[unpackfs] Check for squashfs tools earlier
2020-04-06 10:52:32 +02:00
Adriaan de Groot
391bd1098f
[unpackfs] An entry knows where it is mounted
...
- `imgmountdir` no longer defined in `UnpackOperation.run()`
2020-04-06 10:48:34 +02:00
Adriaan de Groot
065a506470
[netinstall] Resize name column
...
- Once group data is loaded and pre-expanded groups are open,
adjust the column width so that all the names are visible.
2020-04-05 00:26:53 +02:00
Adriaan de Groot
9db7dd3f3e
[netinstall] Add a group with long names
2020-04-04 23:59:58 +02:00
Adriaan de Groot
9b14bf6826
[unpackfs] Rework progress reporting
...
- Slice overall progress into chunks, with each chunk of equal size
(as long as we have no overall count information) and place
the progress of the current chunk into its own slice.
2020-04-04 23:42:20 +02:00
Adriaan de Groot
7e4cb28c1c
[unpackfs] Refactor mounting for an entry
...
- The entry knows where it should be mounted, and can remember that
- mount_entry() didn't use self, so made no sense as a method
of the Operation class
2020-04-04 23:19:08 +02:00
Adriaan de Groot
49a584377e
[unpackfs] Refactor counting an entry
...
- This does not have to live in the Operation
- Uses only the local imgmountdir (where the entry is mounted)
2020-04-04 23:10:22 +02:00
demmm
e63160cbe9
[localeq] Repeater with zonesModel crashes cala
...
probably due to dynamically loading items
regionModel now lists, zonesModel only lists one delegate, but
working on QML modules can now continue without crashing cala
2020-04-04 18:43:23 +02:00
Adriaan de Groot
ede561789a
Merge branch 'qml-keyboard'
...
This doesn't actually **work** though, the QML uses older Calamares-internal
APIs and uses a ResponsiveBase that we don't have. Merge it mostly for
the Config and model changes.
FIXES #1355
2020-04-03 17:27:12 +02:00
Adriaan de Groot
6c418402e3
[localeq] Hit QML file with a hammer
...
- io.calamares.modules doesn't exist
- ResponsiveBase doesn't exist
The module is now non-functional, but at least it loads and renders
a list of regions and zones.
2020-04-03 13:43:48 +02:00
Adriaan de Groot
54b8ad5475
[localeq] Fix loading default QML
...
- need our own copy of the QRC, that includes the QML
2020-04-03 12:57:25 +02:00
Adriaan de Groot
c602f2493a
[keyboardq] Make QML available
...
- name default / example QML conventionally
- copy QRC from keyboard -- the QML needs to be included in the QRC --
since we don't want to have the QML in the keyboard module.
2020-04-03 12:42:41 +02:00
Camilo Higuita
835850c02a
[keyboardq] apply the style script
2020-04-03 10:27:06 +02:00
Camilo Higuita
1a46e08cc2
[keyboard] changes to the keyboardmodel to work with qml
2020-04-03 10:26:58 +02:00
Camilo Higuita
0872de7910
[keyboard] Add Config object, split out a keyboardq
...
- Introduce new QML-ified module for the keyboard
- To share code, move *keyboard* module to a Config-object
2020-04-03 10:19:04 +02:00
Adriaan de Groot
a3c966cc6c
Merge branch 'issue-1361'
...
FIXES #1361
2020-04-02 23:14:31 +02:00
Adriaan de Groot
fafc508d63
[welcome] Update the widget's notion of the locale
...
- when the locale changes, tell the widget so that the drop-down
displays the right language.
FIXES #1361
2020-04-02 23:10:55 +02:00
Adriaan de Groot
5956c6678e
[welcome] Don't const& POD
...
- simplify parameter types in some set-methods
- while here, shuffle methods to bring things together
2020-04-02 22:42:41 +02:00
Adriaan de Groot
d2f5185d49
[welcome] Remove unused m_configurationMap
...
- the configuration is split into specific properties, not
stored generically.
2020-04-02 22:00:43 +02:00
Adriaan de Groot
39afbdb570
[welcome] Shuffle signals to conventional location
...
- signals after slots, before private
- while here give the *MessageChanged signals a parameter (the changed
message)
2020-04-02 21:57:00 +02:00
Adriaan de Groot
9d97972a34
[welcome] Apply coding style
2020-04-02 21:53:02 +02:00
Adriaan de Groot
ca7733c8e4
[welcome] Drop RequirementsModel
...
- Use the one from libcalamares
- Massage warning message into Config after it was removed from the model
2020-04-02 21:52:05 +02:00
demmm
34292618d8
welcomeq buttons connecting
...
minor spelling corrections
2020-04-02 20:16:05 +02:00
demmm
2c2bba5525
actually set About button to false...
2020-04-01 16:21:43 +02:00
demmm
b3f59cee25
filling About in QML, button still disabled
...
using Loader, can be reused for other widgets conversion
leave onClick example with full path, commneted out
title text for About is hardcoded, discuss option to make this configurable in welcome.conf
background color hardcoded, tested to work well in dark themes too
2020-04-01 16:19:00 +02:00
demmm
c10ef9e3bc
[welcome] Improve welcomeq visuals
...
- set image to fill
- keep aspect ratio
- don't hardcode text color
- variation in icons used
- expand header text to check fit
2020-03-31 16:08:24 +02:00
Adriaan de Groot
b271ed19b7
[partition] Fix typo in message
2020-03-28 12:49:34 +01:00
Adriaan de Groot
83f5f9e1a7
[libcalamares] Introduce generic delete-later class
...
Don't bother with QScopeGuard just right now, since I can't
find a use-case in the Calamares codebase.
FIXES #1358
2020-03-28 11:49:23 +01:00
Adriaan de Groot
7c56a50632
[netinstall] Expand documentation of groups format
2020-03-28 11:18:31 +01:00
Calamares CI
2b6eb8473e
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-03-27 23:43:50 +01:00
Adriaan de Groot
33a4b08ac0
Merge branch 'issue-1343'
...
- Also add documentation to CHANGES
FIXES #1343
FIXES #1319
2020-03-27 21:14:47 +01:00
Adriaan de Groot
433ed8384f
[netinstall] Inherit criticalness in groups
...
- Groups inherit slightly differently: if a subgroup **explicitly**
configures criticalness, use that. It would be weird, but possibly,
to have a non-critical subgroup of a critical group.
2020-03-27 20:53:13 +01:00
Adriaan de Groot
83a89c144c
[netinstall] Packages should inherit critical-ness from parent
2020-03-27 20:45:04 +01:00
Adriaan de Groot
14a3e10cc2
[netinstall] Simplify getItemPackages
...
- Use convenience predicate isPackage()
- Name child->item(i) for brevity
2020-03-27 20:37:36 +01:00
Adriaan de Groot
464561b420
[netinstall] Update subgroup-checkedness based on children
...
- An unselected group with (some) selected subgroups was not
displayed as (semi)checked -- it was unchecked, because
its checked-ness was not updated based on the children.
2020-03-27 17:28:32 +01:00
Adriaan de Groot
63b940a623
[netinstall] Implement immutable groups
...
- An immutable group doesn't show a checkbox at all
2020-03-27 16:47:33 +01:00
Adriaan de Groot
7a42a4d71f
[netinstall] Add example section that is immutable
...
- The section can't be changed, but is selected (it doesn't
make sense otherwise)
2020-03-27 16:47:07 +01:00
Adriaan de Groot
85551f0fdb
[netinstall] Various refactoring
...
- move ready-indication to Config
- don't check pointers that can't be null
- hand the whole Config to the page
2020-03-27 16:12:48 +01:00
Adriaan de Groot
4cdfe1276a
[netinstall] Rip loading out of the UI page
...
- Create a config object in the ViewStep
- Model lives in the config object and loads there
- Give model to the UI page for display
2020-03-27 15:51:03 +01:00
Adriaan de Groot
9a35427113
[netinstall] Remove unused m_jobs
...
- Netinstall doesn't make any jobs itself, so drop the member variable
- Use type alias, and simplify jobs()
2020-03-27 15:14:37 +01:00
Adriaan de Groot
1a74a713b6
[netinstall] Make status an enum
...
- Since we might change translations after loading, display
the message based on the status enum, rather than
setting it once at load-time.
2020-03-27 14:54:06 +01:00
Adriaan de Groot
7a4f6f7bfd
Merge pull request #1357 from demmm/master
...
[partition] Increase Manual Partition instructions
2020-03-27 14:05:56 +01:00
Adriaan de Groot
463435db68
[localeq] De-cruft CMakeLists
...
- Remove commented-out code
- Fix layout
- Update to modern CMake approach
2020-03-26 11:39:04 +01:00
Adriaan de Groot
ba8811c628
[keyboard] Apply coding style
...
- Include order
- ci/calamaresstyle
- modern alias for job-list
2020-03-26 11:08:55 +01:00
demmm
8dc81b6987
Increase Manual Partition instructions
...
used downstream since 2014, has helped a lot with increaisng correct setups
2020-03-25 19:43:29 +01:00
Adriaan de Groot
215bc46469
[welcome] Update copyright years in about-popup
2020-03-25 13:54:54 +01:00
Adriaan de Groot
2a93c7e236
[welcome] Chase changed API in master
2020-03-25 13:48:10 +01:00
Adriaan de Groot
ce244d8514
[welcome] Style in viewstep (unrelated to merge)
2020-03-25 13:46:27 +01:00
Adriaan de Groot
81912f9e7d
[welcome] Style in Config
2020-03-25 12:00:41 +01:00
Adriaan de Groot
1ede7003c0
[welcome] Apply coding style
2020-03-25 11:41:39 +01:00
Adriaan de Groot
ff74113675
Merge branch 'qml-bits' of https://github.com/milohr/calamares into milohr-qml-bits
2020-03-25 11:37:56 +01:00
Adriaan de Groot
08b5012946
[locale] Apply coding style to Config
...
- ci/calamaresstyle
- sort includes by kind (local module, Calamares, Qt, STL)
- add copyright line
2020-03-24 22:48:14 +01:00
Adriaan de Groot
412a8043a9
Merge branch 'qml-locale' of https://github.com/milohr/calamares into milohr-qml-locale
2020-03-24 22:43:13 +01:00
Adriaan de Groot
26dd93b67c
[partition] Simplify code
...
- isEfi only used meaningfully once
- if (isEfi) followed by if (!isEfi) can be simpler
- create bios-but-not-GPT strings in one go
- mark TODO that this should warn only if needed
- use weird * notation for branding-strings
2020-03-24 22:32:49 +01:00
Adriaan de Groot
b57e198c29
[partition] Apply coding style
...
- This isn't particularly related to the change at hand, though.
2020-03-24 22:21:56 +01:00
demmm
b6228d137c
Adding popup warning/instructions for GPT with BIOS
...
see https://github.com/calamares/calamares/issues/1339#issuecomment-600862507
this is a very generic warning, used downstream since 2016
stopped virtual all BIOS GPT failures and questions
2020-03-24 16:59:31 +01:00
Camilo Higuita
b6b9f888fc
correct typo
2020-03-24 10:39:29 -05:00
Camilo Higuita
8ff1996e12
add the localq module and config to locale
2020-03-24 09:47:53 -05:00
Camilo Higuita
1c0e69e1c2
wraning message is not from conf but form the requirements model
2020-03-24 09:33:09 -05:00
Camilo Higuita
2d09557297
update wlecome to latest
2020-03-24 09:26:24 -05:00
Adriaan de Groot
71b55995ee
[dummypython] Fix up progress reporting
...
- It's annoying to have 100% progress reported (from the processing
of list items) and then have another 3 seconds delay.
Unrelated to the issue-at-hand, but spotted in testing.
2020-03-24 15:23:40 +01:00
Adriaan de Groot
1eec1a9fe7
[libcalamares] Fix typo in API
...
- "asynchronouse" is not a thing
2020-03-24 13:43:19 +01:00
Adriaan de Groot
f5b4e5d5e1
[netinstall] Add data-loading to the Config object
...
- Mostly copied from NetInstallPage
2020-03-24 13:13:18 +01:00
Adriaan de Groot
938536c0c3
[netinstall] Allow post-creation loading of model data
...
- Instead of loading all in the constructor, provide a public
setupModelData().
- This allows creating the model and setting it for UI, before
the load completes.
2020-03-24 12:36:31 +01:00
Adriaan de Groot
5e03df723c
[netinstall] Add a (stub) Config object
...
- Add initial definition of Config object, which will extract the model-
setting and loading code from the page, and which is also prep-work
for a QML version of this module.
- While here, remove superfluous code
2020-03-24 12:05:48 +01:00
Adriaan de Groot
cf59e2884a
[welcome] Reduce warnings from moc-generated code
2020-03-24 12:04:26 +01:00
Adriaan de Groot
1a5c916923
[netinstall] Implement local
loading of packages
...
- For a static list of selectable packages (e.g. what you might otherwise
use file:/// for with a static file on the ISO) you can now stick the
list in the config file itself, simplifying some setups.
- Also saves faffing about with network.
SEE #1319
2020-03-24 11:35:58 +01:00
Adriaan de Groot
f59cae2dbb
[netinstall] Document local
URL
...
- `local` is supposed to read from the config-file, rather than
externally; this simplifies examples, makes it easier to have
multiple netinstalls, and condenses the documentation.
2020-03-23 17:20:14 +01:00
Adriaan de Groot
fa28788f78
[netinstall] Build the model from QVariantList always
2020-03-23 17:20:14 +01:00
Adriaan de Groot
ebc1db6a7b
[netinstall] Test loading of a whole (example) file
2020-03-23 17:20:14 +01:00
Adriaan de Groot
f592a3f373
[netinstall] Expand tests to include group-checking
...
- Check groups
- Check whole treemodels recursively (this is not in PackageTreeItem,
because that explicitly ignores the tree structure).
- Also a stub of checking example files (from the src dir)
2020-03-23 17:19:32 +01:00
Adriaan de Groot
025ab8b524
[netinstall] Be explicit about checkedness-to-bool conversions
2020-03-23 17:19:32 +01:00
Adriaan de Groot
0e2b3986b9
[netinstall] Use explicit accessor for the type-of-item
2020-03-23 17:19:32 +01:00
Adriaan de Groot
f7191ac29e
[netinstall] Compare two PackageTreeItems
...
- Packages and groups check different fields for equality.
- Selected-state is **not** part of equality.
- Also operator !=
2020-03-23 17:19:15 +01:00
Adriaan de Groot
52d3f4417f
[netinstall] Add explicit isGroup()
...
- Previously you would either need to know where in the tree a
PackageTreeItem was, or guess that an empty packageName() means that
it's a group.
2020-03-23 17:19:14 +01:00
Adriaan de Groot
bca316299e
[netinstall] Add tests
...
- Just some simple tests for the Items
- Test creation of package group from variant
- This needs Qt5::Gui to link because QStandardItem is a GUI class,
although we can run the tests without a GUI.
2020-03-23 17:19:00 +01:00
Adriaan de Groot
dc403237f2
[netinstall] Build model from QVariantList
...
- As an alternative to the YAML-wranging, build the model from
a QVariantList instead.
- Expose this as a constructor, too.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
4143ad67af
[netinstall] Remove superfluous code
...
- The constructor for PackageTreeItem now takes over the selected
state from the parent.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
c7b646315a
[netinstall] Add immutable to groups settings
2020-03-23 17:18:44 +01:00
Adriaan de Groot
4cb2ed9552
[netinstall] Chase removal of ItemData
...
- Simplify creation of PackageTreeItems by interpreting the
YAML directly (instead of via ItemData),
- Simplify list types,
- Drop superfluous API.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
c66ef5a201
[netinstall] Refactor: kill ItemData
...
- This doesn't compile right now.
- The nested class ItemData doesn't do anything useful or
meaningful that having model items with the right data wouldn't.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
8825c9c995
[netinstall] Apply coding style
2020-03-23 17:18:44 +01:00
Adriaan de Groot
1718f7a8a8
Merge branch 'master' into partition-type
2020-03-23 17:09:44 +01:00
Adriaan de Groot
377a78a405
Merge pull request #1347 from gportay/partition-name
...
[partition] Name partition using filesystem label
2020-03-23 16:59:01 +01:00
Adriaan de Groot
74aaccda15
Merge pull request #1341 from gportay/filesystem-features
...
[partition] Add support for filesystem-specific features (KPMCore 4.2.0 required)
2020-03-23 16:57:22 +01:00
Adriaan de Groot
54356a22ba
[fsresizer] Chase API change in tests
...
- Missed this earlier because the module is not enabled in FreeBSD.
2020-03-23 16:54:23 +01:00
Gaël PORTAY
15cce29a51
[partition] Add support for filesystem-specific features
2020-03-22 09:25:26 -04:00
Gaël PORTAY
c5ebe13aeb
[partition] Add support for partition type
2020-03-22 09:05:32 -04:00
Gaël PORTAY
cba4d2e93b
[partition] Name partition using filesystem label
2020-03-21 23:46:20 -04:00
Adriaan de Groot
3b0c0435bc
[libcalamaresui] Chase API change in Yaml
...
- We can drop a bunch of calls to toMap() now.
2020-03-20 21:55:03 +01:00
Adriaan de Groot
2eb84e2de1
[partition] [tracking] [welcome] Missing Q_OBJECT
...
- These aren't strictly necessary for the code, but they
help with translations.
2020-03-19 00:37:37 +01:00
Calamares CI
2eff1f0e78
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-03-18 23:41:19 +01:00
Gabriel Craciunescu
47c167dc04
[bootloader] Resume from outer swap partition
...
- These fixes are similar to the other swap-from-LUKS changes,
and just needed to be applied to a different module.
2020-03-18 17:21:20 +01:00
Gabriel Craciunescu
65a989d3cd
[grubcfg] With LUKS, resume from the correct swap name
...
FIXES #1208
2020-03-18 17:12:33 +01:00
Adriaan de Groot
489fd0b272
[welcomeq] Fix QML import
...
- Now using the properly-namespaced QML import for Calamares things
2020-03-18 11:12:15 +01:00
Adriaan de Groot
cd7884a0e5
[welcomeq] Fix build with clang
...
- can't convert lambda-with-captures to a function pointer (Clang 9)
- instead, use a context property .. QmlViewStep already sets a
"config" property with the Config object, but WelcomeQ wants it
as another name as well.
- this avoids registering the Welcome object across all QML pages,
as well.
NOTE: needs to have the QML adjusted for this change.
2020-03-18 11:02:35 +01:00
Adriaan de Groot
3897bd54df
Changes: write some of the QML docs
...
- Fix references; I decided to put it in Qml.h, which is
the header for the code that does the work.
2020-03-12 17:37:39 +01:00
Adriaan de Groot
4576cb4fa0
[notesqml] Fix up documentation pointers
2020-03-12 17:30:08 +01:00
Adriaan de Groot
a834d67283
[notesqml] Adjust to new name for Branding
2020-03-11 17:42:19 +01:00
Adriaan de Groot
28c2da12ae
[libcalamaresui] Register in io.calamares namespace
...
- Register both Branding and ViewManager for QML
- Note that this changes the name of Branding
- Add code-docs about object ownership
2020-03-11 17:40:03 +01:00
Adriaan de Groot
7d99ad3177
[welcomeq] Adjust to Config-API that QmlViewStep expects
2020-03-11 16:49:07 +01:00
Adriaan de Groot
862b05221d
[libcalamaresui] Drop 'name' parameter in QmlViewStep
...
- The name is just the module identifier, and now we
search for *m@i* and also *m* from that identifier,
the name becomes much less important -- and it
can be set from the config key *qmlFilename* as well.
2020-03-11 15:57:08 +01:00
Adriaan de Groot
165bcfd75d
[libcalamaresui] "namespace" QML settings
...
- To avoid name-collisions in otherwise well-behaved
modules and configurations, make the QML settings
more specific:
search -> qmlSearch
filename -> qmlFilename
2020-03-11 15:36:42 +01:00
Adriaan de Groot
0f50dc8d33
[welcomeq] Include the QML search mode
2020-03-11 15:23:37 +01:00
Adriaan de Groot
8302f2182b
[welcomeq] The QML file name still has a q
2020-03-11 15:21:46 +01:00
Camilo Higuita
d26fa63ccd
[welcomeq] initial work for welcomeview in qml
2020-03-11 14:48:14 +01:00
Camilo Higuita
d7f7c16958
[welcome] using config for both qcc2 or qwidgets
2020-03-11 14:48:06 +01:00
Adriaan de Groot
e2d9ce737c
[netinstall] Implement pre-expanded groups
...
- Return relevant data
- Document code
- Add to README.md documentation about new key
2020-03-10 12:59:41 -05:00
Adriaan de Groot
b9b48cfbb1
[netinstall] Apply coding style
...
- Some missing {} were not noticed by astyle
2020-03-10 12:49:12 -05:00
Adriaan de Groot
4f216b0394
[netinstall] Refactor model-data setting
...
- Introduce convenience methods getString(), getBool() to pick
out an entry from item definitions in YAML format.
- Apply coding style.
- Pick up the "expanded" property as well.
2020-03-10 12:46:49 -05:00
Adriaan de Groot
0f7f5216ee
[netinstall] isHidden is const after construction
2020-03-10 12:39:35 -05:00
Adriaan de Groot
b074696ac1
[netinstall] isCritical is const after construction
2020-03-10 12:38:11 -05:00
Adriaan de Groot
09006a936d
[netinstall] Expand groups if requested
2020-03-10 12:37:57 -05:00
Adriaan de Groot
4f22a70b08
[netinstall] Restructure model-method data()
2020-03-10 12:30:33 -05:00
Adriaan de Groot
df86972ea7
[netinstall] Introduce constexpr names for columns and roles
2020-03-10 12:22:56 -05:00
Adriaan de Groot
3d68c74a19
[netinstall] Sanitize PackageTreeItem::data()
...
- Use of != nullptr for QString just a bad idea
- Massage code so structure for packages resembles that of groups
2020-03-09 22:46:59 -05:00
Adriaan de Groot
201c5ddfe1
[netinstall] Add some debug-logging
...
- Also, prepare for a start-expanded setting
2020-03-09 22:44:16 -05:00
Adriaan de Groot
4cf3ec8663
[netinstall] Resolve TODO (changes translations)
2020-03-09 22:01:39 -05:00
Adriaan de Groot
3302fe319b
[netinstall] Fix typo's in README
2020-03-09 21:58:30 -05:00
Adriaan de Groot
220fd31226
[partition] Improve EncryptionWidget
...
- Use normal translation framework. The EncryptWidget was the one place
not using the "usual" translation framework, but rolled its own.
- Emphasize that the checkbox-state (checked-ness) is the parameter,
not a state of the EncryptWidget.
- All other instances of UI classes from Designer use a pointer-to-UI,
not multiple inheritance.
- Convenience method for setting the pixmap in response to
changes in the passphrase
- Tighten up types: enum -> enum class
- Reduce the scope for int-confusion by using an enum-class for
the encryption state of the widget
- Include UI implementation header only in .cpp
- Apply coding style
- Update copyright
2020-03-09 21:43:14 -05:00
Adriaan de Groot
1299c64415
[interactiveterminal] Tidy up includes
...
- The KF5/ part of the path isn't necessary, and some of the KF5
includes can be found with a shorter name (with modern ECM and
imported targets)
2020-03-09 21:13:19 -05:00
Adriaan de Groot
350627172d
[partition] Tidy up includes
2020-03-09 21:09:24 -05:00
Adriaan de Groot
c5b038587e
[welcome] Tidy up includes
2020-03-09 21:07:12 -05:00
Adriaan de Groot
ebb3f319cc
[modules] Be more consistent in include punctuation
...
- Use <> for Qt, system, externals
- Use double-quotes for Calamares headers
2020-03-09 21:05:15 -05:00
Adriaan de Groot
c4bfad9399
[packages] Provide status feedback
...
- The status message should be updated; the name is constant.
FIXES #1330
2020-03-09 15:41:17 -05:00
Adriaan de Groot
ed4cdbeacc
[dummypython] Provide status
2020-03-09 14:53:22 -05:00
Adriaan de Groot
d3828a82fc
[packages] Make dummy backend slower
...
- insert sleeps to make it slower (easier when testing)
- improve debug logging clarity by noting where the messages
are coming from
2020-03-04 21:31:47 -05:00
Adriaan de Groot
5248a37eb3
[libcalamares] Add FUNC_INFO into all debug messages
...
- This is needlessly verbose
- Chase CreatePartitionTableJob which needs to bind to a temporary
2020-03-03 17:00:57 +01:00
Adriaan de Groot
ae633c7e7b
[removeuser] Remove superfluous formatting around logging
2020-03-03 14:35:15 +01:00
Adriaan de Groot
623a8c2d43
[removeuser] Port to C++
...
No changes in functionality; add a little description in the .conf file.
2020-03-03 14:28:28 +01:00
Adriaan de Groot
bfe45aea18
[netinstall] Warnings--, unused parameter
2020-02-27 23:19:55 +01:00
Adriaan de Groot
3df0878e43
[initramfs] Warnings--
...
Initializing the JobQuene (and hence Global Storage) and
the System instance is a bit odd, avoid unused-variable
warning with an ugly cast instead.
2020-02-27 23:18:28 +01:00
Adriaan de Groot
72dcf886bf
[contextualprocess] Improve tests, fix off-by-one
...
- there's no string representation for a QVariantMap, so it
won't be converted; in *debug* output it looks like there's a
string there.
- off-by-one when diving into compound selectors, spotted by
test, now fixed.
2020-02-27 22:44:49 +01:00
Adriaan de Groot
28bf4082b3
[contextualprocess] Tests for new lookup behavior
2020-02-27 22:34:46 +01:00
Adriaan de Groot
bdb208c079
[contextualprocess] Split API
...
In order to test some of the internals, split them into Binding.h.
This makes the interface visible for tests. The implementation
still lives in the same place.
While here, adjust the test to the changed **example** which
now lists an additional variable.
2020-02-27 18:40:17 +01:00
Adriaan de Groot
4a5b3e7bc8
[contextualprocess] Document new behavior for compound keys
2020-02-27 18:22:07 +01:00
Adriaan de Groot
d114a3dc21
[contextualprocess] Allow selection from GS with "var1.var2.var3"
2020-02-27 17:14:41 +01:00
Adriaan de Groot
f5522425f6
Merge pull request #1331 from PureTryOut/apk-support
...
[packages] Add apk (Alpine Linux package manager) support
2020-02-27 16:22:36 +01:00
Adriaan de Groot
54a4644893
[partition] Store filesystem types
...
- Write a new GS key filesystems_use, which is a map of filesystems
in use on the target system.
2020-02-27 14:29:54 +01:00
Adriaan de Groot
d4b26bbaf0
[partition] Tighten up the types of internal methods
2020-02-27 13:49:02 +01:00
Calamares CI
29ba5c961d
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-02-27 13:36:21 +01:00
Adriaan de Groot
f818d4b446
[libcalamares] Log Q_FUNC_INFO as part of debug
...
- Warnings, errors, don't get funcinfo, but regular cDebug()
calls do. Other special-cases, like calling Logger::CDebug()
constructor explicitly, don't get funcinfo either.
FIXES #1328
2020-02-27 13:20:19 +01:00
Bart Ribbers
136d22188e
[packages] Add apk (Alpine Linux package manager) support
2020-02-27 12:58:53 +01:00
Philip Müller
0c8257df3d
[initcpio] Don't claim other swap
...
From downstream ee99e34e25
2020-02-24 18:23:32 +01:00
Matti Hyttinen
717b8947d5
Update main.py
...
Unset GRUB_SAVEDEFAULT if / or /boot is in btrfs or f2fs partition. This avoids the error "sparse file not allowed" at boot time. Btrfs and f2fs do not support saving default entry in grub.
2020-02-24 17:49:56 +02:00
Adriaan de Groot
c20ac0836e
[users] Take setRootPassword into account when hiding fields
2020-02-24 16:11:14 +01:00
Adriaan de Groot
7752cf31b3
[users] Improve documentation of setRootPassword
2020-02-24 15:59:52 +01:00
Adriaan de Groot
8c527ab592
[users] Overwrite host(s|name) files in target
2020-02-24 12:48:01 +01:00
Adriaan de Groot
4621937477
[users] Use right check on writing hostname
...
- !failed() also means "didn't write the file because it already
exists", which is sometimes acceptable -- but not here.
Use the more-strict bool() conversion, which is only when
the file was actually written.
2020-02-24 12:44:50 +01:00
Adriaan de Groot
6a02f2cfec
[machineid] Fix tests
...
- Make tests more resilient: do them in a temp-dir, and clean it
up after successful tests. This was prompted by tests failing
because of things hanging around in /tmp.
2020-02-21 19:21:58 +01:00
Adriaan de Groot
adf81c0ab5
[locale][packagechooser] Fix tests, QCOMPARE again
2020-02-21 18:24:39 +01:00
Adriaan de Groot
6352b50ed0
[initramfs] Fix more tests
2020-02-21 18:13:51 +01:00
Adriaan de Groot
a78556b56a
[unpackfs] Revert text mode
...
- Follow original patch from Gabriel Craciunescu: just drop
the *bufsize* parameter and stick to binary reads.
Text mode was associated in my testing with multiple hangs,
which didn't show up during binary-reads.
2020-02-21 16:37:58 +01:00
Adriaan de Groot
248776144e
[unpackfs] Now it's text, it's not encoded anymore
2020-02-21 12:39:26 +01:00
Calamares CI
aec6058dc5
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-02-20 22:59:17 +01:00
Adriaan de Groot
61ca6384cc
[partition] Fix tests
...
- One of the files listed in the test has moved (to libcalamares),
- Don't bother with an extra intermediate SRCS variable.
2020-02-20 22:51:24 +01:00
Adriaan de Groot
6d0f5e4111
Merge branch 'kpmcore-manager'
2020-02-20 22:03:45 +01:00
Adriaan de Groot
a2d245ef92
Merge branch 'issue-swaps'
2020-02-20 22:00:52 +01:00
Adriaan de Groot
327c1c0e7b
[unpackfs] Reading from the pipe is line-oriented
...
- Using bufsize=1 causes warnings, since we never bothered
to explicitly set text mode.
2020-02-20 21:40:33 +01:00
Adriaan de Groot
7c7af28a0d
[unpackfs] Make clear that the FS is unsupported by *this* kernel
...
Patch from Gabriel Craciunescu. FS support is determined be
the kernel, not by Calamares, so make that clearer in the message.
2020-02-20 21:17:33 +01:00
Adriaan de Groot
50161cdab9
[grubcfg] Use own swap
...
- In situations where there are more swap partitions, only use
partitions this install "owns".
2020-02-20 16:59:05 +01:00
Adriaan de Groot
5247c13f98
[partition] Follow 'claimed' settings for claiming swap
...
- By the time the GS is actually written, new (for partition state)
is always false. So "new" is the wrong thing to track. It should
have had a better name anyway,
- We store custom properties on the partition objects to indicate
what happens to them; use those properties (instead of state,
as done originally), call it "claimed" to indicate that the partition
is part of this installation.
For now, only new (as in, formatted, created-by-us) partitions are
claimed.
- The effect here is that only "new" swap will be added to the system,
so in erase-disk installations, or manual partitioning.
- Install-alongside and replace will now **not** claim the swap already
on the disk; I think we'll need another UI knob for that one.
FIXES #1316
2020-02-20 16:38:40 +01:00
Adriaan de Groot
35a2db064b
[partition] Make debug-logging match the functionality
...
- `createPartitionList()` is called for the summary widget (via
`prettyDescription()`), and from `exec()`. Only the latter
actually *writes* to Global Storage, so it's misleading to
think that the pretty-printed version ends up in GS.
- This makes the "new" key useless, since by the time `exec()` is called
the partitoons are no longer new.
2020-02-20 11:59:48 +01:00
Adriaan de Groot
f9d9cd2df4
[fstab] Document the remapping of fs names
...
- Shuffle the code a little so it's clear where the remapping
happens, and explain why we look for "swap" in fstab and
"linuxswap" elsewhere.
2020-02-20 11:33:02 +01:00
Adriaan de Groot
8ecb364f8c
[initramfs] Fix up tests
...
- These tests don't actually test anything in this specific module,
they do test CalamaresUtils::System.
- Wrangling System and JobQueue and GlobalStorage instances is fraught
2020-02-19 22:42:46 +01:00
Adriaan de Groot
fba1bf7072
CMake: add DEFINITIONS option to calamares_add_test
...
- There's a handful of tests that need this, it's possible
there will be more, so just add it to the infrastructure.
2020-02-19 22:26:55 +01:00
Adriaan de Groot
1bb43e06e2
Merge branch 'master' into kpmcore-manager
2020-02-19 18:34:44 +01:00
Adriaan de Groot
7cbc43616e
[netinstall] Some more "standard" alternative labels
...
- Hide the labels from the compiler to avoid warnings
- Add some more labels proposed by ArcoLinux
2020-02-19 17:21:12 +01:00
Adriaan de Groot
5dac67b710
[notesqml] Cut down the example text to be translated.
2020-02-19 17:16:51 +01:00
Adriaan de Groot
2d754dac6d
[notesqml] Rename example file to save translators
2020-02-19 17:15:40 +01:00
Adriaan de Groot
51ad7df31c
[netinstall] Don't give the translators a bogus string
2020-02-19 17:13:01 +01:00
Adriaan de Groot
538779991e
[netinstall] Add some "standard" sidebar labels for the module
2020-02-19 14:37:47 +01:00
Adriaan de Groot
81752b6f7c
[libcalamares] Document how TranslatedString context works
...
- Support re-using class-specific tr() calls in a standard way
- Document this in the netinstall.conf which uses it
2020-02-19 14:23:34 +01:00
Adriaan de Groot
a03394f177
[netinstall] Use tr() infrastructure for config-translations
2020-02-19 14:09:04 +01:00
Adriaan de Groot
25e3f91754
[welcome] Remove the QML testing bits
...
- The welcomeq module has actual QML support
2020-02-19 13:39:24 +01:00
Adriaan de Groot
bff07ded25
Merge remote-tracking branch 'origin/welcome-q'
...
- Updates QmlViewStep with slightly neater API
- Introduces Config object for QML pages
- Updates notesqml and welcomeq to use that API
2020-02-19 12:56:04 +01:00
Adriaan de Groot
c20f7ee534
[netinstall] Rip out derpy translations of PackageModel
...
- The model always has two columns, and the column names are always
the same. We don't need to specially set headers for that.
- Use QCoreApplication::translation() to re-use the existing
translations and avoid creating "new" strings (in a new context).
2020-02-19 12:51:01 +01:00
Adriaan de Groot
f6d8ed85e4
[netinstall] Allow a title above the netinstall tree
...
- Supports translation via the config file. This is useful
(like label:sidebar) when displaying more than one netinstall page.
2020-02-19 09:29:23 +01:00
Adriaan de Groot
5b67ca315a
[netinstall] It should be easier to get the number 2
2020-02-19 01:24:24 +01:00
Adriaan de Groot
497ecda14d
[netinstall] Move translation of widget headers
...
Editorial: I really don't like plain CALAMARES_RETRANSLATE() thrown
into the middle of code.
2020-02-18 23:17:18 +01:00
Adriaan de Groot
45c15de623
[netinstall] Configurable name in the sidebar
2020-02-18 17:59:34 +01:00
Adriaan de Groot
be567dc508
[netinstall] Remove unused m_prettyStatus
2020-02-18 17:50:39 +01:00
Adriaan de Groot
4ae484dbca
[netinstall] Initial work for configurable sidebar label
...
- Now that multiple netinstall pages may be supported, it's annoying
that they all have the same name. Copy the approach from other
modules (e.g. notesQML) of having the sidebar and other labels
configured in the config file.
2020-02-18 17:46:56 +01:00
Adriaan de Groot
0877a994f1
[netinstall] Update copyright
2020-02-18 17:40:15 +01:00
Adriaan de Groot
d909b8119e
[netinstall] Code-style
2020-02-18 17:37:58 +01:00
Adriaan de Groot
bc5aa1f837
[netinstall] Pretend to clean up resources
2020-02-18 17:37:16 +01:00
Adriaan de Groot
5f1bd4396e
[netinstall] Avoid duplicate operations
...
- Since operations are added each time you leave this page,
the existing operations (from a previous visit) need to be
cleaned up. With the old setup of only **one** possible
set of operations, this wasn't a problem. Now, merging
in operations is necessary. Implement that by looking for
the *source* property in an operation.
FIXES #1303
2020-02-18 14:46:00 +01:00
Adriaan de Groot
74169c166a
[netinstall] Mark operations with source-module
...
- This will allow us to find the operations later, by looking for
the same source-module.
- While here, tidy up types
2020-02-18 14:19:48 +01:00
Adriaan de Groot
7cadfb8ddd
[packages] Log unfamiliar package operations
...
- unknown operations get a warning
- "source" will be added from netinstall shortly
2020-02-18 12:02:16 +01:00
Adriaan de Groot
056b0d7548
[netinstall] Refactor variant-from-ItemData
2020-02-18 11:40:43 +01:00
Adriaan de Groot
d5675508fa
[netinstall] More coding-style
...
The tools don't always pick up all the style changes in one go
(I think astyle has trouble parsing some Calamares code)
2020-02-18 11:39:54 +01:00
Adriaan de Groot
8286bff95f
[netinstall] Shuffle code around a bit
...
- introduce char const for key name (consistency, it's used lots)
- polish debugging a bit
- add some inline code-docs
2020-02-18 11:28:42 +01:00
Adriaan de Groot
17eb3f5e33
[netinstall] Apply coding style
2020-02-18 11:02:53 +01:00
Adriaan de Groot
1b80cf82de
[fstab] Don't add swap that wasn't made new for us
2020-02-18 10:44:54 +01:00
Adriaan de Groot
158e11de1e
[partition] Indicate that a filesystem is new in GS
2020-02-18 10:44:54 +01:00
Adriaan de Groot
7c2a196568
[users] Document new knobs
...
- while here, update copyright notice
FIXES #1140
2020-02-18 10:38:31 +01:00
Adriaan de Groot
f7e8488edf
[users] Correct DBus return from hostnamed calls
2020-02-18 10:35:47 +01:00
Adriaan de Groot
094c213baa
[users] Also test hostname-setting via hostnamed
...
SEE #1140
2020-02-18 10:16:19 +01:00
Adriaan de Groot
f1435452ea
[users] Polish up tests
...
- Don't remove test artifacts on failure
- Coding style
2020-02-17 18:21:44 +01:00
Adriaan de Groot
c5b45c37fc
[users] Add tests of the file-writing components
2020-02-17 18:10:46 +01:00
Adriaan de Groot
371fe267b1
Merge branch 'better-hostname'
2020-02-17 17:10:21 +01:00
Adriaan de Groot
49eb8212e3
[users] Imporove enum-naming
2020-02-17 16:46:06 +01:00
Adriaan de Groot
e74831fcb4
[users] Add .conf entries for hostname settings
...
- Set hostname not-at-all, or via one of two mechanisms
- Write /etc/hosts or not
2020-02-17 16:40:09 +01:00
Adriaan de Groot
61d096c9ec
[users] Prep-work for configurable actions
...
- tidy include style
- add setting to UsersViewStep for hostname action
2020-02-17 16:27:53 +01:00
Adriaan de Groot
33b3321698
[users] Simplify reading configuration
2020-02-17 16:05:55 +01:00
Adriaan de Groot
dbba0c9b03
[users] Move Job creation from the widget to the ViewStep
...
- Having the widget do creation ties the step heavily to that UI;
start moving towards a state where we have a Config object (not
here yet; it still queries the UI part) that moves data around
between UI and ViewStep.
2020-02-17 15:56:41 +01:00
Adriaan de Groot
2471e74aab
[users] Provide some accessors to the UI-page data
2020-02-17 15:50:22 +01:00
Adriaan de Groot
ef4bb5e13b
[users] Make SetHostName job actions configurable
2020-02-17 15:24:44 +01:00
Adriaan de Groot
51e135cfbd
CMake: chase introduction of IMPORTED yamlcpp
2020-02-17 15:01:05 +01:00
Adriaan de Groot
6f996d8eed
CMake: give yamlcpp a proper imported target
...
- This makes linking easier,
- Adds the right includes (needed on FreeBSD),
- Lets us drop silly GUI setting for non-GUI tests (I think this was
a side-effect of compiling on FreeBSD, where UI would pull in
/usr/local/include).
2020-02-17 14:55:12 +01:00
Adriaan de Groot
4495a4c739
CMake: Allow extra libraries in calamares_add_test
...
- Extra libraries specified via LIBRARIES part of CMake function
- Convert all the other module tests
2020-02-17 14:36:52 +01:00
Adriaan de Groot
637a57d534
[machineid] Change to calamares_add_test
...
- The test-macro handles cases without ECM or testing transparently.
- Adds compile defines for STATICTEST.
2020-02-17 12:04:18 +01:00
Adriaan de Groot
b42520b0ef
[machineid] Apply new STATICTEST specifier, hide implementation details
2020-02-17 11:51:56 +01:00
Adriaan de Groot
b044549013
[libcalamares] Merge PluginDllMacro.h into DllMacro.h
...
- Let's just have one header definining export- and visibility-
macros for Calamares. They are still selected based on the
export flags (*_PRO), just defined in one header instead of two.
2020-02-17 11:37:35 +01:00
Adriaan de Groot
44bf0a5d6d
[users] Add method for using hostnamed
...
SEE #1140
2020-02-17 10:57:41 +01:00
Adriaan de Groot
9a7465bfd5
[users] Refactor writing-hostname and writing-hosts
...
- Move to separate functions, as prep-work for making the actions
configurable (and optional).
2020-02-17 10:42:54 +01:00
Adriaan de Groot
d5f3e2e7d4
Merge pull request #1318 from yurchor/patch-2
...
[partition] Fix typo: partitons -> partitions
2020-02-16 20:26:43 +01:00
Yuri Chornoivan
ea82a26dae
Fix typo:; partitons -> partitions
...
Many thanks in advance for reviewing.
2020-02-16 14:12:48 +02:00
Yuri Chornoivan
b582c27bf4
Fix minor typo
...
Many thanks in advance for reviewing.
2020-02-16 14:09:30 +02:00
Adriaan de Groot
90f79b0692
[users] Restore error-checking to set-hostname code
...
- Use the new CreationResult code for compact results
2020-02-14 13:27:49 +01:00
Adriaan de Groot
274115c727
[libcalamares] Update tests to reflect changed API
2020-02-14 13:07:29 +01:00
Adriaan de Groot
695b88b8a7
[users] Tidy up hostname creation
...
- Use the createTargetFile() convenience functions to do the
actual work.
- This probably involves more copying around of buffers, since it's
creating one big QString and sending that off, rather than writing
little chunks to a file, but I feel this is worth the code simplification.
- Drops all the error checking for creation, though, because the API for
createTargetFile() lousy.
2020-02-14 12:31:53 +01:00
Adriaan de Groot
b337a6b3f5
[user] Apply coding style
2020-02-14 11:46:35 +01:00
Adriaan de Groot
2bb4dd8e22
[users] Refactor hostname-guessing
2020-02-14 11:45:45 +01:00
Gabriel Craciunescu
7c323bdcdc
[users] Try to guess suggested hostname from dmi
...
- nothing compicated for now, just try to get something
from /sys/devices/virtual/dmi/id/product_name and fallback
to -pc thingy if we can't
2020-02-14 11:36:53 +01:00
Adriaan de Groot
7f295d9565
[partition] Apply coding style to core/ subdir
...
Because this is a giant code change, with no functional effect,
I've been saving this until the end of the kpmcore-manager branch.
2020-02-14 11:15:57 +01:00
Adriaan de Groot
2bc296b468
[unpackfs] Fix typo's introduced in june
2020-02-13 16:23:49 +01:00
Adriaan de Groot
45a31a3022
[partition] Tidy includes
...
- sort includes a little
- remove superfluous includes
- update copyright
2020-02-13 13:54:04 +01:00
Adriaan de Groot
d931b146e3
[partition] Shuffle new conveniences into partition service
...
- the general stuff from KPMHelpers ends up in the partition
service; that only gets compiled when KPMCore is available anyway.
2020-02-13 13:48:12 +01:00
Adriaan de Groot
e72ecaafd3
Merge branch 'kpmcore-manager'
...
Introduces a "partitioning service" into libcalamares,
shuffles a bunch of things into it, tries to help out
with settling the system between partitioning actions.
2020-02-13 13:41:53 +01:00
Adriaan de Groot
5a50a3a40c
[partition] Consistent FS name usage
...
- explicit use of user-visible names in EditExistingPartitionDialog
- consistent conversion of config-values to FS names (user-visible).
The GS value comes from the ViewStep, and should always match
something -- it's already converted to the canonical un-translated
so the type should be good.
2020-02-13 13:24:53 +01:00
Adriaan de Groot
57b608083e
[partition] Fix build - missing )
2020-02-13 13:24:09 +01:00
Adriaan de Groot
ca67534cd2
[partition] Improve logging of bad configs
2020-02-13 13:15:06 +01:00
Adriaan de Groot
472ec32617
[partition] Be explicit about user-visible FS names, ReplaceWidget
2020-02-13 11:49:20 +01:00
Adriaan de Groot
05dfc24af6
[partition] Be explicit about user-visible FS names, CreatePartitionDialog
2020-02-13 11:45:04 +01:00
Adriaan de Groot
88cff387c3
[partition] Be explicit about user-visible FS names, FormatPartitionJob
2020-02-13 11:33:40 +01:00
Adriaan de Groot
bacca04695
[partition] Be explicit about what's user visible in SetPartitionFlagsJob
2020-02-13 11:29:45 +01:00
Adriaan de Groot
29894cec6a
[partition] Convenience userVisibleFS()
...
- Mark uses of filesystem-name where it's intentional that they
are user-visible, with a new convenience function.
2020-02-13 11:22:09 +01:00
Adriaan de Groot
dac5516b2c
[partition] Update copyright, coding style
2020-02-13 11:12:22 +01:00
Adriaan de Groot
a0449abab9
[partition] Do not translate filesystem names
...
- Move contents of FSName to KPMHelpers
- Use the new functions from FillGlobalStorage
Needs more use in the rest of the partition module.
2020-02-13 11:06:53 +01:00
Adriaan de Groot
c055e1da49
[partition] Use untranslated name of filesystem
...
- Patch from Gabriel Craciunescu
2020-02-13 09:32:06 +01:00
Adriaan de Groot
aa0a799492
[welcomeq] QML warnings--
...
The config bits are all constant, so avoid NOTIFY warnings.
2020-02-12 22:47:11 +01:00
Adriaan de Groot
f094cb543b
[libcalamaresui] Set config object earlier
...
- The config context object should be set earlier, otherwise
QML code will try binding to a non-existent config already
- Document that QMLViewStep::setConfigurationMap() parent implementation
should be called **last**, at the end of the subclass implementation.
2020-02-12 22:33:49 +01:00
Adriaan de Groot
7e0cc7af41
[welcomeq] Add configuration file
...
- copy the buttons-config part from welcome.conf
- create buttons in the QML part
2020-02-12 18:24:07 +01:00
Adriaan de Groot
49ed97cb77
[libcalamares] Allow QML ViewSteps to expose a config object
2020-02-12 17:51:10 +01:00
Adriaan de Groot
f0134aab71
[welcomeq] Add more fields to Config
...
- getters as slots, for later access from QML
2020-02-12 17:37:06 +01:00
Adriaan de Groot
86bf9287ab
[notesqml] Use Branding strings
2020-02-12 16:23:34 +01:00
Adriaan de Groot
ae35256177
[welcomeq] Add top-text
...
- Fix QML indentation to the canonical 4-spaces
- Add a header at the top of the page
- Force the image to load from the filesystem
2020-02-12 16:20:53 +01:00
Adriaan de Groot
152c3352c2
[welcomeq] Compile the QML into the module
...
- Default implementation is in the QRC
- Register Branding for QML modules (just once)
2020-02-12 15:08:18 +01:00
Camilo Higuita
b5e17b7ea5
[welcomeq] Add full-featured QML for welcome page
...
This is a merge of several commits by Camilo.
2020-02-12 14:31:15 +01:00
Adriaan de Groot
7bf0fded1b
[welcomeq] Port to newer QmlViewStep
2020-02-12 14:25:30 +01:00
Adriaan de Groot
adb312bdd2
[welcomeq] Coding style
...
- a R/W property isn't CONSTANT
- apply calamaresstyle
2020-02-12 14:19:33 +01:00
Adriaan de Groot
ad725b671e
[hostinfo] Warnings--
...
- Physical memory can't be negative, so it is reported as
an unsigned long, but the bytes-to-MiB functions do accept
negative amounts. As long as no machine has more than 2**62
bytes of memory, we're good though.
2020-02-12 12:26:55 +01:00
Adriaan de Groot
6c0fecd40d
[notesqml] Don't use a fixed width
2020-02-11 12:55:26 +01:00
Adriaan de Groot
c3c845e9d7
[notesqml] Add some more module documentation
2020-02-11 12:29:18 +01:00
Adriaan de Groot
4f60a6340e
[dummyqml] Drop module; it makes more sense to just be notesqml
2020-02-11 12:20:39 +01:00
demmm
c0e1ebb72a
adding notesqml, copy of dummyqml
...
included in settings.conf, commented out
2020-02-09 01:03:52 +01:00
Adriaan de Groot
bf675d971b
Merge branch 'qml'
2020-02-07 21:08:29 +01:00
Adriaan de Groot
3e2908ea16
[machineid] Follow Manjaro flags
...
- add -f to ln(1) flags
2020-02-07 20:31:15 +01:00
Adriaan de Groot
110a84344b
[machineid] Test job function
...
- Create a job and ask it to create dbus files -- either directly,
or as a symlink. Since the target chroot isn't viable, this will
fail but we can at least see that directories are created, etc.
2020-02-07 20:29:42 +01:00
Adriaan de Groot
4cdcb48de6
[machineid] Functionality moved to libcalamares
2020-02-07 16:12:17 +01:00
Adriaan de Groot
b62004aae9
[machineid] Create the DBus data directory
...
- before running dbus-uuidgen or linking to systemd's UUID,
create /var/lib/dbus; some distro's don't create that
beforehand.
FIXES #1314
2020-02-07 16:10:13 +01:00
Adriaan de Groot
4af68365c9
[machineid] Remove obsolete implementation
2020-02-07 11:16:40 +01:00
Adriaan de Groot
bf882cec1d
[machineid] Migrate removeFile() to libcalamares
...
- Becomes removeTargetFile()
2020-02-07 11:16:01 +01:00
Philip Müller
72d742e2f4
[machineid] Use same approach as we do in Manjaro
...
- See also https://gitlab.manjaro.org/applications/calamares/commit/da8f45ae
- Fixes #1314
2020-02-07 10:34:01 +01:00
Philip Müller
c766a0f10f
[machineid] create dbus var-lib folder when not existing
...
See also #1314
2020-02-07 10:26:36 +01:00
Adriaan de Groot
53b6113c75
[welcome] Fix QML tests
2020-02-05 18:38:46 +01:00
Adriaan de Groot
eaea262449
Merge branch 'master' into qml
2020-02-05 18:03:31 +01:00
Adriaan de Groot
4525060c26
[calamares] Refactor Settings initialization
...
- add a Settings::init() to do actual work
- remove the same kind of code from CalamaresApplication
- make constructor of Settings private
- initialize settings before the application
2020-02-05 16:48:49 +01:00
Calamares CI
8c0ef5798d
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-02-04 22:19:48 +01:00
Adriaan de Groot
02e5e0de5e
[users] Use entropy service.
...
FIXES #1254
2020-01-30 10:32:34 +01:00
Adriaan de Groot
5b987d4f33
[machineid] Use entropy service
...
- Most of the code was error-checking, just replace the open-read
with a call to the service instead.
- It's not an error if /dev/urandom doesn't exist in the source system
(there may be other good random sources, and otherwise we have the
low-quality random fallback).
2020-01-30 10:32:27 +01:00
Adriaan de Groot
c971127b17
[machineid] Fix entropy-file return
...
- If the file was created and written, it would drop out of the
if() and return an error anyway.
2020-01-30 10:08:55 +01:00
Adriaan de Groot
94083edf9c
Merge branch 'master' into kpmcore-manager
2020-01-29 12:55:46 +01:00
Adriaan de Groot
252ce70203
i18n: updated (English) source files
2020-01-29 11:42:04 +01:00
Adriaan de Groot
b38ae75bef
Merge branch 'translate-checks'
2020-01-29 11:11:32 +01:00
Adriaan de Groot
8f581ca861
[welcome] Coding style
...
- apply coding style, add {}
- remove unneeded includes (moved to the widgets)
- update copyright
2020-01-29 11:10:30 +01:00
Adriaan de Groot
a09593e4a2
[locale] Tighten up language-matching
...
- Drop plain startsWith() matching, since we now have "as" and "ast"
as supported languages, where one name is a prefix of the other.
2020-01-28 17:35:54 +01:00
Adriaan de Groot
49690fc681
[locale] Remove superfluous code
...
- the list is already filtered for UTF-8, so this is redundant
- this *incidentally* fixes the problem with Assamese and Asturian,
since Assamese (as_IN) was having its only entry removed,
after which it would match Asturian (ast_ES)
2020-01-28 16:41:15 +01:00
Adriaan de Groot
97f622e094
[locale] Use standard algorithms
2020-01-28 15:50:08 +01:00
Adriaan de Groot
6b77d5db4a
[welcome] Add detail messages for root and screen checks
...
- these were empty, so the widgets were hidden in the details
dialog of the requirements check; which looks really strange
if the reason the check fails is because root is required,
and you can't see that in the details.
This commit is on a branch because it changes strings, and I want
to do a release Real Soon and not annoy the translators.
2020-01-28 15:24:29 +01:00
Adriaan de Groot
ad4ac1d25c
[welcome] Update copyrights
2020-01-28 14:23:38 +01:00
Adriaan de Groot
9d69d0a893
[welcome] Remove unused variables
2020-01-28 14:21:02 +01:00
Adriaan de Groot
1ac4786365
[welcome] Move all the translation work to the slot
...
- this needs to (re)check the satisfaction states to figure out the
message, but that's useful if the state of the checks changes
(e.g. in #1106 )
2020-01-28 14:15:57 +01:00
Adriaan de Groot
221a79b64c
[welcome] Simplify logic
...
- \not mandatorySatisfied \implies \not requirementsSatisfied,
so the ifs can be combined and simplified
2020-01-28 13:58:08 +01:00
Adriaan de Groot
28d91979c3
[welcome] Make resultWidgets less error-prone
...
- instead of counting and needing to keep track of the predicate
applied while creating the widgets, push nullptrs to the widget
list instead reflecting "this entry did not satisfy the predicate
for widget creation".
2020-01-28 13:50:23 +01:00
Adriaan de Groot
39534325e6
[welcome] Re-use widget creation code
...
- for the list, the code can be the same as for the dialog,
only the predicate is different.
- while here, implement retranslate() since there's no text on
the list widgets otherwise.
2020-01-28 13:39:27 +01:00
Adriaan de Groot
38d58e5b16
[welcome] Hoist explanatory-label code
...
- Create the label once, and it's ok for it to respond to links
even if there's none in the code.
- Turn into a member variable in preparation for retranslation-refactor.
2020-01-28 13:32:53 +01:00
Adriaan de Groot
b476e4b386
[welcome] Refactor link-clicking
...
- remove intermediate lambda
- rename dialog slot to one handling links in general (which now
**only** does the dialog link)
2020-01-28 13:24:01 +01:00
Adriaan de Groot
ecc7719abd
[welcome] Hoist checking for requirements-satisfied
...
- lift it out of the loop that creates the widgets
- some lambda-wankery, but the compiler hammers this down to
simple loops and you can read the resulting code as
none_of [the list] isUnSatisfied
none_of [the list] isMandatoryAndUnSatisfied
2020-01-28 13:13:09 +01:00
Adriaan de Groot
f5c0e57f17
[welcome] Improve variable naming
...
- these two are about whether all the checkEntries are satisfied
(in general, and the mandatory ones) so make the names reflect that.
2020-01-28 13:02:39 +01:00
Adriaan de Groot
5795801be5
[welcome] Remove unneeded member variables.
...
- local to the constructor, only needed to be members because
of the weird split between constructor and init()
2020-01-28 13:00:21 +01:00
Adriaan de Groot
5aae736ced
[welcome] Create ResultWidget in separate method
2020-01-28 12:53:19 +01:00
Adriaan de Groot
bede280f91
[welcome] Refactor ResultsListWidget
...
- no point in having init() called immediately after the constructor,
if it only makes sense to have one call to init() ever to create
the widget.
- while here, give it the same kind of structure as the dialog,
holding on to a reference to the list.
2020-01-28 12:41:36 +01:00
Adriaan de Groot
320dcac946
[welcome] Drop unneeded member variable
2020-01-28 12:23:53 +01:00
Adriaan de Groot
ed1b3b576f
[welcome] Refactor ResultsListDialog
...
- drop useless debugging
- add documentation
- move to its own spot in the file (not mixed in with ResultsListWidget)
2020-01-28 12:21:22 +01:00
Adriaan de Groot
41ac21bdcd
[welcome] Refactor results-details dialog
...
- Factor out the "details" dialog into a separate class
with a translation slot. This resolves the crash reported in #1307 .
2020-01-27 19:35:41 +01:00
Calamares CI
a017451607
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-01-27 16:40:04 +01:00
Calamares CI
ae2536a9c3
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-01-25 23:26:40 +01:00
Adriaan de Groot
39cc13cb25
[shellprocess] Tidy code
...
- resolve TODO, use a unique_ptr to hang onto the command-list
- sort the #includes, use correct quoting
2020-01-25 15:23:10 +01:00
Adriaan de Groot
96946a8447
Merge branch 'fix-unpackfs-progress'
...
This is an ugly hack, using Bill Auger's support for Job weights.
The unpackfs job is arbitrarily awarded a weight of 12. That makes it
(in a Netrunner install) use progress from 12% to 40% or so, overall,
as all the files are unpacked.
Also fixes bug reported by Kevin Kofler that unpackfs was only reporting
progress when it hit an exact multiple of 100 (instead of over 100).
SEE #1176
2020-01-25 11:53:31 +01:00
Adriaan de Groot
cdd2b9cc79
Modules: set noconfig:true on Python modules
...
- hwclock, initramfs, localecfg and networkcfg don't have any
config file to work with, so set that explicitly in the module.desc
2020-01-24 23:10:41 +01:00
Adriaan de Groot
00deeec8c8
[libcalamaresui] Use InstanceKey instead of strings
...
- Replace return type of Module::instanceKey() by the structured
ModuleSystem::InstanceKey type
- Chase API breakage
2020-01-24 17:47:06 +01:00
Adriaan de Groot
abdeb07bd3
[dummyqml] Minor polishing in Qml module
...
- document the default filename better
- mark TODO actually loading the instance-id file
2020-01-24 17:14:45 +01:00
demmm
b20a957c6e
restore includes in header file to amke it build
2020-01-24 15:52:59 +01:00
demmm
538d8d5497
address qmlLabel changes too
2020-01-24 15:14:51 +01:00
demmm
9f55cf4cf4
part of the changes requested
...
others fail to build, or no idea how to fix
2020-01-24 15:12:10 +01:00
Adriaan de Groot
b5d0acdf81
[luksbootkeyfile] Set NO_CONFIG
2020-01-24 13:13:50 +01:00
Adriaan de Groot
40f64f0c11
[hostinfo] Set NO_CONFIG and remove unused configuration methods
2020-01-24 13:12:25 +01:00
Adriaan de Groot
fd058302b8
[dracutlukscfg] set NO_CONFIG and coding style
2020-01-24 13:08:25 +01:00
Adriaan de Groot
d1f162f92a
Docs: describe *noconfig* module option
2020-01-21 18:31:13 +01:00
Adriaan de Groot
10d1c4cf5b
[unpackfs] Improve progress reporting
...
- don't rely on exactly 100 files being copied (thanks to Kevin Kofler)
2020-01-20 19:39:05 +01:00
Adriaan de Groot
fbb452f9bf
CMake: add support for NO_CONFIG
...
- A C++ module should set NO_CONFIG to flag that it doesn't have a
config file (this is an error if it secretly **does** have one)
2020-01-20 19:27:34 +01:00
demmm
32eee82744
clean-up dummyqml.conf
2020-01-14 13:08:54 +01:00
demmm
f2e68ddcf4
adding configure option dummyqml
...
sidebar entry can be configured and translated
adding a more elaborate qml example
keeping this in dummyqml for now, another commit will follow with
continuation of dummyqml in a more aptly named module
2020-01-14 12:30:22 +01:00
Adriaan de Groot
7f8a31007a
[dummyqml] Search for files
...
- start implementation of searching-for-qml
- add a *filename* configuration item, so that the filename
can be set per-instance (via the config file)
2020-01-13 22:04:27 +01:00
Adriaan de Groot
04615b251c
[dummyqml] Make prettyName() return a sentence with .
2020-01-10 17:47:02 +01:00
Adriaan de Groot
e7e66497d2
[libcalamaresui] Introduce search method for QML UI modules
...
- add a sample config and documentation in dummyqml/
2020-01-10 17:19:15 +01:00
Adriaan de Groot
f6d89354a1
Merge branch 'master' into kpmcore-manager
2020-01-10 14:54:13 +01:00
Adriaan de Groot
1cc40bda83
[dummyqml] Stub of a QML module
2020-01-10 12:41:00 +01:00
Adriaan de Groot
16a460adff
[libcalamaresui] Move ExecutionViewStep where it belongs
...
- viewpages/ collects the ViewStep implementations
- chase header moving and tidy some #includes
2020-01-10 12:07:35 +01:00
Adriaan de Groot
537c257acf
Merge branch 'master' into qml
2020-01-09 15:17:23 +01:00
Adriaan de Groot
56f926094e
[welcomeq] Update comments
...
- Copyright years
- Purpose of this module
2020-01-09 15:11:36 +01:00
Adriaan de Groot
1a8926181e
[locale] Warnings-- (initialization-order)
2020-01-07 10:46:26 +01:00
Adriaan de Groot
1625bb1dae
[locale] Support Qt 5.9
...
FIXES #1296
2020-01-07 00:09:04 +01:00
Adriaan de Groot
d21ed0cc7f
[packagechooser] Coding style
2020-01-06 17:55:13 +01:00
Adriaan de Groot
cefb66ab5b
Merge pull request #1276 from bill-auger/patch-packagechooser-default-selection
...
[packagechooser] pre-select default item in packagechooser
2020-01-06 17:49:10 +01:00
Adriaan de Groot
dd5adc153f
Merge pull request #1291 from calamares/initcpiocfg-usr
...
[initcpiocfg] add usr hook if partition is separate
2020-01-06 14:41:24 +01:00
Adriaan de Groot
fe64903d2f
[initcpiocfg] Polish PR #1290
...
- List discrete years in copyright
- Add docstrings
- Massage detect_plymouth() to return bool (easier in if() context)
2020-01-06 14:34:47 +01:00
Philip Müller
85d3f9e9b9
[initcpiocfg] add usr hook if partition is separate
2019-12-16 09:40:54 +01:00
Philip Müller
a3da47cd9c
[initcpiocfg] update plymouth check
2019-12-16 09:34:21 +01:00
Adriaan de Groot
8e2d257040
[welcomeq] Add QML machinery (uninitialized)
2019-12-14 13:11:14 +01:00
Adriaan de Groot
53b208e891
[welcomeq] Start new ViewStep for QML-based welcome
2019-12-14 12:48:09 +01:00
Adriaan de Groot
6c4efc1f9c
[welcome] Add Branding object to QML demo
2019-12-13 18:23:01 +01:00
Adriaan de Groot
55f61fda35
[welcome] Create branding and settings objects
2019-12-13 18:18:02 +01:00
Adriaan de Groot
03ed308bd9
[welcome] Add QML model for translations
2019-12-13 14:31:42 +01:00
Adriaan de Groot
d41d8df2a5
[welcome] Put Config object into context
2019-12-13 13:19:38 +01:00
Adriaan de Groot
c59678594b
[welcome] More QML support
...
- start of a class to hold configuration information; this can
later be substituted into the WelcomeViewStep and filled from
setConfigurationMap()
In the example application:
- register the Config type
2019-12-13 12:37:09 +01:00
Adriaan de Groot
156d78feb3
[welcome] Add QML support
...
- test application to display the QML (this will be extended
with adding the locale model to it)
- sample QML that does nothing useful yet (will display the locale
model once it's there)
2019-12-13 11:50:12 +01:00
Adriaan de Groot
58786388d6
Merge branch 'zone-data'
2019-12-11 15:34:35 +01:00
Adriaan de Groot
7bea19a62c
[locale] Fix build with debugging enabled (API changes)
2019-12-11 08:45:35 -05:00
Adriaan de Groot
242b79e2e1
[locale] Remove old Location information
...
- all the TZ location information now lives in the Calamares
locale service and the TZ list
- replace the Location class that was local to the timezone
widget by the TZZone class
- chase a bunch of small API changes that this needs
2019-12-11 08:45:35 -05:00