Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 292227
Collapse All | Expand All

(-)gtk-qt-engine/ChangeLog (-5 / +15 lines)
Lines 1-9 Link Here
1
Changes since 0.8
1
Changes since 1.1
2
2
3
Improvements:
3
Improvements:
4
 * Ported to Qt4
4
 * Set the environment variable GTK_QT_ENGINE_ACTIVE.  Style developers can
5
 check for the presence of this variable to change their behaviour depending
6
 on whether the their theme is being used by GTK.
7
 * Use KDE4's tooltip colors properly
8
 * Patch from Thomas Lübking - improve colors in Bespin
9
10
Bug fixes:
11
 * Fix a divide by 0 exception in styles where there are no scrollbar buttons
12
 (cloudcity)
13
 * Fix a crash in Firefox's open file dialog
5
14
6
i18n:
15
i18n:
7
 * Updated .pot
16
 * Korean translation by Park Shinjo
8
 * Included Czech translation by David Watzke
17
 * Chinese Simplified translation by nihui
9
 * Included Italian translation by Davide Madrisan
18
 * Brazilian portuguese translation by Gustavo Serra Scalet
19
 * Updated German translation from Jannick Kuhr
(-)gtk-qt-engine/kcm_gtk/CMakeLists.txt (-1 / +1 lines)
Lines 16-22 Link Here
16
16
17
KDE4_ADD_PLUGIN(kcm_gtk4 ${kcm_gtk4_SOURCES})
17
KDE4_ADD_PLUGIN(kcm_gtk4 ${kcm_gtk4_SOURCES})
18
18
19
INCLUDE_DIRECTORIES(${KDE4_INCLUDE_DIR})
19
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDE_DIR})
20
LINK_DIRECTORIES(${KDE4_LIB_DIR})
20
LINK_DIRECTORIES(${KDE4_LIB_DIR})
21
21
22
TARGET_LINK_LIBRARIES(kcm_gtk4 ${KDE4_KDECORE_LIBRARY} ${KDE4_KDEUI_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
22
TARGET_LINK_LIBRARIES(kcm_gtk4 ${KDE4_KDECORE_LIBRARY} ${KDE4_KDEUI_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
(-)gtk-qt-engine/po/CMakeLists.txt (-44 / +21 lines)
Lines 1-46 Link Here
1
# .po to .gmo stuff
1
FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt)
2
2
FILE(GLOB _pofiles *.po)
3
FILE(GLOB _pofiles *.po)
3
4
4
FOREACH(_file ${_pofiles})
5
FOREACH(_current_PO_FILE ${_pofiles})
5
	GET_FILENAME_COMPONENT(_file_we ${_file} NAME_WE)
6
   SET(_addToAll ALL)
6
	SET(_out "${_file_we}.gmo")
7
   SET(_installDest ${LOCALE_INSTALL_DIR})
7
	SET(_in "${_file_we}.po")
8
8
	
9
   GET_FILENAME_COMPONENT(_basename ${_current_PO_FILE} NAME_WE)
9
	ADD_CUSTOM_COMMAND(
10
      SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.gmo)
10
		OUTPUT ${_out}
11
   message(STATUS gmo file: ${_gmoFile})
11
		COMMAND ${MSGFMT_EXECUTABLE} -o ${_out} ${_in}
12
      add_custom_command(OUTPUT ${_gmoFile}
12
		DEPENDS ${_in}
13
            COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE}
13
	)
14
            WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
14
	
15
            DEPENDS ${_current_PO_FILE}
15
	INSTALL(
16
         )
16
		FILES ${_out}
17
17
		DESTINATION share/locale/${_file_we}/LC_MESSAGES/
18
   INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.gmo DESTINATION ${_installDest}/${_basename}/LC_MESSAGES/ RENAME gtkqtengine.mo)
18
		RENAME gtkqtengine.mo
19
19
	)
20
   LIST(APPEND _gmoFiles ${_gmoFile})
20
	
21
ENDFOREACH(_current_PO_FILE)
21
	SET(_outputs ${_outputs} ${_out})
