eric7/Documentation/Source/eric7.Plugins.PluginWizardQFileDialog.html

branch
eric7
changeset 8372
e0227a7c850e
child 8465
59bb8fdeef1b
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.PluginWizardQFileDialog</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.PluginWizardQFileDialog</h1>
24
25 <p>
26 Module implementing the QFileDialog wizard plugin.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <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>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#FileDialogWizard">FileDialogWizard</a></td>
39 <td>Class implementing the QFileDialog wizard plugin.</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="FileDialogWizard" ID="FileDialogWizard"></a>
50 <h2>FileDialogWizard</h2>
51
52 <p>
53 Class implementing the QFileDialog wizard plugin.
54 </p>
55 <h3>Derived from</h3>
56 QObject
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="#FileDialogWizard.__init__">FileDialogWizard</a></td>
73 <td>Constructor</td>
74 </tr>
75 <tr>
76 <td><a href="#FileDialogWizard.__callForm">__callForm</a></td>
77 <td>Private method to display a dialog and get the code.</td>
78 </tr>
79 <tr>
80 <td><a href="#FileDialogWizard.__handle">__handle</a></td>
81 <td>Private method to handle the wizards action.</td>
82 </tr>
83 <tr>
84 <td><a href="#FileDialogWizard.__handleEricFileDialog">__handleEricFileDialog</a></td>
85 <td>Private slot to handle the wizard EricFileDialog action.</td>
86 </tr>
87 <tr>
88 <td><a href="#FileDialogWizard.__handleQFileDialog">__handleQFileDialog</a></td>
89 <td>Private slot to handle the wizard QFileDialog action.</td>
90 </tr>
91 <tr>
92 <td><a href="#FileDialogWizard.__initActions">__initActions</a></td>
93 <td>Private method to initialize the actions.</td>
94 </tr>
95 <tr>
96 <td><a href="#FileDialogWizard.__initMenu">__initMenu</a></td>
97 <td>Private method to add the actions to the right menu.</td>
98 </tr>
99 <tr>
100 <td><a href="#FileDialogWizard.activate">activate</a></td>
101 <td>Public method to activate this plugin.</td>
102 </tr>
103 <tr>
104 <td><a href="#FileDialogWizard.deactivate">deactivate</a></td>
105 <td>Public method to deactivate this plugin.</td>
106 </tr>
107 </table>
108 <h3>Static Methods</h3>
109
110 <table>
111 <tr><td>None</td></tr>
112 </table>
113
114 <a NAME="FileDialogWizard.__init__" ID="FileDialogWizard.__init__"></a>
115 <h4>FileDialogWizard (Constructor)</h4>
116 <b>FileDialogWizard</b>(<i>ui</i>)
117
118 <p>
119 Constructor
120 </p>
121 <dl>
122
123 <dt><i>ui</i></dt>
124 <dd>
125 reference to the user interface object (UI.UserInterface)
126 </dd>
127 </dl>
128 <a NAME="FileDialogWizard.__callForm" ID="FileDialogWizard.__callForm"></a>
129 <h4>FileDialogWizard.__callForm</h4>
130 <b>__callForm</b>(<i>editor, variant</i>)
131
132 <p>
133 Private method to display a dialog and get the code.
134 </p>
135 <dl>
136
137 <dt><i>editor</i> (Editor)</dt>
138 <dd>
139 reference to the current editor
140 </dd>
141 <dt><i>variant</i> (int)</dt>
142 <dd>
143 variant of code to be generated
144 (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5)
145 </dd>
146 </dl>
147 <dl>
148 <dt>Return:</dt>
149 <dd>
150 the generated code (string)
151 </dd>
152 </dl>
153 <a NAME="FileDialogWizard.__handle" ID="FileDialogWizard.__handle"></a>
154 <h4>FileDialogWizard.__handle</h4>
155 <b>__handle</b>(<i>variant</i>)
156
157 <p>
158 Private method to handle the wizards action.
159 </p>
160 <dl>
161
162 <dt><i>variant</i> (str)</dt>
163 <dd>
164 dialog variant to be generated
165 (EricFileDialog or QFileDialog)
166 </dd>
167 </dl>
168 <dl>
169
170 <dt>Raises <b>ValueError</b>:</dt>
171 <dd>
172 raised to indicate an illegal file dialog variant
173 </dd>
174 </dl>
175 <a NAME="FileDialogWizard.__handleEricFileDialog" ID="FileDialogWizard.__handleEricFileDialog"></a>
176 <h4>FileDialogWizard.__handleEricFileDialog</h4>
177 <b>__handleEricFileDialog</b>(<i></i>)
178
179 <p>
180 Private slot to handle the wizard EricFileDialog action.
181 </p>
182 <a NAME="FileDialogWizard.__handleQFileDialog" ID="FileDialogWizard.__handleQFileDialog"></a>
183 <h4>FileDialogWizard.__handleQFileDialog</h4>
184 <b>__handleQFileDialog</b>(<i></i>)
185
186 <p>
187 Private slot to handle the wizard QFileDialog action.
188 </p>
189 <a NAME="FileDialogWizard.__initActions" ID="FileDialogWizard.__initActions"></a>
190 <h4>FileDialogWizard.__initActions</h4>
191 <b>__initActions</b>(<i></i>)
192
193 <p>
194 Private method to initialize the actions.
195 </p>
196 <a NAME="FileDialogWizard.__initMenu" ID="FileDialogWizard.__initMenu"></a>
197 <h4>FileDialogWizard.__initMenu</h4>
198 <b>__initMenu</b>(<i></i>)
199
200 <p>
201 Private method to add the actions to the right menu.
202 </p>
203 <a NAME="FileDialogWizard.activate" ID="FileDialogWizard.activate"></a>
204 <h4>FileDialogWizard.activate</h4>
205 <b>activate</b>(<i></i>)
206
207 <p>
208 Public method to activate this plugin.
209 </p>
210 <dl>
211 <dt>Return:</dt>
212 <dd>
213 tuple of None and activation status (boolean)
214 </dd>
215 </dl>
216 <a NAME="FileDialogWizard.deactivate" ID="FileDialogWizard.deactivate"></a>
217 <h4>FileDialogWizard.deactivate</h4>
218 <b>deactivate</b>(<i></i>)
219
220 <p>
221 Public method to deactivate this plugin.
222 </p>
223 <div align="right"><a href="#top">Up</a></div>
224 <hr />
225 </body></html>

eric ide

mercurial