GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
KeyboardTranslatorWriter Class Reference

Writes a keyboard translation to disk. More...

#include "KeyboardTranslator.h"

Collaboration diagram for KeyboardTranslatorWriter:

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
 

Detailed Description

Writes a keyboard translation to disk.

Definition at line 490 of file KeyboardTranslator.h.

Constructor & Destructor Documentation

◆ KeyboardTranslatorWriter()

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::~KeyboardTranslatorWriter ( )

Definition at line 196 of file KeyboardTranslator.cpp.

References _writer.

Member Function Documentation

◆ writeEntry()

◆ writeHeader()

void KeyboardTranslatorWriter::writeHeader ( const QString &  description)

Writes the header for the keyboard translator.

Parameters
descriptionDescription of the keyboard translator.

Definition at line 200 of file KeyboardTranslator.cpp.

References _writer.

Referenced by KeyboardTranslatorManager::saveTranslator().

Member Data Documentation

◆ _destination

QIODevice* KeyboardTranslatorWriter::_destination
private

Definition at line 509 of file KeyboardTranslator.h.

Referenced by KeyboardTranslatorWriter().

◆ _writer

QTextStream* KeyboardTranslatorWriter::_writer
private

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