PluginManager/PluginDetailsDialog.py

changeset 0
de9c2efb9d02
child 12
1d8dd9706f46
diff -r 000000000000 -r de9c2efb9d02 PluginManager/PluginDetailsDialog.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PluginManager/PluginDetailsDialog.py	Mon Dec 28 16:03:33 2009 +0000
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2007 - 2009 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+
+"""
+Module implementing the Plugin Details Dialog.
+"""
+
+from PyQt4.QtGui import QDialog
+from PyQt4.QtCore import pyqtSlot
+
+from Ui_PluginDetailsDialog import Ui_PluginDetailsDialog
+
+class PluginDetailsDialog(QDialog, Ui_PluginDetailsDialog):
+    """
+    Class implementing the Plugin Details Dialog.
+    """
+    def __init__(self, details, parent = None):
+        """
+        Constructor
+        
+        @param details dictionary containing the info to be displayed
+        @param parent parent of this dialog (QWidget)
+        """
+        QDialog.__init__(self, parent)
+        self.setupUi(self)
+        
+        self.__autoactivate = details["autoactivate"]
+        self.__active = details["active"]
+        
+        self.moduleNameEdit.setText(details["moduleName"])
+        self.moduleFileNameEdit.setText(details["moduleFileName"])
+        self.pluginNameEdit.setText(details["pluginName"])
+        self.versionEdit.setText(details["version"])
+        self.authorEdit.setText(details["author"])
+        self.descriptionEdit.setText(details["description"])
+        self.errorEdit.setText(details["error"])
+        self.autoactivateCheckBox.setChecked(details["autoactivate"])
+        self.activeCheckBox.setChecked(details["active"])
+    
+    @pyqtSlot()
+    def on_activeCheckBox_clicked(self):
+        """
+        Private slot called, when the activeCheckBox was clicked.
+        """
+        self.activeCheckBox.setChecked(self.__active)
+    
+    @pyqtSlot()
+    def on_autoactivateCheckBox_clicked(self):
+        """
+        Private slot called, when the autoactivateCheckBox was clicked.
+        """
+        self.autoactivateCheckBox.setChecked(self.__autoactivate)

eric ide

mercurial