renaming icons
Before Width: | Height: | Size: 778 B After Width: | Height: | Size: 778 B |
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 641 B After Width: | Height: | Size: 641 B |
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 659 B |
Before Width: | Height: | Size: 944 B After Width: | Height: | Size: 944 B |
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 610 B |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 537 B |
@ -251,7 +251,7 @@ class MainWindowReader(QtGui.QMainWindow):
|
|||||||
command, index = unicode(url.toString()).split(':')
|
command, index = unicode(url.toString()).split(':')
|
||||||
definition = self.state.definitions[int(index)]
|
definition = self.state.definitions[int(index)]
|
||||||
|
|
||||||
if command == 'addFactExpression':
|
if command == 'addExpression':
|
||||||
markup = reader_util.buildFactMarkupExpression(
|
markup = reader_util.buildFactMarkupExpression(
|
||||||
definition.expression,
|
definition.expression,
|
||||||
definition.reading,
|
definition.reading,
|
||||||
@ -259,7 +259,7 @@ class MainWindowReader(QtGui.QMainWindow):
|
|||||||
definition.sentence
|
definition.sentence
|
||||||
)
|
)
|
||||||
self.ankiAddFact(markup)
|
self.ankiAddFact(markup)
|
||||||
if command == 'addFactReading':
|
if command == 'addReading':
|
||||||
markup = reader_util.buildFactMarkupReading(
|
markup = reader_util.buildFactMarkupReading(
|
||||||
definition.reading,
|
definition.reading,
|
||||||
definition.glossary,
|
definition.glossary,
|
||||||
|
@ -152,9 +152,9 @@ def buildDefinitionHtml(definition, factIndex, factQuery):
|
|||||||
links = '<a href = "copyDefinition:{0}"><img src = "{1}" align = "right"/></a>'.format(factIndex, buildResPath('img/page_copy.png'))
|
links = '<a href = "copyDefinition:{0}"><img src = "{1}" align = "right"/></a>'.format(factIndex, buildResPath('img/page_copy.png'))
|
||||||
if factQuery:
|
if factQuery:
|
||||||
if factQuery(buildFactMarkupExpression(definition.expression, definition.reading, definition.glossary)):
|
if factQuery(buildFactMarkupExpression(definition.expression, definition.reading, definition.glossary)):
|
||||||
links += '<a href = "addFactExpression:{0}"><img src = "{1}" align = "right"/></a>'.format(factIndex, buildResPath('img/add.png'))
|
links += '<a href = "addExpression:{0}"><img src = "{1}" align = "right"/></a>'.format(factIndex, buildResPath('img/icon_add_expression.png'))
|
||||||
if factQuery(buildFactMarkupReading(definition.reading, definition.glossary)):
|
if factQuery(buildFactMarkupReading(definition.reading, definition.glossary)):
|
||||||
links += '<a href = "addFactReading:{0}"><img src = "{1}" align = "right"/></a>'.format(factIndex, buildResPath('img/bullet_add.png'))
|
links += '<a href = "addReading:{0}"><img src = "{1}" align = "right"/></a>'.format(factIndex, buildResPath('img/icon_add_reading.png'))
|
||||||
|
|
||||||
html = u"""
|
html = u"""
|
||||||
<span class = "links">{0}</span>
|
<span class = "links">{0}</span>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>700</width>
|
<width>650</width>
|
||||||
<height>400</height>
|
<height>400</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
<property name="pixmap">
|
||||||
<pixmap>../img/logo64x64.png</pixmap>
|
<pixmap>../img/icon_logo_64.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/logo32x32.png</normaloff>../img/logo32x32.png</iconset>
|
<normaloff>../img/icon_logo_32.png</normaloff>../img/icon_logo_32.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>900</width>
|
<width>900</width>
|
||||||
<height>23</height>
|
<height>25</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
@ -216,7 +216,7 @@
|
|||||||
<action name="actionOpen">
|
<action name="actionOpen">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/folder_page.png</normaloff>../img/folder_page.png</iconset>
|
<normaloff>../img/icon_action_open.png</normaloff>../img/icon_action_open.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Open...</string>
|
<string>&Open...</string>
|
||||||
@ -234,7 +234,7 @@
|
|||||||
<action name="actionQuit">
|
<action name="actionQuit">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/cross.png</normaloff>../img/cross.png</iconset>
|
<normaloff>../img/icon_action_quit.png</normaloff>../img/icon_action_quit.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Quit</string>
|
<string>&Quit</string>
|
||||||
@ -252,7 +252,7 @@
|
|||||||
<action name="actionPreferences">
|
<action name="actionPreferences">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/wrench.png</normaloff>../img/wrench.png</iconset>
|
<normaloff>../img/icon_action_preferences.png</normaloff>../img/icon_action_preferences.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Preferences...</string>
|
<string>&Preferences...</string>
|
||||||
@ -267,7 +267,7 @@
|
|||||||
<action name="actionAbout">
|
<action name="actionAbout">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/information.png</normaloff>../img/information.png</iconset>
|
<normaloff>../img/icon_action_about.png</normaloff>../img/icon_action_about.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&About...</string>
|
<string>&About...</string>
|
||||||
@ -285,7 +285,7 @@
|
|||||||
<action name="actionZoomIn">
|
<action name="actionZoomIn">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/magnifier_zoom_in.png</normaloff>../img/magnifier_zoom_in.png</iconset>
|
<normaloff>../img/icon_action_zoom_in.png</normaloff>../img/icon_action_zoom_in.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Zoom &in</string>
|
<string>Zoom &in</string>
|
||||||
@ -300,7 +300,7 @@
|
|||||||
<action name="actionZoomOut">
|
<action name="actionZoomOut">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/magifier_zoom_out.png</normaloff>../img/magifier_zoom_out.png</iconset>
|
<normaloff>../img/icon_action_zoom_out.png</normaloff>../img/icon_action_zoom_out.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Zoom &out</string>
|
<string>Zoom &out</string>
|
||||||
@ -315,7 +315,7 @@
|
|||||||
<action name="actionZoomReset">
|
<action name="actionZoomReset">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/magnifier.png</normaloff>../img/magnifier.png</iconset>
|
<normaloff>../img/icon_action_zoom_reset.png</normaloff>../img/icon_action_zoom_reset.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Reset</string>
|
<string>&Reset</string>
|
||||||
@ -333,7 +333,7 @@
|
|||||||
<action name="actionFind">
|
<action name="actionFind">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/find.png</normaloff>../img/find.png</iconset>
|
<normaloff>../img/icon_action_find.png</normaloff>../img/icon_action_find.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Find...</string>
|
<string>&Find...</string>
|
||||||
@ -387,7 +387,7 @@
|
|||||||
<action name="actionCopyDefinition">
|
<action name="actionCopyDefinition">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/page_copy.png</normaloff>../img/page_copy.png</iconset>
|
<normaloff>../img/icon_action_copy_definition.png</normaloff>../img/icon_action_copy_definition.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Copy &definition</string>
|
<string>Copy &definition</string>
|
||||||
@ -407,7 +407,7 @@
|
|||||||
<action name="actionHomepage">
|
<action name="actionHomepage">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/world_go.png</normaloff>../img/world_go.png</iconset>
|
<normaloff>../img/icon_action_homepage.png</normaloff>../img/icon_action_homepage.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Homepage...</string>
|
<string>&Homepage...</string>
|
||||||
@ -438,7 +438,7 @@
|
|||||||
<action name="actionFeedback">
|
<action name="actionFeedback">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../img/email.png</normaloff>../img/email.png</iconset>
|
<normaloff>../img/icon_action_feedback.png</normaloff>../img/icon_action_feedback.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Feedback...</string>
|
<string>&Feedback...</string>
|
||||||
|