Commit graph

590 commits

Author SHA1 Message Date
Floris Bos
460c625cdf Embedded: patch advanced options to use Popup instead of top level window
Cannot have multiple top level windows on eglfs platform.
2023-10-16 23:18:59 +02:00
Floris Bos
b03ca9fb7e Embedded: compile optimized for speed (-O2) instead of for size (-Os) 2023-10-16 23:10:22 +02:00
Floris Bos
cf090a574a Embedded: add /usr/lib/fonts symlink
Otherwise Qt complains about font directory missing on startup.
2023-10-16 22:38:27 +02:00
maxnet
9459aa4d73
Merge pull request #658 from andreabusi/qml
Add missing space in some IT translations
2023-10-16 22:27:08 +02:00
maxnet
f7c835566e
Merge branch 'qml' into qml 2023-10-16 22:26:51 +02:00
maxnet
cbbb7b9a64
Merge pull request #663 from Vovkiv/qml
Update Ukrainian translation
2023-10-16 22:24:57 +02:00
maxnet
c0c637a918
Merge pull request #664 from martignoni/qml
Update French translation
2023-10-16 22:24:47 +02:00
maxnet
4469b36a89
Merge pull request #665 from qoijjj/patch-1
fix: add xz-devel to fedora build dependency installation instructions
2023-10-16 22:24:22 +02:00
Floris Bos
25a028ca58 Embedded: deal with vc4-kms supplying multiple /dev/dri devices 2023-10-16 22:15:55 +02:00
Floris Bos
40a73c3797 Embedded: patch buildroot to build Mesa3D with Pi 5 support 2023-10-16 22:14:16 +02:00
qoijjj
b9afcc69bb
fix: add xz-devel to fedora build dependency installation instructions
Without this, the cmake step fails with "cmake error: could NOT find LibLZMA".
2023-10-16 13:11:05 -07:00
Vovkiv
36c906ad87
Fix 2023-10-16 17:34:56 +00:00
Nicolas Martignoni
0b7aed4197
Fix a missing colon in a string
- French translation
2023-10-16 19:32:35 +03:00
Nicolas Martignoni
5a71676c75
Update French translation 2023-10-16 19:30:32 +03:00
Vovkiv
6ba6370835
Update rpi-imager_uk.ts 2023-10-16 15:39:45 +00:00
Tom Dewey
96e6f1162e
Merge pull request #662 from tdewey-rpi/revert/2fb58dc/i18n-accidental-delete
Revert "i18n: Advanced Settings -> OS Customisation"
2023-10-16 15:03:54 +01:00
Tom Dewey
e8d7de934f
Merge pull request #645 from tdewey-rpi/dev/shared/device-filtering
Device-first OS list filtering
2023-10-16 13:56:39 +01:00
Tom Dewey tom.dewey@raspberrypi.com
a5c736f230 Revert "i18n: Advanced Settings -> OS Customisation"
This reverts commit 2fb58dc01c.

The original commit included an unexpected deletion of _all_
translations in certain languages. This was unintented, and appears to
have been a merging artefact.

This change will be re-submitted as a separate PR.
2023-10-16 13:06:21 +01:00
Tom Dewey tom.dewey@raspberrypi.com
f2718a05ff qml: Increase device selector icon size to 64x64 2023-10-16 11:47:24 +01:00
Tom Dewey tom.dewey@raspberrypi.com
2fb58dc01c i18n: Advanced Settings -> OS Customisation 2023-10-16 11:46:54 +01:00
Andrea Busi
19350e8deb Add missing space in some IT translations 2023-10-13 15:27:15 +02:00
Tom Dewey tom.dewey@raspberrypi.com
2047461e9a i18n: Remove stale translations
In order to better highlight the strings we'll need updated translations
for, and to avoid confusion, remove obselete and now inaccurate
translations.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
69f80e5df3 i18n: Regenerate, sort translation files
A long period of hand-editing caused these to fall out of sync with
what would have been generated from the source.

These were regnerated using the qt5_create_translation macro in the
root CMakeLists, and then using lconvert to merge the completely blank
translation files with the existing translations.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
2b2fd7de8a qml: Remove customisation button, roll into flow
This patch carries a translation risk, as we change the default
progression button.

Remove the customisation button all together, and make the customisation
options something we offer as part of flashing an image that
has that capability.

While this adds an additional click to the flash sequence, it should
provide a steer to people who are flashing customisable images to make
use of this capability, potentially avoiding an additional pass through the
Imager.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
9fb9fca065 qml: use "Raspberry Pi Device" as selection hint 2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
900f36dc52 logo: Use official asset 2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
e8663baf34 qml: Relayout buttons for [3,1,1,1]
This change adjusts the layout for the progress bar, write button and
cancellation buttons such that they are all placed on the same layout
'row', with the progress bar stacked as before, and the
write/cancel/cancel buttons stacked as a column.

This is not ideal, but probably as sensible as we can get inside this
layout paradigm.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
bcdee1818d qml: Move write button, assign explicit cells
1) Resize the window back to 680dip default widths. We don't need the
   extra space now.
