27 |
27 |
28 def __init__(self, argvList, wdList, ppath, parent=None): |
28 def __init__(self, argvList, wdList, ppath, parent=None): |
29 """ |
29 """ |
30 Constructor |
30 Constructor |
31 |
31 |
32 @param argvList history list of commandline arguments (list of strings) |
32 @param argvList history list of commandline arguments |
33 @param wdList history list of working directories (list of strings) |
33 @type list of str |
34 @param ppath pathname of the project directory (string) |
34 @param wdList history list of working directories |
35 @param parent parent widget of this dialog (QWidget) |
35 @type list of str |
|
36 @param ppath pathname of the project directory |
|
37 @type str |
|
38 @param parent parent widget of this dialog |
|
39 @type QWidget |
36 """ |
40 """ |
37 super().__init__(parent) |
41 super().__init__(parent) |
38 self.setupUi(self) |
42 self.setupUi(self) |
39 |
43 |
40 self.workdirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) |
44 self.workdirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) |
67 @pyqtSlot(str) |
71 @pyqtSlot(str) |
68 def on_commandCombo_editTextChanged(self, text): |
72 def on_commandCombo_editTextChanged(self, text): |
69 """ |
73 """ |
70 Private method used to enable/disable the OK-button. |
74 Private method used to enable/disable the OK-button. |
71 |
75 |
72 @param text ignored |
76 @param text text of the command combobox |
|
77 @type str |
73 """ |
78 """ |
74 self.okButton.setDisabled(self.commandCombo.currentText() == "") |
79 self.okButton.setDisabled(self.commandCombo.currentText() == "") |
75 |
80 |
76 def getData(self): |
81 def getData(self): |
77 """ |
82 """ |
78 Public method to retrieve the data entered into this dialog. |
83 Public method to retrieve the data entered into this dialog. |
79 |
84 |
80 @return a tuple of argv, workdir |
85 @return tuple cotaining the command line arguments and the working directory |
|
86 @rtype tuple of (str, str) |
81 """ |
87 """ |
82 return (self.commandCombo.currentText(), self.workdirPicker.currentText()) |
88 return (self.commandCombo.currentText(), self.workdirPicker.currentText()) |