22
22
ENDFOREACH(_file)
23
ADD_CUSTOM_TARGET(pofiles ${_addToAll} DEPENDS ${_gmoFiles})
23
24
ADD_CUSTOM_TARGET(
25
	pofiles ALL
26
	DEPENDS ${_outputs}
27
)
28
29
30
# Stuff to generate the .pot
31
FILE(GLOB POT_UIFILES ../kcm_gtk/*.ui)
32
SET(POT_SOURCES ../kcm_gtk/kcmgtk.cpp)
33
SET(POT_OUTPUT gtkqtengine.pot)
34
35
ADD_CUSTOM_COMMAND(
36
	OUTPUT _${POT_OUTPUT}
37
	COMMAND ${EXTRACTRC_PATH} ${POT_UIFILES} > rc.cpp
38
	COMMAND ${XGETTEXT_PATH} --foreign-user -C -ci18n -ki18n -ktr2i18n
39
		-kI18N_NOOP -kI18N_NOOP2 -kaliasLocale -o ${POT_OUTPUT} rc.cpp ${POT_SOURCES}
40
	COMMAND rm rc.cpp
41
)
42
43
ADD_CUSTOM_TARGET(
44
	extract_messages
45
	DEPENDS _${POT_OUTPUT}
46
)
(-)gtk-qt-engine/po/de.po (-105 / +218 lines)
Lines 4-151 Link Here
4
#
4
#
5
# Sebastian Roth <sebastian.roth@frm2.tum.de>, 2005.
5
# Sebastian Roth <sebastian.roth@frm2.tum.de>, 2005.
6
# Jannick Kuhr <jannick.kuhr@kdemail.net>, 2006.
6
# Jannick Kuhr <jannick.kuhr@kdemail.net>, 2006.
7
# Jannick Kuhr <opensource@kuhr.org>, 2008.
7
msgid ""
8
msgid ""
8
msgstr ""
9
msgstr ""
9
"Project-Id-Version: de\n"
10
"Project-Id-Version: de\n"
10
"Report-Msgid-Bugs-To: \n"
11
"Report-Msgid-Bugs-To: \n"
11
"POT-Creation-Date: 2005-02-12 20:48+0000\n"
12
"POT-Creation-Date: 2008-04-03 10:54+0100\n"
12
"PO-Revision-Date: 2006-07-07 17:07+0200\n"
13
"PO-Revision-Date: 2008-07-28 14:56+0200\n"
13
"Last-Translator: Jannick Kuhr <jannick.kuhr@kdemail.net>\n"
14
"Last-Translator: Jannick Kuhr <opensource@kuhr.org>\n"
14
"Language-Team: Deutsch <kde-i18n-de@kde.org>\n"
15
"Language-Team: German <kde-i18n-de@lists.kde.org>\n"
15
"MIME-Version: 1.0\n"
16
"MIME-Version: 1.0\n"
16
"Content-Type: text/plain; charset=UTF-8\n"
17
"Content-Type: text/plain; charset=UTF-8\n"
17
"Content-Transfer-Encoding: 8bit\n"
18
"Content-Transfer-Encoding: 8bit\n"
18
"X-Generator: KBabel 1.11.2\n"
19
"X-Generator: Lokalize 0.2\n"
20
"Plural-Forms: nplurals=2; plural=n != 1;\n"
19
21
20
#: _translatorinfo.cpp:1
22
#. i18n: tag string
21
msgid ""
23
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 13
22
"_: NAME OF TRANSLATORS\n"
24
#: rc.cpp:3
23
"Your names"
25
msgid "Dialog"
24
msgstr "Sebastian Roth, Jannick Kuhr"
26
msgstr "Dialog"
25
27
26
#: _translatorinfo.cpp:3
28
#. i18n: tag string
27
msgid ""
29
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 19
28
"_: EMAIL OF TRANSLATORS\n"
30
#: rc.cpp:6
29
"Your emails"
30
msgstr "sebastian.roth@frm2.tum.de, jannick.kuhr@kdemail.net"
31
32
#: kcmgtk.cpp:206
33
msgid "%1 (size %2)"
34
msgstr "%1 (Größe %2)"
35
36
#: kcmgtk.cpp:351
37
msgid "No Mozilla profiles found"
38
msgstr "Keine Mozilla-Profile gefunden"
39
40
#: kcmgtk.cpp:351
41
msgid "Could not load Mozilla profiles"
42
msgstr "Die Mozilla-Profile konnten nicht geladen werden"
43
44
#: kcmgtk.cpp:363 kcmgtk.cpp:407 kcmgtk.cpp:524
45
msgid "Mozilla profile"
46
msgstr "Mozilla-Profil"
47
48
#: kcmgtk.cpp:378
49
msgid "Thunderbird"
50
msgstr "Thunderbird"
51
52
#: kcmgtk.cpp:378
53
msgid "Firefox"
54
msgstr "Firefox"
55
56
#: kcmgtk.cpp:407
57
msgid ""
58
"Your Mozilla profile was updated sucessfully.  You must close and restart "
59
"all Firefox and Thunderbird windows for the changes to take effect"
60
msgstr "Das Mozilla-Profil wurde erfolgreich aktualisiert. Alle laufenden Firefox- und Thunderbird-Fenster müssen geschlossen und neu geöffnet werden, um die Änderungen zu übernehmen."
61
62
#: kcmgtk.cpp:524
63
msgid "Could not write to %1"
64
msgstr "%1 ließ sich nicht schreiben"
65
66
#: kcmgtkwidget.cpp:191 mozillaprofile.cpp:62
67
msgid "Form2"
68
msgstr "Form2"
69
70
#: kcmgtkwidget.cpp:192
71
msgid "GTK Styles"
31
msgid "GTK Styles"
72
msgstr "GTK-Stile"
32
msgstr "GTK-Stile"
73
33
74
#: kcmgtkwidget.cpp:193
34
#. i18n: tag string
35
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 45
36
#: rc.cpp:9
75
msgid "&Use my KDE style in GTK applications"
37
msgid "&Use my KDE style in GTK applications"
76
msgstr "KDE-Stil in GTK-Anwendungen verwenden"
38
msgstr "KDE-Stil in GTK-Anwendungen &verwenden"
77
39
78
#: kcmgtkwidget.cpp:194
40
#. i18n: tag string
41
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 52
42
#: rc.cpp:12
79
msgid "Use &another style:"
43
msgid "Use &another style:"
80
msgstr "Anderen Stil verwenden:"
44
msgstr "&Anderen Stil verwenden:"
81
45
82
#: kcmgtkwidget.cpp:195
46
#. i18n: tag string
47
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 84
48
#: rc.cpp:15
49
msgid ""
50
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
51
"\">\n"
52
"p, li { white-space: pre-wrap; }\n"
53
"</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; font-"
54
"weight:400; font-style:normal;\">\n"
55
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
56
"right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-"
57
"weight:600;\">Warning:</span> The Gtk-Qt theme engine is not installed. This "
58
"means you will not be able to use your KDE style in GTK applications.</p></"
59
"body></html>"
60
msgstr ""
61
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
62
"\">\n"
63
"p, li { white-space: pre-wrap; }\n"
64
"</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; font-"
65
"weight:400; font-style:normal;\">\n"
66
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
67
"right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-"
68
"weight:600;\">Warnung:</span> Die Gtk-Qt-Theme-Engine ist nicht installiert. Das bedeutet, dass "
69
"Sie Ihren KDE-Stil nicht in GTK-Anwendungen verwenden können.</p></"
70
"body></html>"
71
72
#. i18n: tag string
73
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 94
74
#: rc.cpp:21
83
msgid "Gtk-Qt theme engine homepage"
75
msgid "Gtk-Qt theme engine homepage"
84
msgstr "Homepage der Gtk-Qt-Theme-Engine"
76
msgstr "Homepage der Gtk-Qt-Theme-Engine"
85
77
86
#: kcmgtkwidget.cpp:196
78
#. i18n: tag string
87
msgid "http://gtk-qt.ecs.soton.ac.uk/"
79
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 97
88
msgstr "http://gtk-qt.ecs.soton.ac.uk/"
80
#: rc.cpp:24
89
81
msgid "http://gtk-qt.ecs.soton.ac.uk"
90
#: kcmgtkwidget.cpp:197
82
msgstr "http://gtk-qt.ecs.soton.ac.uk"
91
msgid ""
83
92
"<b>Warning:</b> The Gtk-Qt theme engine is not installed.  This means you "
84
#. i18n: tag string
93
"will not be able to use your KDE style in GTK applications."
85
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 104
94
msgstr "<b>Warnung:</b> Die Gtk-Qt-Theme-Engine ist nicht installiert. Das bedeutet ,dass Ihre KDE-Stile nicht in GTK-Anwendungen verwendet werden können."
86
#: rc.cpp:27
95
87
msgid "Change search paths..."
96
#: kcmgtkwidget.cpp:198
88
msgstr "Suchpfade ändern ..."
89
90
#. i18n: tag string
91
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 127
92
#: rc.cpp:30
97
msgid "GTK Fonts"
93
msgid "GTK Fonts"
98
msgstr "GTK-Schriftarten"
94
msgstr "GTK-Schriftarten"
99
95
100
#: kcmgtkwidget.cpp:199
96
#. i18n: tag string
101
msgid "Change..."
97
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 157
102
msgstr "Ändern ..."
98
#: rc.cpp:33
99
msgid "Use m&y KDE fonts in GTK applications"
100
msgstr "&KDE-Schriftarten in GTK-Anwendungen verwenden"
103
101
104
#: kcmgtkwidget.cpp:200
102
#. i18n: tag string
103
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 164
104
#: rc.cpp:36
105
msgid "Use another font:"
105
msgid "Use another font:"
106
msgstr "Eine andere Schriftart verwenden:"
106
msgstr "Eine andere Schriftart verwenden:"
107
107
108
#: kcmgtkwidget.cpp:201
108
#. i18n: tag string
109
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 171
110
#: rc.cpp:39
111
msgid "Change..."
112
msgstr "Ändern ..."
113
114
#. i18n: tag string
115
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 198
116
#: rc.cpp:42
109
msgid "The Quick Brown Fox Jumped Over The Lazy Dog"
117
msgid "The Quick Brown Fox Jumped Over The Lazy Dog"
110
msgstr "Falsches Üben von Xylophonmusik quält jeden größeren Zwerg"
118
msgstr "Falsches Üben von Xylophonmusik quält jeden größeren Zwerg"
111
119
112
#: kcmgtkwidget.cpp:202
120
#. i18n: tag string
113
msgid "Use m&y KDE fonts in GTK applications"
121
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 211
114
msgstr "KDE-Schriftarten in GTK-Anwendungen verwenden"
122
#: rc.cpp:45
115
116
#: kcmgtkwidget.cpp:203
117
msgid "Preview line 1"
118
msgstr "Vorschauzeile 1"
119
120
msgid "GTK Keyboard Shortcuts"
121
msgstr "GTK-Tastenkürzel"
122
123
msgid "Use Emacs-like key&board shortcuts for text editing"
124
msgstr "Emacs-Tastenkürzel zum Editieren von Text verwenden"
125
126
#: kcmgtkwidget.cpp:204
127
msgid "Firefox and Thunderbird"
123
msgid "Firefox and Thunderbird"
128
msgstr "Firefox und Thunderbird"
124
msgstr "Firefox und Thunderbird"
129
125
130
#: kcmgtkwidget.cpp:205
126
#. i18n: tag string
127
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 247
128
#: rc.cpp:48
131
msgid ""
129
msgid ""
132
"Scrollbar buttons may sometimes be displayed incorrectly in Firefox and "
130
"Scrollbar buttons may sometimes be displayed incorrectly in Firefox and "
133
"Thunderbird.  This can be fixed by installing some files into your Mozilla "
131
"Thunderbird.  This can be fixed by installing some files into your Mozilla "
134
"profile."
132
"profile."
135
msgstr ""
133
msgstr ""
136
"Die Knöpfe der Bildlaufleiste werden in Firefox und Thunderbird gelegentlich falsch dargestellt. Dies kann durch das Installieren einiger Dateien "
134
"Die Knöpfe der Bildlaufleiste werden in Firefox und Thunderbird gelegentlich "
137
"in das Mozilla-Profilverzeichnis behoben werden."
135
"falsch dargestellt. Dies kann durch das Installieren einiger Dateien in das "
138
136
"Mozilla-Profilverzeichnis behoben werden."
139
#: kcmgtkwidget.cpp:206
137
138
#. i18n: tag string
139
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 257
140
#: rc.cpp:51
140
msgid "I&nstall scrollbar fix..."
141
msgid "I&nstall scrollbar fix..."
141
msgstr "Korrektur für Bildlaufleiste installieren ..."
142
msgstr "Korrektur für Bildlaufleiste i&nstallieren ..."
143
144
#. i18n: tag string
145
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 286
146
#: rc.cpp:54
147
msgid ""
148
"Note that changes made here will only affect GTK applications when KDE is "
149
"running.  To change the styles and fonts used by applications in GNOME, use "
150
"the GNOME configuration tools."
151
msgstr ""
152
"Beachten Sie, dass die hier durchgeführten Änderungen GTK-Anwendungen nur betreffen, sofern sie "
153
"unter KDE ausgeführt werden. Verwenden Sie die Gnome-Einrichtungswerkzeuge, um die Stile und "
154
"Schriftarten von Anwendungen in Gnome zu verändern "
155
156
#. i18n: tag string
157
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 13
158
#: rc.cpp:57
159
msgid "Change search paths"
160
msgstr "Suchpfade ändern"
161
162
#. i18n: tag string
163
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 19
164
#: rc.cpp:60
165
msgid ""
166
"The control center module could not find the GTK-Qt theme engine in its list "
167
"of search paths.  If you have installed it elsewhere, you will need to add "
168
"the correct path to the list below."
169
msgstr ""
170
"Das Kontrollzentrum-Modul konnte die GTK-Qt-Theme-Engine nicht in der Liste der Suchpfade finden. "
171
"Wenn Sie sie an einem anderen Ort installiert haben, müssen Sie den korrekten Pfad der Liste "
172
"hinzufügen."
173
174
#. i18n: tag string
175
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 43
176
#: rc.cpp:63
177
msgid "Add"
178
msgstr "Hinzufügen"
179
180
#. i18n: tag string
181
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 56
182
#: rc.cpp:66
183
msgid "Remove"
184
msgstr "Entfernen"
185
186
#: ../kcm_gtk/kcmgtk.cpp:71
187
msgid "kcm_gtk4"
188
msgstr "kcm_gtk4"
189
190
#: ../kcm_gtk/kcmgtk.cpp:74
191
msgid "Change the appearance of GTK applications"
192
msgstr "Das Erscheinungsbild von GTK-Anwednungen ändern"
193
194
#: ../kcm_gtk/kcmgtk.cpp:109
195
msgid "%1 (size %2)"
196
msgstr "%1 (Größe %2)"
197
198
#: ../kcm_gtk/firefoxfix.cpp:48
199
msgid "No Mozilla profiles found"
200
msgstr "Keine Mozilla-Profile gefunden"
201
202
#: ../kcm_gtk/firefoxfix.cpp:48
203
msgid "Could not load Mozilla profiles"
204
msgstr "Die Mozilla-Profile konnten nicht geladen werden"
205
206
#: ../kcm_gtk/firefoxfix.cpp:55
207
msgid ""
208
"Your Mozilla profile was updated sucessfully.  You must close and restart "
209
"all Firefox and Thunderbird windows for the changes to take effect"
210
msgstr ""
211
"Das Mozilla-Profil wurde erfolgreich aktualisiert. Alle laufenden Firefox- "
212
"und Thunderbird-Fenster müssen geschlossen und neu geöffnet werden, um die "
213
"Änderungen zu übernehmen."
214
215
#: ../kcm_gtk/firefoxfix.cpp:55 ../kcm_gtk/firefoxfix.cpp:191
216
msgid "Mozilla profile"
217
msgstr "Mozilla-Profil"
218
219
#: ../kcm_gtk/firefoxfix.cpp:191
220
msgid "Could not write to %1"
221
msgstr "%1 ließ sich nicht schreiben"
222
223
#~ msgid ""
224
#~ "_: NAME OF TRANSLATORS\n"
225
#~ "Your names"
226
#~ msgstr "Sebastian Roth, Jannick Kuhr"
227
228
#~ msgid ""
229
#~ "_: EMAIL OF TRANSLATORS\n"
230
#~ "Your emails"
231
#~ msgstr "sebastian.roth@frm2.tum.de, jannick.kuhr@kdemail.net"
232
233
#~ msgid "Thunderbird"
234
#~ msgstr "Thunderbird"
235
236
#~ msgid "Firefox"
237
#~ msgstr "Firefox"
238
239
#~ msgid "Form2"
240
#~ msgstr "Form2"
241
242
#~ msgid ""
243
#~ "<b>Warning:</b> The Gtk-Qt theme engine is not installed.  This means you "
244
#~ "will not be able to use your KDE style in GTK applications."
245
#~ msgstr ""
246
#~ "<b>Warnung:</b> Die Gtk-Qt-Theme-Engine ist nicht installiert. Das "
247
#~ "bedeutet ,dass Ihre KDE-Stile nicht in GTK-Anwendungen verwendet werden "
248
#~ "können."
249
250
#~ msgid "Preview line 1"
251
#~ msgstr "Vorschauzeile 1"
252
253
#~ msgid "GTK Keyboard Shortcuts"
254
#~ msgstr "GTK-Tastenkürzel"
255
256
#~ msgid "Use Emacs-like key&board shortcuts for text editing"
257
#~ msgstr "Emacs-Tastenkürzel zum Editieren von Text verwenden"
142
258
143
#: mozillaprofile.cpp:38 mozillaprofile.cpp:64
259
#~ msgid "Profile"
144
msgid "Profile"
260
#~ msgstr "Profil"
145
msgstr "Profil"
146
147
#: mozillaprofile.cpp:63
148
msgid "Please select the profiles that you want to fix:"
149
msgstr "Bitte wählen Sie die zu korrigierenden Profile aus:"
150
261
262
#~ msgid "Please select the profiles that you want to fix:"
263
#~ msgstr "Bitte wählen Sie die zu korrigierenden Profile aus:"
151
264
(-)gtk-qt-engine/po/gtkqtengine.pot (-4 / +171 lines)
Lines 7-13 Link Here
7
msgstr ""
7
msgstr ""
8
"Project-Id-Version: PACKAGE VERSION\n"
8
"Project-Id-Version: PACKAGE VERSION\n"
9
"Report-Msgid-Bugs-To: \n"
9
"Report-Msgid-Bugs-To: \n"
10
"POT-Creation-Date: 2008-03-10 05:16+0000\n"
10
"POT-Creation-Date: 2008-04-03 10:54+0100\n"
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
Lines 15-28 Link Here
15
"Content-Type: text/plain; charset=CHARSET\n"
15
"Content-Type: text/plain; charset=CHARSET\n"
16
"Content-Transfer-Encoding: 8bit\n"
16
"Content-Transfer-Encoding: 8bit\n"
17
17
18
#: ../kcm_gtk/kcmgtk.cpp:70
18
#. i18n: tag string
19
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 13
20
#: rc.cpp:3
21
msgid "Dialog"
22
msgstr ""
23
24
#. i18n: tag string
25
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 19
26
#: rc.cpp:6
27
msgid "GTK Styles"
28
msgstr ""
29
30
#. i18n: tag string
31
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 45
32
#: rc.cpp:9
33
msgid "&Use my KDE style in GTK applications"
34
msgstr ""
35
36
#. i18n: tag string
37
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 52
38
#: rc.cpp:12
39
msgid "Use &another style:"
40
msgstr ""
41
42
#. i18n: tag string
43
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 84
44
#: rc.cpp:15
45
msgid ""
46
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
47
"\">\n"
48
"p, li { white-space: pre-wrap; }\n"
49
"</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; font-"
50
"weight:400; font-style:normal;\">\n"
51
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
52
"right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-"
53
"weight:600;\">Warning:</span> The Gtk-Qt theme engine is not installed. This "
54
"means you will not be able to use your KDE style in GTK applications.</p></"
55
"body></html>"
56
msgstr ""
57
58
#. i18n: tag string
59
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 94
60
#: rc.cpp:21
61
msgid "Gtk-Qt theme engine homepage"
62
msgstr ""
63
64
#. i18n: tag string
65
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 97
66
#: rc.cpp:24
67
msgid "http://gtk-qt.ecs.soton.ac.uk"
68
msgstr ""
69
70
#. i18n: tag string
71
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 104
72
#: rc.cpp:27
73
msgid "Change search paths..."
74
msgstr ""
75
76
#. i18n: tag string
77
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 127
78
#: rc.cpp:30
79
msgid "GTK Fonts"
80
msgstr ""
81
82
#. i18n: tag string
83
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 157
84
#: rc.cpp:33
85
msgid "Use m&y KDE fonts in GTK applications"
86
msgstr ""
87
88
#. i18n: tag string
89
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 164
90
#: rc.cpp:36
91
msgid "Use another font:"
92
msgstr ""
93
94
#. i18n: tag string
95
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 171
96
#: rc.cpp:39
97
msgid "Change..."
98
msgstr ""
99
100
#. i18n: tag string
101
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 198
102
#: rc.cpp:42
103
msgid "The Quick Brown Fox Jumped Over The Lazy Dog"
104
msgstr ""
105
106
#. i18n: tag string
107
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 211
108
#: rc.cpp:45
109
msgid "Firefox and Thunderbird"
110
msgstr ""
111
112
#. i18n: tag string
113
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 247
114
#: rc.cpp:48
115
msgid ""
116
"Scrollbar buttons may sometimes be displayed incorrectly in Firefox and "
117
"Thunderbird.  This can be fixed by installing some files into your Mozilla "
118
"profile."
119
msgstr ""
120
121
#. i18n: tag string
122
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 257
123
#: rc.cpp:51
124
msgid "I&nstall scrollbar fix..."
125
msgstr ""
126
127
#. i18n: tag string
128
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 286
129
#: rc.cpp:54
130
msgid ""
131
"Note that changes made here will only affect GTK applications when KDE is "
132
"running.  To change the styles and fonts used by applications in GNOME, use "
133
"the GNOME configuration tools."
134
msgstr ""
135
136
#. i18n: tag string
137
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 13
138
#: rc.cpp:57
139
msgid "Change search paths"
140
msgstr ""
141
142
#. i18n: tag string
143
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 19
144
#: rc.cpp:60
145
msgid ""
146
"The control center module could not find the GTK-Qt theme engine in its list "
147
"of search paths.  If you have installed it elsewhere, you will need to add "
148
"the correct path to the list below."
149
msgstr ""
150
151
#. i18n: tag string
152
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 43
153
#: rc.cpp:63
154
msgid "Add"
155
msgstr ""
156
157
#. i18n: tag string
158
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 56
159
#: rc.cpp:66
160
msgid "Remove"
161
msgstr ""
162
163
#: ../kcm_gtk/kcmgtk.cpp:71
19
msgid "kcm_gtk4"
164
msgid "kcm_gtk4"
20
msgstr ""
165
msgstr ""
21
166
22
#: ../kcm_gtk/kcmgtk.cpp:73
167
#: ../kcm_gtk/kcmgtk.cpp:74
23
msgid "Change the appearance of GTK applications"
168
msgid "Change the appearance of GTK applications"
24
msgstr ""
169
msgstr ""
25
170
26
#: ../kcm_gtk/kcmgtk.cpp:108
171
#: ../kcm_gtk/kcmgtk.cpp:109
27
msgid "%1 (size %2)"
172
msgid "%1 (size %2)"
28
msgstr ""
173
msgstr ""
174
175
#: ../kcm_gtk/firefoxfix.cpp:48
176
msgid "No Mozilla profiles found"
177
msgstr ""
178
179
#: ../kcm_gtk/firefoxfix.cpp:48
180
msgid "Could not load Mozilla profiles"
181
msgstr ""
182
183
#: ../kcm_gtk/firefoxfix.cpp:55
184
msgid ""
185
"Your Mozilla profile was updated sucessfully.  You must close and restart "
186
"all Firefox and Thunderbird windows for the changes to take effect"
187
msgstr ""
188
189
#: ../kcm_gtk/firefoxfix.cpp:55 ../kcm_gtk/firefoxfix.cpp:191
190
msgid "Mozilla profile"
191
msgstr ""
192
193
#: ../kcm_gtk/firefoxfix.cpp:191
194
msgid "Could not write to %1"
195
msgstr ""
(-)gtk-qt-engine/po/ko.po (+146 lines)
Line 0 Link Here
1
# translation of gtk-engine-kde4 to Korean.
2
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
# This file is distributed under the same license as the PACKAGE package.
4
#
5
# Park Shinjo <peremen@gmail.com>, 2008.
6
msgid ""
7
msgstr ""
8
"Project-Id-Version: ko\n"
9
"Report-Msgid-Bugs-To: \n"
10
"POT-Creation-Date: 2005-02-12 20:48+0000\n"
11
"PO-Revision-Date: 2008-03-23 00:54+0900\n"
12
"Last-Translator: Park Shinjo <peremen@gmail.com>\n"
13
"Language-Team: Korean <peremen@gmail.com>\n"
14
"MIME-Version: 1.0\n"
15
"Content-Type: text/plain; charset=UTF-8\n"
16
"Content-Transfer-Encoding: 8bit\n"
17
18
#: _translatorinfo.cpp:1
19
msgid ""
20
"_: NAME OF TRANSLATORS\n"
21
"Your names"
22
msgstr "Park Shinjo"
23
24
#: _translatorinfo.cpp:3
25
msgid ""
26
"_: EMAIL OF TRANSLATORS\n"
27
"Your emails"
28
msgstr "peremen@gmail.com"
29
30
#: kcmgtk.cpp:206
31
msgid "%1 (size %2)"
32
msgstr "%1 (크기 %2)"
33
34
#: kcmgtk.cpp:351
35
msgid "No Mozilla profiles found"
36
msgstr "Mozilla 프로필을 찾을 수 없음"
37
38
#: kcmgtk.cpp:351
39
msgid "Could not load Mozilla profiles"
40
msgstr "Mozilla 프로필을 불러올 수 없음"
41
42
#: kcmgtk.cpp:363 kcmgtk.cpp:407 kcmgtk.cpp:524
43
msgid "Mozilla profile"
44
msgstr "Mozilla 프로필"
45
46
#: kcmgtk.cpp:378
47
msgid "Thunderbird"
48
msgstr "Thunderbird"
49
50
#: kcmgtk.cpp:378
51
msgid "Firefox"
52
msgstr "Firefox"
53
54
#: kcmgtk.cpp:407
55
msgid ""
56
"Your Mozilla profile was updated sucessfully.  You must close and restart "
57
"all Firefox and Thunderbird windows for the changes to take effect"
58
msgstr "Mozilla 프로필을 업데이트하였습니다. 모든 Firefox와 Thunderbird를"
59
"종료한 다음 다시 시작해야 효과가 적용됩니다."
60
61
#: kcmgtk.cpp:524
62
msgid "Could not write to %1"
63
msgstr "%1에 쓸 수 없음"
64
65
#: kcmgtkwidget.cpp:191 mozillaprofile.cpp:62
66
msgid "Form2"
67
msgstr "Form2"
68
69
#: kcmgtkwidget.cpp:192
70
msgid "GTK Styles"
71
msgstr "GTK 스타일"
72
73
#: kcmgtkwidget.cpp:193
74
msgid "Use my KDE style in GTK applications"
75
msgstr "내 KDE 스타일을 GTK 프로그램에서 사용하기"
76
77
#: kcmgtkwidget.cpp:194
78
msgid "Use another style:"
79
msgstr "다른 스타일 사용하기"
80
81
#: kcmgtkwidget.cpp:195
82
msgid "Gtk-Qt theme engine homepage"
83
msgstr "Gtk-Qt 테마 엔진 홈페이지"
84
85
#: kcmgtkwidget.cpp:196
86
msgid "http://www.freedesktop.org/wiki/Software_2fgtk_2dqt"
87
msgstr "http://www.freedesktop.org/wiki/Software_2fgtk_2dqt"
88
89
#: kcmgtkwidget.cpp:197
90
msgid ""
91
"<b>Warning:</b> The Gtk-Qt theme engine is not installed.  This means you "
92
"will not be able to use your KDE style in GTK applications."
93
msgstr ""
94
"<b>경고:</b> Gtk-Qt 테마 엔진이 설치되지 않았습니다. "
95
"GTK 프로그램에서 KDE 스타일을 사용할 수 없습니다."
96
97
#: kcmgtkwidget.cpp:198
98
msgid "GTK Fonts"
99
msgstr "GTK 글꼴"
100
101
#: kcmgtkwidget.cpp:199
102
msgid "Change..."
103
msgstr "바꾸기..."
104
105
#: kcmgtkwidget.cpp:200
106
msgid "Use another font:"
107
msgstr "다른 글꼴 사용하기:"
108
109
#: kcmgtkwidget.cpp:201
110
msgid "The Quick Brown Fox Jumped Over The Lazy Dog"
111
msgstr "키스의 고유 조건은 입술끼리 만나야 되고 특별한 요령은 필요치 않다."
112
113
#: kcmgtkwidget.cpp:202
114
msgid "Use my KDE fonts in GTK applications"
115
msgstr "내 KDE 글꼴을 GTK 프로그램에서 사용하기"
116
117
#: kcmgtkwidget.cpp:203
118
msgid "Preview line 1"
119
msgstr "미리 보기 줄 1"
120
121
#: kcmgtkwidget.cpp:204
122
msgid "Firefox and Thunderbird"
123
msgstr "Firefox와 Thunderbird"
124
125
#: kcmgtkwidget.cpp:205
126
msgid ""
127
"Scrollbar buttons may sometimes be displayed incorrectly in Firefox and "
128
"Thunderbird.  This can be fixed by installing some files into your Mozilla "
129
"profile."
130
msgstr ""
131
"Firefox와 Thunderbird에서 때때로 스크롤바 단추들이 잘못 표시될 수 "
132
"있습니다. 이는 Mozilla 프로필에 몇몇 파일을 추가해서 해결할 수 있"
133
"습니다."
134
135
#: kcmgtkwidget.cpp:206
136
msgid "Install scrollbar fix..."
137
msgstr "스크롤바 픽스 설치하기..."
138
139
#: mozillaprofile.cpp:38 mozillaprofile.cpp:64
140
msgid "Profile"
141
msgstr "프로필"
142
143
#: mozillaprofile.cpp:63
144
msgid "Please select the profiles that you want to fix:"
145
msgstr "픽스를 설치할 프로필을 선택하십시오:"
146
(-)gtk-qt-engine/po/pt_BR.po (+218 lines)
Line 0 Link Here
1
# translation of pt_BR.po to
2
# translation of gtkqtengine.po to
3
# This file is put in the public domain.
4
#
5
# Gustavo Serra Scalet <gut@las.ic.unicamp.br>, 2008.
6
msgid ""
7
msgstr ""
8
"Project-Id-Version: pt_BR\n"
9
"Report-Msgid-Bugs-To: \n"
10
"POT-Creation-Date: 2008-04-03 10:54+0100\n"
11
"PO-Revision-Date: 2008-06-04 17:58-0300\n"
12
"Last-Translator: Gustavo Serra Scalet <gut@las.ic.unicamp.br>\n"
13
"Language-Team: \n"
14
"MIME-Version: 1.0\n"
15
"Content-Type: text/plain; charset=UTF-8\n"
16
"Content-Transfer-Encoding: 8bit\n"
17
"X-Generator: KBabel 1.11.4\n"
18
"Plural-Forms:  nplurals=2; plural=(n > 1);\n"
19
20
#. i18n: tag string
21
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 13
22
#: rc.cpp:3
23
msgid "Dialog"
24
msgstr "Diálogo"
25
26
#. i18n: tag string
27
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 19
28
#: rc.cpp:6
29
msgid "GTK Styles"
30
msgstr "Estilos GTK"
31
32
#. i18n: tag string
33
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 45
34
#: rc.cpp:9
35
msgid "&Use my KDE style in GTK applications"
36
msgstr "&Use meus estilos KDE nos programas GTK"
37
38
#. i18n: tag string
39
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 52
40
#: rc.cpp:12
41
msgid "Use &another style:"
42
msgstr "Use &outro estilo:"
43
44
#. i18n: tag string
45
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 84
46
#: rc.cpp:15
47
msgid ""
48
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
49
"\">\n"
50
"p, li { white-space: pre-wrap; }\n"
51
"</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; font-"
52
"weight:400; font-style:normal;\">\n"
53
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
54
"right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-"
55
"weight:600;\">Warning:</span> The Gtk-Qt theme engine is not installed. This "
56
"means you will not be able to use your KDE style in GTK applications.</p></"
57
"body></html>"
58
msgstr ""
59
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
60
"\">\n"
61
"p, li { white-space: pre-wrap; }\n"
62
"</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; font-"
63
"weight:400; font-style:normal;\">\n"
64
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
65
"right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-"
66
"weight:600;\">Aviso:</span> O Gtk-Qt theme engine não está instalado. Isso "
67
"siginifica que você não poderá usar seus estilos KDE nos programas GTK. < /"
68
"p> </body></html>"
69
70
#. i18n: tag string
71
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 94
72
#: rc.cpp:21
73
msgid "Gtk-Qt theme engine homepage"
74
msgstr "Página do Gtk-Qt theme engine"
75
76
#. i18n: tag string
77
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 97
78
#: rc.cpp:24
79
msgid "http://gtk-qt.ecs.soton.ac.uk"
80
msgstr "http://gtk-qt.ecs.soton.ac.uk"
81
82
#. i18n: tag string
83
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 104
84
#: rc.cpp:27
85
msgid "Change search paths..."
86
msgstr "Trocar caminhos de busca"
87
88
#. i18n: tag string
89
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 127
90
#: rc.cpp:30
91
msgid "GTK Fonts"
92
msgstr "Fontes GTK"
93
94
#. i18n: tag string
95
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 157
96
#: rc.cpp:33
97
msgid "Use m&y KDE fonts in GTK applications"
98
msgstr "Use minhas &fontes KDE nos programas GTK"
99
100
#. i18n: tag string
101
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 164
102
#: rc.cpp:36
103
msgid "Use another font:"
104
msgstr "Usar outra fonte:"
105
106
#. i18n: tag string
107
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 171
108
#: rc.cpp:39
109
msgid "Change..."
110
msgstr "Modificar..."
111
112
#. i18n: tag string
113
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 198
114
#: rc.cpp:42
115
msgid "The Quick Brown Fox Jumped Over The Lazy Dog"
116
msgstr "Frase de exemplo da área de fontes"
117
118
#. i18n: tag string
119
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 211
120
#: rc.cpp:45
121
msgid "Firefox and Thunderbird"
122
msgstr "Firefox e Thunderbird"
123
124
#. i18n: tag string
125
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 247
126
#: rc.cpp:48
127
msgid ""
128
"Scrollbar buttons may sometimes be displayed incorrectly in Firefox and "
129
"Thunderbird.  This can be fixed by installing some files into your Mozilla "
130
"profile."
131
msgstr ""
132
"Botões das barras de rolagens podem ser mostrados incorretamente no Firefox "
133
"e Thunderbird.  Isso pode ser arrumado instalando alguns arquivos no seu "
134
"perfil do Mozilla."
135
136
#. i18n: tag string
137
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 257
138
#: rc.cpp:51
139
msgid "I&nstall scrollbar fix..."
140
msgstr "I&nstalar correção de barra de rolagem."
141
142
#. i18n: tag string
143
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 286
144
#: rc.cpp:54
145
msgid ""
146
"Note that changes made here will only affect GTK applications when KDE is "
147
"running.  To change the styles and fonts used by applications in GNOME, use "
148
"the GNOME configuration tools."
149
msgstr ""
150
"Saiba que mudanças feitas aqui irão apenas afetar os programas GTK quando o "
151
"KDE estiver sendo executado.  Para modificar os estilos e fontes utilizados "
152
"pelos programas no GNOME, use as ferramentas de configurações do GNOME."
153
154
#. i18n: tag string
155
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 13
156
#: rc.cpp:57
157
msgid "Change search paths"
158
msgstr "Trocar caminhos de busca"
159
160
#. i18n: tag string
161
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 19
162
#: rc.cpp:60
163
msgid ""
164
"The control center module could not find the GTK-Qt theme engine in its list "
165
"of search paths.  If you have installed it elsewhere, you will need to add "
166
"the correct path to the list below."
167
msgstr ""
168
"O módulo da central de controlenão pode achar o GTK-Qt theme engine na sua "
169
"lista de caminhos de buscas.  Se você instalou em outro lugar, você "
170
"precisará incluir o caminho correto na lista abaixo."
171
172
#. i18n: tag string
173
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 43
174
#: rc.cpp:63
175
msgid "Add"
176
msgstr "Incluir"
177
178
#. i18n: tag string
179
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 56
180
#: rc.cpp:66
181
msgid "Remove"
182
msgstr "Remover"
183
184
#: ../kcm_gtk/kcmgtk.cpp:71
185
msgid "kcm_gtk4"
186
msgstr "kcm_gtk4"
187
188
#: ../kcm_gtk/kcmgtk.cpp:74
189
msgid "Change the appearance of GTK applications"
190
msgstr "Trocar a aparência dos programas GTK"
191
192
#: ../kcm_gtk/kcmgtk.cpp:109
193
msgid "%1 (size %2)"
194
msgstr "%1 (tamanho %2)"
195
196
#: ../kcm_gtk/firefoxfix.cpp:48
197
msgid "No Mozilla profiles found"
198
msgstr "Nenhum perfil Mozilla encontrado"
199
200
#: ../kcm_gtk/firefoxfix.cpp:48
201
msgid "Could not load Mozilla profiles"
202
msgstr "Não pode carregar perfis Mozilla"
203
204
#: ../kcm_gtk/firefoxfix.cpp:55
205
msgid ""
206
"Your Mozilla profile was updated sucessfully.  You must close and restart "
207
"all Firefox and Thunderbird windows for the changes to take effect"
208
msgstr ""
209
"Seu perfil Mozilla foi atualizado com sucesso.  Você deve fechar e reiniciar "
210
"todas as janelas Firefox e Thunderbird para que as mudanças façam efeito"
211
212
#: ../kcm_gtk/firefoxfix.cpp:55 ../kcm_gtk/firefoxfix.cpp:191
213
msgid "Mozilla profile"
214
msgstr "Perfil Mozilla"
215
216
#: ../kcm_gtk/firefoxfix.cpp:191
217
msgid "Could not write to %1"
218
msgstr "Não pode escrever em %1"
(-)gtk-qt-engine/po/zh_cn.po (+205 lines)
Line 0 Link Here
1
# translation of gtkqtengine.po to 简体中文
2
# This file is put in the public domain.
3
#
4
# Ni Hui <shuizhuyuanluo@126.com>, 2008.
5
msgid ""
6
msgstr ""
7
"Project-Id-Version: gtkqtengine\n"
8
"Report-Msgid-Bugs-To: \n"
9
"POT-Creation-Date: 2008-04-03 10:54+0100\n"
10
"PO-Revision-Date: 2008-06-05 13:31+0800\n"
11
"Last-Translator: Ni Hui <shuizhuyuanluo@126.com>\n"
12
"Language-Team: 简体中文 <kde-china@kde.org>\n"
13
"MIME-Version: 1.0\n"
14
"Content-Type: text/plain; charset=UTF-8\n"
15
"Content-Transfer-Encoding: 8bit\n"
16
"X-Generator: KBabel 1.11.4\n"
17
18
#. i18n: tag string
19
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 13
20
#: rc.cpp:3
21
msgid "Dialog"
22
msgstr "对话框"
23
24
#. i18n: tag string
25
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 19
26
#: rc.cpp:6
27
msgid "GTK Styles"
28
msgstr "GTK 风格"
29
30
#. i18n: tag string
31
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 45
32
#: rc.cpp:9
33
msgid "&Use my KDE style in GTK applications"
34
msgstr "在 GTK 应用程序中使用我的 KDE 风格(&U)"
35
36
#. i18n: tag string
37
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 52
38
#: rc.cpp:12
39
msgid "Use &another style:"
40
msgstr "使用其它风格(&A):"
41
42
#. i18n: tag string
43
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 84
44
#: rc.cpp:15
45
msgid ""
46
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
47
"\">\n"
48
"p, li { white-space: pre-wrap; }\n"
49
"</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; font-"
50
"weight:400; font-style:normal;\">\n"
51
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
52
"right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-"
53
"weight:600;\">Warning:</span> The Gtk-Qt theme engine is not installed. This "
54
"means you will not be able to use your KDE style in GTK applications.</p></"
55
"body></html>"
56
msgstr ""
57
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
58
"\">\n"
59
"p, li { white-space: pre-wrap; }\n"
60
"</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; font-"
61
"weight:400; font-style:normal;\">\n"
62
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
63
"right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-"
64
"weight:600;\">警告:</span> 没有安装 Gtk-Qt 主题引擎。这意味着您无法在 GTK 应用程序中使用您的 KDE 风格。</p></"
65
"body></html>"
66
67
#. i18n: tag string
68
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 94
69
#: rc.cpp:21
70
msgid "Gtk-Qt theme engine homepage"
71
msgstr "Gtk-Qt 主题引擎主页"
72
73
#. i18n: tag string
74
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 97
75
#: rc.cpp:24
76
msgid "http://gtk-qt.ecs.soton.ac.uk"
77
msgstr "http://gtk-qt.ecs.soton.ac.uk"
78
79
#. i18n: tag string
80
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 104
81
#: rc.cpp:27
82
msgid "Change search paths..."
83
msgstr "更改搜索路径..."
84
85
#. i18n: tag string
86
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 127
87
#: rc.cpp:30
88
msgid "GTK Fonts"
89
msgstr "GTK 字体"
90
91
#. i18n: tag string
92
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 157
93
#: rc.cpp:33
94
msgid "Use m&y KDE fonts in GTK applications"
95
msgstr "在 GTK 应用程序中使用我的 KDE 字体(&Y)"
96
97
#. i18n: tag string
98
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 164
99
#: rc.cpp:36
100
msgid "Use another font:"
101
msgstr "使用其它字体:"
102
103
#. i18n: tag string
104
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 171
105
#: rc.cpp:39
106
msgid "Change..."
107
msgstr "更改..."
108
109
#. i18n: tag string
110
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 198
111
#: rc.cpp:42
112
msgid "The Quick Brown Fox Jumped Over The Lazy Dog"
113
msgstr "The Quick Brown Fox Jumped Over The Lazy Dog 欲穷千里目 更上一层楼"
114
115
#. i18n: tag string
116
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 211
117
#: rc.cpp:45
118
msgid "Firefox and Thunderbird"
119
msgstr "Firefox 和 Thunderbird"
120
121
#. i18n: tag string
122
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 247
123
#: rc.cpp:48
124
msgid ""
125
"Scrollbar buttons may sometimes be displayed incorrectly in Firefox and "
126
"Thunderbird.  This can be fixed by installing some files into your Mozilla "
127
"profile."
128
msgstr "在 Firefox 和 Thunderbird 中的滚动条按钮有时候显示不正确。这可以通过在您的 Mozilla 配置文件中安装一些文件来修复它。"
129
130
#. i18n: tag string
131
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 257
132
#: rc.cpp:51
133
msgid "I&nstall scrollbar fix..."
134
msgstr "安装滚动条修复(&N)..."
135
136
#. i18n: tag string
137
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/kcmgtkwidget.ui line 286
138
#: rc.cpp:54
139
msgid ""
140
"Note that changes made here will only affect GTK applications when KDE is "
141
"running.  To change the styles and fonts used by applications in GNOME, use "
142
"the GNOME configuration tools."
143
msgstr "注意,在此作出的更改仅会在 KDE 运行时影响到 GTK 应用程序。 要更改 GNOME 中应用程序所使用的风格和字体,请使用 GNOME 配置工具。"
144
145
#. i18n: tag string
146
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 13
147
#: rc.cpp:57
148
msgid "Change search paths"
149
msgstr "更改搜索路径"
150
151
#. i18n: tag string
152
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 19
153
#: rc.cpp:60
154
msgid ""
155
"The control center module could not find the GTK-Qt theme engine in its list "
156
"of search paths.  If you have installed it elsewhere, you will need to add "
157
"the correct path to the list below."
158
msgstr "控制中心模块无法在其搜索路径列表中找到 GTK-Qt 主题引擎。 如果您已将其安装于某个位置,您需要将正确的路径添加到下方的列表中。"
159
160
#. i18n: tag string
161
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 43
162
#: rc.cpp:63
163
msgid "Add"
164
msgstr "添加"
165
166
#. i18n: tag string
167
#. i18n: file /home/david/projects/gtk-qt/trunk/gtk-qt-engine/po/../kcm_gtk/searchpaths.ui line 56
168
#: rc.cpp:66
169
msgid "Remove"
170
msgstr "删除"
171
172
#: ../kcm_gtk/kcmgtk.cpp:71
173
msgid "kcm_gtk4"
174
msgstr "kcm_gtk4"
175
176
#: ../kcm_gtk/kcmgtk.cpp:74
177
msgid "Change the appearance of GTK applications"
178
msgstr "更改 GTK 应用程序的外观"
179
180
#: ../kcm_gtk/kcmgtk.cpp:109
181
msgid "%1 (size %2)"
182
msgstr "%1 (大小 %2)"
183
184
#: ../kcm_gtk/firefoxfix.cpp:48
185
msgid "No Mozilla profiles found"
186
msgstr "未找到 Mozilla 配置文件"
187
188
#: ../kcm_gtk/firefoxfix.cpp:48
189
msgid "Could not load Mozilla profiles"
190
msgstr "无法装入 Mozilla 配置文件"
191
192
#: ../kcm_gtk/firefoxfix.cpp:55
193
msgid ""
194
"Your Mozilla profile was updated sucessfully.  You must close and restart "
195
"all Firefox and Thunderbird windows for the changes to take effect"
196
msgstr "您的 Mozilla 配置文件已经成功更新。 您必须关闭并重启动所有的 Firefox 和 Thunderbird 窗口以使更改生效"
197
198
#: ../kcm_gtk/firefoxfix.cpp:55 ../kcm_gtk/firefoxfix.cpp:191
199
msgid "Mozilla profile"
200
msgstr "Mozilla 配置文件"
201
202
#: ../kcm_gtk/firefoxfix.cpp:191
203
msgid "Could not write to %1"
204
msgstr "无法写入 %1"
205
(-)gtk-qt-engine/src/colormapper.cpp (-11 / +16 lines)
Lines 25-48 Link Here
25
#include <QToolTip>
25
#include <QToolTip>
26
26
27
27
28
QPalette ColorMapper::mapGtkToQt(GtkStyle* style)
28
QPalette ColorMapper::mapGtkToQt(GtkStyle* style, GtkStateType state, bool isButton)
29
{
29
{
30
	QPalette palette(QApplication::palette());
30
	QPalette palette(QApplication::palette());
31
	
31
	
32
	mapGtkToQt(style->fg[GTK_STATE_NORMAL],   &palette, QPalette::Active, QPalette::WindowText);
32
	mapGtkToQt(style->fg[GTK_STATE_NORMAL],   &palette, QPalette::Active, QPalette::WindowText);
33
	mapGtkToQt(style->bg[GTK_STATE_NORMAL],   &palette, QPalette::Active, QPalette::Window);
34
	mapGtkToQt(style->text[GTK_STATE_NORMAL], &palette, QPalette::Active, QPalette::Text);
35
	mapGtkToQt(style->base[GTK_STATE_NORMAL], &palette, QPalette::Active, QPalette::Base);
33
	mapGtkToQt(style->base[GTK_STATE_NORMAL], &palette, QPalette::Active, QPalette::Base);
36
	mapGtkToQt(style->fg[GTK_STATE_SELECTED], &palette, QPalette::Active, QPalette::HighlightedText);
34
	mapGtkToQt(style->fg[GTK_STATE_SELECTED], &palette, QPalette::Active, QPalette::HighlightedText);
37
	mapGtkToQt(style->bg[GTK_STATE_SELECTED], &palette, QPalette::Active, QPalette::Highlight);
35
	mapGtkToQt(style->bg[GTK_STATE_SELECTED], &palette, QPalette::Active, QPalette::Highlight);
38
	
36
	
39
	mapGtkToQt(style->fg[GTK_STATE_INSENSITIVE],   &palette, QPalette::Disabled, QPalette::WindowText);
37
	mapGtkToQt(style->fg[GTK_STATE_INSENSITIVE],   &palette, QPalette::Disabled, QPalette::WindowText);
40
	mapGtkToQt(style->bg[GTK_STATE_INSENSITIVE],   &palette, QPalette::Disabled, QPalette::Window);
41
	mapGtkToQt(style->text[GTK_STATE_INSENSITIVE], &palette, QPalette::Disabled, QPalette::Text);
42
	mapGtkToQt(style->base[GTK_STATE_INSENSITIVE], &palette, QPalette::Disabled, QPalette::Base);
38
	mapGtkToQt(style->base[GTK_STATE_INSENSITIVE], &palette, QPalette::Disabled, QPalette::Base);
43
	mapGtkToQt(style->fg[GTK_STATE_INSENSITIVE],   &palette, QPalette::Disabled, QPalette::HighlightedText);
39
	mapGtkToQt(style->fg[GTK_STATE_INSENSITIVE],   &palette, QPalette::Disabled, QPalette::HighlightedText);
44
	mapGtkToQt(style->bg[GTK_STATE_INSENSITIVE],   &palette, QPalette::Disabled, QPalette::Highlight);
40
	mapGtkToQt(style->bg[GTK_STATE_INSENSITIVE],   &palette, QPalette::Disabled, QPalette::Highlight);
45
	
41
	
42
	if (isButton)
43
	{
44
		mapGtkToQt(style->bg[state], &palette, QPalette::Active, QPalette::Button);
45
		mapGtkToQt(style->fg[state], &palette, QPalette::Active, QPalette::ButtonText);
46
		mapGtkToQt(style->bg[GTK_STATE_INSENSITIVE], &palette, QPalette::Disabled, QPalette::Button);
47
		mapGtkToQt(style->fg[GTK_STATE_INSENSITIVE], &palette, QPalette::Disabled, QPalette::ButtonText);
48
	}
49
	else
50
	{
51
		mapGtkToQt(style->bg[GTK_STATE_NORMAL], &palette, QPalette::Active, QPalette::Window);
52
		mapGtkToQt(style->fg[GTK_STATE_NORMAL], &palette, QPalette::Active, QPalette::Text);
53
		mapGtkToQt(style->bg[GTK_STATE_INSENSITIVE], &palette, QPalette::Disabled, QPalette::Window);
54
		mapGtkToQt(style->fg[GTK_STATE_INSENSITIVE], &palette, QPalette::Disabled, QPalette::Text);
55
	}
56
	
46
	return palette;
57
	return palette;
47
}
58
}
48
59
Lines 52-63 Link Here
52
	
63
	
53
	palette->setColor(group, role, qcolor);
64
	palette->setColor(group, role, qcolor);
54
	
65
	
55
	// Make button roles the same as normal roles
56
	if (role == QPalette::Window)
57
		palette->setColor(group, QPalette::Button, qcolor);
58
	if (role == QPalette::WindowText)
59
		palette->setColor(group, QPalette::ButtonText, qcolor);
60
	
61
	// The inactive group should be set the same as the active group
66
	// The inactive group should be set the same as the active group
62
	if (group == QPalette::Active)
67
	if (group == QPalette::Active)
63
		mapGtkToQt(color, palette, QPalette::Inactive, role);
68
		mapGtkToQt(color, palette, QPalette::Inactive, role);
(-)gtk-qt-engine/src/colormapper.h (-1 / +1 lines)
Lines 29-35 Link Here
29
class ColorMapper
29
class ColorMapper
30
{
30
{
31
public:
31
public:
32
	static QPalette mapGtkToQt(GtkStyle* style);
32
	static QPalette mapGtkToQt(GtkStyle* style, GtkStateType state, bool isButton);
33
33
34
private:
34
private:
35
	ColorMapper() {}
35
	ColorMapper() {}
(-)gtk-qt-engine/src/engine.cpp (-27 / +33 lines)
Lines 26-33 Link Here
26
#include "rcproperties.h"
26
#include "rcproperties.h"
27
27
28
// Creates an offscreen pixmap of the right size and opens a QPainter on it.
28
// Creates an offscreen pixmap of the right size and opens a QPainter on it.
29
#define GTK_QT_SETUP(OptionClassName) \
29
#define GTK_QT_SETUP(OptionClassName, isButton) \
30
	QPalette palette(ColorMapper::mapGtkToQt(m_style)); \
30
	QPalette palette(ColorMapper::mapGtkToQt(m_style, m_state, isButton)); \
31
	QPixmap offscreenPixmap; \
31
	QPixmap offscreenPixmap; \
32
	if (m_fillPixmap) \
32
	if (m_fillPixmap) \
33
		offscreenPixmap = QPixmap(*m_fillPixmap); \
33
		offscreenPixmap = QPixmap(*m_fillPixmap); \
Lines 110-116 Link Here
110
	    commandLine.contains("metacity") ||
110
	    commandLine.contains("metacity") ||
111
	    commandLine.contains("xfwm4") ||
111
	    commandLine.contains("xfwm4") ||
112
	    commandLine.contains("gnome-settings-daemon") ||
112
	    commandLine.contains("gnome-settings-daemon") ||
113
	    commandLine.contains("gnome-panel"))
113
	    commandLine.contains("gnome-panel") ||
114
	    commandLine.contains("nspluginviewer"))
114
	{
115
	{
115
		m_enabled = false;
116
		m_enabled = false;
116
		qDebug() << "Disabling the GTK-Qt Theme Engine for" << commandLine;
117
		qDebug() << "Disabling the GTK-Qt Theme Engine for" << commandLine;
Lines 126-131 Link Here
126
	if (!m_enabled)
127
	if (!m_enabled)
127
		return;
128
		return;
128
	
129
	
130
	// Styles can check for this if they need to enable workarounds for gtk-qt
131
	setenv("GTK_QT_ENGINE_ACTIVE", "1", true);
132
	
129
	// Create a QApplication if there isn't one already
133
	// Create a QApplication if there isn't one already
130
	if (QApplication::instance() == NULL)
134
	if (QApplication::instance() == NULL)
131
	{
135
	{
Lines 236-242 Link Here
236
void Engine::drawButton(bool defaultButton)
240
void Engine::drawButton(bool defaultButton)
237
{
241
{
238
	GTK_QT_DEBUG_FUNC
242
	GTK_QT_DEBUG_FUNC
239
	GTK_QT_SETUP(QStyleOptionButton)
243
	GTK_QT_SETUP(QStyleOptionButton, true)
240
	
244
	
241
	// Handle default buttons (ones that get activated when you press enter)
245
	// Handle default buttons (ones that get activated when you press enter)
242
	option.features = defaultButton ? QStyleOptionButton::DefaultButton : QStyleOptionButton::None;
246
	option.features = defaultButton ? QStyleOptionButton::DefaultButton : QStyleOptionButton::None;
Lines 249-255 Link Here
249
void Engine::drawCheckBox(bool checked)
253
void Engine::drawCheckBox(bool checked)
250
{
254
{
251
	GTK_QT_DEBUG_FUNC
255
	GTK_QT_DEBUG_FUNC
252
	GTK_QT_SETUP(QStyleOptionButton)
256
	GTK_QT_SETUP(QStyleOptionButton, true)
253
	
257
	
254
	// Handle checked state
258
	// Handle checked state
255
	m_dummyCheckBox->setChecked(checked);
259
	m_dummyCheckBox->setChecked(checked);
Lines 267-273 Link Here
267
void Engine::drawRadioButton(bool checked)
271
void Engine::drawRadioButton(bool checked)
268
{
272
{
269
	GTK_QT_DEBUG_FUNC
273
	GTK_QT_DEBUG_FUNC
270
	GTK_QT_SETUP(QStyleOptionButton)
274
	GTK_QT_SETUP(QStyleOptionButton, true)
271
	
275
	
272
	// Handle checked state
276
	// Handle checked state
273
	m_dummyRadioButton->setChecked(checked);
277
	m_dummyRadioButton->setChecked(checked);
Lines 285-291 Link Here
285
void Engine::drawTab(int tabCount, int selectedTab, int tab, bool upsideDown)
289
void Engine::drawTab(int tabCount, int selectedTab, int tab, bool upsideDown)
286
{
290
{
287
	GTK_QT_DEBUG_FUNC
291
	GTK_QT_DEBUG_FUNC
288
	GTK_QT_SETUP(QStyleOptionTabV2)
292
	GTK_QT_SETUP(QStyleOptionTabV2, false)
289
	option.cornerWidgets = QStyleOptionTab::NoCornerWidgets;
293
	option.cornerWidgets = QStyleOptionTab::NoCornerWidgets;
290
	option.shape = QTabBar::RoundedNorth;
294
	option.shape = QTabBar::RoundedNorth;
291
	
295
	
Lines 333-339 Link Here
333
void Engine::drawTabFrame()
337
void Engine::drawTabFrame()
334
{
338
{
335
	GTK_QT_DEBUG_FUNC
339
	GTK_QT_DEBUG_FUNC
336
	GTK_QT_SETUP(QStyleOptionTabWidgetFrame)
340
	GTK_QT_SETUP(QStyleOptionTabWidgetFrame, false)
337
	option.shape = QTabBar::RoundedNorth;
341
	option.shape = QTabBar::RoundedNorth;
338
	option.leftCornerWidgetSize = QSize(0, 0);
342
	option.leftCornerWidgetSize = QSize(0, 0);
339
	option.rightCornerWidgetSize = QSize(0, 0);
343
	option.rightCornerWidgetSize = QSize(0, 0);
Lines 347-353 Link Here
347
void Engine::drawLineEdit(bool editable)
351
void Engine::drawLineEdit(bool editable)
348
{
352
{
349
	GTK_QT_DEBUG_FUNC
353
	GTK_QT_DEBUG_FUNC
350
	GTK_QT_SETUP(QStyleOptionFrameV2)
354
	GTK_QT_SETUP(QStyleOptionFrameV2, false)
351
	option.lineWidth = m_qtStyle->pixelMetric(QStyle::PM_DefaultFrameWidth, &option, m_dummyLineEdit);
355
	option.lineWidth = m_qtStyle->pixelMetric(QStyle::PM_DefaultFrameWidth, &option, m_dummyLineEdit);
352
	option.midLineWidth = 0;
356
	option.midLineWidth = 0;
353
	option.state |= QStyle::State_Sunken;
357
	option.state |= QStyle::State_Sunken;
Lines 363-369 Link Here
363
void Engine::drawFrame(int type)
367
void Engine::drawFrame(int type)
364
{
368
{
365
	GTK_QT_DEBUG_FUNC
369
	GTK_QT_DEBUG_FUNC
366
	GTK_QT_SETUP(QStyleOptionFrameV2)
370
	GTK_QT_SETUP(QStyleOptionFrameV2, false)
367
	option.state |= QStyle::State_Sunken;
371
	option.state |= QStyle::State_Sunken;
368
	option.state &= ~QStyle::State_Raised;
372
	option.state &= ~QStyle::State_Raised;
369
	
373
	
Lines 375-381 Link Here
375
		default: element = QStyle::PE_Frame;         break;
379
		default: element = QStyle::PE_Frame;         break;
376
	}
380
	}
377
	
381
	
378
	m_qtStyle->drawPrimitive(element, &option, &p);
382
	m_qtStyle->drawPrimitive(element, &option, &p, m_dummyWidget);
379
	
383
	
380
	GTK_QT_FINISH
384
	GTK_QT_FINISH
381
}
385
}
Lines 383-389 Link Here
383
void Engine::drawArrow(GtkArrowType direction)
387
void Engine::drawArrow(GtkArrowType direction)
384
{
388
{
385
	GTK_QT_DEBUG_FUNC
389
	GTK_QT_DEBUG_FUNC
386
	GTK_QT_SETUP(QStyleOption)
390
	GTK_QT_SETUP(QStyleOption, false)
387
	
391
	
388
	QStyle::PrimitiveElement element;
392
	QStyle::PrimitiveElement element;
389
	switch (direction)
393
	switch (direction)
Lines 403-409 Link Here
403
void Engine::drawListHeader()
407
void Engine::drawListHeader()
404
{
408
{
405
	GTK_QT_DEBUG_FUNC
409
	GTK_QT_DEBUG_FUNC
406
	GTK_QT_SETUP(QStyleOptionHeader)
410
	GTK_QT_SETUP(QStyleOptionHeader, false)
407
	option.orientation = Qt::Horizontal;
411
	option.orientation = Qt::Horizontal;
408
	option.section = 1;
412
	option.section = 1;
409
	option.position = QStyleOptionHeader::Middle;
413
	option.position = QStyleOptionHeader::Middle;
Lines 420-426 Link Here
420
void Engine::drawMenuBarItem()
424
void Engine::drawMenuBarItem()
421
{
425
{
422
	GTK_QT_DEBUG_FUNC
426
	GTK_QT_DEBUG_FUNC
423
	GTK_QT_SETUP(QStyleOptionMenuItem)
427
	GTK_QT_SETUP(QStyleOptionMenuItem, false)
424
	option.state |= QStyle::State_Sunken | QStyle::State_Selected;
428
	option.state |= QStyle::State_Sunken | QStyle::State_Selected;
425
	option.state &= ~QStyle::State_Raised;
429
	option.state &= ~QStyle::State_Raised;
426
	
430
	
Lines 432-438 Link Here
432
void Engine::drawMenu()
436
void Engine::drawMenu()
433
{
437
{
434
	GTK_QT_DEBUG_FUNC
438
	GTK_QT_DEBUG_FUNC
435
	GTK_QT_SETUP(QStyleOptionFrame)
439
	GTK_QT_SETUP(QStyleOptionFrame, false)
436
	option.state = QStyle::State_None;
440
	option.state = QStyle::State_None;
437
	option.lineWidth = style()->pixelMetric(QStyle::PM_MenuPanelWidth);
441
	option.lineWidth = style()->pixelMetric(QStyle::PM_MenuPanelWidth);
438
	option.midLineWidth = 0;
442
	option.midLineWidth = 0;
Lines 445-451 Link Here
445
void Engine::drawMenuItem(int type)
449
void Engine::drawMenuItem(int type)
446
{
450
{
447
	GTK_QT_DEBUG_FUNC
451
	GTK_QT_DEBUG_FUNC
448
	GTK_QT_SETUP(QStyleOptionMenuItem)
452
	GTK_QT_SETUP(QStyleOptionMenuItem, false)
449
	option.state |= QStyle::State_Sunken | QStyle::State_Selected;
453
	option.state |= QStyle::State_Sunken | QStyle::State_Selected;
450
	option.state &= ~QStyle::State_Raised;
454
	option.state &= ~QStyle::State_Raised;
451
	
455
	
Lines 464-470 Link Here
464
void Engine::drawMenuCheck()
468
void Engine::drawMenuCheck()
465
{
469
{
466
	GTK_QT_DEBUG_FUNC
470
	GTK_QT_DEBUG_FUNC
467
	GTK_QT_SETUP(QStyleOption)
471
	GTK_QT_SETUP(QStyleOption, false)
468
	
472
	
469
	m_qtStyle->drawPrimitive(QStyle::PE_IndicatorMenuCheckMark, &option, &p, m_dummyMenu);
473
	m_qtStyle->drawPrimitive(QStyle::PE_IndicatorMenuCheckMark, &option, &p, m_dummyMenu);
470
	
474
	
Lines 474-480 Link Here
474
void Engine::drawHLine()
478
void Engine::drawHLine()
475
{
479
{
476
	GTK_QT_DEBUG_FUNC
480
	GTK_QT_DEBUG_FUNC
477
	GTK_QT_SETUP(QStyleOption)
481
	GTK_QT_SETUP(QStyleOption, false)
478
	
482
	
479
	qDrawShadeLine(&p, 0, 0, m_size.width(), 0, option.palette);
483
	qDrawShadeLine(&p, 0, 0, m_size.width(), 0, option.palette);
480
	
484
	
Lines 484-490 Link Here
484
void Engine::drawVLine()
488
void Engine::drawVLine()
485
{
489
{
486
	GTK_QT_DEBUG_FUNC
490
	GTK_QT_DEBUG_FUNC
487
	GTK_QT_SETUP(QStyleOption)
491
	GTK_QT_SETUP(QStyleOption, false)
488
	
492
	
489
	qDrawShadeLine(&p, 0, 0, 0, m_size.height(), option.palette);
493
	qDrawShadeLine(&p, 0, 0, 0, m_size.height(), option.palette);
490
	
494
	
Lines 494-500 Link Here
494
void Engine::drawComboBox()
498
void Engine::drawComboBox()
495
{
499
{
496
	GTK_QT_DEBUG_FUNC
500
	GTK_QT_DEBUG_FUNC
497
	GTK_QT_SETUP(QStyleOptionComboBox)
501
	GTK_QT_SETUP(QStyleOptionComboBox, true)
498
	
502
	
499
	m_qtStyle->drawComplexControl(QStyle::CC_ComboBox, &option, &p, m_dummyComboBox);
503
	m_qtStyle->drawComplexControl(QStyle::CC_ComboBox, &option, &p, m_dummyComboBox);
500
	
504
	
Lines 504-510 Link Here
504
void Engine::drawProgressBar(GtkProgressBarOrientation orientation, double percentage)
508
void Engine::drawProgressBar(GtkProgressBarOrientation orientation, double percentage)
505
{
509
{
506
	GTK_QT_DEBUG_FUNC
510
	GTK_QT_DEBUG_FUNC
507
	GTK_QT_SETUP(QStyleOptionProgressBarV2)
511
	GTK_QT_SETUP(QStyleOptionProgressBarV2, false)
508
	option.maximum = 10000;
512
	option.maximum = 10000;
509
	option.minimum = 0;
513
	option.minimum = 0;
510
	option.progress = int(percentage * 10000);
514
	option.progress = int(percentage * 10000);
Lines 529-535 Link Here
529
void Engine::drawProgressChunk()
533
void Engine::drawProgressChunk()
530
{
534
{
531
	GTK_QT_DEBUG_FUNC
535
	GTK_QT_DEBUG_FUNC
532
	GTK_QT_SETUP(QStyleOptionProgressBarV2)
536
	GTK_QT_SETUP(QStyleOptionProgressBarV2, false)
533
	option.maximum = 10000;
537
	option.maximum = 10000;
534
	option.minimum = 0;
538
	option.minimum = 0;
535
	option.progress = 10000;
539
	option.progress = 10000;
Lines 542-548 Link Here
542
void Engine::drawSpinButton(int direction)
546
void Engine::drawSpinButton(int direction)
543
{
547
{
544
	GTK_QT_DEBUG_FUNC
548
	GTK_QT_DEBUG_FUNC
545
	GTK_QT_SETUP(QStyleOptionSpinBox)
549
	GTK_QT_SETUP(QStyleOptionSpinBox, false)
546
	option.frame = false;
550
	option.frame = false;
547
	
551
	
548
	QStyle::PrimitiveElement element;
552
	QStyle::PrimitiveElement element;
Lines 561-567 Link Here
561
void Engine::drawSlider(GtkAdjustment* adj, GtkOrientation orientation, int inverted)
565
void Engine::drawSlider(GtkAdjustment* adj, GtkOrientation orientation, int inverted)
562
{
566
{
563
	GTK_QT_DEBUG_FUNC
567
	GTK_QT_DEBUG_FUNC
564
	GTK_QT_SETUP(QStyleOptionSlider)
568
	GTK_QT_SETUP(QStyleOptionSlider, false)
565
	option.minimum = 0;
569
	option.minimum = 0;
566
	option.maximum = 10000;
570
	option.maximum = 10000;
567
	option.orientation = (orientation == GTK_ORIENTATION_HORIZONTAL) ? Qt::Horizontal : Qt::Vertical;
571
	option.orientation = (orientation == GTK_ORIENTATION_HORIZONTAL) ? Qt::Horizontal : Qt::Vertical;
Lines 581-587 Link Here
581
void Engine::drawScrollBar(GtkOrientation orientation, GtkAdjustment* adj)
585
void Engine::drawScrollBar(GtkOrientation orientation, GtkAdjustment* adj)
582
{
586
{
583
	GTK_QT_DEBUG_FUNC
587
	GTK_QT_DEBUG_FUNC
584
	GTK_QT_SETUP(QStyleOptionSlider)
588
	GTK_QT_SETUP(QStyleOptionSlider, false)
585
	option.minimum = int(adj->lower);
589
	option.minimum = int(adj->lower);
586
	option.maximum = int(adj->upper - adj->page_size);
590
	option.maximum = int(adj->upper - adj->page_size);
587
	option.singleStep = int(adj->step_increment);
591
	option.singleStep = int(adj->step_increment);
Lines 617-623 Link Here
617
		m_size = QSize(m_size.width(), m_size.height() + extraSpace);
621
		m_size = QSize(m_size.width(), m_size.height() + extraSpace);
618
622
619
	GTK_QT_DEBUG_FUNC
623
	GTK_QT_DEBUG_FUNC
620
	GTK_QT_SETUP(QStyleOptionSlider)
624
	GTK_QT_SETUP(QStyleOptionSlider, false)
621
	option.minimum = 0;
625
	option.minimum = 0;
622
	option.maximum = 1;
626
	option.maximum = 1;
623
	option.singleStep = 10000;
627
	option.singleStep = 10000;
Lines 638-643 Link Here
638
	
642
	
639
	// Figure out where the slider is.  Hope this rect is the same size as oldSize
643
	// Figure out where the slider is.  Hope this rect is the same size as oldSize
640
	QRect sliderRect = m_qtStyle->subControlRect(QStyle::CC_ScrollBar, &option, QStyle::SC_ScrollBarSlider, m_dummyScrollBar);
644
	QRect sliderRect = m_qtStyle->subControlRect(QStyle::CC_ScrollBar, &option, QStyle::SC_ScrollBarSlider, m_dummyScrollBar);
645
	if (sliderRect.width() < 0 || sliderRect.height() < 0) // Firefox again :(
646
		return;
641
	
647
	
642
	// Get rid of the buttons so we're left with just the scrollbar slider of the size we were asked to draw
648
	// Get rid of the buttons so we're left with just the scrollbar slider of the size we were asked to draw
643
	offscreenPixmap = offscreenPixmap.copy(sliderRect);
649
	offscreenPixmap = offscreenPixmap.copy(sliderRect);
Lines 648-654 Link Here
648
void Engine::drawSplitter(GtkOrientation orientation)
654
void Engine::drawSplitter(GtkOrientation orientation)
649
{
655
{
650
	GTK_QT_DEBUG_FUNC
656
	GTK_QT_DEBUG_FUNC
651
	GTK_QT_SETUP(QStyleOption)
657
	GTK_QT_SETUP(QStyleOption, false)
652
	
658
	
653
	// By "horizontal", GTK means "bar goes from left to right" and Qt means "the two panes are to the left and right of the bar"
659
	// By "horizontal", GTK means "bar goes from left to right" and Qt means "the two panes are to the left and right of the bar"
654
	if (orientation != GTK_ORIENTATION_HORIZONTAL)
660
	if (orientation != GTK_ORIENTATION_HORIZONTAL)
(-)gtk-qt-engine/src/engine.h (+1 lines)
Lines 39-44 Link Here
39
#include <QScrollBar>
39
#include <QScrollBar>
40
40
41
#include <gtk/gtk.h>
41
#include <gtk/gtk.h>
42
#include <gtk/gtkstyle.h>
42
#include <gdk/gdkx.h>
43
#include <gdk/gdkx.h>
43
44
44
// The GTK headers suck
45
// The GTK headers suck
(-)gtk-qt-engine/src/qt_theme_draw.c (+1 lines)
Lines 19-24 Link Here
19
 ***************************************************************************/
19
 ***************************************************************************/
20
20
21
#include <math.h>
21
#include <math.h>
22
#include <stdlib.h>
22
#include <string.h>
23
#include <string.h>
23
#include <gtk/gtkprogressbar.h>
24
#include <gtk/gtkprogressbar.h>
24
#include <gdk/gdk.h>
25
#include <gdk/gdk.h>
(-)gtk-qt-engine/src/rcproperties.cpp (-22 / +137 lines)
Lines 18-33 Link Here
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 ***************************************************************************/
19
 ***************************************************************************/
20
20
21
#include <QDir> // This has to be above any GTK headers
22
21
#include "utilities.h"
23
#include "utilities.h"
22
#include "rcproperties.h"
24
#include "rcproperties.h"
23
#include "engine.h"
25
#include "engine.h"
24
26
25
#include <QDebug>
27
#include <QtDebug>
26
#include <QToolTip>
28
#include <QToolTip>
27
#include <QFile>
29
#include <QFile>
28
#include <QSettings>
30
#include <QSettings>
29
#include <QFileInfo>
31
#include <QFileInfo>
30
32
33
#define INITDUMMY(className) \
34
	dummy.setPalette(QApplication::palette()); \
35
	dummy.setObjectName(className); \
36
	Engine::instance()->m_qtStyle->polish(&dummy);
37
38
#define WCOLOR(class, role) \
39
	GtkQtUtilities::colorString(dummy.palette().color(QPalette::class, QPalette::role))
40
31
41
32
bool RcProperties::s_scrollBarHasBack1;
42
bool RcProperties::s_scrollBarHasBack1;
33
bool RcProperties::s_scrollBarHasForward1;
43
bool RcProperties::s_scrollBarHasForward1;
Lines 44-65 Link Here
44
{
54
{
45
	GTK_QT_DEBUG_FUNC
55
	GTK_QT_DEBUG_FUNC
46
	
56
	
57
	initKdeSettings();
58
	
47
	setWidgetProperties();
59
	setWidgetProperties();
48
	setColorProperties();
60
	setColorProperties();
49
	setIconProperties();
61
	setIconProperties();
62
	
63
	// KDE's "Apply colors to non-KDE apps" setting is broken.
64
	// It applies colors to the "*" class which overrides colors set by the style
65
	// We take the (rather extreme) measure of removing its gtkrc file
66
	
67
	char** rcFiles = gtk_rc_get_default_files();
68
	while (*rcFiles != NULL)
69
	{
70
		QString fileName(*(rcFiles++));
71
		
72
		if (!fileName.endsWith("/share/config/gtkrc-2.0"))
73
			continue;
74
		
75
		// Open the file and check for a known string just to make
76
		// sure we're not accidentally deleting something else
77
		QFile file(fileName);
78
		if (!file.exists())
79
			continue;
80
		
81
		file.open(QIODevice::ReadOnly);
82
		if (!file.readLine(20).startsWith("# created by KDE"))
83
			continue;
84
		
85
		file.close();
86
		file.remove();
87
	}
50
}
88
}
51
89
52
void RcProperties::setWidgetProperties()
90
void RcProperties::setWidgetProperties()
53
{
91
{
54
	const QStyle* qtStyle = Engine::instance()->m_qtStyle;
92
	const QStyle* qtStyle = Engine::instance()->m_qtStyle;
55
	
93
	
94
	// Buttons
95
	GtkQtUtilities::parseRcString("GtkButton::child_displacement_x = " + QString::number(qtStyle->pixelMetric(QStyle::PM_ButtonShiftHorizontal)), "*", GtkQtUtilities::WidgetClass);
96
	GtkQtUtilities::parseRcString("GtkButton::child_displacement_y = " + QString::number(qtStyle->pixelMetric(QStyle::PM_ButtonShiftVertical)), "*", GtkQtUtilities::WidgetClass);
97
	
56
	// Check boxes
98
	// Check boxes
57
	// We add 2 to the size to account for the box around the check indicator
99
	// We add 2 to the size to account for the box around the check indicator
58
	GtkQtUtilities::parseRcString("GtkCheckButton::indicator-size = " + QString::number(qtStyle->pixelMetric(QStyle::PM_IndicatorHeight) + 2), "*", GtkQtUtilities::WidgetClass);
100
	GtkQtUtilities::parseRcString("GtkCheckButton::indicator-size = " + QString::number(qtStyle->pixelMetric(QStyle::PM_IndicatorHeight) + 2), "*", GtkQtUtilities::WidgetClass);
59
	
101
	
60
	// Tabs
102
	// Tabs
103
	GtkQtUtilities::parseRcString("GtkButton::tab-curvature = 0", "*", GtkQtUtilities::WidgetClass);
61
	GtkQtUtilities::parseRcString("GtkNotebook::tab-overlap = " + QString::number(qtStyle->pixelMetric(QStyle::PM_TabBarTabOverlap)), "*", GtkQtUtilities::WidgetClass);
104
	GtkQtUtilities::parseRcString("GtkNotebook::tab-overlap = " + QString::number(qtStyle->pixelMetric(QStyle::PM_TabBarTabOverlap)), "*", GtkQtUtilities::WidgetClass);
62
	GtkQtUtilities::parseRcString("xthickness = 3", "*.GtkNotebook", GtkQtUtilities::WidgetClass); // Hardcode values that look good
105
	GtkQtUtilities::parseRcString("xthickness = 2", "*.GtkNotebook", GtkQtUtilities::WidgetClass); // Hardcode values that look good
63
	GtkQtUtilities::parseRcString("ythickness = 3", "*.GtkNotebook", GtkQtUtilities::WidgetClass);
106
	GtkQtUtilities::parseRcString("ythickness = 3", "*.GtkNotebook", GtkQtUtilities::WidgetClass);
64
	
107
	
65
	// Line edits
108
	// Line edits
Lines 131-137 Link Here
131
	
174
	
132
	int availableSize = 200 - qtStyle->subControlRect(QStyle::CC_ScrollBar, &option, QStyle::SC_ScrollBarGroove, scrollBar).width();
175
	int availableSize = 200 - qtStyle->subControlRect(QStyle::CC_ScrollBar, &option, QStyle::SC_ScrollBarGroove, scrollBar).width();
133
	s_scrollBarButtonCount = s_scrollBarHasForward1 + s_scrollBarHasBack1 + s_scrollBarHasForward2 + s_scrollBarHasBack2; // Evil
176
	s_scrollBarButtonCount = s_scrollBarHasForward1 + s_scrollBarHasBack1 + s_scrollBarHasForward2 + s_scrollBarHasBack2; // Evil
134
	s_scrollBarButtonSize = availableSize / s_scrollBarButtonCount;
177
	if (s_scrollBarButtonCount != 0)
178
		s_scrollBarButtonSize = availableSize / s_scrollBarButtonCount;
179
}
180
181
QString RcProperties::gtkPaletteString(const QPalette& pal, const QString& bgfg, QPalette::ColorRole role)
182
{
183
	return bgfg + "[NORMAL] = "      + GtkQtUtilities::colorString(pal.color(QPalette::Inactive, role)) + "\n"
184
	     + bgfg + "[ACTIVE] = "      + GtkQtUtilities::colorString(pal.color(QPalette::Active, role))   + "\n"
185
	     + bgfg + "[PRELIGHT] = "    + GtkQtUtilities::colorString(pal.color(QPalette::Active, role))   + "\n"
186
	     + bgfg + "[INSENSITIVE] = " + GtkQtUtilities::colorString(pal.color(QPalette::Disabled, role)) + "\n";
135
}
187
}
136
188
137
void RcProperties::setColorProperties()
189
void RcProperties::setColorProperties()
Lines 167-190 Link Here
167
	mapColor("base[INSENSITIVE]", QPalette::Disabled, QPalette::Base);
219
	mapColor("base[INSENSITIVE]", QPalette::Disabled, QPalette::Base);
168
	
220
	
169
	// Tooltips
221
	// Tooltips
170
	QString tooltipColor = GtkQtUtilities::colorString(QToolTip::palette().color(QPalette::Active, QPalette::Base));
222
	QColor tooltipBg(convertColor(kdeConfigValue("/share/config/kdeglobals", "Colors:Tooltip/BackgroundNormal", QToolTip::palette().color(QPalette::Active, QPalette::Base), true).second));
171
	GtkQtUtilities::parseRcString("bg[NORMAL] = " + tooltipColor, "*.tooltips.*.GtkToggleButton", GtkQtUtilities::WidgetClass);
223
	QColor tooltipFg(convertColor(kdeConfigValue("/share/config/kdeglobals", "Colors:Tooltip/ForegroundNormal", QToolTip::palette().color(QPalette::Active, QPalette::Text), true).second));
172
	GtkQtUtilities::parseRcString("bg[NORMAL] = " + tooltipColor, "gtk-tooltips", GtkQtUtilities::Widget);
224
	GtkQtUtilities::parseRcString("bg[NORMAL] = " + GtkQtUtilities::colorString(tooltipBg), "gtk-tooltip*", GtkQtUtilities::Widget);
173
	GtkQtUtilities::parseRcString("bg[NORMAL] = " + tooltipColor, "gtk-tooltip", GtkQtUtilities::Widget);
225
	GtkQtUtilities::parseRcString("fg[NORMAL] = " + GtkQtUtilities::colorString(tooltipFg), "gtk-tooltip*", GtkQtUtilities::Widget);
174
	
175
	// Buttons
176
	QString buttonColor = GtkQtUtilities::colorString(QApplication::palette().color(QPalette::Active, QPalette::Button));
177
	GtkQtUtilities::parseRcString("bg[NORMAL] = " + buttonColor, "GtkButton", GtkQtUtilities::Class);
178
	GtkQtUtilities::parseRcString("bg[ACTIVE] = " + buttonColor, "GtkButton", GtkQtUtilities::Class);
179
	GtkQtUtilities::parseRcString("bg[NORMAL] = " + buttonColor, "GtkOptionMenu", GtkQtUtilities::Class);
180
	GtkQtUtilities::parseRcString("bg[ACTIVE] = " + buttonColor, "GtkOptionMenu", GtkQtUtilities::Class);
181
	
182
	buttonColor = GtkQtUtilities::colorString(QApplication::palette().color(QPalette::Disabled, QPalette::Button));
183
	GtkQtUtilities::parseRcString("bg[INSENSITIVE] = " + buttonColor, "GtkButton", GtkQtUtilities::Class);
184
	
226
	
185
	// Lists
227
	// Lists
186
	QString activeListColor = GtkQtUtilities::colorString(QApplication::palette().color(QPalette::Active, QPalette::HighlightedText));
228
	QString activeListColor = GtkQtUtilities::colorString(QApplication::palette().color(QPalette::Active, QPalette::HighlightedText));
187
	GtkQtUtilities::parseRcString("text[ACTIVE] = " + activeListColor, "GtkTreeView", GtkQtUtilities::Class);
229
	GtkQtUtilities::parseRcString("text[ACTIVE] = " + activeListColor, "GtkTreeView", GtkQtUtilities::Class);
230
	
231
	// Patch from Thomas Lübking:
232
	// Ask the Qt style for color settings of a (growing?) bunch of widget types.
233
	// We pass a dummy widget to QStyle::polish(QWidget*) with the widget's object
234
	// name reflecting (a faked) QObject::className alongside with the apps
235
	// default palette - if the style changes the palette, we add a gtk style
236
	// for the matching gtk widgets
237
	// NOTICE using a dummy widget objectName rather than a matching QWidget
238
	// here does not only allow us to skip couple of widget headers here for no
239
	// sense, but also is REQUIRED! because the Qt styles tend to do freaky things
240
	// on certain widget types, which we need to prevent...
241
	//
242
	// as the GTK and Qt palette models do not really fit, we'll translate
243
	// QPalette::Inactive -> GTK_STATE_NORMAL
244
	// QPalette::Active -> GTK_STATE_PRELIGHT
245
	// QPalette::Active -> GTK_STATE_ACTIVE
246
	// QPalette::Disabled -> GTK_STATE_INSENSITIVE
247
	
248
	QWidget dummy;
249
	
250
	INITDUMMY("QPushButton")
251
	GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "bg", QPalette::Button), "GtkButton", GtkQtUtilities::Class);
