24 #ifndef TERMINAL_CHARACTER_DECODER_H
25 #define TERMINAL_CHARACTER_DECODER_H
46 virtual void begin(QTextStream* output) = 0;
48 virtual void end() = 0;
84 virtual void begin(QTextStream* output);
118 virtual void begin(QTextStream* output);
An entry in a terminal display's color palette.
void closeSpan(QString &text)
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)=0
Converts a line of terminal characters with associated properties into a text string and writes the s...
const ColorEntry * _colorTable
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Describes the color of a single character in the terminal.
bool trailingWhitespace() const
Returns whether trailing whitespace at the end of lines is included in the output.
unsigned char LineProperty
void openSpan(QString &text, const QString &style)
A terminal character decoder which produces plain text, ignoring colours and other appearance-related...
virtual ~TerminalCharacterDecoder()
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)
Converts a line of terminal characters with associated properties into a text string and writes the s...
CharacterColor _lastForeColor
virtual void decodeLine(const Character *const characters, int count, LineProperty properties)
Converts a line of terminal characters with associated properties into a text string and writes the s...
bool _includeTrailingWhitespace
virtual void end()
End decoding.
Base class for terminal character decoders.
A terminal character decoder which produces pretty HTML markup.
void setTrailingWhitespace(bool enable)
Set whether trailing whitespace at the end of lines should be included in the output.
virtual void end()=0
End decoding.
virtual void end()
End decoding.
HTMLDecoder()
Constructs an HTML decoder using a default black-on-white color scheme.
virtual void begin(QTextStream *output)
Begin decoding characters.
CharacterColor _lastBackColor
virtual void begin(QTextStream *output)
Begin decoding characters.
void setColorTable(const ColorEntry *table)
Sets the colour table which the decoder uses to produce the HTML colour codes in its output...
virtual void begin(QTextStream *output)=0
Begin decoding characters.
T::properties & properties(graphics_object obj)