Commit Graph

38 Commits

Author SHA1 Message Date
Alexander Babikov
5ff206e493 qt: Get rid of most uses of QString::asprintf()
Now that the Win32 UI is out of the way, we can rewrite the strings to use
QString::arg() instead and avoid even more QString ↔ C string conversions
2025-04-11 23:31:14 +05:00
Jasmine Iwanek
fabe71150c Various improvements & Cleanups
Some ported from ANightly's work
2025-01-11 21:25:29 -05:00
Mike Swanson
00354749f2 Use ftruncate on Unix to create hard disk images quickly
Instead of writing out disk blocks slowly across the entire volume,
just use the ftruncate function to create a file instantly at the
desired size.

Depending on file system, this can either result in identical results
to the old code just faster (eg: ZFS and btrfs with compression
enabled), sparse files (most native Unix file systems without
compression, eg ext4 and UFS), or a full non-sparse file like before
(creating an image on FAT).
2024-09-02 22:52:24 -07:00
cold-brewed
373fe0f258 qt: Disable bus channels that are currently in use 2024-04-18 12:29:27 -04:00
Alexander Babikov
8e06b5449f Overhaul plat_get_string()
Now takes constants with human-readable names instead of
Win32 string table IDs, language.h is no longer needed

ui_msgbox*() no longer accepts string IDs as arguments directly,
plat_get_string() must be explicitly called to retrieve the string
2024-03-20 20:33:28 +05:00
Alexander Babikov
d212aad317 Add missing period to error messages to fix their translations 2024-03-17 02:38:57 +05:00
Jasmine Iwanek
0ba8fd8972 More linting in src/qt 2023-08-23 00:18:15 -04:00
Alexander Babikov
766f8fc663 qt: Recalculate new disk image size from CHS before creating it 2023-08-14 05:21:21 +05:00
cold-brewed
a11047887c qt: Change default disk type to dynamic vhd 2023-07-11 15:55:13 -04:00
Jasmine Iwanek
ed1b369abd Yet more sonarlint fixes 2023-05-29 06:21:17 -04:00
Jasmine Iwanek
0e0ba399c6 Remove unneeded includes and correct others 2023-04-12 06:40:11 -04:00
cold-brewed
c809f482d5 qt: Fixes to the process for selecting an existing hdd image 2023-02-05 12:12:37 -05:00
Jasmine Iwanek
a40630ba63 Even more tabs to spaces 2023-01-07 14:09:51 -05:00
OBattler
d50b072cf8 Bumped up maximum sectors for IDE, ATAPI, and SCSI to 255 for VHD compliance. 2022-12-15 15:49:00 +01:00
Jasmine Iwanek
3fe4f75108 A bit more clang-format 2022-11-19 11:53:07 -05:00
cold-brewed
02314268dd qt: Set the full path of the filename in the new image dialog 2022-11-15 09:03:24 -05:00
cold-brewed
78998b8231 qt: Fix multiple issues with hdd image creation: large sizes, image paths, max_hpc on ide 2022-11-13 11:09:38 -05:00
Jasmine Iwanek
de4f70e3f8 Fix up some more magic numbers 2022-11-11 17:19:47 -05:00
Miran Grča
a85caea4a9 Update qt_harddiskdialog.cpp
Removed the stray QTimer include.
2022-08-12 18:59:46 +02:00
Cacodemon345
3194130bcd qt: large sizes when entered no longer decrement by 1MB 2022-08-12 15:15:23 +06:00
Adrien Moulin
46f6540542 hdd: make speed preset configurable
This includes settings UI for Qt
2022-07-19 11:31:06 +02:00
Alexander Babikov
4e82d93729 Fix warnings related to variable types 2022-04-14 07:13:48 +05:00
Cacodemon345
6f0ac4eace qt: Fix creation of differencing VHDs 2022-04-03 01:24:09 +06:00
ts-korhonen
13ec3d2286 qt: Add all format selections to file dialog when creating hdd.
Set format combobox to match the selection.
2022-03-09 23:05:02 +02:00
Cacodemon345
5e4cb50da0 qt: Default to 0:0 if bus is full 2022-03-04 13:26:15 +06:00
Cacodemon345
a637f61d4f Add missing copyright notices 2022-02-07 15:00:02 +06:00
Cacodemon345
eec8945fa3 Implement bus tracking for hard disk creation dialog 2022-02-07 12:30:25 +06:00
Cacodemon345
a570f01d97 Hard disk dialog improvements
* Fix file field widget
* Hard disk dialog is now identical to Win32
2022-02-06 00:37:24 +06:00
Alexander Babikov
ecc11f09d4 Fix incorrect CHS values displayed in the new hard disk dialog dropdown 2022-02-05 00:59:46 +05:00
Cacodemon345
c425625409 qt: File field is now an actual text field 2022-02-03 23:00:39 +06:00
ts-korhonen
f8f3cfbf4c qt: fix platform specific file dialog filters
Translations now only contain translation for the description and
extensions are generated in code taking account platform specific
differences.
2022-01-23 22:48:36 +02:00
Cacodemon345
daedb9024e Replace hard disk progress dialog title with 86Box since it isn't translated anywhere yet 2022-01-08 01:05:01 +06:00
Cacodemon345
69325aff02 1. Media menu strings are translated now.
2. Save/Quit dialogs are also translated now.
3. Fix Sound Gain text cutoff.
2022-01-07 16:21:40 +06:00
Cacodemon345
a05ac8090d Settings dialog string convertsion is done 2022-01-07 01:58:18 +06:00
Cacodemon345
970430f721 Even more strings changes 2022-01-06 16:58:11 +06:00
Joakim L. Gilje
28d1a43af7 fixed up qdatastream usage. use writeRawData() when creating hdd images. specify littleendian when creating floppy images 2021-12-06 10:50:58 +01:00
Joakim L. Gilje
363f582a81 code dump - mostly done implementing media menus 2021-12-03 11:38:00 +01:00
Joakim L. Gilje
c587a02b1a Initial Qt Commit 2021-11-25 10:20:56 +01:00