|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.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><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Plugins.DocumentationPlugins.Ericapi.EricapiConfigDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter the parameters for eric6_api. |
|
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="#EricapiConfigDialog">EricapiConfigDialog</a></td> |
|
34 <td>Class implementing a dialog to enter the parameters for eric6_api.</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="EricapiConfigDialog" ID="EricapiConfigDialog"></a> |
|
43 <h2>EricapiConfigDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter the parameters for eric6_api. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_EricapiConfigDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#EricapiConfigDialog.__init__">EricapiConfigDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#EricapiConfigDialog.__initializeDefaults">__initializeDefaults</a></td> |
|
64 <td>Private method to set the default values.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#EricapiConfigDialog.accept">accept</a></td> |
|
67 <td>Public slot called by the Ok button.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#EricapiConfigDialog.generateParameters">generateParameters</a></td> |
|
70 <td>Public method that generates the commandline parameters.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#EricapiConfigDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
|
73 <td>Private slot to add the directory displayed to the listview.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#EricapiConfigDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
|
76 <td>Private slot to delete the currently selected directory of the listbox.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#EricapiConfigDialog.on_ignoreDirButton_clicked">on_ignoreDirButton_clicked</a></td> |
|
79 <td>Private slot to select a directory to be ignored.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#EricapiConfigDialog.on_outputFileButton_clicked">on_outputFileButton_clicked</a></td> |
|
82 <td>Private slot to select the output file.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#EricapiConfigDialog.on_outputFileEdit_textChanged">on_outputFileEdit_textChanged</a></td> |
|
85 <td>Private slot to enable/disable the "OK" button.</td> |
|
86 </tr> |
|
87 </table> |
|
88 <h3>Static Methods</h3> |
|
89 <table> |
|
90 <tr><td>None</td></tr> |
|
91 </table> |
|
92 <a NAME="EricapiConfigDialog.__init__" ID="EricapiConfigDialog.__init__"></a> |
|
93 <h4>EricapiConfigDialog (Constructor)</h4> |
|
94 <b>EricapiConfigDialog</b>(<i>project, parms=None, parent=None</i>) |
|
95 <p> |
|
96 Constructor |
|
97 </p><dl> |
|
98 <dt><i>project</i></dt> |
|
99 <dd> |
|
100 reference to the project object (Project.Project) |
|
101 </dd><dt><i>parms</i></dt> |
|
102 <dd> |
|
103 parameters to set in the dialog |
|
104 </dd><dt><i>parent</i></dt> |
|
105 <dd> |
|
106 parent widget of this dialog |
|
107 </dd> |
|
108 </dl><a NAME="EricapiConfigDialog.__initializeDefaults" ID="EricapiConfigDialog.__initializeDefaults"></a> |
|
109 <h4>EricapiConfigDialog.__initializeDefaults</h4> |
|
110 <b>__initializeDefaults</b>(<i></i>) |
|
111 <p> |
|
112 Private method to set the default values. |
|
113 </p><p> |
|
114 These are needed later on to generate the commandline |
|
115 parameters. |
|
116 </p><a NAME="EricapiConfigDialog.accept" ID="EricapiConfigDialog.accept"></a> |
|
117 <h4>EricapiConfigDialog.accept</h4> |
|
118 <b>accept</b>(<i></i>) |
|
119 <p> |
|
120 Public slot called by the Ok button. |
|
121 </p><p> |
|
122 It saves the values in the parameters dictionary. |
|
123 </p><a NAME="EricapiConfigDialog.generateParameters" ID="EricapiConfigDialog.generateParameters"></a> |
|
124 <h4>EricapiConfigDialog.generateParameters</h4> |
|
125 <b>generateParameters</b>(<i></i>) |
|
126 <p> |
|
127 Public method that generates the commandline parameters. |
|
128 </p><p> |
|
129 It generates a list of strings to be used |
|
130 to set the QProcess arguments for the ericapi call and |
|
131 a dictionary containing the non default parameters. This |
|
132 dictionary can be passed back upon object generation to overwrite |
|
133 the default settings. |
|
134 </p><dl> |
|
135 <dt>Returns:</dt> |
|
136 <dd> |
|
137 a tuple of the commandline parameters and non default |
|
138 parameters (list of strings, dictionary) |
|
139 </dd> |
|
140 </dl><a NAME="EricapiConfigDialog.on_addButton_clicked" ID="EricapiConfigDialog.on_addButton_clicked"></a> |
|
141 <h4>EricapiConfigDialog.on_addButton_clicked</h4> |
|
142 <b>on_addButton_clicked</b>(<i></i>) |
|
143 <p> |
|
144 Private slot to add the directory displayed to the listview. |
|
145 </p><p> |
|
146 The directory in the ignore directories |
|
147 line edit is moved to the listbox above and the edit is cleared. |
|
148 </p><a NAME="EricapiConfigDialog.on_deleteButton_clicked" ID="EricapiConfigDialog.on_deleteButton_clicked"></a> |
|
149 <h4>EricapiConfigDialog.on_deleteButton_clicked</h4> |
|
150 <b>on_deleteButton_clicked</b>(<i></i>) |
|
151 <p> |
|
152 Private slot to delete the currently selected directory of the listbox. |
|
153 </p><a NAME="EricapiConfigDialog.on_ignoreDirButton_clicked" ID="EricapiConfigDialog.on_ignoreDirButton_clicked"></a> |
|
154 <h4>EricapiConfigDialog.on_ignoreDirButton_clicked</h4> |
|
155 <b>on_ignoreDirButton_clicked</b>(<i></i>) |
|
156 <p> |
|
157 Private slot to select a directory to be ignored. |
|
158 </p><p> |
|
159 It displays a directory selection dialog to |
|
160 select a directory to be ignored. |
|
161 </p><a NAME="EricapiConfigDialog.on_outputFileButton_clicked" ID="EricapiConfigDialog.on_outputFileButton_clicked"></a> |
|
162 <h4>EricapiConfigDialog.on_outputFileButton_clicked</h4> |
|
163 <b>on_outputFileButton_clicked</b>(<i></i>) |
|
164 <p> |
|
165 Private slot to select the output file. |
|
166 </p><p> |
|
167 It displays a file selection dialog to |
|
168 select the file the api is written to. |
|
169 </p><a NAME="EricapiConfigDialog.on_outputFileEdit_textChanged" ID="EricapiConfigDialog.on_outputFileEdit_textChanged"></a> |
|
170 <h4>EricapiConfigDialog.on_outputFileEdit_textChanged</h4> |
|
171 <b>on_outputFileEdit_textChanged</b>(<i>filename</i>) |
|
172 <p> |
|
173 Private slot to enable/disable the "OK" button. |
|
174 </p><dl> |
|
175 <dt><i>filename</i></dt> |
|
176 <dd> |
|
177 name of the file (string) |
|
178 </dd> |
|
179 </dl> |
|
180 <div align="right"><a href="#top">Up</a></div> |
|
181 <hr /> |
|
182 </body></html> |