10 from PyQt4.QtCore import pyqtSlot |
10 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 |
12 |
13 from Ui_AddParameterDialog import Ui_AddParameterDialog |
13 from Ui_AddParameterDialog import Ui_AddParameterDialog |
14 |
14 |
|
15 |
15 class AddParameterDialog(QDialog, Ui_AddParameterDialog): |
16 class AddParameterDialog(QDialog, Ui_AddParameterDialog): |
16 """ |
17 """ |
17 Class implementing the Add New Parameter dialog. |
18 Class implementing the Add New Parameter dialog. |
18 """ |
19 """ |
19 def __init__(self, parent = None): |
20 def __init__(self, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param parent reference to the parent widget (QWidget) |
24 @param parent reference to the parent widget (QWidget) |
24 """ |
25 """ |
41 """ |
42 """ |
42 Public method to extract the data entered into the dialog. |
43 Public method to extract the data entered into the dialog. |
43 |
44 |
44 @return tuple of three strings (name, default and value) |
45 @return tuple of three strings (name, default and value) |
45 """ |
46 """ |
46 return (self.nameEdit.text(), |
47 return (self.nameEdit.text(), |
47 self.defaultEdit.text(), |
48 self.defaultEdit.text(), |
48 self.valueEdit.text()) |
49 self.valueEdit.text()) |