44 <h2>ShortcutsWriter</h2> |
44 <h2>ShortcutsWriter</h2> |
45 <p> |
45 <p> |
46 Class implementing the writer class for writing an XML shortcuts file. |
46 Class implementing the writer class for writing an XML shortcuts file. |
47 </p> |
47 </p> |
48 <h3>Derived from</h3> |
48 <h3>Derived from</h3> |
49 XMLWriterBase |
49 XMLStreamWriterBase |
50 <h3>Class Attributes</h3> |
50 <h3>Class Attributes</h3> |
51 <table> |
51 <table> |
52 <tr><td>None</td></tr> |
52 <tr><td>None</td></tr> |
53 </table> |
53 </table> |
54 <h3>Methods</h3> |
54 <h3>Methods</h3> |
55 <table> |
55 <table> |
56 <tr> |
56 <tr> |
57 <td><a href="#ShortcutsWriter.__init__">ShortcutsWriter</a></td> |
57 <td><a href="#ShortcutsWriter.__init__">ShortcutsWriter</a></td> |
58 <td>Constructor</td> |
58 <td>Constructor</td> |
59 </tr><tr> |
59 </tr><tr> |
|
60 <td><a href="#ShortcutsWriter.__writeActions">__writeActions</a></td> |
|
61 <td>Private method to write the shortcuts for the given actions.</td> |
|
62 </tr><tr> |
60 <td><a href="#ShortcutsWriter.writeXML">writeXML</a></td> |
63 <td><a href="#ShortcutsWriter.writeXML">writeXML</a></td> |
61 <td>Public method to write the XML to the file.</td> |
64 <td>Public method to write the XML to the file.</td> |
62 </tr> |
65 </tr> |
63 </table> |
66 </table> |
64 <a NAME="ShortcutsWriter.__init__" ID="ShortcutsWriter.__init__"></a> |
67 <a NAME="ShortcutsWriter.__init__" ID="ShortcutsWriter.__init__"></a> |
65 <h4>ShortcutsWriter (Constructor)</h4> |
68 <h4>ShortcutsWriter (Constructor)</h4> |
66 <b>ShortcutsWriter</b>(<i>file</i>) |
69 <b>ShortcutsWriter</b>(<i>device</i>) |
67 <p> |
70 <p> |
68 Constructor |
71 Constructor |
69 </p><dl> |
72 </p><dl> |
70 <dt><i>file</i></dt> |
73 <dt><i>device</i></dt> |
71 <dd> |
74 <dd> |
72 open file (like) object for writing |
75 reference to the I/O device to write to (QIODevice) |
|
76 </dd> |
|
77 </dl><a NAME="ShortcutsWriter.__writeActions" ID="ShortcutsWriter.__writeActions"></a> |
|
78 <h4>ShortcutsWriter.__writeActions</h4> |
|
79 <b>__writeActions</b>(<i>category, actions</i>) |
|
80 <p> |
|
81 Private method to write the shortcuts for the given actions. |
|
82 </p><dl> |
|
83 <dt><i>category</i></dt> |
|
84 <dd> |
|
85 category the actions belong to (string) |
|
86 </dd><dt><i>actions</i></dt> |
|
87 <dd> |
|
88 list of actions to write (E5Action) |
73 </dd> |
89 </dd> |
74 </dl><a NAME="ShortcutsWriter.writeXML" ID="ShortcutsWriter.writeXML"></a> |
90 </dl><a NAME="ShortcutsWriter.writeXML" ID="ShortcutsWriter.writeXML"></a> |
75 <h4>ShortcutsWriter.writeXML</h4> |
91 <h4>ShortcutsWriter.writeXML</h4> |
76 <b>writeXML</b>(<i></i>) |
92 <b>writeXML</b>(<i></i>) |
77 <p> |
93 <p> |