Commit graph

121 commits

Author SHA1 Message Date
Dominik Wenger
33d9cf091a rbutil: make RbSettings a static class. (FS#10183 with improvements)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20890 a1c6a512-1295-4272-9138-f99709370657
2009-05-09 16:59:14 +00:00
Dominik Wenger
5b85ef6006 rbutil: completely rework how tts and encoders are configured. (FS#10070)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20824 a1c6a512-1295-4272-9138-f99709370657
2009-04-29 21:27:01 +00:00
Dominik Riebeling
3d2e42ab4c Completely rework RbSettings class.
- use a single member function for accessing a settings value.
- use an enum to figure the correct value in the settings file instead of functions.
- return the settings value as QVariant instead and leave converting to the caller.
- accept QVariant as value when setting values.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20823 a1c6a512-1295-4272-9138-f99709370657
2009-04-29 20:58:47 +00:00
Dominik Riebeling
42483bacc8 Fix cache path selection on Windows only allowing to select drives (FS#10013 by Yoshihisa Uchida).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20319 a1c6a512-1295-4272-9138-f99709370657
2009-03-13 16:53:28 +00:00
Dominik Riebeling
194fe0e6f0 Check configuration for validity in the configuration dialog.
If the configuration is invalid display information about the issues and don't accept the values. Fixes issue reported in FS#9944.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20100 a1c6a512-1295-4272-9138-f99709370657
2009-02-24 23:36:31 +00:00
Dominik Riebeling
af58ec63b6 Display cache path using native directory separators in configuration dialog.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19939 a1c6a512-1295-4272-9138-f99709370657
2009-02-07 15:59:20 +00:00
Dominik Riebeling
5c1b47dd1a Make autodetection show a busy cursor (hourglass) during detection to improve visual feedback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19114 a1c6a512-1295-4272-9138-f99709370657
2008-11-16 11:00:27 +00:00
Dominik Riebeling
cbc9208e54 Don't reset the language setting if it wasn't changed but the configuration saved.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18279 a1c6a512-1295-4272-9138-f99709370657
2008-08-14 21:32:32 +00:00
Dominik Riebeling
c367c21a76 Make rbutil check the system language and try to use the correct translation. A language selection in the configuration file will override this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18118 a1c6a512-1295-4272-9138-f99709370657
2008-07-25 19:28:24 +00:00
Frank Gevaerts
ee3ed8a163 handle new installations (or upgrades) differently from invalid configurations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17983 a1c6a512-1295-4272-9138-f99709370657
2008-07-07 21:40:44 +00:00
Dominik Riebeling
b39c20e557 Make encoder selection update on device change. This includes a workaround as the settings object currently doesn't allow getting the encoder for any other than the selected device.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17968 a1c6a512-1295-4272-9138-f99709370657
2008-07-06 19:57:22 +00:00
Dominik Riebeling
537ed0133c Make two missing strings translateable and translate to german.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17961 a1c6a512-1295-4272-9138-f99709370657
2008-07-06 16:23:51 +00:00
Dominik Riebeling
6667857eb2 Add a hint for translators.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17946 a1c6a512-1295-4272-9138-f99709370657
2008-07-05 21:35:23 +00:00
Dominik Wenger
7fb11a82a1 rbutil: move some detecting code, to make detecing things nicer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17813 a1c6a512-1295-4272-9138-f99709370657
2008-06-27 21:53:22 +00:00
Dominik Riebeling
1692d9b996 processEvents before starting autodetection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17600 a1c6a512-1295-4272-9138-f99709370657
2008-05-21 22:27:48 +00:00
Dominik Riebeling
23744fe314 disable device tree during autodetection to give some (small) visual feedback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17599 a1c6a512-1295-4272-9138-f99709370657
2008-05-21 22:03:37 +00:00
Dominik Riebeling
01f7223083 don't save mountpoint using native separators in the configuration. Makes things more consistent and fixes browsing the backup folder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17568 a1c6a512-1295-4272-9138-f99709370657
2008-05-18 10:38:26 +00:00
Dominik Riebeling
faceafc411 autodetection: convert path to native separators before displaying it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17566 a1c6a512-1295-4272-9138-f99709370657
2008-05-18 10:14:47 +00:00
Dominik Wenger
251db06294 rbutil: remove encoder selection and bind it to selected device. (ie. lame for old archos, rbspeex for all others)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17439 a1c6a512-1295-4272-9138-f99709370657
2008-05-10 15:23:15 +00:00
Dominik Wenger
b235b1306e rbutil: move many more connect calls, mainly for safety.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16997 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 19:50:38 +00:00
Dominik Riebeling
229c64ba67 Upon autodetection tell the user if an incompatible player model (newer Sansa / Nano) was found. Detection is usb based only.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16979 a1c6a512-1295-4272-9138-f99709370657
2008-04-05 21:48:54 +00:00
Dominik Wenger
1363881148 rbutil:let autodetection::detectUsb also use the rbsettings object.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16952 a1c6a512-1295-4272-9138-f99709370657
2008-04-03 20:05:13 +00:00
Dominik Riebeling
8406d92475 Clean up double path in resource file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16854 a1c6a512-1295-4272-9138-f99709370657
2008-03-27 23:39:49 +00:00
Dominik Riebeling
8f0c7908b0 Make encoder name conversion functions static to the base class.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16305 a1c6a512-1295-4272-9138-f99709370657
2008-02-13 18:11:09 +00:00
Dominik Riebeling
8820c0114b Make TTS name conversion functions static members.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16294 a1c6a512-1295-4272-9138-f99709370657
2008-02-12 21:45:50 +00:00
Dominik Riebeling
c789f3a8a2 Save the internal name for tts / encoder in the configuration file, not the displayed nice name. Additionally, kill a few warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16233 a1c6a512-1295-4272-9138-f99709370657
2008-02-06 21:51:35 +00:00
Dominik Wenger
3a54c9b58d rbtutil: introduce a RbSettings class help code reuse, and minimises duplicated code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16159 a1c6a512-1295-4272-9138-f99709370657
2008-01-25 00:12:25 +00:00
Dominik Wenger
df6c5f414f rbutil: introduce a util function to get the systemproxy, for better reuse.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16150 a1c6a512-1295-4272-9138-f99709370657
2008-01-23 21:54:40 +00:00
Dominik Wenger
6b5780dae3 rbutilqt: made the sapi TTS more configurable, you can now select a specific voice in the config dialog. Also reworked some setSetting functions, to remove depencies.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16111 a1c6a512-1295-4272-9138-f99709370657
2008-01-19 18:33:33 +00:00
Dominik Riebeling
9d482ebb6c w32: when utilizing IE values for system proxy also honor the ProxyEnable value. In the configuration dialog, display a note when system proxy is disabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15962 a1c6a512-1295-4272-9138-f99709370657
2007-12-23 10:11:51 +00:00
Dominik Wenger
bebddd42c2 rbutil: reworked configuration of TTS engines to the new Style.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15932 a1c6a512-1295-4272-9138-f99709370657
2007-12-15 13:13:57 +00:00
Dominik Wenger
f5c695b43f rbutil: added a button into talkfile dialog, to directly jump to config of tts and enc.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15926 a1c6a512-1295-4272-9138-f99709370657
2007-12-14 19:49:11 +00:00
Dominik Wenger
815504b449 rbutil: added builtin rbspeex encoder. Reworked encoder configuration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15925 a1c6a512-1295-4272-9138-f99709370657
2007-12-14 19:26:54 +00:00
Dominik Riebeling
22cf8adf01 Use i10n for numbers using QLocale.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15027 a1c6a512-1295-4272-9138-f99709370657
2007-10-07 21:26:53 +00:00
Dominik Riebeling
25441b396d When changing cache path update the size information.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15022 a1c6a512-1295-4272-9138-f99709370657
2007-10-07 18:02:54 +00:00
Dominik Riebeling
8431da1fff Give the configuration dialog its old size back and make sure to always start at the Device tab.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14830 a1c6a512-1295-4272-9138-f99709370657
2007-09-23 15:26:27 +00:00
Dominik Wenger
acc70ec58d rbutil: added support for talkfile creation with the rockbox sapi_voice.vbs script. Also let the configure dialog remember options and paths for different tts and encoders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14828 a1c6a512-1295-4272-9138-f99709370657
2007-09-23 13:35:45 +00:00
Dominik Riebeling
74154436a5 w32: implement "system proxy" settings. This uses the IE setting by reading its values from the registry. Make system proxy the default value if no configuration file is found.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14827 a1c6a512-1295-4272-9138-f99709370657
2007-09-23 13:12:34 +00:00
Antoine Cellerier
1464c9b5d0 Cosmetics: remove trailing spaces.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14723 a1c6a512-1295-4272-9138-f99709370657
2007-09-15 22:57:07 +00:00
Dominik Riebeling
fc25266440 Device detection based on USB PIDs. This is currently linux only and requires libusb. There is also no way to figure the mount point from the USB PID so the old methods are tried for this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14698 a1c6a512-1295-4272-9138-f99709370657
2007-09-14 20:52:38 +00:00
Antoine Cellerier
974eb5deaf Make it possible to change the BrowseDirtree caption (and do so for the device selection dialog).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14695 a1c6a512-1295-4272-9138-f99709370657
2007-09-14 20:22:53 +00:00
Antoine Cellerier
4c881e2c91 Add BrowseDirtree::setDir(const QString&) to simplify the code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14694 a1c6a512-1295-4272-9138-f99709370657
2007-09-14 20:10:54 +00:00
Antoine Cellerier
bedfd7c8b5 On linux, default to /media for the mountpoint selection but make it possible to chose other directories too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14693 a1c6a512-1295-4272-9138-f99709370657
2007-09-14 19:27:35 +00:00
Dominik Riebeling
3cd6a4502c it's /media, not /Media.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14689 a1c6a512-1295-4272-9138-f99709370657
2007-09-14 14:47:26 +00:00
Dominik Wenger
b775101260 rbutil: limit the mountpoint selection to /Media on linux and /Volumes on Mac.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14688 a1c6a512-1295-4272-9138-f99709370657
2007-09-14 14:37:43 +00:00
Dominik Riebeling
b9dbd4ee9c - rework language selection a bit: use language string as key instead of language file basename. Display the language string in the selection list too. This makes it possible to distinguish between two variants of the same language without adjusting the language name.
- move user settings from "defaults" section to "general". Makes the code cleaner and has been that way for historical reasons only anyway.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14592 a1c6a512-1295-4272-9138-f99709370657
2007-09-03 14:37:00 +00:00
Dominik Riebeling
87a8f41edf TTS configuration: default to the first profile found.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14550 a1c6a512-1295-4272-9138-f99709370657
2007-08-30 22:20:11 +00:00
Dominik Riebeling
4146da5565 When collapsing the devices tree upon detection collapse all.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14535 a1c6a512-1295-4272-9138-f99709370657
2007-08-30 18:14:56 +00:00
Dominik Riebeling
50af4dc089 When autodetecting, don't segfault if no item was previously selected and a device is found.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14533 a1c6a512-1295-4272-9138-f99709370657
2007-08-30 16:55:04 +00:00
Dominik Riebeling
1bee895619 Make it possible to browse for an encoder binary.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14519 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 17:31:43 +00:00
Dominik Riebeling
bc5a7e391c make detection of tts / encoder binary by searching the path work on windows too. As MacOS AFAIK works the same was as Linux use the same method here -- hopefully this doesn't break anything.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14509 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 12:32:53 +00:00
Dominik Riebeling
ce2142ec5b Auto-detect binary in TTS / encoder setting dialog by searching $PATH. Only linux for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14505 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 10:09:17 +00:00
Dominik Riebeling
c03102b346 Completely rework the talk files window: move settings to configuration dialog and add configuration presets. Remove some old cruft from talkfile handling and rely on values from rbutil.ini. Autodetection of executables is missing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14495 a1c6a512-1295-4272-9138-f99709370657
2007-08-28 23:10:42 +00:00
Dominik Riebeling
3075e3bafd Cache was intended to be disabled per default. Also make the "disable download cache" button in installation window working.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14480 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 18:05:16 +00:00
Dominik Riebeling
5ef236869f Implement download caching. Set the folder for the cache data in the configuration dialog. Caching is disabled per default and defaults to the systems temp folder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14476 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 17:40:35 +00:00
Dominik Riebeling
9305c86f5b Always save manually entered proxy values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14469 a1c6a512-1295-4272-9138-f99709370657
2007-08-26 22:19:04 +00:00
Dominik Riebeling
26eb048e7a simplify a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14302 a1c6a512-1295-4272-9138-f99709370657
2007-08-12 20:40:50 +00:00
Dominik Riebeling
90c40b7fea use alternating row colors in list views.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14298 a1c6a512-1295-4272-9138-f99709370657
2007-08-12 19:18:11 +00:00
Dominik Riebeling
e62040d5ed fix a possible segfault upon invalid selection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14262 a1c6a512-1295-4272-9138-f99709370657
2007-08-10 00:01:44 +00:00
Dominik Riebeling
965881fd85 if no proxy type is set default to none.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14255 a1c6a512-1295-4272-9138-f99709370657
2007-08-09 16:01:02 +00:00
Dominik Riebeling
3a4e540c3d Replace the file selection dialog for the mountpoint with a pure folder tree view. This fixes an issue with the selection dialog which could try opening a nonexisting folder. Only allow to select drive letters on windows. Additionally, remove an old file I forgot earlier.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14233 a1c6a512-1295-4272-9138-f99709370657
2007-08-07 16:48:45 +00:00
Dominik Wenger
421411b73a rbutilqt: initial port of the autodetection. (use only rockbox-info.txt at the moment)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14199 a1c6a512-1295-4272-9138-f99709370657
2007-08-05 19:48:04 +00:00
Dominik Riebeling
7aceb93589 - display better values if no user configuration is found
- make it possible to cancel device selection
- accept new device path also if it's not selected from the browser and ignore it if it's not a path.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14162 a1c6a512-1295-4272-9138-f99709370657
2007-08-03 16:55:27 +00:00
Dominik Riebeling
a31b410868 Fix a segfault when no configuration file is present.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14161 a1c6a512-1295-4272-9138-f99709370657
2007-08-03 16:30:37 +00:00
Dominik Riebeling
7a62bb04d8 Move device and mountpoint selection to configuration to eliminate the need of asking for the mountpoint in every installation window. Use a QListWidget to make the devices list nicer. Remove scrobbler settings as this will most likely get implemented as plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14149 a1c6a512-1295-4272-9138-f99709370657
2007-08-02 21:29:31 +00:00
Dominik Riebeling
2e75182b84 Update configuration dialog and disable unimplemented items. Add some nice icons and replace logger icons with tango ones.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14119 a1c6a512-1295-4272-9138-f99709370657
2007-08-01 14:09:41 +00:00
Dominik Riebeling
3b3fd4997e don't show the proxy password in configuration dialog as cleartext.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14108 a1c6a512-1295-4272-9138-f99709370657
2007-08-01 07:10:10 +00:00
Dominik Wenger
f358d4ad94 rbutilQt: fix Dialogs, so they are modal.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14080 a1c6a512-1295-4272-9138-f99709370657
2007-07-30 19:35:48 +00:00
Dominik Riebeling
d77a7eaaac linux: respect http_proxy value for "system" proxy settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14062 a1c6a512-1295-4272-9138-f99709370657
2007-07-29 18:41:15 +00:00
Dominik Riebeling
82373b246e support for translating rbutil. Translation files (*.qm) can be in the binary folder or in the resource :/lang. Incomplete german translation available for testing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14061 a1c6a512-1295-4272-9138-f99709370657
2007-07-29 18:09:41 +00:00
Dominik Riebeling
680408f4ac First stab at porting rbutil to Qt4. Currently only installing a current or archived build is working. To build, run qmake && make in the source folder. Beware that the syntax of rbutil.ini has slightly changed. Caching of the downloaded files is also still missing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13989 a1c6a512-1295-4272-9138-f99709370657
2007-07-25 20:21:06 +00:00