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'>
5
<title>eric4.XML.ShortcutsHandler</title>
9
margin: 0em 1em 10em 1em;
13
h1 { color: white; background: #4FA4FF; }
14
h2 { color: white; background: #4FA4FF; }
15
h3 { color: white; background: #00557F; }
16
h4 { color: white; background: #00557F; }
22
<body><a NAME="top" ID="top"></a>
23
<h1>eric4.XML.ShortcutsHandler</h1>
25
Module implementing the handler class for reading a keyboard shortcuts file.
30
<td><a href="#ShortcutsHandler">ShortcutsHandler</a></td>
31
<td>Class implementing a sax handler to read a keyboard shortcuts file.</td>
36
<tr><td>None</td></tr>
39
<a NAME="ShortcutsHandler" ID="ShortcutsHandler"></a>
40
<h2>ShortcutsHandler</h2>
42
Class implementing a sax handler to read a keyboard shortcuts file.
49
<td><a href="#ShortcutsHandler.__init__">ShortcutsHandler</a></td>
52
<td><a href="#ShortcutsHandler.endAccel">endAccel</a></td>
53
<td>Handler method for the "Accel" end tag.</td>
55
<td><a href="#ShortcutsHandler.endAltAccel">endAltAccel</a></td>
56
<td>Handler method for the "AltAccel" end tag.</td>
58
<td><a href="#ShortcutsHandler.endName">endName</a></td>
59
<td>Handler method for the "Name" end tag.</td>
61
<td><a href="#ShortcutsHandler.endShortcut">endShortcut</a></td>
62
<td>Handler method for the "Shortcut" end tag.</td>
64
<td><a href="#ShortcutsHandler.getShortcuts">getShortcuts</a></td>
65
<td>Public method to retrieve the shortcuts.</td>
67
<td><a href="#ShortcutsHandler.getVersion">getVersion</a></td>
68
<td>Public method to retrieve the version of the shortcuts.</td>
70
<td><a href="#ShortcutsHandler.startDocumentShortcuts">startDocumentShortcuts</a></td>
71
<td>Handler called, when the document parsing is started.</td>
73
<td><a href="#ShortcutsHandler.startShortcut">startShortcut</a></td>
74
<td>Handler method for the "Shortcut" start tag.</td>
76
<td><a href="#ShortcutsHandler.startShortcuts">startShortcuts</a></td>
77
<td>Handler method for the "Shortcuts" start tag.</td>
80
<p><a NAME="ShortcutsHandler.__init__" ID="ShortcutsHandler.__init__"></a>
81
<h4>ShortcutsHandler (Constructor)</h4>
82
<b>ShortcutsHandler</b>(<i></i>)
85
</p><a NAME="ShortcutsHandler.endAccel" ID="ShortcutsHandler.endAccel"></a>
86
<h4>ShortcutsHandler.endAccel</h4>
87
<b>endAccel</b>(<i></i>)
89
Handler method for the "Accel" end tag.
90
</p><a NAME="ShortcutsHandler.endAltAccel" ID="ShortcutsHandler.endAltAccel"></a>
91
<h4>ShortcutsHandler.endAltAccel</h4>
92
<b>endAltAccel</b>(<i></i>)
94
Handler method for the "AltAccel" end tag.
95
</p><a NAME="ShortcutsHandler.endName" ID="ShortcutsHandler.endName"></a>
96
<h4>ShortcutsHandler.endName</h4>
97
<b>endName</b>(<i></i>)
99
Handler method for the "Name" end tag.
100
</p><a NAME="ShortcutsHandler.endShortcut" ID="ShortcutsHandler.endShortcut"></a>
101
<h4>ShortcutsHandler.endShortcut</h4>
102
<b>endShortcut</b>(<i></i>)
104
Handler method for the "Shortcut" end tag.
105
</p><a NAME="ShortcutsHandler.getShortcuts" ID="ShortcutsHandler.getShortcuts"></a>
106
<h4>ShortcutsHandler.getShortcuts</h4>
107
<b>getShortcuts</b>(<i></i>)
109
Public method to retrieve the shortcuts.
113
Dictionary of dictionaries of shortcuts. The keys of the
114
dictionary are the categories, the values are dictionaries.
115
These dictionaries have the shortcut name as their key and
116
a tuple of accelerators as their value.
118
</dl><a NAME="ShortcutsHandler.getVersion" ID="ShortcutsHandler.getVersion"></a>
119
<h4>ShortcutsHandler.getVersion</h4>
120
<b>getVersion</b>(<i></i>)
122
Public method to retrieve the version of the shortcuts.
126
String containing the version number.
128
</dl><a NAME="ShortcutsHandler.startDocumentShortcuts" ID="ShortcutsHandler.startDocumentShortcuts"></a>
129
<h4>ShortcutsHandler.startDocumentShortcuts</h4>
130
<b>startDocumentShortcuts</b>(<i></i>)
132
Handler called, when the document parsing is started.
133
</p><a NAME="ShortcutsHandler.startShortcut" ID="ShortcutsHandler.startShortcut"></a>
134
<h4>ShortcutsHandler.startShortcut</h4>
135
<b>startShortcut</b>(<i>attrs</i>)
137
Handler method for the "Shortcut" start tag.
139
<dt><i>attrs</i></dt>
141
list of tag attributes
143
</dl><a NAME="ShortcutsHandler.startShortcuts" ID="ShortcutsHandler.startShortcuts"></a>
144
<h4>ShortcutsHandler.startShortcuts</h4>
145
<b>startShortcuts</b>(<i>attrs</i>)
147
Handler method for the "Shortcuts" start tag.
149
<dt><i>attrs</i></dt>
151
list of tag attributes
154
<div align="right"><a href="#top">Up</a></div>
b'\\ No newline at end of file'