GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
KeyboardTranslatorWriter Class Reference

Writes a keyboard translation to disk. More...

#include "KeyboardTranslator.h"

Collaboration diagram for KeyboardTranslatorWriter:
Collaboration graph
[legend]

Public Member Functions

 KeyboardTranslatorWriter (QIODevice *destination)
 Constructs a new writer which saves data into destination.
 ~KeyboardTranslatorWriter ()
void writeEntry (const KeyboardTranslator::Entry &entry)
 Writes a translator entry.
void writeHeader (const QString &description)
 Writes the header for the keyboard translator.

Private Attributes

QIODevice * _destination
QTextStream * _writer

Detailed Description

Writes a keyboard translation to disk.

Definition at line 488 of file KeyboardTranslator.h.

Constructor & Destructor Documentation

KeyboardTranslatorWriter::KeyboardTranslatorWriter ( QIODevice *  destination)

Constructs a new writer which saves data into destination.

The caller is responsible for closing the device when writing is complete.

Definition at line 181 of file KeyboardTranslator.cpp.

References _destination, and _writer.

KeyboardTranslatorWriter::~KeyboardTranslatorWriter ( )

Definition at line 188 of file KeyboardTranslator.cpp.

References _writer.

Member Function Documentation

void KeyboardTranslatorWriter::writeEntry ( const KeyboardTranslator::Entry entry)
void KeyboardTranslatorWriter::writeHeader ( const QString &  description)

Writes the header for the keyboard translator.

Parameters
descriptionDescription of the keyboard translator.

Definition at line 192 of file KeyboardTranslator.cpp.

References _writer.

Referenced by KeyboardTranslatorManager::saveTranslator().

Member Data Documentation

QIODevice* KeyboardTranslatorWriter::_destination
private

Definition at line 507 of file KeyboardTranslator.h.

Referenced by KeyboardTranslatorWriter().

QTextStream* KeyboardTranslatorWriter::_writer
private

The documentation for this class was generated from the following files: