delete rename tags from find&replace

This commit is contained in:
Damien Elmes 2009-03-14 10:45:25 +09:00
parent 11ff28310b
commit 74b71ea8c6
2 changed files with 0 additions and 16 deletions

View file

@ -826,9 +826,6 @@ where id in %s""" % ids2str(sf))
frm.setupUi(d) frm.setupUi(d)
self.connect(frm.buttonBox, SIGNAL("helpRequested()"), self.connect(frm.buttonBox, SIGNAL("helpRequested()"),
self.onFindReplaceHelp) self.onFindReplaceHelp)
frm.type.insertItems(0, [
_("Fields"),
_("Tags")])
if not d.exec_(): if not d.exec_():
return return
n = _("Find and Replace") n = _("Find and Replace")
@ -843,7 +840,6 @@ where id in %s""" % ids2str(sf))
changed = self.deck.findReplace(self.selectedFacts(), changed = self.deck.findReplace(self.selectedFacts(),
unicode(frm.find.text()), unicode(frm.find.text()),
unicode(frm.replace.text()), unicode(frm.replace.text()),
frm.type.currentIndex(),
frm.re.isChecked()) frm.re.isChecked())
except sre_constants.error: except sre_constants.error:
ui.utils.showInfo(_("Invalid regular expression."), ui.utils.showInfo(_("Invalid regular expression."),
@ -860,7 +856,6 @@ where id in %s""" % ids2str(sf))
'b': len(sf), 'b': len(sf),
}, parent=self) }, parent=self)
def onFindReplaceHelp(self): def onFindReplaceHelp(self):
QDesktopServices.openUrl(QUrl(ankiqt.appWiki + QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
"Editor#FindReplace")) "Editor#FindReplace"))

View file

@ -36,16 +36,6 @@
<widget class="QLineEdit" name="replace" /> <widget class="QLineEdit" name="replace" />
</item> </item>
<item row="2" column="1" > <item row="2" column="1" >
<widget class="QComboBox" name="type" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Search</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QCheckBox" name="re" > <widget class="QCheckBox" name="re" >
<property name="text" > <property name="text" >
<string>Treat input as regular expression</string> <string>Treat input as regular expression</string>
@ -82,7 +72,6 @@
<tabstops> <tabstops>
<tabstop>find</tabstop> <tabstop>find</tabstop>
<tabstop>replace</tabstop> <tabstop>replace</tabstop>
<tabstop>type</tabstop>
<tabstop>re</tabstop> <tabstop>re</tabstop>
<tabstop>buttonBox</tabstop> <tabstop>buttonBox</tabstop>
</tabstops> </tabstops>