Konsole
KeyboardTranslator.h
Go to the documentation of this file.
65 NoState = 0,
69 NewLineState = 1,
74 AnsiState = 2,
78 CursorKeysState = 4,
83 AlternateScreenState = 8,
85 AnyModifierState = 16,
87 ApplicationKeypadState = 32
96 NoCommand = 0,
98 SendCommand = 1,
100 ScrollPageUpCommand = 2,
102 ScrollPageDownCommand = 4,
104 ScrollLineUpCommand = 8,
106 ScrollLineDownCommand = 16,
108 ScrollUpToTopCommand = 32,
110 ScrollDownToBottomCommand = 64,
112 EraseCommand = 256
State
The meaning of a particular key sequence may depend upon the state which the terminal emulation is in...
Definition: KeyboardTranslator.h:63
int keyCode() const
Returns the character code ( from the Qt::Key enum ) associated with this entry.
Definition: KeyboardTranslator.h:442
A converter which maps between key sequences pressed by the user and the character strings which shou...
Definition: KeyboardTranslator.h:52
void setKeyCode(int aKeyCode)
Sets the character code associated with this entry.
Definition: KeyboardTranslator.h:446
bool hasNextEntry()
Returns true if there is another entry in the source stream.
Definition: KeyboardTranslator.cpp:301
Qt::KeyboardModifiers modifierMask() const
Returns the keyboard modifiers which are valid in this entry.
Definition: KeyboardTranslator.h:464
Represents an association between a key sequence pressed by the user and the character sequence and c...
Definition: KeyboardTranslator.h:121
KeyboardTranslatorWriter(QIODevice *destination)
Constructs a new writer which saves data into destination.
Definition: KeyboardTranslator.cpp:40
QByteArray text(bool expandWildCards=false, Qt::KeyboardModifiers keyboardModifiers=Qt::NoModifier) const
Returns the character sequence associated with this entry, optionally replacing wildcard '*' characte...
Definition: KeyboardTranslator.h:491
Qt::KeyboardModifiers modifiers() const
Returns a bitwise-OR of the enabled keyboard modifiers associated with this entry.
Definition: KeyboardTranslator.h:455
static KeyboardTranslator::Entry createEntry(const QString &condition, const QString &result)
Parses a condition and result string for a translator entry and produces a keyboard translator entry...
Definition: KeyboardTranslator.cpp:305
void writeHeader(const QString &description)
Writes the header for the keyboard translator.
Definition: KeyboardTranslator.cpp:51
Parses the contents of a Keyboard Translator (.keytab) file and returns the entries found in it...
Definition: KeyboardTranslator.h:354
KeyboardTranslatorReader(QIODevice *source)
Constructs a new reader which parses the given source.
Definition: KeyboardTranslator.cpp:85
States state() const
Returns a bitwise-OR of the enabled state flags associated with this entry.
Definition: KeyboardTranslator.h:515
Writes a keyboard translation to disk.
Definition: KeyboardTranslator.h:419
void setModifiers(Qt::KeyboardModifiers modifiers)
See modifiers()
Definition: KeyboardTranslator.h:451
void setModifierMask(Qt::KeyboardModifiers modifiers)
See modifierMask() and modifiers()
Definition: KeyboardTranslator.h:460
bool operator==(const Character &a, const Character &b)
Definition: Character.h:171
void writeEntry(const KeyboardTranslator::Entry &entry)
Writes a translator entry.
Definition: KeyboardTranslator.cpp:55
States stateMask() const
Returns the state flags which are valid in this entry.
Definition: KeyboardTranslator.h:524
Command command() const
Returns the commands associated with this entry.
Definition: KeyboardTranslator.h:478
void setText(const QByteArray &aText)
Sets the character sequence associated with this entry.
Definition: KeyboardTranslator.h:483
KeyboardTranslator::Entry nextEntry()
Returns the next entry found in the source stream.
Definition: KeyboardTranslator.cpp:333
Command
This enum describes commands which are associated with particular key sequences.
Definition: KeyboardTranslator.h:94
bool parseError()
Returns true if an error occurred whilst parsing the input or false if no error occurred.
Definition: KeyboardTranslator.cpp:340
~KeyboardTranslatorWriter()
Definition: KeyboardTranslator.cpp:47
void setCommand(Command aCommand)
Sets the command associated with this entry.
Definition: KeyboardTranslator.h:474
typedef KeyboardModifiers
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.