252
	GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "fg", QPalette::ButtonText), "*.GtkButton*GtkLabel", GtkQtUtilities::WidgetClass);
253
	
254
	INITDUMMY("QComboBox")
255
	GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "bg", QPalette::Button), "GtkOptionMenu", GtkQtUtilities::Class);
256
257
	INITDUMMY("QCheckBox")
258
	GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "bg", QPalette::Button), "GtkCheckButton", GtkQtUtilities::Class);
259
	
260
	INITDUMMY("QRadioButton")
261
	GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "bg", QPalette::Button), "GtkRadioButton", GtkQtUtilities::Class);
262
	
263
	INITDUMMY("QTabBar")
264
	if (dummy.palette() != QApplication::palette())
265
	{
266
		// SIC! GTK thinks all tabs but the active are active...
267
		GtkQtUtilities::parseRcString(
268
			"fg[ACTIVE] = "      + WCOLOR(Inactive, WindowText) + "\n" +
269
			"fg[NORMAL] = "      + WCOLOR(Active, WindowText) + "\n" +
270
			"fg[PRELIGHT] = "    + WCOLOR(Active, WindowText) + "\n" +
271
			"fg[INSENSITIVE] = " + WCOLOR(Disabled, WindowText),
272
			"*.GtkNotebook.GtkLabel", GtkQtUtilities::WidgetClass);
273
	}
