1
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
2
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4
<title>eric3.UI.E3Action</title>
6
<body bgcolor="#FFFFFF"><a NAME="top" ID="top"></a>
7
<h1><font color="#0000FF">eric3.UI.E3Action</font></h1>
9
Module implementing an Action class substituting QAction.
11
This substitution is neccessary in order to support alternate keyboard
14
<h3><font color="#FF0000">Classes</font></h3>
17
<td><a href="#ArgumentsError">ArgumentsError</a></td>
18
<td>Class implementing an exception, which is raised, if the wrong number of arguments are given.</td>
20
<td><a href="#E3Action">E3Action</a></td>
21
<td>Class implementing an Action class substituting QAction.</td>
23
<td><a href="#E3ActionGroup">E3ActionGroup</a></td>
24
<td>Class implementing an ActionGroup class substituting QActionGroup.</td>
27
<h3><font color="#FF0000">Functions</font></h3>
29
<tr><td>None</td></tr>
32
<a NAME="ArgumentsError" ID="ArgumentsError"></a>
33
<h2><font color="#0000FF">ArgumentsError</font></h2>
35
Class implementing an exception, which is raised, if the wrong number of arguments are given.
37
<h3><font color="#FF0000">Derived from</font></h3>
39
<h3><font color="#FF0000">Methods</font></h3>
42
<td><a href="#ArgumentsError.__init__">ArgumentsError</a></td>
45
<td><a href="#ArgumentsError.__repr__">__repr__</a></td>
46
<td>Private method returning a representation of the exception.</td>
48
<td><a href="#ArgumentsError.__str__">__str__</a></td>
49
<td>Private method returning a string representation of the exception.</td>
52
<p><a NAME="ArgumentsError.__init__" ID="ArgumentsError__init__"></a>
53
<h3><font color="#0000FF">ArgumentsError (Constructor)</font></h3>
54
<b>ArgumentsError</b>(<i>error</i>)
57
</p><a NAME="ArgumentsError.__repr__" ID="ArgumentsError__repr__"></a>
58
<h3><font color="#0000FF">ArgumentsError.__repr__</font></h3>
59
<b>__repr__</b>(<i></i>)
61
Private method returning a representation of the exception.
65
string representing the error message
67
</dl><a NAME="ArgumentsError.__str__" ID="ArgumentsError__str__"></a>
68
<h3><font color="#0000FF">ArgumentsError.__str__</font></h3>
69
<b>__str__</b>(<i></i>)
71
Private method returning a string representation of the exception.
75
string representing the error message
78
<div align="right"><a href="#top">Up</a></div>
80
<a NAME="E3Action" ID="E3Action"></a>
81
<h2><font color="#0000FF">E3Action</font></h2>
83
Class implementing an Action class substituting QAction.
85
<h3><font color="#FF0000">Derived from</font></h3>
87
<h3><font color="#FF0000">Methods</font></h3>
90
<td><a href="#E3Action.__init__">E3Action</a></td>
93
<td><a href="#E3Action.accel">accel</a></td>
94
<td>Public method to retrieve the accelerator.</td>
96
<td><a href="#E3Action.addTo">addTo</a></td>
97
<td>Public method to add this action to a widget.</td>
99
<td><a href="#E3Action.alternateAccel">alternateAccel</a></td>
100
<td>Public method to retrieve the alternative accelerator.</td>
102
<td><a href="#E3Action.connectIt">connectIt</a></td>
103
<td>Public method to connect signals of the action to a receiver.</td>
105
<td><a href="#E3Action.isOn">isOn</a></td>
106
<td>Public slot to retrieve the toggle status.</td>
108
<td><a href="#E3Action.mapIt">mapIt</a></td>
109
<td>Public method to set a mapping for the action.</td>
111
<td><a href="#E3Action.menuText">menuText</a></td>
112
<td>Public method to retrieve the actions menu text.</td>
114
<td><a href="#E3Action.setAccel">setAccel</a></td>
115
<td>Public slot to set the accelerator.</td>
117
<td><a href="#E3Action.setAlternateAccel">setAlternateAccel</a></td>
118
<td>Public slot to set the alternative accelerator.</td>
120
<td><a href="#E3Action.setEnabled">setEnabled</a></td>
121
<td>Public slot to set the enabled status.</td>
123
<td><a href="#E3Action.setIconSet">setIconSet</a></td>
124
<td>Public slot to set the icon set.</td>
126
<td><a href="#E3Action.setOn">setOn</a></td>
127
<td>Public slot to set the toggle status.</td>
129
<td><a href="#E3Action.setStatusTip">setStatusTip</a></td>
130
<td>Public slot to set the text of the status tip.</td>
132
<td><a href="#E3Action.setWhatsThis">setWhatsThis</a></td>
133
<td>Public slot to set the text of the What's This help.</td>
135
<td><a href="#E3Action.statusTip">statusTip</a></td>
136
<td>Public method to retrieve the text for the status tip.</td>
138
<td><a href="#E3Action.text">text</a></td>
139
<td>Public method to retrieve the actions text.</td>
141
<td><a href="#E3Action.whatsThis">whatsThis</a></td>
142
<td>Public method to retrieve the text for the What's This help.</td>
145
<p><a NAME="E3Action.__init__" ID="E3Action__init__"></a>
146
<h3><font color="#0000FF">E3Action (Constructor)</font></h3>
147
<b>E3Action</b>(<i>*args</i>)
153
argument list of the constructor. This list is one of
155
<li>text (string or QString), icon (QIconSet), menu text (string or QString),
156
accelarator (QKeySequence), alternative accelerator (QKeySequence),
157
parent (QObject), name (string or QString), toggle (boolean)</li>
158
<li>text (string or QString), icon (QIconSet), menu text (string or QString),
159
accelarator (QKeySequence), alternative accelerator (QKeySequence),
160
parent (QObject), name (string or QString)</li>
161
<li>text (string or QString), menu text (string or QString),
162
accelarator (QKeySequence), alternative accelerator (QKeySequence),
163
parent (QObject), name (string or QString), toggle (boolean)</li>
164
<li>text (string or QString), menu text (string or QString),
165
accelarator (QKeySequence), alternative accelerator (QKeySequence),
166
parent (QObject), name (string or QString)</li>
169
</dl><a NAME="E3Action.accel" ID="E3Actionaccel"></a>
170
<h3><font color="#0000FF">E3Action.accel</font></h3>
171
<b>accel</b>(<i></i>)
173
Public method to retrieve the accelerator.
177
the accelerator (QKeySequence)
179
</dl><a NAME="E3Action.addTo" ID="E3ActionaddTo"></a>
180
<h3><font color="#0000FF">E3Action.addTo</font></h3>
181
<b>addTo</b>(<i>widget</i>)
183
Public method to add this action to a widget.
185
<dt><i>widget</i></dt>
187
widget to add to (QWidget)
189
</dl><a NAME="E3Action.alternateAccel" ID="E3ActionalternateAccel"></a>
190
<h3><font color="#0000FF">E3Action.alternateAccel</font></h3>
191
<b>alternateAccel</b>(<i></i>)
193
Public method to retrieve the alternative accelerator.
197
the alternative accelerator (QKeySequence)
199
</dl><a NAME="E3Action.connectIt" ID="E3ActionconnectIt"></a>
200
<h3><font color="#0000FF">E3Action.connectIt</font></h3>
201
<b>connectIt</b>(<i>*args</i>)
203
Public method to connect signals of the action to a receiver.
207
argument list. This is one of
209
<li>signal (SIGNAL), receiving member (Python slot)</li>
210
<li>signal (SIGNAL), receiver (QObject), member (SLOT)</li>
213
</dl><a NAME="E3Action.isOn" ID="E3ActionisOn"></a>
214
<h3><font color="#0000FF">E3Action.isOn</font></h3>
217
Public slot to retrieve the toggle status.
221
the toggle status (boolean)
223
</dl><a NAME="E3Action.mapIt" ID="E3ActionmapIt"></a>
224
<h3><font color="#0000FF">E3Action.mapIt</font></h3>
225
<b>mapIt</b>(<i>mapper, mapping</i>)
227
Public method to set a mapping for the action.
229
<dt><i>mapper</i></dt>
231
reference to the mapper object (QSignalMapper)
232
</dd><dt><i>mapping</i></dt>
234
identifier the id of the mapping (integer, string or QString)
236
</dl><a NAME="E3Action.menuText" ID="E3ActionmenuText"></a>
237
<h3><font color="#0000FF">E3Action.menuText</font></h3>
238
<b>menuText</b>(<i></i>)
240
Public method to retrieve the actions menu text.
244
the menu text (QString)
246
</dl><a NAME="E3Action.setAccel" ID="E3ActionsetAccel"></a>
247
<h3><font color="#0000FF">E3Action.setAccel</font></h3>
248
<b>setAccel</b>(<i>accel</i>)
250
Public slot to set the accelerator.
252
<dt><i>accel</i></dt>
254
the accelerator (QKeySequence)
256
</dl><a NAME="E3Action.setAlternateAccel" ID="E3ActionsetAlternateAccel"></a>
257
<h3><font color="#0000FF">E3Action.setAlternateAccel</font></h3>
258
<b>setAlternateAccel</b>(<i>accel</i>)
260
Public slot to set the alternative accelerator.
262
<dt><i>accel</i></dt>
264
the alternative accelerator (QKeySequence)
266
</dl><a NAME="E3Action.setEnabled" ID="E3ActionsetEnabled"></a>
267
<h3><font color="#0000FF">E3Action.setEnabled</font></h3>
268
<b>setEnabled</b>(<i>on</i>)
270
Public slot to set the enabled status.
274
the enabled status (boolean)
276
</dl><a NAME="E3Action.setIconSet" ID="E3ActionsetIconSet"></a>
277
<h3><font color="#0000FF">E3Action.setIconSet</font></h3>
278
<b>setIconSet</b>(<i>iconSet</i>)
280
Public slot to set the icon set.
282
<dt><i>iconSet</i></dt>
284
the new icon set (QIconSet)
286
</dl><a NAME="E3Action.setOn" ID="E3ActionsetOn"></a>
287
<h3><font color="#0000FF">E3Action.setOn</font></h3>
288
<b>setOn</b>(<i>on</i>)
290
Public slot to set the toggle status.
294
the toggle status (boolean)
296
</dl><a NAME="E3Action.setStatusTip" ID="E3ActionsetStatusTip"></a>
297
<h3><font color="#0000FF">E3Action.setStatusTip</font></h3>
298
<b>setStatusTip</b>(<i>text</i>)
300
Public slot to set the text of the status tip.
304
text to be shown (string or QString)
306
</dl><a NAME="E3Action.setWhatsThis" ID="E3ActionsetWhatsThis"></a>
307
<h3><font color="#0000FF">E3Action.setWhatsThis</font></h3>
308
<b>setWhatsThis</b>(<i>text</i>)
310
Public slot to set the text of the What's This help.
314
text to be shown (string or QString)
316
</dl><a NAME="E3Action.statusTip" ID="E3ActionstatusTip"></a>
317
<h3><font color="#0000FF">E3Action.statusTip</font></h3>
318
<b>statusTip</b>(<i></i>)
320
Public method to retrieve the text for the status tip.
324
text for the status tip (QString)
326
</dl><a NAME="E3Action.text" ID="E3Actiontext"></a>
327
<h3><font color="#0000FF">E3Action.text</font></h3>
330
Public method to retrieve the actions text.
334
the actions text (QString)
336
</dl><a NAME="E3Action.whatsThis" ID="E3ActionwhatsThis"></a>
337
<h3><font color="#0000FF">E3Action.whatsThis</font></h3>
338
<b>whatsThis</b>(<i></i>)
340
Public method to retrieve the text for the What's This help.
344
text for the What's This help (QString)
347
<div align="right"><a href="#top">Up</a></div>
349
<a NAME="E3ActionGroup" ID="E3ActionGroup"></a>
350
<h2><font color="#0000FF">E3ActionGroup</font></h2>
352
Class implementing an ActionGroup class substituting QActionGroup.
354
<h3><font color="#FF0000">Derived from</font></h3>
356
<h3><font color="#FF0000">Methods</font></h3>
359
<td><a href="#E3ActionGroup.__init__">E3ActionGroup</a></td>
362
<td><a href="#E3ActionGroup.addTo">addTo</a></td>
363
<td>Public method to add this action group to a widget.</td>
365
<td><a href="#E3ActionGroup.getActionGroups">getActionGroups</a></td>
366
<td>Public method to retrieve the underlying action group objects.</td>
368
<td><a href="#E3ActionGroup.getAlternateActionGroup">getAlternateActionGroup</a></td>
369
<td>Public method to retrieve the alternative action group object.</td>
371
<td><a href="#E3ActionGroup.getMainActionGroup">getMainActionGroup</a></td>
372
<td>Public method to retrieve the primary action group object.</td>
374
<td><a href="#E3ActionGroup.setEnabled">setEnabled</a></td>
375
<td>Public slot to set the enabled status.</td>
378
<p><a NAME="E3ActionGroup.__init__" ID="E3ActionGroup__init__"></a>
379
<h3><font color="#0000FF">E3ActionGroup (Constructor)</font></h3>
380
<b>E3ActionGroup</b>(<i>parent, name = None, exclusive = 0</i>)
384
<dt><i>parent</i></dt>
386
parent object of the action group (QObject)
387
</dd><dt><i>name</i></dt>
389
name of the action group object (string or QString)
390
</dd><dt><i>exclusive</i></dt>
392
flag indicating an exclusive action group (boolean)
394
</dl><a NAME="E3ActionGroup.addTo" ID="E3ActionGroupaddTo"></a>
395
<h3><font color="#0000FF">E3ActionGroup.addTo</font></h3>
396
<b>addTo</b>(<i>widget</i>)
398
Public method to add this action group to a widget.
400
<dt><i>widget</i></dt>
402
widget to add to (QWidget)
404
</dl><a NAME="E3ActionGroup.getActionGroups" ID="E3ActionGroupgetActionGroups"></a>
405
<h3><font color="#0000FF">E3ActionGroup.getActionGroups</font></h3>
406
<b>getActionGroups</b>(<i></i>)
408
Public method to retrieve the underlying action group objects.
412
tuple containing the underlying action groups
413
(tuple of two QActionGroup)
415
</dl><a NAME="E3ActionGroup.getAlternateActionGroup" ID="E3ActionGroupgetAlternateActionGroup"></a>
416
<h3><font color="#0000FF">E3ActionGroup.getAlternateActionGroup</font></h3>
417
<b>getAlternateActionGroup</b>(<i></i>)
419
Public method to retrieve the alternative action group object.
423
alternative action group (QActionGroup)
425
</dl><a NAME="E3ActionGroup.getMainActionGroup" ID="E3ActionGroupgetMainActionGroup"></a>
426
<h3><font color="#0000FF">E3ActionGroup.getMainActionGroup</font></h3>
427
<b>getMainActionGroup</b>(<i></i>)
429
Public method to retrieve the primary action group object.
433
primary action group (QActionGroup)
435
</dl><a NAME="E3ActionGroup.setEnabled" ID="E3ActionGroupsetEnabled"></a>
436
<h3><font color="#0000FF">E3ActionGroup.setEnabled</font></h3>
437
<b>setEnabled</b>(<i>on</i>)
439
Public slot to set the enabled status.
443
the enabled status (boolean)
446
<div align="right"><a href="#top">Up</a></div>
b'\\ No newline at end of file'