GNU Octave
4.0.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 . More... | |
~KeyboardTranslatorWriter () | |
void | writeEntry (const KeyboardTranslator::Entry &entry) |
Writes a translator entry. More... | |
void | writeHeader (const QString &description) |
Writes the header for the keyboard translator. More... | |
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 189 of file KeyboardTranslator.cpp.
References _destination, and _writer.
KeyboardTranslatorWriter::~KeyboardTranslatorWriter | ( | ) |
Definition at line 196 of file KeyboardTranslator.cpp.
References _writer.
void KeyboardTranslatorWriter::writeEntry | ( | const KeyboardTranslator::Entry & | entry | ) |
Writes a translator entry.
Definition at line 204 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 200 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().