MultiProject/PropertiesDialog.py

changeset 0
de9c2efb9d02
child 6
52e8c820d0dd
equal deleted inserted replaced
-1:000000000000 0:de9c2efb9d02
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2008 - 2009 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the multi project properties dialog.
8 """
9
10 from PyQt4.QtGui import QDialog
11
12 from Ui_PropertiesDialog import Ui_PropertiesDialog
13
14 class PropertiesDialog(QDialog, Ui_PropertiesDialog):
15 """
16 Class implementing the multi project properties dialog.
17 """
18 def __init__(self, multiProject, new = True, parent = None):
19 """
20 Constructor
21
22 @param multiProject reference to the multi project object
23 @param new flag indicating the generation of a new multi project
24 @param parent parent widget of this dialog (QWidget)
25 """
26 QDialog.__init__(self, parent)
27 self.setupUi(self)
28
29 self.multiProject = multiProject
30 self.newMultiProject = new
31
32 if not new:
33 self.descriptionEdit.setPlainText(self.multiProject.description)
34
35 def storeData(self):
36 """
37 Public method to store the entered/modified data.
38 """
39 self.multiProject.description = unicode(self.descriptionEdit.toPlainText())

eric ide

mercurial