14 Ui_GreaseMonkeyConfigurationScriptInfoDialog, |
14 Ui_GreaseMonkeyConfigurationScriptInfoDialog, |
15 ) |
15 ) |
16 |
16 |
17 from ..GreaseMonkeyScript import GreaseMonkeyScript |
17 from ..GreaseMonkeyScript import GreaseMonkeyScript |
18 |
18 |
19 import UI.PixmapCache |
19 from eric7.EricGui import EricPixmapCache |
20 |
20 |
21 |
21 |
22 class GreaseMonkeyConfigurationScriptInfoDialog( |
22 class GreaseMonkeyConfigurationScriptInfoDialog( |
23 QDialog, Ui_GreaseMonkeyConfigurationScriptInfoDialog |
23 QDialog, Ui_GreaseMonkeyConfigurationScriptInfoDialog |
24 ): |
24 ): |
34 @param parent reference to the parent widget (QWidget) |
34 @param parent reference to the parent widget (QWidget) |
35 """ |
35 """ |
36 super().__init__(parent) |
36 super().__init__(parent) |
37 self.setupUi(self) |
37 self.setupUi(self) |
38 |
38 |
39 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("greaseMonkey48")) |
39 self.iconLabel.setPixmap(EricPixmapCache.getPixmap("greaseMonkey48")) |
40 |
40 |
41 self.__scriptFileName = script.fileName() |
41 self.__scriptFileName = script.fileName() |
42 |
42 |
43 self.setWindowTitle(self.tr("Script Details of {0}").format(script.name())) |
43 self.setWindowTitle(self.tr("Script Details of {0}").format(script.name())) |
44 |
44 |
56 @pyqtSlot() |
56 @pyqtSlot() |
57 def on_showScriptSourceButton_clicked(self): |
57 def on_showScriptSourceButton_clicked(self): |
58 """ |
58 """ |
59 Private slot to show an editor window with the script source code. |
59 Private slot to show an editor window with the script source code. |
60 """ |
60 """ |
61 from QScintilla.MiniEditor import MiniEditor |
61 from eric7.QScintilla.MiniEditor import MiniEditor |
62 |
62 |
63 editor = MiniEditor(self.__scriptFileName, "JavaScript", self) |
63 editor = MiniEditor(self.__scriptFileName, "JavaScript", self) |
64 editor.show() |
64 editor.show() |