|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric4.Tools.TRSingleApplication</title> |
|
6 <style> |
|
7 body { |
|
8 background:white; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #4FA4FF; } |
|
14 h2 { color: white; background: #4FA4FF; } |
|
15 h3 { color: white; background: #00557F; } |
|
16 h4 { color: white; background: #00557F; } |
|
17 |
|
18 a { color: #AA5500; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric4.Tools.TRSingleApplication</h1> |
|
24 <p> |
|
25 Module implementing the single application server and client. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>SAFile</td></tr><tr><td>SALoadForm</td></tr><tr><td>SALoadTranslation</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#TRSingleApplicationClient">TRSingleApplicationClient</a></td> |
|
35 <td>Class implementing the single application client of the Translations Previewer.</td> |
|
36 </tr><tr> |
|
37 <td><a href="#TRSingleApplicationServer">TRSingleApplicationServer</a></td> |
|
38 <td>Class implementing the single application server embedded within the Translations Previewer.</td> |
|
39 </tr> |
|
40 </table> |
|
41 <h3>Functions</h3> |
|
42 <table> |
|
43 <tr><td>None</td></tr> |
|
44 </table> |
|
45 <hr /><hr /> |
|
46 <a NAME="TRSingleApplicationClient" ID="TRSingleApplicationClient"></a> |
|
47 <h2>TRSingleApplicationClient</h2> |
|
48 <p> |
|
49 Class implementing the single application client of the Translations 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>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#TRSingleApplicationClient.__init__">TRSingleApplicationClient</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#TRSingleApplicationClient.processArgs">processArgs</a></td> |
|
64 <td>Public method to process the command line args passed to the UI.</td> |
|
65 </tr> |
|
66 </table> |
|
67 <a NAME="TRSingleApplicationClient.__init__" ID="TRSingleApplicationClient.__init__"></a> |
|
68 <h4>TRSingleApplicationClient (Constructor)</h4> |
|
69 <b>TRSingleApplicationClient</b>(<i></i>) |
|
70 <p> |
|
71 Constructor |
|
72 </p><a NAME="TRSingleApplicationClient.processArgs" ID="TRSingleApplicationClient.processArgs"></a> |
|
73 <h4>TRSingleApplicationClient.processArgs</h4> |
|
74 <b>processArgs</b>(<i>args</i>) |
|
75 <p> |
|
76 Public method to process the command line args passed to the UI. |
|
77 </p><dl> |
|
78 <dt><i>args</i></dt> |
|
79 <dd> |
|
80 list of files to open |
|
81 </dd> |
|
82 </dl> |
|
83 <div align="right"><a href="#top">Up</a></div> |
|
84 <hr /><hr /> |
|
85 <a NAME="TRSingleApplicationServer" ID="TRSingleApplicationServer"></a> |
|
86 <h2>TRSingleApplicationServer</h2> |
|
87 <p> |
|
88 Class implementing the single application server embedded within the |
|
89 Translations Previewer. |
|
90 </p><h4>Signals</h4> |
|
91 <dl> |
|
92 <dt>loadForm(fname)</dt> |
|
93 <dd> |
|
94 emitted to load a form file |
|
95 </dd><dt>loadTranslation(fname, first)</dt> |
|
96 <dd> |
|
97 emitted to load a translation file |
|
98 </dd> |
|
99 </dl> |
|
100 <h3>Derived from</h3> |
|
101 SingleApplicationServer |
|
102 <h3>Class Attributes</h3> |
|
103 <table> |
|
104 <tr><td>None</td></tr> |
|
105 </table> |
|
106 <h3>Methods</h3> |
|
107 <table> |
|
108 <tr> |
|
109 <td><a href="#TRSingleApplicationServer.__init__">TRSingleApplicationServer</a></td> |
|
110 <td>Constructor</td> |
|
111 </tr><tr> |
|
112 <td><a href="#TRSingleApplicationServer.__saLoadForm">__saLoadForm</a></td> |
|
113 <td>Private method used to handle the "Load Form" command.</td> |
|
114 </tr><tr> |
|
115 <td><a href="#TRSingleApplicationServer.__saLoadTranslation">__saLoadTranslation</a></td> |
|
116 <td>Private method used to handle the "Load Translation" command.</td> |
|
117 </tr><tr> |
|
118 <td><a href="#TRSingleApplicationServer.handleCommand">handleCommand</a></td> |
|
119 <td>Public slot to handle the command sent by the client.</td> |
|
120 </tr> |
|
121 </table> |
|
122 <a NAME="TRSingleApplicationServer.__init__" ID="TRSingleApplicationServer.__init__"></a> |
|
123 <h4>TRSingleApplicationServer (Constructor)</h4> |
|
124 <b>TRSingleApplicationServer</b>(<i>parent</i>) |
|
125 <p> |
|
126 Constructor |
|
127 </p><dl> |
|
128 <dt><i>parent</i></dt> |
|
129 <dd> |
|
130 parent widget (QWidget) |
|
131 </dd> |
|
132 </dl><a NAME="TRSingleApplicationServer.__saLoadForm" ID="TRSingleApplicationServer.__saLoadForm"></a> |
|
133 <h4>TRSingleApplicationServer.__saLoadForm</h4> |
|
134 <b>__saLoadForm</b>(<i>fnames</i>) |
|
135 <p> |
|
136 Private method used to handle the "Load Form" command. |
|
137 </p><dl> |
|
138 <dt><i>fnames</i></dt> |
|
139 <dd> |
|
140 filenames of the forms to be loaded (list of strings) |
|
141 </dd> |
|
142 </dl><a NAME="TRSingleApplicationServer.__saLoadTranslation" ID="TRSingleApplicationServer.__saLoadTranslation"></a> |
|
143 <h4>TRSingleApplicationServer.__saLoadTranslation</h4> |
|
144 <b>__saLoadTranslation</b>(<i>fnames</i>) |
|
145 <p> |
|
146 Private method used to handle the "Load Translation" command. |
|
147 </p><dl> |
|
148 <dt><i>fnames</i></dt> |
|
149 <dd> |
|
150 filenames of the translations to be loaded (list of strings) |
|
151 </dd> |
|
152 </dl><a NAME="TRSingleApplicationServer.handleCommand" ID="TRSingleApplicationServer.handleCommand"></a> |
|
153 <h4>TRSingleApplicationServer.handleCommand</h4> |
|
154 <b>handleCommand</b>(<i>cmd, params</i>) |
|
155 <p> |
|
156 Public slot to handle the command sent by the client. |
|
157 </p><dl> |
|
158 <dt><i>cmd</i></dt> |
|
159 <dd> |
|
160 commandstring (string) |
|
161 </dd><dt><i>params</i></dt> |
|
162 <dd> |
|
163 parameterstring (string) |
|
164 </dd> |
|
165 </dl> |
|
166 <div align="right"><a href="#top">Up</a></div> |
|
167 <hr /> |
|
168 </body></html> |