eric6/Documentation/Source/eric6.Tools.TRSingleApplication.html

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

eric ide

mercurial