274
275
	INITDUMMY("QMenu")
276
	if (dummy.palette() != QApplication::palette())
277
	{
278
		GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "bg", QPalette::Window), "GtkMenu", GtkQtUtilities::Class);
279
		GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "fg", QPalette::WindowText), "*.GtkMenuItem.GtkLabel", GtkQtUtilities::Class);
280
	}
281
282
	INITDUMMY("QMenuBar")
283
	if (dummy.palette() != QApplication::palette())
284
	{
285
		GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "bg", QPalette::Window), "GtkMenuBar", GtkQtUtilities::Class);
286
		GtkQtUtilities::parseRcString(gtkPaletteString(dummy.palette(), "fg", QPalette::WindowText), "*.GtkMenuBar.GtkMenuItem.GtkLabel", GtkQtUtilities::WidgetClass);
287
	}
188
}
288
}
189
289
190
void RcProperties::mapColor(const QString& name, QPalette::ColorGroup group, QPalette::ColorRole role)
290
void RcProperties::mapColor(const QString& name, QPalette::ColorGroup group, QPalette::ColorRole role)
Lines 192-198 Link Here
192
	QPalette palette(QApplication::palette());
292
	QPalette palette(QApplication::palette());
193
	QString color(GtkQtUtilities::colorString(palette.color(group, role)));
