Commit graph

17 commits

Author SHA1 Message Date
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
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
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
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
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
a382f985f3 Add support for model selection filtering. Bump version number. 2023-09-23 19:51:45 +02:00
Kemal Hadimli
dcb392cbf0 feat: Allow image drag/drop 2023-08-13 00:21:31 +01:00
Floris Bos
b93fe29617 Apply advanced settings prompt: offer "no" without clear options
By request.
When prompted if previous settings should be applied, offer a
"no" button that only applies this time, and does not clear
settings.
2023-03-24 14:26:43 +01:00
Ludwig Nussel
5d971375f6 Add compile time options for telemetry and updates 2022-02-14 16:03:02 +01:00
Floris Bos
033ff07abf Move source files to /src 2022-02-14 10:07:15 +01:00
Renamed from main.qml (Browse further)