summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/rbsettings.cpp
AgeCommit message (Collapse)AuthorFilesLines
2021-12-24rbutil: Merge rbutil with utils folder.Dominik Riebeling1-207/+0
rbutil uses several components from the utils folder, and can be considered part of utils too. Having it in a separate folder is an arbitrary split that doesn't help anymore these days, so merge them. This also allows other utils to easily use libtools.make without the need to navigate to a different folder. Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
2020-12-04rbutil: Add MIDI patchset to plugin data installation.Dominik Riebeling1-1/+1
Add installing the MIDI patchset, and subsequently rename from Game Files to Plugin Data Files. Change-Id: Ib71ce4c8992ffc9185d961a60296c9671ebc9709
2020-12-03rbutil: Rework and merge player and build server info handling.Dominik Riebeling1-2/+3
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-11-22rbutil: Move Manual installation to main tab.Dominik Riebeling1-0/+1
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: Add voice installation to main widget.Dominik Riebeling1-0/+1
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-19rbutil: Modernize code to use C++11 nullptr.Dominik Riebeling1-5/+5
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
2020-11-14rbutil: Rework player configuration.Dominik Riebeling1-1/+1
Rename config entries and remove now unnecessary default value handling. Change-Id: I5c60ef9769fc01f45f45290dafffb80c1962e674
2020-11-14rbutil: Rework player configuration.Dominik Riebeling1-1/+1
- Split internal configuration into player specific and common parts. Always require passing the player for player specific data instead of implicitly assuming the currently selected one; only use the currently selected one if the player name is explicitly passed as empty. - Similarly adjust handling of server info data; prepare for splitting into build type specific values so the naming becomes cleaner. Change-Id: I894e694f83bd9fe2d22ad46b3f8f7df3e2c68033
2013-11-04Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling1-4/+5
Change tracing from qDebug() to use cutelogger, which is available under the LGPL2.1. This allows to automatically add filename and line number to the log, and also provides multiple log levels. Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
2013-09-30Implement a first, simple changelog dialog.Dominik Riebeling1-0/+1
When Rockbox Utility is started for the first time, a new version is started or the user selected to do so on startup a changelog window is shown. Change-Id: Ic223e092a09d31ccbbfcd9b973355225cac27632
2013-01-13Remove Rockbox Utility Offline Mode.Dominik Riebeling1-1/+0
Offline Mode was intended to allow performing an installation without network access. However, to get the required files cached the same installation has to be performed with network access, which is a rather strange prerequisite. A better way would be a way to direct Rockbox Utility to some local "repository" that holds the required files. Furthermore, Offline Mode hasn't been tested since long and is likely to be broken since the caching mechanism has been extended. For now remove this functionality. As far as I know it's been rarely used (if at all) anyway. Change-Id: Ib2af4892708e0440bd0a7940c131f04182ddb39a
2012-06-26Rework Installation and remove Quick Start tab.Dominik Riebeling1-0/+4
The Quick Start tab turned out to be used a lot but not explaining what its functionality actually does, leading to various amount of confusion. The Quick Start tab and its functionality have been completely removed. As replacement the reworked Installation tab now includes both the entries from the old Installation tab (Bootloader and Rockbox) and the Extras tab (Fonts, Themes, Game files). Each of the items can be enabled or disabled individually, and the selection is saved in the configuration. The only exception is the bootloader option, since installing the bootloader is only needed once. To help with this the bootloader checkbox is automatically enabled if no Rockbox installation is found, and disabled if one is found. While it would be nicer to check if the bootloader is actually installed this is not possible for various players so the implementation simply relies on a Rockbox installation. This should also make it much easier to update an existing installation. Current limitations: - the selected themes are not saved. - it is not possible to detect if the target has the plugins that require additional game files prior to installation. Thus the "Game files" option is available for all targets but simply skipped if the plugins are not found. Change-Id: I1929bb7045e382fcbba431cca057d3121607d3a9
2012-06-26Create dedicated backup dialog.Dominik Riebeling1-0/+1
The "Installation" dialog allows backing up the current installation by creating a zip file from the .rockbox folder since quite a while. However, this has the drawback that you need to update your build to create a backup, but creating a backup might be desireable in other cases as well (before updating themes, or just for backup reasons). Since the functionality is somewhat hidden it's also not obvious to users such a functionality exists (most users are likely to use the "Quick Start" instead). Implement backup functionality as dedicated dialog placed on the Uninstall tab. Rename the Uninstall tab to accommodate this. Change-Id: I1d2c6c8f646672d1b66bb442408fbfc2eeec700d
2012-06-14Save all settings in talkfile dialog.Dominik Riebeling1-1/+8
Save settings that haven't been and rename the configuration file value for the talked folder. Since the folder was replaced with a list we can't use the old value anymore so there's no need to keep a name that's not really suitable anymore. Solves FS#12634. Change-Id: I8db2a536409b94c45f28db9418a11f11f57dfacb
2012-01-29Separate default quality setting for encoders.Dominik Riebeling1-1/+1
Instead of having a global quality setting for the encoder make the encoder provide its default value by itself. Fixes the libmp3lame encoder using an unsuitable value since the range differs greatly between the encoders. Centralize reading the configuration values for rbspeex. The values are stored in member variables, so it's not necessary to read them multiple times. Change-Id: Ia26cb1fc3bb4f927d13212fe7883bdfe2571a711
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30806 a1c6a512-1295-4272-9138-f99709370657
2011-10-01Voicefile generation: implement string corrections.Dominik Riebeling1-0/+1
Voicefile generation now can correct strings for the TTS system similar to what voice.pl does. The current implementation has some limitations: - only implemented for voicefile creation. - the corrections file is built in and can't get changed. - string corrections can be disabled in the configuration dialog. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30628 a1c6a512-1295-4272-9138-f99709370657
2011-04-22Use System TTS if none is set.Dominik Riebeling1-1/+7
If no TTS has been selected previously default to the system one if any. Otherwise use espeak. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29758 a1c6a512-1295-4272-9138-f99709370657
2011-04-03OS X TTS: add pitch setting.Dominik Riebeling1-0/+1
The current TTS configuration doesn't allow querying the system values so it currently can't be displayed. A value of 0 will use the system default. The default pitch is dependent on the voice; most voices should have a default pitch of 45 - 55. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29673 a1c6a512-1295-4272-9138-f99709370657
2010-03-11Implement speed adjustment for OS X TTS.Dominik Riebeling1-1/+1
Note that some voices don't support speed adjustment. These voices will ignore the selected value. The current implementation doesn't mark those voices in any way. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25125 a1c6a512-1295-4272-9138-f99709370657
2010-01-29Minimize unnecessary accesses to SystemInfo and RbSettings.Dominik Riebeling1-9/+12
With the separation of the SystemInfo values accessing all the values will create traces, making them rather noisy due to unnecessary multiple accesses. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24373 a1c6a512-1295-4272-9138-f99709370657
2010-01-24rbutil: split RbSettings. use Stable/unstable status from server.Dominik Wenger1-220/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24331 a1c6a512-1295-4272-9138-f99709370657
2010-01-24Respect default values for ServerSettingsList as well. No idea why I missed ↵Dominik Riebeling1-2/+7
that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24326 a1c6a512-1295-4272-9138-f99709370657
2010-01-21Store server info in RbSettings volatile in a QMap instead of putting it ↵Dominik Riebeling1-13/+7
into the user settings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24312 a1c6a512-1295-4272-9138-f99709370657
2010-01-20rbutil: store the info from the server centrally in RbSetttings. Dont ↵Dominik Wenger1-2/+58
download build-info multiple times. Rename install.cpp git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24301 a1c6a512-1295-4272-9138-f99709370657
2009-10-14Fix a compiler warning showing up with newer gcc versions.Dominik Riebeling1-1/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23175 a1c6a512-1295-4272-9138-f99709370657
2009-09-18rbutil: check for new Versions at startup.Dominik Wenger1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22734 a1c6a512-1295-4272-9138-f99709370657
2009-09-16rbutil: fix URL to build-info for dailies and releases. And hide targets ↵Dominik Wenger1-2/+5
which are not in the stable or unstable category. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22705 a1c6a512-1295-4272-9138-f99709370657
2009-08-22rbutil: use target-id from rockbox-info.txt and remove it from rbutil.iniDominik Wenger1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22463 a1c6a512-1295-4272-9138-f99709370657
2009-08-15Remove resolution from system configuration as it isn't used anymore.Dominik Riebeling1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22331 a1c6a512-1295-4272-9138-f99709370657
2009-08-11Clean up accessing system setting values for a specific player.Dominik Riebeling1-0/+20
Remove the ugly "save, change and restore platform" accesses and extend the settings class to allow accessing player specific system values. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22254 a1c6a512-1295-4272-9138-f99709370657
2009-06-16Clean up several debug messages.Dominik Riebeling1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21314 a1c6a512-1295-4272-9138-f99709370657
2009-06-15Fix manual download using the wrong filename if the manual name differs from ↵Dominik Riebeling1-10/+10
the target name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21296 a1c6a512-1295-4272-9138-f99709370657
2009-05-09rbutil: make RbSettings a static class. (FS#10183 with improvements)Dominik Wenger1-25/+61
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20890 a1c6a512-1295-4272-9138-f99709370657
2009-04-29Move Settings class to base.Dominik Riebeling1-0/+285
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20827 a1c6a512-1295-4272-9138-f99709370657