mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
jump to editor from add cards area
This commit is contained in:
parent
3855183213
commit
02bc090828
2 changed files with 7 additions and 11 deletions
|
@ -121,11 +121,9 @@ class AddCards(QDialog):
|
||||||
m.exec_(self.historyButton.mapToGlobal(QPoint(0,0)))
|
m.exec_(self.historyButton.mapToGlobal(QPoint(0,0)))
|
||||||
|
|
||||||
def editHistory(self, fid):
|
def editHistory(self, fid):
|
||||||
print "edit", fid
|
browser = aqt.dialogs.open("Browser", self.mw)
|
||||||
# browser = ui.dialogs.open("CardList", self.mw)
|
browser.form.searchEdit.setText("fid:%d" % fid)
|
||||||
# browser.dialog.filterEdit.setText("fid:" + url.toString())
|
browser.onSearch()
|
||||||
# browser.updateSearch()
|
|
||||||
# browser.onFact()
|
|
||||||
|
|
||||||
def addFact(self, fact):
|
def addFact(self, fact):
|
||||||
if any(fact.problems()):
|
if any(fact.problems()):
|
||||||
|
|
|
@ -727,6 +727,9 @@ where id in %s""" % ids2str(sf))
|
||||||
# but otherwise we can put it off until the user starts studying again
|
# but otherwise we can put it off until the user starts studying again
|
||||||
print "fixme: resetDeck()"
|
print "fixme: resetDeck()"
|
||||||
|
|
||||||
|
def onHelp(self):
|
||||||
|
aqt.openHelp("Browser")
|
||||||
|
|
||||||
# Misc menu options
|
# Misc menu options
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
@ -962,6 +965,7 @@ where id in %s""" % ids2str(sf))
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
def onFindDupes(self):
|
def onFindDupes(self):
|
||||||
|
return showInfo("not yet implemented")
|
||||||
win = QDialog(self)
|
win = QDialog(self)
|
||||||
aqt = ankiqt.forms.finddupes.Ui_Dialog()
|
aqt = ankiqt.forms.finddupes.Ui_Dialog()
|
||||||
dialog.setupUi(win)
|
dialog.setupUi(win)
|
||||||
|
@ -1087,12 +1091,6 @@ select fm.id, fm.name from fieldmodels fm""")
|
||||||
def onCardList(self):
|
def onCardList(self):
|
||||||
self.form.tableView.setFocus()
|
self.form.tableView.setFocus()
|
||||||
|
|
||||||
# Help
|
|
||||||
######################################################################
|
|
||||||
|
|
||||||
def onHelp(self):
|
|
||||||
aqt.openHelp("Browser")
|
|
||||||
|
|
||||||
# Generate cards
|
# Generate cards
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue