Commit graph

20 commits

Author SHA1 Message Date
Dominik Riebeling
4d2ce949b3 Use cutelogger for Rockbox Utility internal trace.
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-11-04 23:32:52 +01:00
Dominik Riebeling
2dab7c9775 Create Qt5 compatible version of trace event handler.
Qt5 deprecates the way this was done before.

Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0
2013-02-08 22:38:57 +01:00
Dominik Riebeling
7184980dca Update Qt includes for compatibility with Qt5.
Change-Id: Ibe400700f6bce0335a2975c6d635e10ae940f932
2013-01-27 20:11:17 +01:00
Dominik Riebeling
7263ccb105 Remove svn keyword lines from sources.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30806 a1c6a512-1295-4272-9138-f99709370657
2011-10-19 20:51:16 +00:00
Dominik Riebeling
2e3de70401 Rockbox Utility: listen to translation change events.
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-02 14:30:05 +00:00
Dominik Riebeling
d258c58937 Remove ugly RTL writing direction hack.
Instead of hard coding the languages to be rendered as RTL make it dependent on
a translation string. Translate the string LTR to RTL to switch to RTL layout.
This is equivalent to the handling done in the i18n example for Qt Jambi and
while not the best solution at least cleaner than hardcoded languages.

Update hebrew translation for this which is currently the only RTL translation.
lupdate all other translations.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26865 a1c6a512-1295-4272-9138-f99709370657
2010-06-15 21:14:11 +00:00
Dominik Riebeling
76d07bcd20 Fix layout special case for hebrew failing for system language (FS#11180).
For hebrew, a special case handles switching to RTL. Make this work if the
language selection is done by the system environment, i.e. no language has been
selected by the user previously.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25518 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 18:10:23 +00:00
Tomer Shalev
660dbd697d rbutil: Change layout to RTL if Hebrew language is used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23264 a1c6a512-1295-4272-9138-f99709370657
2009-10-19 17:38:46 +00:00
Dominik Wenger
426bfa8d03 rbutil: add a errorlog function into rbutil and the possibility to save a log if a error happens. (thanks to bluebrother for the trace functionality)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22329 a1c6a512-1295-4272-9138-f99709370657
2009-08-15 17:02:25 +00:00
Dominik Wenger
7470797b37 rbutil: include the qt accessible plugin into the mac bundle. (Enables screenreader support on macs)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18800 a1c6a512-1295-4272-9138-f99709370657
2008-10-13 17:19:45 +00:00
Dominik Riebeling
553469d8e2 Fix translator for Qt strings overwriting the application translator (FS#9268).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18275 a1c6a512-1295-4272-9138-f99709370657
2008-08-13 22:41:00 +00:00
Dominik Riebeling
d2241e4e48 Install a second translator for using the internal translation of Qt's widgets. Embedding them into the resources is still missing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18165 a1c6a512-1295-4272-9138-f99709370657
2008-07-31 19:26:58 +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
Dominik Riebeling
ee09cb7f0d Untie rbutil core logic from QtGui for cli:
- include QtCore instead of QtGui if possible
- replace qApp with QCoreApplication::instance(), as qApp is only defined for QtGui
- use QCoreApplication instead of QApplication for inherited static members.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16274 a1c6a512-1295-4272-9138-f99709370657
2008-02-10 18:25:49 +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
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
a3af8f1dce add project file for including accessibility plugin when building static binary. As there is no way to distinguish between static and dynamic builds you need to select the project file manually.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14432 a1c6a512-1295-4272-9138-f99709370657
2007-08-22 20:51:36 +00:00
Dominik Riebeling
edf54496ad small simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14260 a1c6a512-1295-4272-9138-f99709370657
2007-08-09 18:40:32 +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