1

Updating UI labels

Former-commit-id: 06c061d606fef268af9acdfc57b769d6f2adeb35
This commit is contained in:
Alex Yatskov 2013-11-16 11:53:02 -08:00
parent d31bff5700
commit 6b761321f0
6 changed files with 15 additions and 14 deletions

View File

@ -161,7 +161,7 @@
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Profile</string> <string>Displayed profile</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/about.ui' # Form implementation generated from reading ui file 'ui/about.ui'
# #
# Created: Fri Nov 15 20:29:12 2013 # Created: Sat Nov 16 11:47:57 2013
# by: PyQt4 UI code generator 4.10 # by: PyQt4 UI code generator 4.10
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/preferences.ui' # Form implementation generated from reading ui file 'ui/preferences.ui'
# #
# Created: Fri Nov 15 20:29:12 2013 # Created: Sat Nov 16 11:47:57 2013
# by: PyQt4 UI code generator 4.10 # by: PyQt4 UI code generator 4.10
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -192,7 +192,7 @@ class Ui_DialogPreferences(object):
self.buttonColorBg.setText(_translate("DialogPreferences", "Background...", None)) self.buttonColorBg.setText(_translate("DialogPreferences", "Background...", None))
self.textSample.setPlainText(_translate("DialogPreferences", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. ", None)) self.textSample.setPlainText(_translate("DialogPreferences", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. ", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAppearance), _translate("DialogPreferences", "Appearance", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAppearance), _translate("DialogPreferences", "Appearance", None))
self.label.setText(_translate("DialogPreferences", "Profile", None)) self.label.setText(_translate("DialogPreferences", "Displayed profile", None))
self.radioButtonVocab.setText(_translate("DialogPreferences", "Vocabulary", None)) self.radioButtonVocab.setText(_translate("DialogPreferences", "Vocabulary", None))
self.radioButtonKanji.setText(_translate("DialogPreferences", "Kanji", None)) self.radioButtonKanji.setText(_translate("DialogPreferences", "Kanji", None))
self.label_13.setText(_translate("DialogPreferences", "Deck", None)) self.label_13.setText(_translate("DialogPreferences", "Deck", None))

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/reader.ui' # Form implementation generated from reading ui file 'ui/reader.ui'
# #
# Created: Fri Nov 15 20:29:13 2013 # Created: Sat Nov 16 11:47:57 2013
# by: PyQt4 UI code generator 4.10 # by: PyQt4 UI code generator 4.10
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# Resource object code # Resource object code
# #
# Created: Fri Nov 15 20:29:13 2013 # Created: Sat Nov 16 11:47:57 2013
# by: The Resource Compiler for PyQt (Qt v4.8.4) # by: The Resource Compiler for PyQt (Qt v4.8.4)
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -151,6 +151,13 @@ def buildDefFooter():
return '</body></html>' return '</body></html>'
def buildEmpty():
return u"""
<p>No definitions to display.</p>
<p>Mouse over text with the <em>middle mouse button</em> or <em>shift key</em> pressed to search.</p>
<p>You can also also input terms in the search box below."""
def buildVocabDef(definition, index, query): def buildVocabDef(definition, index, query):
reading = unicode() reading = unicode()
if definition['reading']: if definition['reading']:
@ -185,10 +192,7 @@ def buildVocabDefs(definitions, query):
for i, definition in enumerate(definitions): for i, definition in enumerate(definitions):
html += buildVocabDef(definition, i, query) html += buildVocabDef(definition, i, query)
else: else:
html += """ html += buildEmpty()
<p>No definitions to display.</p>
<p>Mouse over text with the <em>middle mouse button</em> or <em>shift key</em> pressed to search.</p>
<p>You can also also input terms in the search box below, using the "*" and "?" wildcards where needed.</p>"""
return html + buildDefFooter() return html + buildDefFooter()
@ -216,9 +220,6 @@ def buildKanjiDefs(definitions, query):
for i, definition in enumerate(definitions): for i, definition in enumerate(definitions):
html += buildKanjiDef(definition, i, query) html += buildKanjiDef(definition, i, query)
else: else:
html += """ html += buildEmpty()
<p>No definitions to display.</p>
<p>Mouse over text with the <em>middle mouse button</em> or <em>shift key</em> pressed to search.</p>
<p>You can also also input terms in the search box below."""
return html + buildDefFooter() return html + buildDefFooter()