|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Debugger.StartDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Debugger.StartDialog</h1> |
|
23 <p> |
|
24 Module implementing the Start Program dialog. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#StartDialog">StartDialog</a></td> |
|
34 <td>Class implementing the Start Program dialog.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="StartDialog" ID="StartDialog"></a> |
|
43 <h2>StartDialog</h2> |
|
44 <p> |
|
45 Class implementing the Start Program dialog. |
|
46 </p><p> |
|
47 It implements a dialog that is used to start an |
|
48 application for debugging. It asks the user to enter |
|
49 the commandline parameters, the working directory and |
|
50 whether exception reporting should be disabled. |
|
51 </p> |
|
52 <h3>Derived from</h3> |
|
53 QDialog |
|
54 <h3>Class Attributes</h3> |
|
55 <table> |
|
56 <tr><td>None</td></tr> |
|
57 </table> |
|
58 <h3>Class Methods</h3> |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Methods</h3> |
|
63 <table> |
|
64 <tr> |
|
65 <td><a href="#StartDialog.__init__">StartDialog</a></td> |
|
66 <td>Constructor</td> |
|
67 </tr><tr> |
|
68 <td><a href="#StartDialog.__clearHistories">__clearHistories</a></td> |
|
69 <td>Private slot to clear the combo boxes lists and record a flag to clear the lists.</td> |
|
70 </tr><tr> |
|
71 <td><a href="#StartDialog.getCoverageData">getCoverageData</a></td> |
|
72 <td>Public method to retrieve the coverage related data entered into this dialog.</td> |
|
73 </tr><tr> |
|
74 <td><a href="#StartDialog.getData">getData</a></td> |
|
75 <td>Public method to retrieve the data entered into this dialog.</td> |
|
76 </tr><tr> |
|
77 <td><a href="#StartDialog.getDebugData">getDebugData</a></td> |
|
78 <td>Public method to retrieve the debug related data entered into this dialog.</td> |
|
79 </tr><tr> |
|
80 <td><a href="#StartDialog.getProfilingData">getProfilingData</a></td> |
|
81 <td>Public method to retrieve the profiling related data entered into this dialog.</td> |
|
82 </tr><tr> |
|
83 <td><a href="#StartDialog.getRunData">getRunData</a></td> |
|
84 <td>Public method to retrieve the debug related data entered into this dialog.</td> |
|
85 </tr><tr> |
|
86 <td><a href="#StartDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
87 <td>Private slot called by a button of the button box clicked.</td> |
|
88 </tr><tr> |
|
89 <td><a href="#StartDialog.on_dirButton_clicked">on_dirButton_clicked</a></td> |
|
90 <td>Private method used to open a directory selection dialog.</td> |
|
91 </tr><tr> |
|
92 <td><a href="#StartDialog.on_modFuncCombo_editTextChanged">on_modFuncCombo_editTextChanged</a></td> |
|
93 <td>Private slot to enable/disable the OK button.</td> |
|
94 </tr> |
|
95 </table> |
|
96 <h3>Static Methods</h3> |
|
97 <table> |
|
98 <tr><td>None</td></tr> |
|
99 </table> |
|
100 <a NAME="StartDialog.__init__" ID="StartDialog.__init__"></a> |
|
101 <h4>StartDialog (Constructor)</h4> |
|
102 <b>StartDialog</b>(<i>caption, argvList, wdList, envList, exceptions, parent=None, type=0, modfuncList=None, tracePython=False, autoClearShell=True, autoContinue=True, autoFork=False, forkChild=False</i>) |
|
103 <p> |
|
104 Constructor |
|
105 </p><dl> |
|
106 <dt><i>caption</i></dt> |
|
107 <dd> |
|
108 the caption to be displayed (string) |
|
109 </dd><dt><i>argvList</i></dt> |
|
110 <dd> |
|
111 history list of commandline arguments (list of strings) |
|
112 </dd><dt><i>wdList</i></dt> |
|
113 <dd> |
|
114 history list of working directories (list of strings) |
|
115 </dd><dt><i>envList</i></dt> |
|
116 <dd> |
|
117 history list of environment settings (list of strings) |
|
118 </dd><dt><i>exceptions</i></dt> |
|
119 <dd> |
|
120 exception reporting flag (boolean) |
|
121 </dd><dt><i>parent</i></dt> |
|
122 <dd> |
|
123 parent widget of this dialog (QWidget) |
|
124 </dd><dt><i>type</i></dt> |
|
125 <dd> |
|
126 type of the start dialog |
|
127 <ul> |
|
128 <li>0 = start debug dialog</li> |
|
129 <li>1 = start run dialog</li> |
|
130 <li>2 = start coverage dialog</li> |
|
131 <li>3 = start profile dialog</li> |
|
132 </ul> |
|
133 </dd><dt><i>modfuncList=</i></dt> |
|
134 <dd> |
|
135 history list of module functions |
|
136 (list of strings) |
|
137 </dd><dt><i>tracePython=</i></dt> |
|
138 <dd> |
|
139 flag indicating if the Python library should |
|
140 be traced as well (boolean) |
|
141 </dd><dt><i>autoClearShell=</i></dt> |
|
142 <dd> |
|
143 flag indicating, that the interpreter window |
|
144 should be cleared automatically (boolean) |
|
145 </dd><dt><i>autoContinue=</i></dt> |
|
146 <dd> |
|
147 flag indicating, that the debugger should not |
|
148 stop at the first executable line (boolean) |
|
149 </dd><dt><i>autoFork=</i></dt> |
|
150 <dd> |
|
151 flag indicating the automatic fork mode (boolean) |
|
152 </dd><dt><i>forkChild=</i></dt> |
|
153 <dd> |
|
154 flag indicating to debug the child after forking |
|
155 (boolean) |
|
156 </dd> |
|
157 </dl><a NAME="StartDialog.__clearHistories" ID="StartDialog.__clearHistories"></a> |
|
158 <h4>StartDialog.__clearHistories</h4> |
|
159 <b>__clearHistories</b>(<i></i>) |
|
160 <p> |
|
161 Private slot to clear the combo boxes lists and record a flag to |
|
162 clear the lists. |
|
163 </p><a NAME="StartDialog.getCoverageData" ID="StartDialog.getCoverageData"></a> |
|
164 <h4>StartDialog.getCoverageData</h4> |
|
165 <b>getCoverageData</b>(<i></i>) |
|
166 <p> |
|
167 Public method to retrieve the coverage related data entered into this |
|
168 dialog. |
|
169 </p><dl> |
|
170 <dt>Returns:</dt> |
|
171 <dd> |
|
172 flag indicating erasure of coverage info (boolean) |
|
173 </dd> |
|
174 </dl><a NAME="StartDialog.getData" ID="StartDialog.getData"></a> |
|
175 <h4>StartDialog.getData</h4> |
|
176 <b>getData</b>(<i></i>) |
|
177 <p> |
|
178 Public method to retrieve the data entered into this dialog. |
|
179 </p><dl> |
|
180 <dt>Returns:</dt> |
|
181 <dd> |
|
182 a tuple of argv (string), workdir (string), environment |
|
183 (string), exceptions flag (boolean), clear interpreter flag |
|
184 (boolean), clear histories flag (boolean) and run in console |
|
185 flag (boolean) |
|
186 </dd> |
|
187 </dl><a NAME="StartDialog.getDebugData" ID="StartDialog.getDebugData"></a> |
|
188 <h4>StartDialog.getDebugData</h4> |
|
189 <b>getDebugData</b>(<i></i>) |
|
190 <p> |
|
191 Public method to retrieve the debug related data entered into this |
|
192 dialog. |
|
193 </p><dl> |
|
194 <dt>Returns:</dt> |
|
195 <dd> |
|
196 a tuple of a flag indicating, if the Python library should be |
|
197 traced as well, a flag indicating, that the debugger should not |
|
198 stop at the first executable line (boolean), a flag indicating, |
|
199 that the debugger should fork automatically (boolean) and a flag |
|
200 indicating, that the debugger should debug the child process after |
|
201 forking automatically (boolean) |
|
202 </dd> |
|
203 </dl><a NAME="StartDialog.getProfilingData" ID="StartDialog.getProfilingData"></a> |
|
204 <h4>StartDialog.getProfilingData</h4> |
|
205 <b>getProfilingData</b>(<i></i>) |
|
206 <p> |
|
207 Public method to retrieve the profiling related data entered into this |
|
208 dialog. |
|
209 </p><dl> |
|
210 <dt>Returns:</dt> |
|
211 <dd> |
|
212 flag indicating erasure of profiling info (boolean) |
|
213 </dd> |
|
214 </dl><a NAME="StartDialog.getRunData" ID="StartDialog.getRunData"></a> |
|
215 <h4>StartDialog.getRunData</h4> |
|
216 <b>getRunData</b>(<i></i>) |
|
217 <p> |
|
218 Public method to retrieve the debug related data entered into this |
|
219 dialog. |
|
220 </p><dl> |
|
221 <dt>Returns:</dt> |
|
222 <dd> |
|
223 a tuple of a flag indicating, that the debugger should fork |
|
224 automatically (boolean) and a flag indicating, that the debugger |
|
225 should debug the child process after forking automatically |
|
226 (boolean) |
|
227 </dd> |
|
228 </dl><a NAME="StartDialog.on_buttonBox_clicked" ID="StartDialog.on_buttonBox_clicked"></a> |
|
229 <h4>StartDialog.on_buttonBox_clicked</h4> |
|
230 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
231 <p> |
|
232 Private slot called by a button of the button box clicked. |
|
233 </p><dl> |
|
234 <dt><i>button</i></dt> |
|
235 <dd> |
|
236 button that was clicked (QAbstractButton) |
|
237 </dd> |
|
238 </dl><a NAME="StartDialog.on_dirButton_clicked" ID="StartDialog.on_dirButton_clicked"></a> |
|
239 <h4>StartDialog.on_dirButton_clicked</h4> |
|
240 <b>on_dirButton_clicked</b>(<i></i>) |
|
241 <p> |
|
242 Private method used to open a directory selection dialog. |
|
243 </p><a NAME="StartDialog.on_modFuncCombo_editTextChanged" ID="StartDialog.on_modFuncCombo_editTextChanged"></a> |
|
244 <h4>StartDialog.on_modFuncCombo_editTextChanged</h4> |
|
245 <b>on_modFuncCombo_editTextChanged</b>(<i></i>) |
|
246 <p> |
|
247 Private slot to enable/disable the OK button. |
|
248 </p> |
|
249 <div align="right"><a href="#top">Up</a></div> |
|
250 <hr /> |
|
251 </body></html> |