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