eric7/Documentation/Source/eric7.Plugins.DocumentationPlugins.Ericapi.EricapiConfigDialog.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.DocumentationPlugins.Ericapi.EricapiConfigDialog</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>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.Plugins.DocumentationPlugins.Ericapi.EricapiConfigDialog</h1>
24
25 <p>
26 Module implementing a dialog to enter the parameters for eric7_api.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#EricapiConfigDialog">EricapiConfigDialog</a></td>
39 <td>Class implementing a dialog to enter the parameters for eric7_api.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="EricapiConfigDialog" ID="EricapiConfigDialog"></a>
50 <h2>EricapiConfigDialog</h2>
51
52 <p>
53 Class implementing a dialog to enter the parameters for eric7_api.
54 </p>
55 <h3>Derived from</h3>
56 QDialog, Ui_EricapiConfigDialog
57 <h3>Class Attributes</h3>
58
59 <table>
60 <tr><td>None</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63
64 <table>
65 <tr><td>None</td></tr>
66 </table>
67 <h3>Methods</h3>
68
69 <table>
70
71 <tr>
72 <td><a href="#EricapiConfigDialog.__init__">EricapiConfigDialog</a></td>
73 <td>Constructor</td>
74 </tr>
75 <tr>
76 <td><a href="#EricapiConfigDialog.__initializeDefaults">__initializeDefaults</a></td>
77 <td>Private method to set the default values.</td>
78 </tr>
79 <tr>
80 <td><a href="#EricapiConfigDialog.accept">accept</a></td>
81 <td>Public slot called by the Ok button.</td>
82 </tr>
83 <tr>
84 <td><a href="#EricapiConfigDialog.generateParameters">generateParameters</a></td>
85 <td>Public method that generates the commandline parameters.</td>
86 </tr>
87 <tr>
88 <td><a href="#EricapiConfigDialog.on_addButton_clicked">on_addButton_clicked</a></td>
89 <td>Private slot to add the directory displayed to the listview.</td>
90 </tr>
91 <tr>
92 <td><a href="#EricapiConfigDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td>
93 <td>Private slot to delete the currently selected directory of the listbox.</td>
94 </tr>
95 <tr>
96 <td><a href="#EricapiConfigDialog.on_ignoreDirPicker_pathSelected">on_ignoreDirPicker_pathSelected</a></td>
97 <td>Private slot handling the selection of a directory to be ignored.</td>
98 </tr>
99 <tr>
100 <td><a href="#EricapiConfigDialog.on_outputFilePicker_aboutToShowPathPickerDialog">on_outputFilePicker_aboutToShowPathPickerDialog</a></td>
101 <td>Private slot called before the file selection dialog is shown.</td>
102 </tr>
103 <tr>
104 <td><a href="#EricapiConfigDialog.on_outputFilePicker_pathSelected">on_outputFilePicker_pathSelected</a></td>
105 <td>Private slot handling the selection of an output file.</td>
106 </tr>
107 <tr>
108 <td><a href="#EricapiConfigDialog.on_outputFilePicker_textChanged">on_outputFilePicker_textChanged</a></td>
109 <td>Private slot to enable/disable the "OK" button.</td>
110 </tr>
111 </table>
112 <h3>Static Methods</h3>
113
114 <table>
115 <tr><td>None</td></tr>
116 </table>
117
118 <a NAME="EricapiConfigDialog.__init__" ID="EricapiConfigDialog.__init__"></a>
119 <h4>EricapiConfigDialog (Constructor)</h4>
120 <b>EricapiConfigDialog</b>(<i>project, parms=None, parent=None</i>)
121
122 <p>
123 Constructor
124 </p>
125 <dl>
126
127 <dt><i>project</i></dt>
128 <dd>
129 reference to the project object (Project.Project)
130 </dd>
131 <dt><i>parms</i></dt>
132 <dd>
133 parameters to set in the dialog
134 </dd>
135 <dt><i>parent</i></dt>
136 <dd>
137 parent widget of this dialog
138 </dd>
139 </dl>
140 <a NAME="EricapiConfigDialog.__initializeDefaults" ID="EricapiConfigDialog.__initializeDefaults"></a>
141 <h4>EricapiConfigDialog.__initializeDefaults</h4>
142 <b>__initializeDefaults</b>(<i></i>)
143
144 <p>
145 Private method to set the default values.
146 </p>
147 <p>
148 These are needed later on to generate the commandline
149 parameters.
150 </p>
151 <a NAME="EricapiConfigDialog.accept" ID="EricapiConfigDialog.accept"></a>
152 <h4>EricapiConfigDialog.accept</h4>
153 <b>accept</b>(<i></i>)
154
155 <p>
156 Public slot called by the Ok button.
157 </p>
158 <p>
159 It saves the values in the parameters dictionary.
160 </p>
161 <a NAME="EricapiConfigDialog.generateParameters" ID="EricapiConfigDialog.generateParameters"></a>
162 <h4>EricapiConfigDialog.generateParameters</h4>
163 <b>generateParameters</b>(<i></i>)
164
165 <p>
166 Public method that generates the commandline parameters.
167 </p>
168 <p>
169 It generates a list of strings to be used
170 to set the QProcess arguments for the ericapi call and
171 a dictionary containing the non default parameters. This
172 dictionary can be passed back upon object generation to overwrite
173 the default settings.
174 </p>
175 <dl>
176 <dt>Return:</dt>
177 <dd>
178 a tuple of the commandline parameters and non default
179 parameters (list of strings, dictionary)
180 </dd>
181 </dl>
182 <a NAME="EricapiConfigDialog.on_addButton_clicked" ID="EricapiConfigDialog.on_addButton_clicked"></a>
183 <h4>EricapiConfigDialog.on_addButton_clicked</h4>
184 <b>on_addButton_clicked</b>(<i></i>)
185
186 <p>
187 Private slot to add the directory displayed to the listview.
188 </p>
189 <p>
190 The directory in the ignore directories
191 line edit is moved to the listbox above and the edit is cleared.
192 </p>
193 <a NAME="EricapiConfigDialog.on_deleteButton_clicked" ID="EricapiConfigDialog.on_deleteButton_clicked"></a>
194 <h4>EricapiConfigDialog.on_deleteButton_clicked</h4>
195 <b>on_deleteButton_clicked</b>(<i></i>)
196
197 <p>
198 Private slot to delete the currently selected directory of the listbox.
199 </p>
200 <a NAME="EricapiConfigDialog.on_ignoreDirPicker_pathSelected" ID="EricapiConfigDialog.on_ignoreDirPicker_pathSelected"></a>
201 <h4>EricapiConfigDialog.on_ignoreDirPicker_pathSelected</h4>
202 <b>on_ignoreDirPicker_pathSelected</b>(<i>path</i>)
203
204 <p>
205 Private slot handling the selection of a directory to be ignored.
206 </p>
207 <dl>
208
209 <dt><i>path</i> (str)</dt>
210 <dd>
211 path of the directory to be ignored
212 </dd>
213 </dl>
214 <a NAME="EricapiConfigDialog.on_outputFilePicker_aboutToShowPathPickerDialog" ID="EricapiConfigDialog.on_outputFilePicker_aboutToShowPathPickerDialog"></a>
215 <h4>EricapiConfigDialog.on_outputFilePicker_aboutToShowPathPickerDialog</h4>
216 <b>on_outputFilePicker_aboutToShowPathPickerDialog</b>(<i></i>)
217
218 <p>
219 Private slot called before the file selection dialog is shown.
220 </p>
221 <a NAME="EricapiConfigDialog.on_outputFilePicker_pathSelected" ID="EricapiConfigDialog.on_outputFilePicker_pathSelected"></a>
222 <h4>EricapiConfigDialog.on_outputFilePicker_pathSelected</h4>
223 <b>on_outputFilePicker_pathSelected</b>(<i>path</i>)
224
225 <p>
226 Private slot handling the selection of an output file.
227 </p>
228 <dl>
229
230 <dt><i>path</i> (str)</dt>
231 <dd>
232 path of the output file
233 </dd>
234 </dl>
235 <a NAME="EricapiConfigDialog.on_outputFilePicker_textChanged" ID="EricapiConfigDialog.on_outputFilePicker_textChanged"></a>
236 <h4>EricapiConfigDialog.on_outputFilePicker_textChanged</h4>
237 <b>on_outputFilePicker_textChanged</b>(<i>filename</i>)
238
239 <p>
240 Private slot to enable/disable the "OK" button.
241 </p>
242 <dl>
243
244 <dt><i>filename</i></dt>
245 <dd>
246 name of the file (string)
247 </dd>
248 </dl>
249 <div align="right"><a href="#top">Up</a></div>
250 <hr />
251 </body></html>

eric ide

mercurial