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
3b5c4839e3
[libcalamaresui] Warnings--
2020-06-26 20:34:33 +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
fa2f91aa46
[libcalamaresui] Minor documentation improvements
2020-06-25 14:04:49 +02:00
Adriaan de Groot
8ced67680d
[calamares] Allow get/set of panel-sides
...
- Add access to the panel-sides membe of the view manager, and
calculate which sides are populated by panels (if any).
- Pass the calculated panel-sides to the view manager before it
starts adding viewpages, so they get consistent margins.
2020-06-25 00:00:13 +02:00
Adriaan de Groot
68aecf6a26
[libcalamaresui] Special margins for QML view steps
...
If there are no surrounding panels, drop the margin around the QML on
the assumption it needs to be full screen under special circumstances.
2020-06-24 23:41:20 +02:00
Adriaan de Groot
d952faf909
[libcalamaresui] Set margins based on viewstep suggestion
2020-06-24 22:12:59 +02:00
Adriaan de Groot
d7ed450dbf
[libcalamaresui] Give ViewManager data about side-panels
2020-06-24 21:41:06 +02:00
Adriaan de Groot
1648f311fe
[libcalamaresui] apidox touch-up
2020-06-24 21:26:22 +02:00
Adriaan de Groot
748d76df4f
[libcalamaresui] Add support for steps with own margins
2020-06-24 21:15:37 +02:00
Adriaan de Groot
347a25d13d
[libcalamaresui] Avoid nullptr deref
...
- there's a check already there, and probably this means things are hopelessly
broken anyway, but let's not crash here.
2020-06-24 20:48:06 +02:00
Adriaan de Groot
4a6ee39f8b
[libcalamaresui] Blanket unmargin the content area
2020-06-24 11:08:31 +02:00
Adriaan de Groot
bfbb0f1c49
[libcalamaresui] Mark some TODO for 3.3, in passing
2020-06-24 04:59:19 -04:00
Adriaan de Groot
8a9e85db71
Branding: shuffle around a bit, expand documentation
2020-06-24 04:53:22 -04: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
3ee53435c5
[libcalamares] Fix constness issue (gcc reported)
2020-06-23 14:30:12 +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
8a14316e16
[calamares] be less chatty in startup
...
- without the SubEntry part, the function name is printed each time.
2020-06-23 13:01:08 +02:00
Adriaan de Groot
916c10816b
[libcalamares] Logging-convenience for pointers
...
- This reduces the amount of (void*) C-style casts in the code,
and formats generic pointers more consistently.
2020-06-23 12:29:18 +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
Adriaan de Groot
d6b0583bad
[libcalamares] Compatibility-layer for QString::split
...
- QString::split() api changed in 5.14, in 5.15 generates warnings,
so introduce a compatibility value.
2020-06-23 11:08: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
Gaël PORTAY
c9f942ad67
[libcalamares] Add default value to variant helpers
...
- Some variant helpers take a default parameter if the map does not
contains the given key or if the type mismatches. Make all helpers
behave the same.
2020-06-22 15:37:24 -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
Adriaan de Groot
2cad90d9ca
Merge pull request #1437 from gportay/handle-integers-with-octal-or-hexa-prefix
...
[libcalamares] Handle integers prefixed with 0 or 0x
2020-06-17 17:32:19 +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
e834ce532c
[libcalamares] Add variant-map getStringList() convenience
2020-06-17 15:02:01 +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
Gaël PORTAY
e68723f1c7
[libcalamares] Handle integers prefixed with 0 or 0x
...
- QString to-integer members detect if an integer string begins with
"0x" (base 16) or "0", base 8; but QVariant members do not.
- QString: the C language convention is used is base is set to 0.
- Convert to QString and use its member toLongLong() and set base to 0
to detect integer strings begin with a prefix.
2020-06-16 14:14:47 -04: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
Adriaan de Groot
55abe0247b
[libcalamares] Fix tests on 32-bit platforms
...
- The size of a 2GiB partition (in bytes) is larger than the largest
32-bit signed integer; we hit signed overflow while calculating
2^11 * 2^10 * 2^10 and the test fails.
- Switch the whole table of sizes to qint64 instead.
- For testing purposes only, introduce a _qi suffix for qint64.
FIXES #1430
2020-06-14 23:42:25 +02: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
dc0ed24f1a
[libcalamaresui] Install libcalamaresui headers
...
- All the headers go to relevant subdirs, but we don't keep
libcalamares and libcalamaresui apart.
- While here, remove unused variable from libcalamares CMake
2020-06-10 16:43:34 +02:00
Adriaan de Groot
23c93904df
CMake: put CMake-level ABI settings in CalamaresConfig
...
- drop the BuildTreeSettings, it was not usefully used
- make CalamaresConfig repeat the WITH_* settings, so that
consumers can know the ABI offered
2020-06-10 11:51:53 +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
3c770b79b3
CMake: install all the libcalamares subdir-headers
2020-06-10 02:10:21 +02:00
Adriaan de Groot
14ff681106
CMake: give libcalamares IMPORTED includes
...
- Set the interface-include path for libcalamares, so that
linking to it (as one would from an external repo) pulls in
all the includes.
2020-06-10 02:01:59 +02:00
Adriaan de Groot
dc16afac4a
CMake: massage IMPORTED targets and module path
...
- Add the Calamares CMake-modules to the search path automatically
- Export to CalamaresTargets.cmake and use namespace Calamares::
- Document imported targets
- Find Qt, because the translations machinery will need macros from that
- The installed lib links to IMPORTED libraries from KF5, so we need
to find them (again) as well.
2020-06-10 01:37:54 +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
abe558f127
[libcalamares] Be more verbose when the requirements check is done
2020-06-08 08:33:48 -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