remove cache/uncache latex, and export original media menu items

This commit is contained in:
Damien Elmes 2010-12-10 23:58:47 +09:00
parent 174c5a703b
commit 464a9be86f
2 changed files with 0 additions and 48 deletions

View file

@ -2474,13 +2474,10 @@ This deck already exists on your computer. Overwrite the local copy?"""),
self.connect(m.actionEnableAllPlugins, s, self.onEnableAllPlugins)
self.connect(m.actionDisableAllPlugins, s, self.onDisableAllPlugins)
self.connect(m.actionReleaseNotes, s, self.onReleaseNotes)
self.connect(m.actionCacheLatex, s, self.onCacheLatex)
self.connect(m.actionUncacheLatex, s, self.onUncacheLatex)
self.connect(m.actionStudyOptions, s, self.onStudyOptions)
self.connect(m.actionDonate, s, self.onDonate)
self.connect(m.actionRecordNoiseProfile, s, self.onRecordNoiseProfile)
self.connect(m.actionBuryFact, s, self.onBuryFact)
self.connect(m.actionExportOriginalFiles, s, self.onExportOriginal)
def enableDeckMenuItems(self, enabled=True):
"setEnabled deck-related items."
@ -3077,20 +3074,6 @@ Consider backing up your media directory first."""))
def addHook(self, *args):
addHook(*args)
def onCacheLatex(self):
anki.latex.cacheAllLatexImages(self.deck)
def onUncacheLatex(self):
if ui.utils.askUser(_("Delete LaTeX image cache?")):
anki.latex.deleteAllLatexImages(self.deck)
def onExportOriginal(self):
cnt = anki.media.exportOriginalFiles(self.deck)
ui.utils.showInfo(ngettext(
"%(a)d file exported to %(b)s.originals folder.",
"%(a)d files exported to %(b)s.originals folder.",
cnt) % {'a': cnt, 'b': self.deck.name()})
# System specific misc
##########################################################################

View file

@ -3083,10 +3083,7 @@
<addaction name="actionCheckMediaDatabase"/>
<addaction name="actionRecordNoiseProfile"/>
<addaction name="actionDownloadMissingMedia"/>
<addaction name="actionExportOriginalFiles"/>
<addaction name="separator"/>
<addaction name="actionCacheLatex"/>
<addaction name="actionUncacheLatex"/>
</widget>
<addaction name="actionGraphs"/>
<addaction name="actionDstats"/>
@ -3614,22 +3611,6 @@
<string>Ctrl+Del</string>
</property>
</action>
<action name="actionCacheLatex">
<property name="text">
<string>Cache LaTeX</string>
</property>
<property name="statusTip">
<string>Pre-generate PNG images of LaTeX cards</string>
</property>
</action>
<action name="actionUncacheLatex">
<property name="text">
<string>Uncache LaTeX</string>
</property>
<property name="statusTip">
<string>Remove generated PNG images of LaTeX cards</string>
</property>
</action>
<action name="actionStudyOptions">
<property name="icon">
<iconset resource="../icons.qrc">
@ -3732,18 +3713,6 @@
<string>Download Missing Media</string>
</property>
</action>
<action name="actionExportOriginalFiles">
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/document-export.png</normaloff>:/icons/document-export.png</iconset>
</property>
<property name="text">
<string>Export Original Files</string>
</property>
<property name="statusTip">
<string>Save media files using original file names</string>
</property>
</action>
<action name="actionEditLayout">
<property name="icon">
<iconset resource="../icons.qrc">