|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Tools.TRSingleApplication</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.Tools.TRSingleApplication</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the single application server and client. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>SAFile</td></tr><tr><td>SALoadForm</td></tr><tr><td>SALoadTranslation</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#TRSingleApplicationClient">TRSingleApplicationClient</a></td> |
|
39 <td>Class implementing the single application client of the Translations Previewer.</td> |
|
40 </tr> |
|
41 <tr> |
|
42 <td><a href="#TRSingleApplicationServer">TRSingleApplicationServer</a></td> |
|
43 <td>Class implementing the single application server embedded within the Translations Previewer.</td> |
|
44 </tr> |
|
45 </table> |
|
46 <h3>Functions</h3> |
|
47 |
|
48 <table> |
|
49 <tr><td>None</td></tr> |
|
50 </table> |
|
51 <hr /> |
|
52 <hr /> |
|
53 <a NAME="TRSingleApplicationClient" ID="TRSingleApplicationClient"></a> |
|
54 <h2>TRSingleApplicationClient</h2> |
|
55 |
|
56 <p> |
|
57 Class implementing the single application client of the Translations |
|
58 Previewer. |
|
59 </p> |
|
60 <h3>Derived from</h3> |
|
61 SingleApplicationClient |
|
62 <h3>Class Attributes</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Class Methods</h3> |
|
68 |
|
69 <table> |
|
70 <tr><td>None</td></tr> |
|
71 </table> |
|
72 <h3>Methods</h3> |
|
73 |
|
74 <table> |
|
75 |
|
76 <tr> |
|
77 <td><a href="#TRSingleApplicationClient.__init__">TRSingleApplicationClient</a></td> |
|
78 <td>Constructor</td> |
|
79 </tr> |
|
80 <tr> |
|
81 <td><a href="#TRSingleApplicationClient.processArgs">processArgs</a></td> |
|
82 <td>Public method to process the command line args passed to the UI.</td> |
|
83 </tr> |
|
84 </table> |
|
85 <h3>Static Methods</h3> |
|
86 |
|
87 <table> |
|
88 <tr><td>None</td></tr> |
|
89 </table> |
|
90 |
|
91 <a NAME="TRSingleApplicationClient.__init__" ID="TRSingleApplicationClient.__init__"></a> |
|
92 <h4>TRSingleApplicationClient (Constructor)</h4> |
|
93 <b>TRSingleApplicationClient</b>(<i></i>) |
|
94 |
|
95 <p> |
|
96 Constructor |
|
97 </p> |
|
98 <a NAME="TRSingleApplicationClient.processArgs" ID="TRSingleApplicationClient.processArgs"></a> |
|
99 <h4>TRSingleApplicationClient.processArgs</h4> |
|
100 <b>processArgs</b>(<i>args</i>) |
|
101 |
|
102 <p> |
|
103 Public method to process the command line args passed to the UI. |
|
104 </p> |
|
105 <dl> |
|
106 |
|
107 <dt><i>args</i></dt> |
|
108 <dd> |
|
109 list of files to open |
|
110 </dd> |
|
111 </dl> |
|
112 <div align="right"><a href="#top">Up</a></div> |
|
113 <hr /> |
|
114 <hr /> |
|
115 <a NAME="TRSingleApplicationServer" ID="TRSingleApplicationServer"></a> |
|
116 <h2>TRSingleApplicationServer</h2> |
|
117 |
|
118 <p> |
|
119 Class implementing the single application server embedded within the |
|
120 Translations Previewer. |
|
121 </p> |
|
122 <h3>Signals</h3> |
|
123 <dl> |
|
124 |
|
125 <dt>loadForm(str)</dt> |
|
126 <dd> |
|
127 emitted to load a form file |
|
128 </dd> |
|
129 <dt>loadTranslation(str, bool)</dt> |
|
130 <dd> |
|
131 emitted to load a translation file |
|
132 </dd> |
|
133 </dl> |
|
134 <h3>Derived from</h3> |
|
135 SingleApplicationServer |
|
136 <h3>Class Attributes</h3> |
|
137 |
|
138 <table> |
|
139 <tr><td>None</td></tr> |
|
140 </table> |
|
141 <h3>Class Methods</h3> |
|
142 |
|
143 <table> |
|
144 <tr><td>None</td></tr> |
|
145 </table> |
|
146 <h3>Methods</h3> |
|
147 |
|
148 <table> |
|
149 |
|
150 <tr> |
|
151 <td><a href="#TRSingleApplicationServer.__init__">TRSingleApplicationServer</a></td> |
|
152 <td>Constructor</td> |
|
153 </tr> |
|
154 <tr> |
|
155 <td><a href="#TRSingleApplicationServer.__saLoadForm">__saLoadForm</a></td> |
|
156 <td>Private method used to handle the "Load Form" command.</td> |
|
157 </tr> |
|
158 <tr> |
|
159 <td><a href="#TRSingleApplicationServer.__saLoadTranslation">__saLoadTranslation</a></td> |
|
160 <td>Private method used to handle the "Load Translation" command.</td> |
|
161 </tr> |
|
162 <tr> |
|
163 <td><a href="#TRSingleApplicationServer.handleCommand">handleCommand</a></td> |
|
164 <td>Public slot to handle the command sent by the client.</td> |
|
165 </tr> |
|
166 </table> |
|
167 <h3>Static Methods</h3> |
|
168 |
|
169 <table> |
|
170 <tr><td>None</td></tr> |
|
171 </table> |
|
172 |
|
173 <a NAME="TRSingleApplicationServer.__init__" ID="TRSingleApplicationServer.__init__"></a> |
|
174 <h4>TRSingleApplicationServer (Constructor)</h4> |
|
175 <b>TRSingleApplicationServer</b>(<i>parent</i>) |
|
176 |
|
177 <p> |
|
178 Constructor |
|
179 </p> |
|
180 <dl> |
|
181 |
|
182 <dt><i>parent</i></dt> |
|
183 <dd> |
|
184 parent widget (QWidget) |
|
185 </dd> |
|
186 </dl> |
|
187 <a NAME="TRSingleApplicationServer.__saLoadForm" ID="TRSingleApplicationServer.__saLoadForm"></a> |
|
188 <h4>TRSingleApplicationServer.__saLoadForm</h4> |
|
189 <b>__saLoadForm</b>(<i>fnames</i>) |
|
190 |
|
191 <p> |
|
192 Private method used to handle the "Load Form" command. |
|
193 </p> |
|
194 <dl> |
|
195 |
|
196 <dt><i>fnames</i></dt> |
|
197 <dd> |
|
198 filenames of the forms to be loaded (list of strings) |
|
199 </dd> |
|
200 </dl> |
|
201 <a NAME="TRSingleApplicationServer.__saLoadTranslation" ID="TRSingleApplicationServer.__saLoadTranslation"></a> |
|
202 <h4>TRSingleApplicationServer.__saLoadTranslation</h4> |
|
203 <b>__saLoadTranslation</b>(<i>fnames</i>) |
|
204 |
|
205 <p> |
|
206 Private method used to handle the "Load Translation" command. |
|
207 </p> |
|
208 <dl> |
|
209 |
|
210 <dt><i>fnames</i></dt> |
|
211 <dd> |
|
212 filenames of the translations to be loaded |
|
213 (list of strings) |
|
214 </dd> |
|
215 </dl> |
|
216 <a NAME="TRSingleApplicationServer.handleCommand" ID="TRSingleApplicationServer.handleCommand"></a> |
|
217 <h4>TRSingleApplicationServer.handleCommand</h4> |
|
218 <b>handleCommand</b>(<i>command, arguments</i>) |
|
219 |
|
220 <p> |
|
221 Public slot to handle the command sent by the client. |
|
222 </p> |
|
223 <dl> |
|
224 |
|
225 <dt><i>command</i> (str)</dt> |
|
226 <dd> |
|
227 command sent by the client |
|
228 </dd> |
|
229 <dt><i>arguments</i> (list of str)</dt> |
|
230 <dd> |
|
231 list of command arguments |
|
232 </dd> |
|
233 </dl> |
|
234 <div align="right"><a href="#top">Up</a></div> |
|
235 <hr /> |
|
236 </body></html> |