26 |
26 |
27 def __init__(self, argvList, ppath, parent=None): |
27 def __init__(self, argvList, ppath, parent=None): |
28 """ |
28 """ |
29 Constructor |
29 Constructor |
30 |
30 |
31 @param argvList history list of commandline arguments (list of strings) |
31 @param argvList history list of commandline arguments |
32 @param ppath pathname of the project directory (string) |
32 @type list of str |
33 @param parent parent widget of this dialog (QWidget) |
33 @param ppath pathname of the project directory |
|
34 @type str |
|
35 @param parent parent widget of this dialog |
|
36 @type QWidget |
34 """ |
37 """ |
35 super().__init__(parent) |
38 super().__init__(parent) |
36 self.setupUi(self) |
39 self.setupUi(self) |
37 |
40 |
38 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
41 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
59 @pyqtSlot(str) |
62 @pyqtSlot(str) |
60 def on_commandCombo_editTextChanged(self, text): |
63 def on_commandCombo_editTextChanged(self, text): |
61 """ |
64 """ |
62 Private method used to enable/disable the OK-button. |
65 Private method used to enable/disable the OK-button. |
63 |
66 |
64 @param text ignored |
67 @param text text of the combobox |
|
68 @type str |
65 """ |
69 """ |
66 self.okButton.setDisabled(self.commandCombo.currentText() == "") |
70 self.okButton.setDisabled(self.commandCombo.currentText() == "") |
67 |
71 |
68 def getData(self): |
72 def getData(self): |
69 """ |
73 """ |
70 Public method to retrieve the data entered into this dialog. |
74 Public method to retrieve the data entered into this dialog. |
71 |
75 |
72 @return commandline parameters (string) |
76 @return commandline parameters |
|
77 @rtype str |
73 """ |
78 """ |
74 return self.commandCombo.currentText() |
79 return self.commandCombo.currentText() |