summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt
AgeCommit message (Collapse)AuthorFilesLines
2021-02-05rbutil: Add a new entry for the Hifiwalker H2 v1.3 variantSolomon Peachy1-1/+14
Change-Id: I936aacd7c748be85a583a62b3026301ce0796041
2021-01-02rbutil: Update german translation.Dominik Riebeling1-630/+710
Change-Id: I032c25d4794786c417dc75d91f2cf05591c14579
2021-01-02rbutil: Rework action texts for ipod6g bootloader installation.Dominik Riebeling1-24/+24
The logging entries do word wrapping, so no need to add hard line breaks. Those will become problematic for translations and in some cases on UI scaling. Instead add an empty line after the header to make things clearer. Change-Id: Ib774b1ad77abcfa2f5955988f7756e3a510cd1be
2021-01-02rbutil: Remove unused function.Dominik Riebeling3-7/+0
Change-Id: I0ea5094610bcf5ccd9ef6c71a643867a0954dc96
2021-01-02rbutil: Fix some texts.Dominik Riebeling1-6/+6
Change-Id: Ia94dbcfb79d823863792637953f578a82ccdf4bb
2021-01-02rbutil: Modernize connect() to new pointer-to-member syntax.Dominik Riebeling5-30/+31
Change-Id: If737fe5a8f4ab9f83560511839fdc4ad8b187786
2021-01-02rbutil: Fix cleaning cache.Dominik Riebeling1-7/+1
As with calculating the size cleaning the cache folder needs to be recursive. Change-Id: I05a8e2287bcdf6ed53acde320cb5071e8ed04b91
2021-01-02rbutil: Fix cache size calculation.Dominik Riebeling3-6/+16
We're using Qt's caching mechanism since long, which uses subfolders, so we need to recursively traverse that to get the size of the cache folder. Change-Id: I8425016f60d0575013110e708b539833a8098246
2021-01-02rbutil: Add option to langstat to pass git hash.Dominik Riebeling1-5/+6
Don't always operate on the remote head, instead default to the local HEAD, and allow passing a hash to use for calculating statistics. Change-Id: I420308e66769689c1dfac56e19058b097a0533a2
2021-01-02rbutil: Add missing Q_OBJECT macro to PlayerBuildInfo.Dominik Riebeling1-0/+2
Needed to make translated strings actually get translated. Change-Id: I6ab6266c4444b6032a8b976b8219ace30907398d
2020-12-14rbutil: Remove logo that isn't used anymore.Dominik Riebeling1-0/+0
Change-Id: I9a448c7ad71dfee6043e76794024c1b0c946b52f
2020-12-14rbutil: Always use svg icon for Window icon.Dominik Riebeling8-19/+0
Since we now have svg support enabled (and used) for all platforms we can simply use the svg one, and bring it in line with the rest of the icon. Change-Id: If99f1be0205de1a87eb727c33400811620d9876d
2020-12-14rbutil: Change style to Fusion on Windows.Dominik Riebeling1-0/+4
The default UI style has some issues with HiDPI support. Use the Qt built-in Fusion instead. This looks somewhat different to the native Windows UI, but works better on HiDPI displays. Change-Id: I25f1b038047a11da7492dfbfa1425874f070ab0b
2020-12-14rbutil: Improve HiDPI support.Dominik Riebeling1-1/+7
Since we embed a manifest file on Windows we also need to indicate HiDPI support in it. Otherwise it will only work partially. Change-Id: Ie330950a476047982a8f63ec764e5cd352411294
2020-12-10rbutil: Fix encoding for themes info data.Dominik Riebeling1-0/+3
The themes info data uses utf-8 encoding, while QSettings defaults to ASCII and uses escape sequences, resulting in non-ASCII characters being garbled. Use the correct encoding. Change-Id: Ibee58b51926f6d7c3885dead0b42579e21bfb1db
2020-12-08rbutil: Fix log strings in s5l bootloader installation.Dominik Riebeling1-8/+16
We can't use a ternary expression within the tr() function. While this initially might work as expected it completely breaks translating the actual string -- we need to use separate strings here, and replacing a single word in a sentence will also not work for translations. Change-Id: I556ff2a3bd0dc476b312a59c47d4e0dcd3b743e1
2020-12-08rbutil: Improve HiDPI support.Dominik Riebeling1-14/+23
Replace the Rockbox logo with an svg version. Since the file size (i.e. the page size in the svg) that isn't intended for use as icon we need to enable scaling, and since scaling the label content doesn't keep the aspect ratio we need to explicitly set the desired values. Notably improves representation on HiDPI monitors. Now only the player icons are still raster images. Change-Id: I03216391a4b0ac982b16f5bec2b48c073369a3f6
2020-12-05rbutil: Update changelog.Dominik Riebeling1-0/+14
Add changes that haven't been added yet. Change-Id: I90e1326e62bb121c7a1242ee76610faae745505c
2020-12-05rbutil: Fix autodetection messing up with multiple players.Dominik Riebeling1-10/+7
When multiple players are connected, and at least one of them has a USB ID that is shared between multiple targets the resulting list would be off. Fix that by avoiding to modify a list while iterating over it, that's usually not a good idea. Change-Id: I0c1fc5e1a3264f269de2d71c3a7f2b82877636ba
2020-12-05rbutil: Merge finding player by USB ID with PlayerBuildInfo.Dominik Riebeling10-160/+60
Remaining rework of player info data handling. Change-Id: I0e10cdff43e0c9fef43b3b9a30af81f1cd7c4853
2020-12-05rbutil: Rework handling of available voice languages.Dominik Riebeling9-74/+86
- Move Rockbox voice language names handling to PlayerBuildInfo, and handle it similarly to the rest of the device specific values. Rework internal handling to simplify things. - Enable language list from build server for installing prerendered voice files other than english. - Extend unit tests. Change-Id: I1a1a717fa4409fa965dabc86f52d52a4fc516315
2020-12-05rbutil: Make target list part of new player info.Dominik Riebeling5-66/+59
Also remove the unused cases. Change-Id: Ic53c12c68f9d62d9c3e4406641355893e137bcf7
2020-12-04rbutil: Add MIDI patchset to plugin data installation.Dominik Riebeling5-28/+29
Add installing the MIDI patchset, and subsequently rename from Game Files to Plugin Data Files. Change-Id: Ib71ce4c8992ffc9185d961a60296c9671ebc9709
2020-12-03rbutil: Convert RockboxInfo unit test to data driven QTest.Dominik Riebeling2-68/+100
Change-Id: Ic566f9be3532d327af4916605f0215da636ee7d6
2020-12-03rbutil: Update and fix unit tests.Dominik Riebeling3-24/+75
- Fix changed dependencies and provide real stubs. - Update to use QTest global data for test table, so individual test vector entries show up as individual tests. That way a single comparison failing doesn't make all appear as failed and provide better indication what went wrong. Change-Id: I69681c3acd5ceceb4c8ceb1feb341e90a65dd603
2020-12-03rbutil: Rework and merge player and build server info handling.Dominik Riebeling24-773/+791
Handling the data for players from rbutil.ini and the build-info data from the server is closely related. Splitting things up into different classes only creates tightly coupling, which is unnecessary, and the need to differentiate between them in the application. Merge both classes into a single one and rework handling so the application doesn't have to deal with two separate classes anymore. Furthermore, change URL templates to use new values from build-info instead of hard coding them. Change-Id: Ica550973ce23d1559110782add52bc214eba552d
2020-12-03rbutil: Get rid of configure_modelname in rbutil.ini.Dominik Riebeling5-68/+2
The target selection string used for configure is the same as the internally used player string, minus the (optional) variant suffix. Don't duplicate things, simply strip the suffix. Change-Id: Ic34bd5f933fab0d837adce0d0ae9c403868d720d
2020-11-27rbutil: Treat Aigo Eros clones as variant of it.Dominik Riebeling1-13/+19
Fixes installing those builds, since they relied on the broken buildserver_modelname. Also simplifies internal handling. Change-Id: I5b67b7d65ee2299e01ea4e009e47f93c3343911a
2020-11-27rbutil: Remove buildserver modelname string.Dominik Riebeling3-68/+0
This isn't needed anymore, and the only player it was actually used for were the 8MB modded Archos ones, for which the usage was broken. Change-Id: I2aa235113be2e6ae88973711bd8ee4734cbc266a
2020-11-27rbutil: Remove Archos 8MB modded players.Dominik Riebeling1-27/+2
The Archos Recorder has 2MB RAM and can be modded to 8MB. While we previously had separate builds for those the last release which it was built for is 3.4; installing for 8MB modded players was broken and installed the normal 2MB build. Since we never provided builds for other hardware mods (like Ondio backlight mod, h100 series RTC mod) there isn't much reason to do so for the 8MB mod. Furthermore, given that the current state is broken and nobody complained the number of users of the mod can be assumed to be very low, and people with a modded player also building Rockbox on their own. Change-Id: Ia200651773a2f5b58321299bad30d539fe1a5ada
2020-11-26rbutil: Remove duplicated enum entry.Dominik Riebeling5-6/+4
SystemInfo::PlatformName and Name actually retrieve the same value. That's not usefule, so remove one of both. Change-Id: I8ee429f099588e0e1e8129302542cd0f6f836203
2020-11-23rbutil: Fix wrong format string.Dominik Riebeling1-1/+1
Only caused a warning, but no need to pass format parameters if there is no format string. Change-Id: Ifed38d8af3881c40e8609ccda3786cea23a3bc2f
2020-11-23rbutil: Add support for installing daily builds.Dominik Riebeling1-0/+5
Change-Id: If6618a4b2b1b0a718374ed8bac6976c4775947e1
2020-11-23rbutil: Modernize connect() to new pointer-to-member syntax.Dominik Riebeling2-6/+6
Change-Id: I19f179907742092c970c27dd1bbf70f7e00fed76
2020-11-23rbutil: Fix selecting the previously selected build type.Dominik Riebeling1-11/+10
When starting Rockbox Utility select the same build type that was used during the previous run. This broke during refactoring, fix it. Change-Id: Ibbca3431cbfe65daedd3e5783e0940d83d1594a6
2020-11-22rbutil: Add support for installing daily builds.Dominik Riebeling4-1/+16
Change-Id: If2bb23adcbd4a441f18846515c609118da8c5b5e
2020-11-22rbutil: Remove Install Voice button from Accessibility tab.Dominik Riebeling3-112/+6
Installing the voice file is now done via the main installation. Change-Id: I431744467faaf1720b3c82d339a424d67c84e6e6
2020-11-22rbutil: Fix wrong section name in installation log.Dominik Riebeling1-2/+2
Change-Id: I7e65d5486298253add0a4a0b5f07d4c979bb2098
2020-11-22rbutil: Update Iriver h100 / h300 series bootloader paths.Dominik Riebeling1-3/+3
The patching code now requires the new version 8.0 bootloaders. Change-Id: I7bf26db2e0858523740c43e57863eb9480a93548
2020-11-22rbutil: Update Windows application icon.Dominik Riebeling1-0/+0
Bring it in line with the other icons and always show the same image, regardless of size. Change-Id: I93f562fad168975f58064fdd64c42874f496cce6
2020-11-22rbutil: Move Manual installation to main tab.Dominik Riebeling16-426/+201
The manual tab didn't show the manual, so it's clearer to have that as part of the main tab. Also fixes the wrong manual getting downloaded for releases. Change-Id: I5d4a287102af037f94f0de8464e025d9ff5f76ed
2020-11-22rbutil: Unify template parameter for release version.Dominik Riebeling2-5/+5
Don't use different parameter names for the same parameter. Change-Id: I3800d2ed7dcecf76b111b15945d62449efa70bcc
2020-11-22rbutil: Modernize connect() to new pointer-to-member syntax.Dominik Riebeling1-5/+8
Change-Id: I984ce56b5b45bbe705ac178cfe26cbc8b0d7e9d2
2020-11-22rbutil: Don't try to install voice file if it's not available.Dominik Riebeling1-31/+31
Change-Id: I42f70d6cf76298216bb626fd0fe760c0ce0a9835
2020-11-22rbutil: Replace stringly types build type handling with enum.Dominik Riebeling2-37/+46
Avoid having to repeat the same strings for lookup again and again and use an enum instead, which is also less error prone. Change-Id: I6ee8393948dbce97cb53850a6d8bdc4de12b4167
2020-11-22rbutil: Add voice installation to main widget.Dominik Riebeling9-88/+199
Add checkbox for installing the prerendered voice file to the main install widget. Current limitations: - only english for now. The available languages are available from the build server but are not yet taken into account. - only for releases. This is the same limitations we had before. We do have voices for daily builds, but that requires adding daily builds again (those have been removed some time back.) - Old voice installation dialog still present. Change-Id: Ia6443b0f15365196df86cc1b64d5e043dff70c4c
2020-11-22rbutil: Use pattern replacement for SystemInfo build type.Dominik Riebeling8-75/+94
Use pattern replacement for lookup instead of expanded values. Will allow simplifying things later for better handling of different build types. Change-Id: Iaad67a6c8654d27c3206cf95a379acab169565bc
2020-11-21rbutil: Modernize connect() to new pointer-to-member syntax.Dominik Riebeling13-26/+26
Change-Id: I6bb86e34438eef10813f0d19e910599156a876e6
2020-11-19rbutil: Avoid creating temporary object.Dominik Riebeling2-2/+2
There's a static function for that. Change-Id: I5d07d73368f20167bb45f5b0df510be6d4227109
2020-11-19rbutil: Remove done() signal from Themes Install window.Dominik Riebeling2-4/+0
This shadows a slot from the base class. Since it isn't used simply remove it. Change-Id: If2e524141b7ca4ab1083b4b713b2db3a0b25e6a6