path: root/rbutil/rbutilqt/configure.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-11-19rbutil: Convert ServerInfo to singleton.Dominik Riebeling1-3/+2
Change-Id: I29d94eb6bae084754e5e3f337c41de8354ba123c
2020-11-15rbutil: Rework server info data handling.Dominik Riebeling1-2/+2
Return status as int, not as string, and provide a separate function for converting to string. This allows to filter based on the actual status, not a (localized) status string, which is more robust. Fix a regression that made players with missing status value show up as retired. Change-Id: I15f83ae0df484199b1b3b5b95069db8b4d425987
2020-11-14rbutil: Rework player configuration.Dominik Riebeling1-11/+11
Rename config entries and remove now unnecessary default value handling. Change-Id: I5c60ef9769fc01f45f45290dafffb80c1962e674
2020-11-14rbutil: Rework player configuration.Dominik Riebeling1-23/+23
- 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
2020-11-07rbutil: Replace most icons with their svg variant.Dominik Riebeling1-4/+4
Replace png icons with svg ones for better HiDPI support. Change-Id: Ifcd5e551dfb764f57324d27741598181ce3acce2
2020-10-29rbutil: Remove unused assignment.Dominik Riebeling1-1/+0
Change-Id: I6445e13472ae856acda1890056fd933d7d810bd5
2020-08-16rbutil: Qt6: allow building without Multimedia module.Dominik Riebeling1-0/+8
Qt6 beta doesn't include the Multimedia module. Allow building without, and disable on Qt6 for now. Change-Id: Ie2ad25c81d9c62c8c6e8efaf8309b3600afce1d0
2020-08-16rbutil: Fix various warnings.Dominik Riebeling1-2/+2
Replace use of deprecated APIs with their replacements, and fix some other minor warnings. Change-Id: I3f63e0bd91b96ce86ce39c087fe0040fc226d16d
2020-08-06rbutil: Use SpinBox for Proxy port value.Dominik Riebeling1-13/+5
No need to use a validator on a LineEdit, simply use a SpinBox and disable the up / down icons. Change-Id: Ie47c5929a071dc95ed9d6f28c2417fc6dd5323fe
2020-07-26rbutil: Always use Qt Multimedia to play TTS preview.Dominik Riebeling1-11/+0
We're using it on Windows and macOS, there's no reason to not do so on Linux. Change-Id: I6e4d9006eff22fd4bf6b882407a5497b2f8cdd2f
2020-07-26rbutil: Call QLocale::setDefault() with QLocale.Dominik Riebeling1-1/+1
QLocale::setDefault() shouldn't be called with a QString but a QLocale instead. Calling it with a string doesn't work with Qt6 anymore. Change-Id: I08826095cda8563e4ae9b83d08144da2d0d7f3c7
2014-01-05Make some missing strings translatable.Dominik Riebeling1-4/+4
Change-Id: I566bb9ea16b9e5e3f46e81393c07d3c13a748a63
2013-11-04Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling1-15/+16
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-18Handle ambiguous state in configuration dialog.Dominik Riebeling1-3/+3
If a single player is detected it might still have ambiguous as state due to the mountpoint not being found. Make sure to display a sensible error message in that case. Change-Id: I7d62e739019b26a583fe6aab502d0f870e67587e
2013-09-18Show mountpoint on multiple devices found message as well.Dominik Riebeling1-2/+7
Change-Id: I315813646ee3fe3b510510e99e2dbf88c649f4d8
2013-09-18List detected devices if multiple are found.Dominik Riebeling1-3/+17
In preparation of giving the user a list to choose from add displaying a list of all devices connected. Since devices might be ambiguous (multiple devices share the same USB ID but detecting by other means failed) the listed devices might exceed the number of actually attached ones. Change-Id: Ice52da15523e5f3493a6fb687392301c4d5b8a36
2013-08-18Note skipped mountpoints to log when populating dropdown list.Dominik Riebeling1-0/+3
Helps in cases the dropdown list doesn't show an expected entry. Change-Id: I7236c6dd8504dc3a6889443efd7de7bcda90b8a3
2013-06-09Only show mountpoints containing a supported filesystem in dropdown.Dominik Riebeling1-1/+1
Change configuration to use filtered mountpoints list. Add HFS+ to the list of supported filesystems -- while Rockbox doesn't run on HFS+ MacPods will use that format, and not having them in the list will then make OS X users wonder why their Ipod isn't showing up. This might need to get revised later. Change-Id: I5eeeb05be6780cb3952a0081df0ce782eca01589
2013-04-09Change autodetection result to a list.Dominik Riebeling1-81/+100
Both autodetection functionality and the configuration dialog assumed detection to only return one found device. This isn't necessarily true, especially since some players can be detected but detecting their mountpoint might be ambiguous (only if no previous Rockbox installation is present). Instead of returning individual results (found "ok" player, found "error" player etc.) return a list containing an entry for each player. Current autodetection code will never return more than one entry since it doesn't handle multiple devices yet, and the configuration dialog will show an error if multiple devices are found. Thus there is no user visible change yet. Both autodetection and configuration dialog can now get extended to handle multiple devices. Change-Id: I79b763dbd6e7111783194bcc22ab7cc06a4061c1
2013-04-04Fix Qt5 / MinGW problems.Dominik Riebeling1-1/+3
Add missing multimedia module and update some includes. Change-Id: I98c65c4f2e21e6a63d552669468b1da313520499
2013-03-19Encode the password using base64 before storing it to the configuration file.Dominik Riebeling1-12/+22
There are two reasons for this: - QUrl::toEncoded() has problems with some characters like the colon and @. Those are not percent encoded, causing the string getting parsed wrongly when reading it back (see FS#12166). - The password is cleartext in the configuration file. While using base64 doesn't provide any real security either it's at least better than plaintext. Since this program is open source any fixed mechanism to obfuscate / encrypt the password isn't much help either since anyone interested in the password can look at the sources. The best way would be to eventually use host OS functionality to store the password. Change-Id: I6ac49d68211236e540b6ca16481e0e1c196532b7
2013-03-19Add option to temporarily show proxy password.Dominik Riebeling1-9/+18
Change-Id: I9c4394dbe679584a0b0f9b6105714176354adfe6
2013-01-27Update Qt includes for compatibility with Qt5.Dominik Riebeling1-1/+4
Change-Id: Ibe400700f6bce0335a2975c6d635e10ae940f932
2013-01-13Remove Rockbox Utility Offline Mode.Dominik Riebeling1-2/+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-10-06Don't assume success for TTS object creation.Dominik Riebeling1-2/+14
While the current implementation of getTTS() will always return an object this might change later. Check the returned object before using it to be on the safe side. Change-Id: Ic949cae7cfbe6f3086dee6aab741b0acafe14640
2012-04-30Only update mountpoint on Accept when empty.Dominik Riebeling1-1/+3
Always updating the mountpoint overwrites a manually entered mountpoint (only available in debug builds). Change-Id: I6298cb873496d66f4836f219e89ca8ae17261de9
2012-04-24Refresh mountpoint from UI before checking for existence.Dominik Riebeling1-0/+3
Fixes "invalid mountpoint" errors that could happen if the preselected mountpoint was never changed and no previous configuration available. Change-Id: Ief5f1b7a0b24267a03028f5d402e8763a5a3fc70
2012-01-06Split up encoders sources.Dominik Riebeling1-6/+8
Create a separate source / header file for each supported encoder and the base class and rename classes for better readability. This should also make it easier adding new encoders. Remove a few trailing spaces while at it. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling1-1/+0
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-10-02Rockbox Utility: handle layout direction on language changes as well.Dominik Riebeling1-0/+8
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-10-02Update cache information after translation change.Dominik Riebeling1-0/+1
Since a translation change can affect the locale the locale-dependent strings need to be refreshed explicitly. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-10-02Rockbox Utility: listen to translation change events.Dominik Riebeling1-7/+37
When changing the language don't require a restart anymore. Instead listen to the appropriate changeEvent and retranslate the UI. Designer generated UI files already provide such a function. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-10-01Voicefile generation: implement string corrections.Dominik Riebeling1-0/+4
Voicefile generation now can correct strings for the TTS system similar to what 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:// a1c6a512-1295-4272-9138-f99709370657
2011-07-17Move some helper functions out of Autodetection.Dominik Riebeling1-1/+1
Those functions are rather general, so put them into the Utils class instead. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-07-17The mountpoint is stored with normalized separators.Dominik Riebeling1-2/+2
Make sure to convert it on reading to avoid not finding it even if stored with native separators in the configuration. Fix a warning on Windows. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-07-16Add custom delegate for showing the mountpoint combo box entries.Dominik Riebeling1-11/+17
The delegate will be used for the dropdown list and show both mountpoint (left aligned) and label / size information (right aligned). This improves readability compared to the previous implementation. Also, the mountpoint itself is now the text of the combo box and the additional information is in the Qt::UserRole to avoid having to handle a user entered mountpoint separately (since previously the mountpoint was stored in Qt::UserRole, but an edited item would have the value in Qt::TextRole). Disable editing the combo box entry for release builds, it shouldn't be needed by users. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-07-15Show volume labels on Windows.Dominik Riebeling1-2/+3
In mountpoint selection and system info dialog show the volume name to make it easier to identify a specific device. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-07-15Replace mountpoint selection with combo box.Dominik Riebeling1-33/+75
Instead of entering the mountpoint via a tree browser or manually use a combo box that lists all available drives / mountpoints. This also allows to easily add more information like the free and total size for each mountpoint. For development this can still be overriden by editing the dropdown value manually. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-06-25Rockbox Utility: fix proxy password getting lost (FS#12166).Dominik Riebeling1-2/+11
The proxy settings are stored as string representation in the configuration file. If username / password contains characters used as separators parsing the string again will cause wrong results. Percent-encode them before storing, and parse it as percent-encoded string when reading it back. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-04-22Better hilight detected item after autodetection.Dominik Riebeling1-0/+6
To have a better indication what player has been detected and to keep this information in view make the entry for the detected player bold. This also (partly) addresses FS#10694. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-04-22Fix "Test TTS" button not working.Dominik Riebeling1-2/+3
Make sure the temporary file doesn't get destroyed before it has been played. Fixes the "Test TTS" button not giving a test playback anymore for TTS systems that cannot do the playback themselves. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-04-03Properly remove the configuration dialog.Dominik Riebeling1-0/+3
The configuration dialog isn't needed anymore once the finished() signal is emitted. In that case schedule it for deletion by the event loop. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-04-03Add capability to speak directly from the TTS engine.Dominik Riebeling1-13/+20
The OS X TTS engine (and likely others) allows outputting its speech directly to the sound system. This avoids the extra step of creating a temporary file to play for TTS preview. Currently implemented as TTS capability reported. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-03-20Fix MTP detection only working on e200v1.Dominik Riebeling1-8/+10
Autodetection only showed an MTP device error for e200v1 and an unspecified error for all other players (except if the detected player is an Ipod, in which case the error indicates a WinPod). Consider all non-Ipod errors as MTP error. Fix wrong MTP USB ID for e200v1 which made that detection fail even for e200v1. Should fix FS#11563. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-03-13Improve visual feedback when testing TTS.Dominik Riebeling1-8/+14
Disable the "Test TTS" button during a running test and on invalid TTS configuration. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-02-04Replace list of languages with map.Dominik Riebeling1-2/+3
- Use ISO codes as keys for voice languages instead of enumeration. - Instead of trying to select a suitable voicefile language from the UI language use the ISO codes stored as UI language and match against the mapping. - Always store the selected UI language. Fixes the voicefile creation language lookup to fail if the language used is the system language. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-04-02Move utils.cpp functions into separate class and split it up.Dominik Riebeling1-2/+2
Move class-less functions in utils.cpp into a new Utils class and make the old functions static. This prevents clashes with system C functions. Rename some functions to avoid macro problems (check() is a macro on OS X). Split out the RockboxInfo class into a separate file. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-04-02Implement system proxy values retrieval on OS X.Dominik Riebeling1-3/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-04-02Warn when selecting system proxy settings with invalid values.Dominik Riebeling1-7/+24
Rockbox Utility doesn't support "proxy auto-config" (aka PAC) for system proxy settings. This can result in users selecting system proxy and expecting it to work even if their system uses PAC. While the configuration dialog displays the proxy setting values retrieved from the system this is not totally obvious. Add a message telling if the retrieved system proxy values are not useable. For now this only checks if a proxy host and port are set which should catch the usual cases when PAC is used. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-03-30Delete tts objects after use.Dominik Wenger1-0/+8
Author: Delyan Kratunov Flyspray: FS#11155 part1 git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657