mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
add link to add cards from browser
This commit is contained in:
parent
e1fab204f1
commit
1122eed357
3 changed files with 15 additions and 15 deletions
|
@ -621,6 +621,7 @@ class EditDeck(QMainWindow):
|
|||
|
||||
def setupMenus(self):
|
||||
# actions
|
||||
self.connect(self.dialog.actionAddItems, SIGNAL("triggered()"), self.parent.onAddCard)
|
||||
self.connect(self.dialog.actionDelete, SIGNAL("triggered()"), self.deleteCards)
|
||||
self.connect(self.dialog.actionAddTag, SIGNAL("triggered()"), self.addTags)
|
||||
self.connect(self.dialog.actionDeleteTag, SIGNAL("triggered()"), self.deleteTags)
|
||||
|
|
|
@ -2497,7 +2497,6 @@ it to your friends.
|
|||
anki.sound.checkForNoiseProfile()
|
||||
if sys.platform.startswith("darwin"):
|
||||
self.mainWin.actionRecordNoiseProfile.setEnabled(False)
|
||||
addHook("soundQueued", self.onSoundQueued)
|
||||
|
||||
def onRepeatAudio(self):
|
||||
clearAudioQueue()
|
||||
|
@ -2511,20 +2510,6 @@ it to your friends.
|
|||
from ui.sound import recordNoiseProfile
|
||||
recordNoiseProfile(self)
|
||||
|
||||
def onSoundQueued(self):
|
||||
pass
|
||||
# this doesn't work
|
||||
# if sys.platform.startswith("darwin"):
|
||||
# # because the gui doesn't return focus, manually focus anki again
|
||||
# t = QTimer(self)
|
||||
# t.setSingleShot(True)
|
||||
# t.start(1000)
|
||||
# self.connect(t, SIGNAL("timeout()"),
|
||||
# self.onSoundTimer)
|
||||
|
||||
def onSoundTimer(self):
|
||||
self.activateWindow()
|
||||
|
||||
# Progress info
|
||||
##########################################################################
|
||||
|
||||
|
|
|
@ -191,6 +191,8 @@
|
|||
<property name="title">
|
||||
<string>&Actions</string>
|
||||
</property>
|
||||
<addaction name="actionAddItems"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionAddTag"/>
|
||||
<addaction name="actionDeleteTag"/>
|
||||
<addaction name="separator"/>
|
||||
|
@ -474,6 +476,18 @@
|
|||
<string>Ctrl+Shift+S</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAddItems">
|
||||
<property name="icon">
|
||||
<iconset resource="../icons.qrc">
|
||||
<normaloff>:/icons/list-add.png</normaloff>:/icons/list-add.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add &Items</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+D</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../icons.qrc"/>
|
||||
|
|
Loading…
Reference in a new issue