PluginManager/PluginDetailsDialog.py

changeset 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
-1:000000000000 0:de9c2efb9d02
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2007 - 2009 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6
7 """
8 Module implementing the Plugin Details Dialog.
9 """
10
11 from PyQt4.QtGui import QDialog
12 from PyQt4.QtCore import pyqtSlot
13
14 from Ui_PluginDetailsDialog import Ui_PluginDetailsDialog
15
16 class PluginDetailsDialog(QDialog, Ui_PluginDetailsDialog):
17 """
18 Class implementing the Plugin Details Dialog.
19 """
20 def __init__(self, details, parent = None):
21 """
22 Constructor
23
24 @param details dictionary containing the info to be displayed
25 @param parent parent of this dialog (QWidget)
26 """
27 QDialog.__init__(self, parent)
28 self.setupUi(self)
29
30 self.__autoactivate = details["autoactivate"]
31 self.__active = details["active"]
32
33 self.moduleNameEdit.setText(details["moduleName"])
34 self.moduleFileNameEdit.setText(details["moduleFileName"])
35 self.pluginNameEdit.setText(details["pluginName"])
36 self.versionEdit.setText(details["version"])
37 self.authorEdit.setText(details["author"])
38 self.descriptionEdit.setText(details["description"])
39 self.errorEdit.setText(details["error"])
40 self.autoactivateCheckBox.setChecked(details["autoactivate"])
41 self.activeCheckBox.setChecked(details["active"])
42
43 @pyqtSlot()
44 def on_activeCheckBox_clicked(self):
45 """
46 Private slot called, when the activeCheckBox was clicked.
47 """
48 self.activeCheckBox.setChecked(self.__active)
49
50 @pyqtSlot()
51 def on_autoactivateCheckBox_clicked(self):
52 """
53 Private slot called, when the autoactivateCheckBox was clicked.
54 """
55 self.autoactivateCheckBox.setChecked(self.__autoactivate)

eric ide

mercurial