19 |
19 |
20 import UI.PixmapCache |
20 import UI.PixmapCache |
21 |
21 |
22 |
22 |
23 class GreaseMonkeyConfigurationDialog( |
23 class GreaseMonkeyConfigurationDialog( |
24 QDialog, Ui_GreaseMonkeyConfigurationDialog): |
24 QDialog, Ui_GreaseMonkeyConfigurationDialog): |
25 """ |
25 """ |
26 Class implementing the GreaseMonkey scripts configuration dialog. |
26 Class implementing the GreaseMonkey scripts configuration dialog. |
27 """ |
27 """ |
28 ScriptVersionRole = Qt.UserRole |
28 ScriptVersionRole = Qt.UserRole |
29 ScriptDescriptionRole = Qt.UserRole + 1 |
29 ScriptDescriptionRole = Qt.UserRole + 1 |
148 removeIt = E5MessageBox.yesNo( |
148 removeIt = E5MessageBox.yesNo( |
149 self, |
149 self, |
150 self.trUtf8("Remove Script"), |
150 self.trUtf8("Remove Script"), |
151 self.trUtf8( |
151 self.trUtf8( |
152 """<p>Are you sure you want to remove <b>{0}</b>?</p>""") |
152 """<p>Are you sure you want to remove <b>{0}</b>?</p>""") |
153 .format(script.name())) |
153 .format(script.name())) |
154 if removeIt and self.__manager.removeScript(script): |
154 if removeIt and self.__manager.removeScript(script): |
155 self.scriptsList.takeItem(self.scriptsList.row(itm)) |
155 self.scriptsList.takeItem(self.scriptsList.row(itm)) |
156 del itm |
156 del itm |
157 |
157 |
158 def __itemChanged(self, itm): |
158 def __itemChanged(self, itm): |