2) Reduce Row spacing within the grid layout. We need all the space we
   can get.
3) Assign layouts to explicit cells, at least for selection options and
   write. This layout isn't really scaling to the amount of data we want
   to provide, but we'll make do for now.
4) Mark selection buttons as accessibility ignored when the hwpopup is
   active.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
758853e8a8 qml: Size-down the default window to 730 width.
Back-calculated from 1280/1.75, this should just about fit on a 1280x720
format display at 1.75x scaling.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
be8956a87e qml: Align 'Cog' to RHS. 2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
1f444bacf6 schema: Update to fixup devices, matching_type 2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
4fb84ff3e8 qml: Filtering types
Introduce 4 filtering types per device spec:

- "exclusive", which only includes OS' that match one of the specified
  tags, and discards any OS that is untagged.
- "exclusive_prefix", which only includes OS' that prefix-match one of
  the specified tags, discarding any OS that is untagged.
- "inclusive", which discards any OS that doesn't include one of the
  specified tags, but includes untagged images.
- "inclusive_prefix", which discards any OS that doesn't prefix match
  one of the specified tags, but includes untagged images.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
0f496dc2c9 os-list-schema: Consistent naming of tags 2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
a4a90361a3 qml: Use a ListView for the hw selector 2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
c7fa7504fe qml: Rebalance button widths
Removed preferred widths for OS, device buttons, and set one for the
storage button. This allows the storage label (generally the longest)
to fit on the control face reliably.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
8291e00934 qml: Include device icon, desc in model 2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
d603d29671 OS selector: Return to home after close
Prior to this change, you could enter a submenu of the OS selector,
close the window, and then change device filter - presenting stale information
when you went back in to the OS selector.

Work around this by resetting the OS selector sequence when you close
the OS selector window.
2023-10-12 12:28:19 +01:00
Tom Dewey tom.dewey@raspberrypi.com
3f665e01b4 Device-first OS list filtering
Rather than a drop down dialog, which could present users with images
that may not run on their hardware, allow selection of Raspberry Pi as a
first stage. If users adopt this feature, they are presented with a
subset of images that we know will actually run on their hardware.

This is achieved by leveraging @maxnet's excellent OS filtering scheme.

Future work will attach image and description support to this OS list.
2023-10-12 12:28:19 +01:00
maxnet
591452aba9
Merge pull request #652 from tdewey-rpi/i18n/ru/shorten-choose-storage
i18n: ru: Shorten storage selection label
2023-10-10 16:16:03 +02:00
Tom Dewey
e5289a5c3f
Merge pull request #651 from tdewey-rpi/dev/shared/gitignore-all-build-dirs
gitignore: Ignore all build** trees
2023-10-10 11:16:52 +01:00
Tom Dewey tom.dewey@raspberrypi.com
da76e0d93a i18n: ru: Shorten storage selection label
Rather than "Choose Memory Device", use "Choose Mem. Device", an
acceptable shortening of the phrase which fits inside our controls
2023-10-10 10:27:00 +01:00
Tom Dewey tom.dewey@raspberrypi.com
2a84b11b38 gitignore: Ignore all build** trees 2023-10-10 10:22:26 +01:00
maxnet
90cffc0b2e
Merge pull request #642 from cillian64/file_association_customise
Show options when opening image by file association
2023-10-07 01:12:09 +02:00
maxnet
3c80dfc59b
Merge pull request #643 from cillian64/file_association
Enable file associations on linux
2023-10-06 23:09:00 +02:00
maxnet
b0648eec97
Merge pull request #644 from tdewey-rpi/dev/shared/gitignore-debuild
gitignore: Ignore debuild artefacts
2023-10-06 23:08:01 +02:00
Tom Dewey tom.dewey@raspberrypi.com
81c08fee55 gitignore: Ignore debuild artefacts
Ignore two additional patterns to capture debuild intermediates
and results.
2023-10-06 14:21:53 +01:00
David Turner
249e910c06 Enable file associations on linux
Add " %F" to the Exec parameter in the rpi-imager.desktop file so that
Linux desktop environments know that rpi-imager can be used to open
files.  After this change, Imager appears within the list of "Open With"
applications in GNOME, and you can set it so double-clicking image files
always opens rpi-imager.
2023-10-04 14:58:10 +01:00
David Turner
dbf9757796 Show options when opening image by file association
If you load a custom image by running `rpi-imager my_image.img.xz` then
the Advanced Options button is not shown.  This is triggered if you set
a file association to load rpi-imager and then double-click an image
file.

The fix is simply to set the visibility on this button on start-up
(custom images set on the command-line are loaded before this).

Fixes #451
2023-10-04 14:43:28 +01:00
Floris Bos
63124443c3 Add liblzma-dev to debian/control 2023-10-03 18:20:04 +02:00
Floris Bos
0b3a6b3f95 Apply settings if saved setting popup was opened and cancelled
Make sure original saved settings are also applied if
settings popup was opened and subsequently closed
by pressing "X" instead of "Save"
2023-10-03 18:19:17 +02:00