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