Documentation/Source/eric5.Tools.TRSingleApplication.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
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 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114; &#97;&#110;&#100; &#99;&#108;&#105;&#101;&#110;&#116;. 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>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#99;&#108;&#105;&#101;&#110;&#116; &#111;&#102; &#116;&#104;&#101; &#84;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110;&#115; &#80;&#114;&#101;v&#105;&#101;w&#101;&#114;.</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>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114; &#101;&#109;&#98;&#101;&#100;&#100;&#101;&#100; w&#105;&#116;&#104;&#105;&#110; &#116;&#104;&#101; &#84;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110;&#115; &#80;&#114;&#101;v&#105;&#101;w&#101;&#114;.</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 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#99;&#108;&#105;&#101;&#110;&#116; &#111;&#102; &#116;&#104;&#101; &#84;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110;&#115; &#80;&#114;&#101;v&#105;&#101;w&#101;&#114;. 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>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#114;&#111;&#99;&#101;&#115;&#115; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#108;&#105;&#110;&#101; &#97;&#114;&#103;&#115; &#112;&#97;&#115;&#115;&#101;&#100; &#116;&#111; &#116;&#104;&#101; &#85;&#73;.</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 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#114;&#111;&#99;&#101;&#115;&#115; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#108;&#105;&#110;&#101; &#97;&#114;&#103;&#115; &#112;&#97;&#115;&#115;&#101;&#100; &#116;&#111; &#116;&#104;&#101; &#85;&#73;. 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 &#108;&#105;&#115;&#116; &#111;&#102; &#102;&#105;&#108;&#101;&#115; &#116;&#111; &#111;&#112;&#101;&#110; 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 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114; &#101;&#109;&#98;&#101;&#100;&#100;&#101;&#100; w&#105;&#116;&#104;&#105;&#110; &#116;&#104;&#101; 88 Class implementing the single application server embedded within the
89 &#84;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110;&#115; &#80;&#114;&#101;v&#105;&#101;w&#101;&#114;. 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 &#101;&#109;&#105;&#116;&#116;&#101;&#100; &#116;&#111; &#108;&#111;&#97;&#100; &#97; &#102;&#111;&#114;&#109; &#102;&#105;&#108;&#101; 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 &#101;&#109;&#105;&#116;&#116;&#101;&#100; &#116;&#111; &#108;&#111;&#97;&#100; &#97; &#116;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110; &#102;&#105;&#108;&#101; 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>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#117;&#115;&#101;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; "&#76;&#111;&#97;&#100; &#70;&#111;&#114;&#109;" &#99;&#111;&#109;&#109;&#97;&#110;&#100;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#117;&#115;&#101;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; "&#76;&#111;&#97;&#100; &#84;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110;" &#99;&#111;&#109;&#109;&#97;&#110;&#100;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#115;&#101;&#110;&#116; &#98;y &#116;&#104;&#101; &#99;&#108;&#105;&#101;&#110;&#116;.</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 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 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 &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#117;&#115;&#101;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; "&#76;&#111;&#97;&#100; &#70;&#111;&#114;&#109;" &#99;&#111;&#109;&#109;&#97;&#110;&#100;. 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 &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#102;&#111;&#114;&#109;&#115; &#116;&#111; &#98;&#101; &#108;&#111;&#97;&#100;&#101;&#100; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#117;&#115;&#101;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; "&#76;&#111;&#97;&#100; &#84;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110;" &#99;&#111;&#109;&#109;&#97;&#110;&#100;. 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 &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#116;&#114;&#97;&#110;&#115;&#108;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; &#98;&#101; &#108;&#111;&#97;&#100;&#101;&#100; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#115;&#101;&#110;&#116; &#98;y &#116;&#104;&#101; &#99;&#108;&#105;&#101;&#110;&#116;. 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 &#99;&#111;&#109;&#109;&#97;&#110;&#100;&#115;&#116;&#114;&#105;&#110;&#103; (&#115;&#116;&#114;&#105;&#110;&#103;) 160 commandstring (string)
161 </dd><dt><i>params</i></dt> 161 </dd><dt><i>params</i></dt>
162 <dd> 162 <dd>
163 &#112;&#97;&#114;&#97;&#109;&#101;&#116;&#101;&#114;&#115;&#116;&#114;&#105;&#110;&#103; (&#115;&#116;&#114;&#105;&#110;&#103;) 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>

eric ide

mercurial