15 |
15 |
16 class PluginDetailsDialog(QDialog, Ui_PluginDetailsDialog): |
16 class PluginDetailsDialog(QDialog, Ui_PluginDetailsDialog): |
17 """ |
17 """ |
18 Class implementing the Plugin Details Dialog. |
18 Class implementing the Plugin Details Dialog. |
19 """ |
19 """ |
|
20 |
20 def __init__(self, details, parent=None): |
21 def __init__(self, details, parent=None): |
21 """ |
22 """ |
22 Constructor |
23 Constructor |
23 |
24 |
24 @param details dictionary containing the info to be displayed |
25 @param details dictionary containing the info to be displayed |
25 @param parent parent of this dialog (QWidget) |
26 @param parent parent of this dialog (QWidget) |
26 """ |
27 """ |
27 super().__init__(parent) |
28 super().__init__(parent) |
28 self.setupUi(self) |
29 self.setupUi(self) |
29 self.setWindowFlags(Qt.WindowType.Window) |
30 self.setWindowFlags(Qt.WindowType.Window) |
30 |
31 |
31 self.__autoactivate = details["autoactivate"] |
32 self.__autoactivate = details["autoactivate"] |
32 self.__active = details["active"] |
33 self.__active = details["active"] |
33 |
34 |
34 self.moduleNameEdit.setText(details["moduleName"]) |
35 self.moduleNameEdit.setText(details["moduleName"]) |
35 self.moduleFileNameEdit.setText(details["moduleFileName"]) |
36 self.moduleFileNameEdit.setText(details["moduleFileName"]) |
36 self.pluginNameEdit.setText(details["pluginName"]) |
37 self.pluginNameEdit.setText(details["pluginName"]) |
37 self.versionEdit.setText(details["version"]) |
38 self.versionEdit.setText(details["version"]) |
38 self.authorEdit.setText(details["author"]) |
39 self.authorEdit.setText(details["author"]) |
39 self.descriptionEdit.setText(details["description"]) |
40 self.descriptionEdit.setText(details["description"]) |
40 self.errorEdit.setText(details["error"]) |
41 self.errorEdit.setText(details["error"]) |
41 self.autoactivateCheckBox.setChecked(details["autoactivate"]) |
42 self.autoactivateCheckBox.setChecked(details["autoactivate"]) |
42 self.activeCheckBox.setChecked(details["active"]) |
43 self.activeCheckBox.setChecked(details["active"]) |
43 |
44 |
44 @pyqtSlot() |
45 @pyqtSlot() |
45 def on_activeCheckBox_clicked(self): |
46 def on_activeCheckBox_clicked(self): |
46 """ |
47 """ |
47 Private slot called, when the activeCheckBox was clicked. |
48 Private slot called, when the activeCheckBox was clicked. |
48 """ |
49 """ |
49 self.activeCheckBox.setChecked(self.__active) |
50 self.activeCheckBox.setChecked(self.__active) |
50 |
51 |
51 @pyqtSlot() |
52 @pyqtSlot() |
52 def on_autoactivateCheckBox_clicked(self): |
53 def on_autoactivateCheckBox_clicked(self): |
53 """ |
54 """ |
54 Private slot called, when the autoactivateCheckBox was clicked. |
55 Private slot called, when the autoactivateCheckBox was clicked. |
55 """ |
56 """ |