summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/themesinstallwindow.cpp
AgeCommit message (Collapse)Author
2021-08-04Revert "rbutil: Remove done() signal from Themes Install window."Dominik Riebeling
The done() signal is acutally needed to indicate the installation being finished. Fixes installation being stuck after themes install. This reverts commit fb6840e57260b1da35924914d47731e06597afea. Change-Id: I9c1791e3ecfec992da40ff72b6969d80bbb0cd7f
2020-12-10rbutil: Fix encoding for themes info data.Dominik Riebeling
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-03rbutil: Rework and merge player and build server info handling.Dominik Riebeling
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 Riebeling
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-19rbutil: Remove done() signal from Themes Install window.Dominik Riebeling
This shadows a slot from the base class. Since it isn't used simply remove it. Change-Id: If2e524141b7ca4ab1083b4b713b2db3a0b25e6a6
2020-11-19rbutil: Modernize code to use C++11 nullptr.Dominik Riebeling
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
2020-11-14rbutil: Rework player configuration.Dominik Riebeling
Rename config entries and remove now unnecessary default value handling. Change-Id: I5c60ef9769fc01f45f45290dafffb80c1962e674
2020-11-14rbutil: Rework player configuration.Dominik Riebeling
- 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-10-29rbutil: More Qt6 compatibility.Dominik Riebeling
Qt6 doesn't contain QTextCodec anymore but instead provides it in the optional core5compat module. Change-Id: Ia45985a32df3826faf041981b8935c839946e5c9
2013-11-04Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling
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-01-27Update Qt includes for compatibility with Qt5.Dominik Riebeling
Change-Id: Ibe400700f6bce0335a2975c6d635e10ae940f932
2013-01-27Themes Window: don't set cache folder on each request.Dominik Riebeling
The Themes Window reuses the download object for getting preview images. Since the object is reused it isn't necessary to set the cache path on each network request. Change-Id: Ibc531e09ad19ede3cab7326d9230bd5188710d98
2013-01-13Remove Rockbox Utility Offline Mode.Dominik Riebeling
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-08-19Themes Window: do not download themes information multiple times.Dominik Riebeling
Change-Id: Ic8011ec3f45d4313436a5a49a3a0f604f8931840
2012-07-01Handle no selected themes properly.Dominik Riebeling
When installing themes without any themes selected show a notice in the log and continue instead of stopping. Change-Id: Ieeb03e4656b041ce1dda25b2c44b6b6f0aa0ca80
2012-06-26Separate select and install parts in themes install window.Dominik Riebeling
Allow using the themes installation dialog as selection dialog separately from installing themes. For this the installation is now triggered separately and can be told to not to do the installation on Ok button. In this case the dialog is selection only, and the Ok button is changed to Select. The installation itself is still done in the class but started by calling the install() method separately. Change-Id: I856db8204788302b2b539e6d8283f73cb354f033
2012-04-28Remove useless operation.Dominik Riebeling
Change-Id: I378be5202d96cf6b44fb448cb7e620465ff36961
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30806 a1c6a512-1295-4272-9138-f99709370657
2011-10-02Rockbox Utility: listen to translation change events.Dominik Riebeling
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
2010-06-06Move retrieval of revision and release numbers to RockboxInfo class.Dominik Riebeling
This allows reusing retrieval for upcoming distinguishing between release and current voice files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26636 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Transmit installed build revision and release version to theme site.Dominik Riebeling
To allow the theme site handling different versions of the theme syntax transmit the revision number and release number (whatever applies) to the server. A later update to the theme site can then return a theme list with themes compatible, and include the correct download links. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26625 a1c6a512-1295-4272-9138-f99709370657
2010-06-02Move constructing the themes info download link to rbutil.ini.Dominik Riebeling
Instead of constructing the download link with fixed script name put a template into the system info file. That way changing the download link doesn't require changing the code anymore. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26495 a1c6a512-1295-4272-9138-f99709370657
2010-04-02Move utils.cpp functions into separate class and split it up.Dominik Riebeling
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-01-24rbutil: split RbSettings. use Stable/unstable status from server.Dominik Wenger
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24331 a1c6a512-1295-4272-9138-f99709370657
2010-01-10Revert r24174 following the discussion on mailing-listTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24213 a1c6a512-1295-4272-9138-f99709370657
2010-01-03rbutil: Fix some messagesTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24174 a1c6a512-1295-4272-9138-f99709370657
2010-01-03rbutil: Explicitly set some widgets layout direction to LTRTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24173 a1c6a512-1295-4272-9138-f99709370657
2009-10-31FS#10748 - rbutil: Explicitly override GUI layout direction setting for some ↵Tomer Shalev
widgets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23441 a1c6a512-1295-4272-9138-f99709370657
2009-05-19Clean up and improve themes install window debug messages.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20989 a1c6a512-1295-4272-9138-f99709370657
2009-05-09rbutil: make RbSettings a static class. (FS#10183 with improvements)Dominik Wenger
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20890 a1c6a512-1295-4272-9138-f99709370657
2009-05-02Cleanup and un-gui ZipInstaller class:Dominik Riebeling
- Use signals for updating the progress logger from ZipInstaller class. - Move ZipInstaller class to base folder as it doesn't rely on QtGui anymore. - cleanup debugging output a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20845 a1c6a512-1295-4272-9138-f99709370657
2009-05-02Clean up ProgressLogger state handling:Dominik Riebeling
- use better names for member functions - don't emit aborted() when exiting a successful log git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20844 a1c6a512-1295-4272-9138-f99709370657
2009-04-29Completely rework RbSettings class.Dominik Riebeling
- 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-27Fix the includes I forgot when renaming the ZipInstaller class file.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20814 a1c6a512-1295-4272-9138-f99709370657
2009-04-27Qt always assumes ini files to use Latin1 encoding but the theme site uses ↵Dominik Riebeling
utf-8. Explicitly convert texts displayed to the user. Fixes non-ascii characters showing up incorrectly. Replace some HTML entities for the themes list as that isn't parsed as HTML. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20811 a1c6a512-1295-4272-9138-f99709370657
2009-04-27Trim description text before displaying and display newlines as line breaks.Dominik Riebeling
Trim themes titles before displaying in the list to remove stray whitespace. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20810 a1c6a512-1295-4272-9138-f99709370657
2009-04-21Invalidate preview image cache when updating to prevent a resize event ↵Dominik Riebeling
repainting the old image before the new image is downloaded. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20773 a1c6a512-1295-4272-9138-f99709370657
2009-03-31Rename ThemeInstall class files to actually match the class name.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20594 a1c6a512-1295-4272-9138-f99709370657