|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.E5XML.ShortcutsWriter</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.E5XML.ShortcutsWriter</h1> |
|
23 <p> |
|
24 Module implementing the writer class for writing an XML shortcuts file. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#ShortcutsWriter">ShortcutsWriter</a></td> |
|
34 <td>Class implementing the writer class for writing an XML shortcuts file.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="ShortcutsWriter" ID="ShortcutsWriter"></a> |
|
43 <h2>ShortcutsWriter</h2> |
|
44 <p> |
|
45 Class implementing the writer class for writing an XML shortcuts file. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 XMLStreamWriterBase |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#ShortcutsWriter.__init__">ShortcutsWriter</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#ShortcutsWriter.__writeActions">__writeActions</a></td> |
|
64 <td>Private method to write the shortcuts for the given actions.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#ShortcutsWriter.writeXML">writeXML</a></td> |
|
67 <td>Public method to write the XML to the file.</td> |
|
68 </tr> |
|
69 </table> |
|
70 <h3>Static Methods</h3> |
|
71 <table> |
|
72 <tr><td>None</td></tr> |
|
73 </table> |
|
74 <a NAME="ShortcutsWriter.__init__" ID="ShortcutsWriter.__init__"></a> |
|
75 <h4>ShortcutsWriter (Constructor)</h4> |
|
76 <b>ShortcutsWriter</b>(<i>device</i>) |
|
77 <p> |
|
78 Constructor |
|
79 </p><dl> |
|
80 <dt><i>device</i></dt> |
|
81 <dd> |
|
82 reference to the I/O device to write to (QIODevice) |
|
83 </dd> |
|
84 </dl><a NAME="ShortcutsWriter.__writeActions" ID="ShortcutsWriter.__writeActions"></a> |
|
85 <h4>ShortcutsWriter.__writeActions</h4> |
|
86 <b>__writeActions</b>(<i>category, actions</i>) |
|
87 <p> |
|
88 Private method to write the shortcuts for the given actions. |
|
89 </p><dl> |
|
90 <dt><i>category</i></dt> |
|
91 <dd> |
|
92 category the actions belong to (string) |
|
93 </dd><dt><i>actions</i></dt> |
|
94 <dd> |
|
95 list of actions to write (E5Action) |
|
96 </dd> |
|
97 </dl><a NAME="ShortcutsWriter.writeXML" ID="ShortcutsWriter.writeXML"></a> |
|
98 <h4>ShortcutsWriter.writeXML</h4> |
|
99 <b>writeXML</b>(<i>helpViewer=None</i>) |
|
100 <p> |
|
101 Public method to write the XML to the file. |
|
102 </p><dl> |
|
103 <dt><i>helpViewer</i></dt> |
|
104 <dd> |
|
105 reference to the help window object |
|
106 </dd> |
|
107 </dl> |
|
108 <div align="right"><a href="#top">Up</a></div> |
|
109 <hr /> |
|
110 </body></html> |