10 from PyQt4.QtCore import pyqtSlot |
10 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog |
11 from PyQt4.QtGui import QDialog |
12 |
12 |
13 from Ui_GetterSetterDialog import Ui_GetterSetterDialog |
13 from Ui_GetterSetterDialog import Ui_GetterSetterDialog |
14 |
14 |
|
15 |
15 class GetterSetterDialog(QDialog, Ui_GetterSetterDialog): |
16 class GetterSetterDialog(QDialog, Ui_GetterSetterDialog): |
16 """ |
17 """ |
17 Class implementing a dialog to create getter and setter method names. |
18 Class implementing a dialog to create getter and setter method names. |
18 """ |
19 """ |
19 def __init__(self, fieldName, parent=None): |
20 def __init__(self, fieldName, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param fieldName name of the field to create getter and setter |
24 @param fieldName name of the field to create getter and setter |
24 method names (string) |
25 method names (string) |
25 @param parent parent widget of the dialog (QWidget) |
26 @param parent parent widget of the dialog (QWidget) |
26 """ |
27 """ |
27 QDialog.__init__(self, parent) |
28 QDialog.__init__(self, parent) |
28 self.setupUi(self) |
29 self.setupUi(self) |