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