Commit graph

369 commits

Author SHA1 Message Date
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
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
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
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
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
Floris Bos
317dad3b24 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-02 19:50:36 +02:00
oscfdezdz
5456bcffbf
Update Spanish translation 2023-09-30 10:49:16 +02:00
Floris Bos
e8931b7b8f Local .xz files: parse uncompressed size for better progress reports 2023-09-25 21:13:22 +02:00
Floris Bos
269e43ced5 Advanced settings: add cfg80211.ieee80211_regdom=cc to cmdline.txt 2023-09-25 20:51:16 +02:00
bovirus
178521a9d8
Update Italian language 2023-09-24 10:48:43 +02:00
Floris Bos
a382f985f3 Add support for model selection filtering. Bump version number. 2023-09-23 19:51:45 +02:00
Floris Bos
2853fd2b87 Windows: improve error reporting if Conditional File Access is active 2023-09-23 19:46:13 +02:00
Floris Bos
ce549cadb2 Misc advanced options improvements 2023-09-23 19:45:17 +02:00
Floris Bos
6eb358ed75 WIP: Tabbed options interface 2023-09-22 23:51:36 +02:00
maxnet
4c71a2294e
Merge pull request #618 from Eddy-Wallace/feat/lsblk-arch-hotfix
Hotfix for Issue #610
2023-09-22 20:38:05 +02:00
Floris Bos
1390d3515f Workaround errornous gcc string overflow warning 2023-09-22 20:32:46 +02:00
Floris Bos
9073e4fca2 Fix es/uk/fr translations 2023-09-22 20:32:02 +02:00
maxnet
5968cb37b5
Merge pull request #622 from disq/feat/drag-and-drop-files
feat: Allow image drag/drop
2023-09-22 20:20:27 +02:00
maxnet
ce661dce46
Merge pull request #603 from oscfdezdz/es
Add Spanish translation
2023-09-22 20:18:33 +02:00
maxnet
d4af5f306d
Merge pull request #588 from Vovkiv/qml
Add Ukrainian translation
2023-09-22 20:18:21 +02:00
maxnet
3fece0aab2
Merge pull request #632 from JofreFaraudo/qml
Update Catalan translation files
2023-09-22 20:14:01 +02:00
Nicolas Martignoni
9b26ba30f9
Update French localisation and fix some strings 2023-09-17 12:30:53 +02:00
Jofre Faraudo
91d594243a
Update Catalan translation files
Remove vanished translations & add the new ones
2023-09-07 13:56:14 +02:00
Kemal Hadimli
dcb392cbf0 feat: Allow image drag/drop 2023-08-13 00:21:31 +01:00
Eddy-Wallace
52af71cff9
Hotfix for Issue #610
Possible hotfix for newer version of lsblk on Arch based distributions.
2023-08-11 11:53:23 +02:00
oscfdezdz
84bcd23ab2
Add Spanish translation 2023-07-06 22:10:23 +02:00
Vovkiv
11b51697ab
Add Ukrainian translation 2023-05-24 13:47:05 +03:00
Floris Bos
60c53db98c Windows: fix handling of .zip files
If set(ZLIB_INCLUDE_PATH value) is called without setting cache,
and find_package(zlib) is called twice, the second call fails.
Behavior described here: https://gitlab.kitware.com/cmake/cmake/-/issues/21343

It seems that the new libcurl version also calls find_package(zlib)
so the second call by libarchive fails. And without zlib support
handling .zip files that use deflate compression does not work.

Only affected Windows, because we are only using a bundled zlib
there.
On Linux system libarchive and system zlib is used.
On Mac OS X bundled libarchive, but system zlib is used.

Ref #586
2023-05-22 10:50:20 +02:00
Floris Bos
e490ec1c4d Windows: fix depreceation warnings
- winsock2.h should be included before windows.h
- QProcess::execute('name') -> QProcess::execute('name', args);
2023-05-22 10:46:07 +02:00
Floris Bos
64d271b092 Windows/NSIS installer: use signtool.exe found by CMake 2023-05-21 17:25:04 +02:00
Floris Bos
bb8b097c7d Windows: lazy load wlanapi.dll
Appearently wlanapi.dll (which we use to borrow the wlan password
from the computer running Imager) is not always present on the
server editions of Windows, so only load it if it exists.

Ref #584
2023-05-21 17:22:17 +02:00
bovirus
a7acd80908 Update Italian language 2023-05-18 15:09:11 +02:00
maxnet
c96c77fca0
Merge pull request #578 from RuffaloLavoisier/AddMessage
rpi-imager_ko: add message for 'unmounting drive'
2023-05-18 15:07:43 +02:00
Floris Bos
1ab22a1d9e Size "Do you want to use saved settings?" dialog box better
Prevents buttons overflowing the dialog box when German language
translation is used.
(Issue reported on forum)
2023-05-18 15:06:29 +02:00
maxnet
e357fda335
devicewrapperfatpartition.cpp: supress false positive gcc warning 2023-05-11 21:54:37 +02:00
Ruffalo Lavoisier
cbb65ed61c rpi-imager_ko: add message for 'unmounting drive' 2023-04-13 16:43:08 +09:00
Floris Bos
23b0bf6b32 Linux udisks2: force kernel to rescan MBR before ejection
Otherwise it may still be doing it during ejection, resulting
in read IO errors in dmesg, which are harmless by themselves
but may confuse users.

Also tell udisks2 not to analyze disk by setting 'HintAuto'
property on BlockDevice object to 'false'
2023-03-30 16:26:26 +02:00
Floris Bos
9e882b31c4 Add Russian translation to CMakelists.txt 2023-03-24 15:51:09 +01:00
Floris Bos
83e2d22a9a Linux: only eject through udisks2 when we have DBus 2023-03-24 15:41:15 +01:00
maxnet
0790003d6d
Merge pull request #549 from OlesyaGerasimenko/qml
Add Russian translation
2023-03-24 15:39:26 +01:00