293
	QString color(GtkQtUtilities::colorString(palette.color(group, role)));
194
	
294
	
195
	GtkQtUtilities::parseRcString(name + " = " + color, "*", GtkQtUtilities::Class);
295
	GtkQtUtilities::parseRcString(name + " = " + color, "GtkWidget", GtkQtUtilities::Class);
196
}
296
}
197
297
198
PathAndValue RcProperties::kdeConfigValue(const QString& file, const QString& key, const QVariant& def, bool searchAllFiles)
298
PathAndValue RcProperties::kdeConfigValue(const QString& file, const QString& key, const QVariant& def, bool searchAllFiles)
Lines 239-253 Link Here
239
		s_kdeSearchPaths << kdeDir;
339
		s_kdeSearchPaths << kdeDir;
240
	s_kdeSearchPaths << settings.value("KDEPrefix").toString();
340
	s_kdeSearchPaths << settings.value("KDEPrefix").toString();
241
	
341
	
342
	s_kdeSearchPaths << QDir::homePath() + "/.kde4";
343
	s_kdeSearchPaths << QDir::homePath() + "/.kde";
242
	s_kdeSearchPaths << "/usr/local";
344
	s_kdeSearchPaths << "/usr/local";
243
	s_kdeSearchPaths << "/usr";
