|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.PluginWizardQFileDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.PluginWizardQFileDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the QFileDialog wizard plugin. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>longDescription</td></tr><tr><td>name</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>shortDescription</td></tr><tr><td>version</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#FileDialogWizard">FileDialogWizard</a></td> |
|
25 <td>Class implementing the QFileDialog wizard plugin.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="FileDialogWizard" ID="FileDialogWizard"></a> |
|
36 <h2>FileDialogWizard</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the QFileDialog wizard plugin. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QObject |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#FileDialogWizard.__init__">FileDialogWizard</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#FileDialogWizard.__callForm">__callForm</a></td> |
|
63 <td>Private method to display a dialog and get the code.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#FileDialogWizard.__handle">__handle</a></td> |
|
67 <td>Private method to handle the wizards action.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#FileDialogWizard.__handleEricFileDialog">__handleEricFileDialog</a></td> |
|
71 <td>Private slot to handle the wizard EricFileDialog action.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#FileDialogWizard.__handleQFileDialog">__handleQFileDialog</a></td> |
|
75 <td>Private slot to handle the wizard QFileDialog action.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#FileDialogWizard.__initActions">__initActions</a></td> |
|
79 <td>Private method to initialize the actions.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#FileDialogWizard.__initMenu">__initMenu</a></td> |
|
83 <td>Private method to add the actions to the right menu.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#FileDialogWizard.activate">activate</a></td> |
|
87 <td>Public method to activate this plugin.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#FileDialogWizard.deactivate">deactivate</a></td> |
|
91 <td>Public method to deactivate this plugin.</td> |
|
92 </tr> |
|
93 </table> |
|
94 <h3>Static Methods</h3> |
|
95 |
|
96 <table> |
|
97 <tr><td>None</td></tr> |
|
98 </table> |
|
99 |
|
100 <a NAME="FileDialogWizard.__init__" ID="FileDialogWizard.__init__"></a> |
|
101 <h4>FileDialogWizard (Constructor)</h4> |
|
102 <b>FileDialogWizard</b>(<i>ui</i>) |
|
103 |
|
104 <p> |
|
105 Constructor |
|
106 </p> |
|
107 <dl> |
|
108 |
|
109 <dt><i>ui</i></dt> |
|
110 <dd> |
|
111 reference to the user interface object (UI.UserInterface) |
|
112 </dd> |
|
113 </dl> |
|
114 <a NAME="FileDialogWizard.__callForm" ID="FileDialogWizard.__callForm"></a> |
|
115 <h4>FileDialogWizard.__callForm</h4> |
|
116 <b>__callForm</b>(<i>editor, variant</i>) |
|
117 |
|
118 <p> |
|
119 Private method to display a dialog and get the code. |
|
120 </p> |
|
121 <dl> |
|
122 |
|
123 <dt><i>editor</i> (Editor)</dt> |
|
124 <dd> |
|
125 reference to the current editor |
|
126 </dd> |
|
127 <dt><i>variant</i> (int)</dt> |
|
128 <dd> |
|
129 variant of code to be generated |
|
130 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5, 6 = PyQt6) |
|
131 </dd> |
|
132 </dl> |
|
133 <dl> |
|
134 <dt>Return:</dt> |
|
135 <dd> |
|
136 the generated code (string) |
|
137 </dd> |
|
138 </dl> |
|
139 <a NAME="FileDialogWizard.__handle" ID="FileDialogWizard.__handle"></a> |
|
140 <h4>FileDialogWizard.__handle</h4> |
|
141 <b>__handle</b>(<i>variant</i>) |
|
142 |
|
143 <p> |
|
144 Private method to handle the wizards action. |
|
145 </p> |
|
146 <dl> |
|
147 |
|
148 <dt><i>variant</i> (str)</dt> |
|
149 <dd> |
|
150 dialog variant to be generated |
|
151 (EricFileDialog or QFileDialog) |
|
152 </dd> |
|
153 </dl> |
|
154 <dl> |
|
155 |
|
156 <dt>Raises <b>ValueError</b>:</dt> |
|
157 <dd> |
|
158 raised to indicate an illegal file dialog variant |
|
159 </dd> |
|
160 </dl> |
|
161 <a NAME="FileDialogWizard.__handleEricFileDialog" ID="FileDialogWizard.__handleEricFileDialog"></a> |
|
162 <h4>FileDialogWizard.__handleEricFileDialog</h4> |
|
163 <b>__handleEricFileDialog</b>(<i></i>) |
|
164 |
|
165 <p> |
|
166 Private slot to handle the wizard EricFileDialog action. |
|
167 </p> |
|
168 <a NAME="FileDialogWizard.__handleQFileDialog" ID="FileDialogWizard.__handleQFileDialog"></a> |
|
169 <h4>FileDialogWizard.__handleQFileDialog</h4> |
|
170 <b>__handleQFileDialog</b>(<i></i>) |
|
171 |
|
172 <p> |
|
173 Private slot to handle the wizard QFileDialog action. |
|
174 </p> |
|
175 <a NAME="FileDialogWizard.__initActions" ID="FileDialogWizard.__initActions"></a> |
|
176 <h4>FileDialogWizard.__initActions</h4> |
|
177 <b>__initActions</b>(<i></i>) |
|
178 |
|
179 <p> |
|
180 Private method to initialize the actions. |
|
181 </p> |
|
182 <a NAME="FileDialogWizard.__initMenu" ID="FileDialogWizard.__initMenu"></a> |
|
183 <h4>FileDialogWizard.__initMenu</h4> |
|
184 <b>__initMenu</b>(<i></i>) |
|
185 |
|
186 <p> |
|
187 Private method to add the actions to the right menu. |
|
188 </p> |
|
189 <a NAME="FileDialogWizard.activate" ID="FileDialogWizard.activate"></a> |
|
190 <h4>FileDialogWizard.activate</h4> |
|
191 <b>activate</b>(<i></i>) |
|
192 |
|
193 <p> |
|
194 Public method to activate this plugin. |
|
195 </p> |
|
196 <dl> |
|
197 <dt>Return:</dt> |
|
198 <dd> |
|
199 tuple of None and activation status (boolean) |
|
200 </dd> |
|
201 </dl> |
|
202 <a NAME="FileDialogWizard.deactivate" ID="FileDialogWizard.deactivate"></a> |
|
203 <h4>FileDialogWizard.deactivate</h4> |
|
204 <b>deactivate</b>(<i></i>) |
|
205 |
|
206 <p> |
|
207 Public method to deactivate this plugin. |
|
208 </p> |
|
209 <div align="right"><a href="#top">Up</a></div> |
|
210 <hr /> |
|
211 </body></html> |