GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Writes a keyboard translation to disk. More...
#include "KeyboardTranslator.h"
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 |
Writes a keyboard translation to disk.
Definition at line 488 of file KeyboardTranslator.h.
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.
void KeyboardTranslatorWriter::writeEntry | ( | const KeyboardTranslator::Entry & | entry | ) |
Writes a translator entry.
Definition at line 196 of file KeyboardTranslator.cpp.
References _writer, KeyboardTranslator::Entry::command(), KeyboardTranslator::Entry::conditionToString(), KeyboardTranslator::NoCommand, and KeyboardTranslator::Entry::resultToString().
Referenced by KeyboardTranslatorManager::saveTranslator().
void KeyboardTranslatorWriter::writeHeader | ( | const QString & | description | ) |
Writes the header for the keyboard translator.
description | Description of the keyboard translator. |
Definition at line 192 of file KeyboardTranslator.cpp.
References _writer.
Referenced by KeyboardTranslatorManager::saveTranslator().
|
private |
Definition at line 507 of file KeyboardTranslator.h.
Referenced by KeyboardTranslatorWriter().
|
private |
Definition at line 508 of file KeyboardTranslator.h.
Referenced by KeyboardTranslatorWriter(), writeEntry(), writeHeader(), and ~KeyboardTranslatorWriter().