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