tweak icons, add donation menu in help
|
@ -14,6 +14,7 @@ appIssueTracker="http://code.google.com/p/anki/issues/list"
|
||||||
appForum="http://groups.google.com/group/ankisrs/topics"
|
appForum="http://groups.google.com/group/ankisrs/topics"
|
||||||
appReleaseNotes="http://ichi2.net/anki/download/index.html#changes"
|
appReleaseNotes="http://ichi2.net/anki/download/index.html#changes"
|
||||||
appMoreDecks="http://ichi2.net/anki/wiki/ExtraDecks"
|
appMoreDecks="http://ichi2.net/anki/wiki/ExtraDecks"
|
||||||
|
appDonate="http://ichi2.net/anki/donate.html"
|
||||||
|
|
||||||
modDir=os.path.dirname(os.path.abspath(__file__))
|
modDir=os.path.dirname(os.path.abspath(__file__))
|
||||||
runningDir=os.path.split(modDir)[0]
|
runningDir=os.path.split(modDir)[0]
|
||||||
|
|
|
@ -1084,8 +1084,8 @@ day = :d""", d=yesterday)
|
||||||
mw.toolBar.addAction(mw.actionAddcards)
|
mw.toolBar.addAction(mw.actionAddcards)
|
||||||
mw.toolBar.addAction(mw.actionEditCurrent)
|
mw.toolBar.addAction(mw.actionEditCurrent)
|
||||||
mw.toolBar.addAction(mw.actionEditdeck)
|
mw.toolBar.addAction(mw.actionEditdeck)
|
||||||
mw.toolBar.addAction(mw.actionGraphs)
|
|
||||||
mw.toolBar.addAction(mw.actionStudyOptions)
|
mw.toolBar.addAction(mw.actionStudyOptions)
|
||||||
|
mw.toolBar.addAction(mw.actionGraphs)
|
||||||
mw.toolBar.addAction(mw.actionMarkCard)
|
mw.toolBar.addAction(mw.actionMarkCard)
|
||||||
mw.toolBar.addAction(mw.actionRepeatAudio)
|
mw.toolBar.addAction(mw.actionRepeatAudio)
|
||||||
self.addToolBar(Qt.TopToolBarArea, mw.toolBar)
|
self.addToolBar(Qt.TopToolBarArea, mw.toolBar)
|
||||||
|
@ -1276,6 +1276,9 @@ day = :d""", d=yesterday)
|
||||||
def onAbout(self):
|
def onAbout(self):
|
||||||
ui.about.show(self)
|
ui.about.show(self)
|
||||||
|
|
||||||
|
def onDonate(self):
|
||||||
|
QDesktopServices.openUrl(QUrl(ankiqt.appDonate))
|
||||||
|
|
||||||
def onActiveTags(self):
|
def onActiveTags(self):
|
||||||
ui.activetags.show(self)
|
ui.activetags.show(self)
|
||||||
|
|
||||||
|
@ -1583,6 +1586,7 @@ day = :d""", d=yesterday)
|
||||||
self.connect(m.actionCacheLatex, s, self.onCacheLatex)
|
self.connect(m.actionCacheLatex, s, self.onCacheLatex)
|
||||||
self.connect(m.actionUncacheLatex, s, self.onUncacheLatex)
|
self.connect(m.actionUncacheLatex, s, self.onUncacheLatex)
|
||||||
self.connect(m.actionStudyOptions, s, self.onStudyOptions)
|
self.connect(m.actionStudyOptions, s, self.onStudyOptions)
|
||||||
|
self.connect(m.actionDonate, s, self.onDonate)
|
||||||
|
|
||||||
def enableDeckMenuItems(self, enabled=True):
|
def enableDeckMenuItems(self, enabled=True):
|
||||||
"setEnabled deck-related items."
|
"setEnabled deck-related items."
|
||||||
|
|
|
@ -986,6 +986,7 @@
|
||||||
<addaction name="actionReleaseNotes" />
|
<addaction name="actionReleaseNotes" />
|
||||||
<addaction name="actionGetMoreDecks" />
|
<addaction name="actionGetMoreDecks" />
|
||||||
<addaction name="separator" />
|
<addaction name="separator" />
|
||||||
|
<addaction name="actionDonate" />
|
||||||
<addaction name="actionAbout" />
|
<addaction name="actionAbout" />
|
||||||
<addaction name="separator" />
|
<addaction name="separator" />
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -1159,6 +1160,7 @@
|
||||||
<addaction name="actionAddcards" />
|
<addaction name="actionAddcards" />
|
||||||
<addaction name="actionEditCurrent" />
|
<addaction name="actionEditCurrent" />
|
||||||
<addaction name="actionEditdeck" />
|
<addaction name="actionEditdeck" />
|
||||||
|
<addaction name="actionStudyOptions" />
|
||||||
<addaction name="actionDisplayProperties" />
|
<addaction name="actionDisplayProperties" />
|
||||||
<addaction name="separator" />
|
<addaction name="separator" />
|
||||||
<addaction name="actionGraphs" />
|
<addaction name="actionGraphs" />
|
||||||
|
@ -1167,7 +1169,6 @@
|
||||||
<addaction name="separator" />
|
<addaction name="separator" />
|
||||||
<addaction name="actionRepeatAudio" />
|
<addaction name="actionRepeatAudio" />
|
||||||
<addaction name="actionMarkCard" />
|
<addaction name="actionMarkCard" />
|
||||||
<addaction name="actionStudyOptions" />
|
|
||||||
</widget>
|
</widget>
|
||||||
<action name="actionExit" >
|
<action name="actionExit" >
|
||||||
<property name="icon" >
|
<property name="icon" >
|
||||||
|
@ -1256,7 +1257,7 @@
|
||||||
<action name="actionEditdeck" >
|
<action name="actionEditdeck" >
|
||||||
<property name="icon" >
|
<property name="icon" >
|
||||||
<iconset resource="../icons.qrc" >
|
<iconset resource="../icons.qrc" >
|
||||||
<normaloff>:/icons/view_text.png</normaloff>:/icons/view_text.png</iconset>
|
<normaloff>:/icons/find.png</normaloff>:/icons/find.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>&Edit All...</string>
|
<string>&Edit All...</string>
|
||||||
|
@ -1407,7 +1408,7 @@
|
||||||
<action name="actionGraphs" >
|
<action name="actionGraphs" >
|
||||||
<property name="icon" >
|
<property name="icon" >
|
||||||
<iconset resource="../icons.qrc" >
|
<iconset resource="../icons.qrc" >
|
||||||
<normaloff>:/icons/colorscm.png</normaloff>:/icons/colorscm.png</iconset>
|
<normaloff>:/icons/view-statistics.png</normaloff>:/icons/view-statistics.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>&Graphs...</string>
|
<string>&Graphs...</string>
|
||||||
|
@ -1701,6 +1702,15 @@
|
||||||
<string>&Study Options...</string>
|
<string>&Study Options...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionDonate" >
|
||||||
|
<property name="icon" >
|
||||||
|
<iconset resource="../icons.qrc" >
|
||||||
|
<normaloff>:/icons/emblem-favorite.png</normaloff>:/icons/emblem-favorite.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Donate...</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>optionsButton</tabstop>
|
<tabstop>optionsButton</tabstop>
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/" >
|
<qresource prefix="/" >
|
||||||
|
<file>icons/find.png</file>
|
||||||
|
<file>icons/editclear.png</file>
|
||||||
|
<file>icons/view-statistics.png</file>
|
||||||
<file>icons/arrow-down-double.png</file>
|
<file>icons/arrow-down-double.png</file>
|
||||||
|
<file>icons/emblem-favorite.png</file>
|
||||||
<file>icons/arrow-up-double.png</file>
|
<file>icons/arrow-up-double.png</file>
|
||||||
<file>icons/arrow-down.png</file>
|
<file>icons/arrow-down.png</file>
|
||||||
<file>icons/arrow-up.png</file>
|
<file>icons/arrow-up.png</file>
|
||||||
|
|
BIN
icons/editclear.png
Normal file
After Width: | Height: | Size: 205 B |
BIN
icons/emblem-favorite.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
icons/find.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
icons/rating.png
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
icons/view-statistics.png
Normal file
After Width: | Height: | Size: 1.2 KiB |