summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-05-01Bootloader installation: set file filter.Dominik Riebeling1-1/+7
When requesting an original firmware file from the user set the filter for the file chooser dialog to only show files with matching file extension to simplify selection. Allow the user to select "all files" in case the file for whatever reason has the wrong extension. Change-Id: Ic3643c3601f6d849e6563f8753ae80a168ec0a45
2012-05-01Move bootloader class initialiation into helper.Dominik Riebeling1-7/+9
Create a BootloaderInstallHelper class for handling post installation hints and creating the installation instance depending on the player model. This removes the base class handling its derived classes which always has been weird, and removes the need to change the base class when adding a new installation method, since the base shouldn't be affected. Change-Id: I2a156d70fd1cff6c48bdd46d10c33d75c953ea90
2012-02-19Move Info tab content to a separate widget.Dominik Riebeling1-70/+7
Change-Id: I39a4e035372920f05f5fb3ab5bfc9459314997ad
2012-02-14Move manual tab contents to separate widget.Dominik Riebeling1-86/+7
Create a new widget which holds the contents of the manual tab and its logic. Unify its display / download code. Fixes FS#12587, which was caused by duplicated code. Change-Id: I5721d2a95ebeaf80481c1fd149eda22cf1328501
2012-02-14Make configuration check reusable.Dominik Riebeling1-18/+18
Instead of passing a parameter to decide if a dialog box should be shown pass a pointer to the parent widget and make it static. This allows calling it from outside while keeping the possibility to not show a warning. Change-Id: I72fa53a7e8a83d527c22b698dfa434c24100ac29
2012-01-22Check running processes at startup.Dominik Riebeling1-0/+1
Retrieve the processes running at startup and compare with a list of potentially problematic ones. Right now this is Itunes which is known to be able to cause problems when trying to install the bootloader on an Ipod. No user notification yet. This adds the implementation for Windows. Change-Id: I5ce8a85da52e0ed8f523b5ae6fb5d8f14f6a14c9
2012-01-15Support reading OF files from zip.Dominik Riebeling1-9/+14
Several devices require the original firmware to be able installing the bootloader. Most vendors distribute the firmware file in zip format. Extend reading the original firmware file to support reading the file from the zip directly instead of requiring the user to separately extract it. Change-Id: Ic4e89053456d8f7d6adc294f6657aceddbc354ba
2012-01-06Fix "invalid settings" dialog appearing twice.Dominik Riebeling1-3/+3
Instead of checking the settings on startup set only the device display. Otherwise the settings are checked directly on startup and after finishing the build information download, which leads to the configuration dialog getting opened twice. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31593 a1c6a512-1295-4272-9138-f99709370657
2012-01-03Update displayed settings on startup.Dominik Riebeling1-4/+5
Update the target values in the main window immediately on startup. Downloading the target information might not complete successfully, and in that case a previously selected target will not be shown. If the target information download finishes the displayed values are updated again (to show target status information). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31546 a1c6a512-1295-4272-9138-f99709370657
2011-10-28Fix manual URL in Rockbox Utility (FS#12346)Dominik Riebeling1-11/+16
Targets with special case URL for the manual (i.e. targets that share the manual with another target, f.e. h100 series) have been forgotten during the target renaming. Update those names and convert the manual URL handling to be template based. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30848 a1c6a512-1295-4272-9138-f99709370657
2011-10-21Rockbox Utility: add Speex license to About dialog.Dominik Riebeling1-2/+8
The Speex codec has a special license requiring it to be reproduced with any distribution. Add the license as a separate tab in the About dialog to satisfy this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30816 a1c6a512-1295-4272-9138-f99709370657
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-04Rockbox Utility: refresh some more dynamic strings after translation change.Dominik Riebeling1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30710 a1c6a512-1295-4272-9138-f99709370657
2011-10-02Rockbox Utility: listen to translation change events.Dominik Riebeling1-0/+12
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://svn.rockbox.org/rockbox/trunk@30633 a1c6a512-1295-4272-9138-f99709370657
2011-10-02Rockbox Utility: add some more icon sizes to the window icon on Windows.Dominik Riebeling1-2/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30631 a1c6a512-1295-4272-9138-f99709370657
2011-10-01Rockbox Utility: make the window icon also include a larger one.Dominik Riebeling1-0/+6
On Windows extend the QIcon used as window icon with the bigger Rockbox icon as well. W7 wants a larger one for the taskbar if large icons are enabled, and for the task switcher. Scaling the small one up looks ugly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30630 a1c6a512-1295-4272-9138-f99709370657
2011-07-17OS X: remove translation for menu entries handled separately.Dominik Riebeling1-1/+6
On OS X Configure and Quit menu entries are not placed in the File menu. Qt handles that for us if they are not translated, and translations are then handled automatically (as well as setting the OS X specific accelerator keys). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30147 a1c6a512-1295-4272-9138-f99709370657
2011-07-16Show drive label in main dialog.Dominik Riebeling1-5/+11
When its possible to retrieve the label of the selected mountpoint display it in the main window too. Right now this only affects Windows. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30143 a1c6a512-1295-4272-9138-f99709370657
2011-06-25Rockbox Utility: fix proxy password getting lost (FS#12166).Dominik Riebeling1-3/+5
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://svn.rockbox.org/rockbox/trunk@30071 a1c6a512-1295-4272-9138-f99709370657
2011-06-25Fix bootloader uninstallation on Gigabeat F / X.Dominik Riebeling1-9/+12
The "file" bootloader installation method usually can uninstall the bootloader. Some upgrade methods (like the Iaudio players) remove the bootloader file placed on the player after upgrading so those can't uninstall the bootloader. Instead of rejecting uninstallation for all players using this method check the current bootloader and only display an error if no suitable bootloader is found (which would happen in the Iaudio case). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30070 a1c6a512-1295-4272-9138-f99709370657
2011-06-25Fix a source string whitespace error.Dominik Riebeling1-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30069 a1c6a512-1295-4272-9138-f99709370657
2011-05-29Fix some gcc 4.6 warnings.Dominik Riebeling1-2/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29933 a1c6a512-1295-4272-9138-f99709370657
2011-04-30Rockbox Utility: fix some names missing from the CREDITS.Dominik Riebeling1-1/+1
The regexp used when displaying the names didn't take into account that names could start with non-ASCII letters. Use a different approach when filtering the header to make them not disappear. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29803 a1c6a512-1295-4272-9138-f99709370657
2011-03-25Rockbox Utility: Replace OSDaB Zip with QuaZip.Dominik Riebeling1-8/+17
This change fixes problems with zip files created with newer zip utilities (a known issue is the iLike theme). QuaZip also allows better feedback during operations without changing the imported code. Additionally Rockbox Utility and the Theme Editor are now both using QuaZip; currently Rockbox Utility uses a copy of the sources, merging them later is planned. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29645 a1c6a512-1295-4272-9138-f99709370657
2011-03-19Fix Rockbox Utility update detection on Linux 64bit.Dominik Riebeling1-17/+23
Remove the "64bit" part of the filename before comparing. We're checking for that in the filename explicitly but the version number doesn't contain it, so the comparison will otherwise misinterpret it as additional version information. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29617 a1c6a512-1295-4272-9138-f99709370657
2010-06-11Rework Rockbox Utility update version number check.Dominik Riebeling1-54/+8
The version check failed on subrelease versions (as the 1.2.5-1 rebuild done for Mac) and detected an updated version that is in fact an outdated one. Rework the comparison completely, move it to the Utils class and display some more information in the status bar upon update check. Especially keep a notice in the status bar if an updated version was found. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26788 a1c6a512-1295-4272-9138-f99709370657
2010-06-11Convert uninstallation to use signals / slots for logging.Dominik Riebeling1-1/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26782 a1c6a512-1295-4272-9138-f99709370657
2010-06-07Distinguish between release and current build when installing fonts.Dominik Riebeling1-4/+28
As with the voice file installation changed in r26637 the same issue exists for fonts. While the fonts package rarely changes and therefore this shouldn't have had a negative impact in the past use the correct font package anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26667 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Sort rbutil.ini general section and rename voice_url for clarity.Dominik Riebeling1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26638 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Distinguish between release and current build when installing voice files.Dominik Riebeling1-10/+37
Check the installed Rockbox and install release voice file if a release is found. Fixes wrong voice file getting installed for releases, which especially showed up with the recent lang file cleanup. This is likely to be the cause for FS#11362. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26637 a1c6a512-1295-4272-9138-f99709370657
2010-06-04rbutil: add mpio hd200 as disabled target (all untested)Dominik Wenger1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26561 a1c6a512-1295-4272-9138-f99709370657
2010-06-03Fix global proxy getting set too late.Dominik Riebeling1-9/+2
Downloading the build information was done before setting the global proxy values, so this broke in environments that completely block non-proxy connections. Explicitly set the proxy on startup before downloading other things. Remove some duplicated code. Fixes FS#11163. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26504 a1c6a512-1295-4272-9138-f99709370657
2010-05-07rbutil: move bootloaderInstall object creation switches to ↵Dominik Wenger1-55/+17
bootloaderInstallBase . git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25882 a1c6a512-1295-4272-9138-f99709370657
2010-04-23Don't retrieve the mountpoint value for each file when displaying the ↵Dominik Riebeling1-3/+3
installed files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25701 a1c6a512-1295-4272-9138-f99709370657
2010-04-10FS#11193 - rbutil: HTTP 404 error when downloading zipped version of the manualTomer Shalev1-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25561 a1c6a512-1295-4272-9138-f99709370657
2010-04-04Try to detect Wine.Dominik Riebeling1-0/+15
Make the Windoes binary try to detect if it's running under Wine. Display a warning if so, as Rockbox Utility is likely to fail in all kind of strange ways when running on Wine. We do provide Linux binaries, so it's not even a good idea to try running under Wine at all. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25471 a1c6a512-1295-4272-9138-f99709370657
2010-04-02Move utils.cpp functions into separate class and split it up.Dominik Riebeling1-1/+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://svn.rockbox.org/rockbox/trunk@25441 a1c6a512-1295-4272-9138-f99709370657
2010-04-01Fix multiple warnings when network is unreachable.Dominik Riebeling1-18/+10
Don't listen to requestFinished() signals for background downloads. The only information needed is the done() signal. Fixes multiple error messages popping up on unreachable network. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25430 a1c6a512-1295-4272-9138-f99709370657
2010-03-29Add Rockbox Utility SVG window icon on Linux.Dominik Riebeling1-0/+5
Create a svg version of the clef icon for Rockbox Utility and set it as window icon on Linux; icon created from the svg logo in the manual. Addresses FS#11094. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25385 a1c6a512-1295-4272-9138-f99709370657
2010-03-23Save System Trace on exit and allow easy retrieval after restart.Dominik Riebeling1-0/+1
The System Trace isn't preserved when quitting Rockbox Utility. Change this so the last trace is saved in the cache folder, and add a button to the trace window to allow easy saving it. Should help in cases where users have problems but restart Rockbox Utility before saving the trace. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25313 a1c6a512-1295-4272-9138-f99709370657
2010-03-15Fix manual download links.Dominik Riebeling1-2/+4
Use the buildserver modelname for downloading files. The Platform setting is the internal Rockbox Utility value, which might contain an additional identifier needed internally only. Broken download links reported as part of FS#11109. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25206 a1c6a512-1295-4272-9138-f99709370657
2010-02-28Rename Rockbox Utility output binary to RockboxUtility.Dominik Riebeling1-1/+1
This will also cause the archives created by deploy-release.py to use the new binary name, so also update the update checking code to accept any base filename when retrieving version numbers from the download server. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24980 a1c6a512-1295-4272-9138-f99709370657
2010-02-18rbutil: fix voice downloads.Dominik Wenger1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24758 a1c6a512-1295-4272-9138-f99709370657
2010-02-16Use QFileDialog::getExistingDirectory() for path selection.Dominik Riebeling1-4/+4
This makes it possible for native dialogs to get used on Windows and OS X. The mountpoint selection dialog needs special handling and still uses the BrowseDirtree class for now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24703 a1c6a512-1295-4272-9138-f99709370657
2010-02-11Restore the default message handler on application shutdown. Fixes sporadic ↵Dominik Riebeling1-0/+11
segfaults on exit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24599 a1c6a512-1295-4272-9138-f99709370657
2010-01-24rbutil: fix doubled configure dialog.Dominik Wenger1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24332 a1c6a512-1295-4272-9138-f99709370657
2010-01-24rbutil: split RbSettings. use Stable/unstable status from server.Dominik Wenger1-67/+44
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24331 a1c6a512-1295-4272-9138-f99709370657
2010-01-24Merge rbutil CREDITS file with main one and use that.Dominik Riebeling1-2/+7
Similar to removing the separate CREDITS file for the manual remove the rbutil one as discussed on IRC. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24329 a1c6a512-1295-4272-9138-f99709370657
2010-01-20rbutil: store the info from the server centrally in RbSetttings. Dont ↵Dominik Wenger1-47/+59
download build-info multiple times. Rename install.cpp git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24301 a1c6a512-1295-4272-9138-f99709370657
2010-01-20rbutil: remove some unneeded accesses to the raw build-info file.Dominik Wenger1-11/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24299 a1c6a512-1295-4272-9138-f99709370657