345
	s_kdeSearchPaths << "/usr";
244
}
346
}
245
347
246
void RcProperties::setIconProperties()
348
void RcProperties::setIconProperties()
247
{
349
{
248
	// Find the current KDE icon theme
249
	initKdeSettings();
250
	
251
	// Get the theme's directory and those of its parents
350
	// Get the theme's directory and those of its parents
252
	QString iconThemeName(kdeConfigValue("/share/config/kdeglobals", "Icons/Theme", "oxygen", true).second.toString());
351
	QString iconThemeName(kdeConfigValue("/share/config/kdeglobals", "Icons/Theme", "oxygen", true).second.toString());
253
	traverseIconThemeDir(iconThemeName);
352
	traverseIconThemeDir(iconThemeName);
Lines 352-358 Link Here
352
	iconMappings += doIconMapping("gtk-zoom-fit", "actions/zoom-fit-best.png");
451
	iconMappings += doIconMapping("gtk-zoom-fit", "actions/zoom-fit-best.png");
353
	iconMappings += doIconMapping("gtk-zoom-in", "actions/zoom-in.png");
452
	iconMappings += doIconMapping("gtk-zoom-in", "actions/zoom-in.png");
354
	iconMappings += doIconMapping("gtk-zoom-out", "actions/zoom-out.png");
453
	iconMappings += doIconMapping("gtk-zoom-out", "actions/zoom-out.png");
355
	iconMappings += "} class \"*\" style \"KDE-icons\"";
454
	iconMappings += "} class \"GtkWidget\" style \"KDE-icons\"";
356
	
455
	
357
	GtkQtUtilities::parseRcString(iconMappings);
456
	GtkQtUtilities::parseRcString(iconMappings);
358
}
457
}
Lines 422-424 Link Here
422
	
521
	
423
	return "stock[\"" + stockName + "\"] = {" + lines.join(",") + "}\n";
522
	return "stock[\"" + stockName + "\"] = {" + lines.join(",") + "}\n";
424
}
523
}
524
525
QColor RcProperties::convertColor(const QVariant& variant)
526
{
527
	if (variant.value<QColor>().isValid())
528
		return variant.value<QColor>();
529
	
530
	// KDE seems to store colors in its config files as QStringList(r, g, b), which you can't convert
531
	// with QVariant::value<QColor>
532
	QStringList list(variant.toStringList());
533
	if (list.count() == 3)
534
		return QColor(list[0].toInt(), list[1].toInt(), list[2].toInt());
535
	else if (list.count() == 4)
536
		return QColor(list[0].toInt(), list[1].toInt(), list[2].toInt(), list[3].toInt());
537
	return QColor();
538
}
539
(-)gtk-qt-engine/src/rcproperties.h (+2 lines)
Lines 51-56 Link Here
51
	static QString doIconMapping(const QString& stockName, const QString& path);
51
	static QString doIconMapping(const QString& stockName, const QString& path);
52
	
52
	
53
	static void mapColor(const QString& name, QPalette::ColorGroup group, QPalette::ColorRole role);
53
	static void mapColor(const QString& name, QPalette::ColorGroup group, QPalette::ColorRole role);
54
	static QColor convertColor(const QVariant& variant);
55
	static QString gtkPaletteString(const QPalette& pal, const QString& bgfg, QPalette::ColorRole role = QPalette::Window);
54
	
56
	
55
	static bool s_scrollBarHasBack1;
57
	static bool s_scrollBarHasBack1;
56
	static bool s_scrollBarHasForward1;
58
	static bool s_scrollBarHasForward1;

Return to bug 292227