Helpviewer/OpenSearch/OpenSearchDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3002
6ffc581f00f1
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
24 Class implementing a dialog for the configuration of search engines. 24 Class implementing a dialog for the configuration of search engines.
25 """ 25 """
26 def __init__(self, parent=None): 26 def __init__(self, parent=None):
27 """ 27 """
28 Constructor 28 Constructor
29
30 @param parent reference to the parent object (QWidget)
29 """ 31 """
30 super(OpenSearchDialog, self).__init__(parent) 32 super(OpenSearchDialog, self).__init__(parent)
31 self.setupUi(self) 33 self.setupUi(self)
32 34
33 self.setModal(True) 35 self.setModal(True)
61 osm = self.__mw.openSearchManager() 63 osm = self.__mw.openSearchManager()
62 for fileName in fileNames: 64 for fileName in fileNames:
63 if not osm.addEngine(fileName): 65 if not osm.addEngine(fileName):
64 E5MessageBox.critical(self, 66 E5MessageBox.critical(self,
65 self.trUtf8("Add search engine"), 67 self.trUtf8("Add search engine"),
66 self.trUtf8("""{0} is not a valid OpenSearch 1.1 description or""" 68 self.trUtf8(
67 """ is already on your list.""").format(fileName)) 69 """{0} is not a valid OpenSearch 1.1 description or"""
70 """ is already on your list.""").format(fileName))
68 71
69 @pyqtSlot() 72 @pyqtSlot()
70 def on_deleteButton_clicked(self): 73 def on_deleteButton_clicked(self):
71 """ 74 """
72 Private slot to delete the selected search engines. 75 Private slot to delete the selected search engines.

eric ide

mercurial