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