# eric6.E5XML.ShortcutsWriter

Module implementing the writer class for writing an XML shortcuts file.

### Global Attributes

None

### Classes

ShortcutsWriter | Class implementing the writer class for writing an XML shortcuts file.

### Functions

None

## ShortcutsWriter

Class implementing the writer class for writing an XML shortcuts file.

### Derived from

XMLStreamWriterBase

### Class Attributes

None

### Class Methods

None

### Methods

ShortcutsWriter | Constructor
__writeActions | Private method to write the shortcuts for the given actions.
writeXML | Public method to write the XML to the file.

### Static Methods

None

#### ShortcutsWriter (Constructor)

ShortcutsWriter(device)

Constructor

device
  reference to the I/O device to write to (QIODevice)

#### ShortcutsWriter.__writeActions

__writeActions(category, actions)

Private method to write the shortcuts for the given actions.

category
  category the actions belong to (string)
actions
  list of actions to write (E5Action)

#### ShortcutsWriter.writeXML

writeXML(helpViewer=None)

Public method to write the XML to the file.

helpViewer
  reference to the help window object

Up