Commit graph

17 commits

Author SHA1 Message Date
Floris Bos
fe2c1c55bd Linux Embedded: add support for language/keyboard selection 2021-11-22 00:21:30 +01:00
Floris Bos
62e9969afb Basic CLI support
Closes #221
2021-05-06 16:49:17 +02:00
Floris Bos
258f9d77aa Fix window position restore.
Ref #220
2021-05-04 22:53:12 +02:00
Floris Bos
1aaf22d7ab Mac: fix double free
Had wrongfully assumed CFStringRef's were reference counted
objects that needed to be CFRelease()'d when we no longer
needed them.

However according to the CFArrayGetValueAtIndex() API docs
( https://developer.apple.com/documentation/corefoundation/1388767-cfarraygetvalueatindex?language=objc )
it follows "get rule" for memory ownership, meaning it is not
ours to release.

Only prefLangs returned by CFLocaleCopyPreferredLanguages()
need to be CFRelease()'d as that does follow "create rule"

Ref #202 (Crash on Mac OS Big Sur)
2021-04-05 16:32:46 +02:00
Floris Bos
91cb44d46e MacOSX: use other method to detect preferred language
Qt by default consults AppleLanguages property.
Use a CFLocaleCopyPreferredLanguages() construct instead.
Only look at most preferred language, ignore others.

Ref #160
2021-03-26 16:30:52 +01:00
Floris Bos
2d87a2275f Revert "Linux: disable high dpi scaling on incorrect EDID"
This reverts commit 37cc9e8736.
2021-03-06 11:39:58 +01:00
Floris Bos
37cc9e8736 Linux: disable high dpi scaling on incorrect EDID
If the screen dimensions that are reported by EDID are
unrealistically low disable high dpi scaling.

For this purposes we consider the EDID incorrect if screen is
reported as smaller than 10 cm in width.

Closes #153
2021-02-16 15:42:39 +01:00
Floris Bos
78276cffb7 Add --disable-telemetry command-line option 2020-12-07 14:42:10 +01:00
Floris Bos
d217f63768 Allow translators to specify external .qm file for testing
Normally translation files are embedded inside the application's
executable.
But allow translators to use external .qm file for testing
purposes.

Ref #118
2020-11-19 21:21:04 +01:00
Floris Bos
6b178731c7 Improve status reporting
There are some user complaints that Imager hangs at "writing 0%"
Mention in the progress status what it is actually doing prior
to writing (e.g. opening storage, blkdiscarding,
zero'ing out MBR, starting download) to help diagnose
potential issues.
2020-11-19 18:10:05 +01:00
Floris Bos
c08887f788 Do not use saved position if it falls outside of primary screen
- Only use saved position if the coordinates fall inside of the primary screen
  Prevents problems for people with laptops that sometimes but not always use
  external screens.
- Since we now set window position in C++ instead of QML, drop the
  dependency on qml-module-qt-labs-settings module.

Closes #91
2020-07-21 16:15:19 +02:00
Floris Bos
123542a66b Linux embedded: misc improvements
- Allow static build
- Use .svg icons
- Linux Embedded lacks normal "open file dialog". So simply scan
  files in root folder of USB stick and return list.
- Change QProcess::execute(command) calls to
  QProcess::execute(command, args) calls to silence Qt 5.15.0
  depreciation warning.
2020-06-01 17:45:41 +02:00
Floris Bos
5b072f3196 Build changes
- Add support for embedded Linux without X, dbus, udisks, ntp, etc.
- Misc minor changes
2020-05-25 00:36:16 +02:00
Floris Bos
73b9ae764d Add localisation support
- Tested with Dutch and Chinese.
- Chinese translation courtesy of @YuzukiTsuru
2020-05-23 15:57:58 +02:00
Floris Bos
bd37916527 Mention version number in title bar 2020-03-10 17:43:48 +01:00
Floris Bos
75feb3e73d Rename imagingutility -> rpi-imager 2020-03-05 15:40:38 +01:00
Floris Bos
d7b361ba44 Qt/QML edition 2020-03-04 16:55:40 +01:00