Konsole
KeyboardTranslator.cpp
Go to the documentation of this file.
150 bool KeyboardTranslatorReader::parseAsCommand(const QString& text, KeyboardTranslator::Command& command)
240 bool KeyboardTranslatorReader::parseAsModifier(const QString& item , Qt::KeyboardModifier& modifier)
257 bool KeyboardTranslatorReader::parseAsStateFlag(const QString& item , KeyboardTranslator::State& flag)
680 KeyboardTranslator::Entry KeyboardTranslator::findEntry(int keyCode, Qt::KeyboardModifiers modifiers, States state) const
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
Echos the operating system specific erase character.
Definition: KeyboardTranslator.h:112
FallbackKeyboardTranslator()
Definition: KeyboardTranslator.cpp:624
void setKeyCode(int aKeyCode)
Sets the character code associated with this entry.
Definition: KeyboardTranslator.h:446
void removeEntry(const Entry &entry)
Removes an entry from the table.
Definition: KeyboardTranslator.cpp:675
QString description() const
Returns the descriptive name of this keyboard translator.
Definition: KeyboardTranslator.cpp:641
QString resultToString(bool expandWildCards=false, Qt::KeyboardModifiers modifiers=Qt::NoModifier) const
Returns this entry's result ( ie.
Definition: KeyboardTranslator.cpp:577
QByteArray escapedText(bool expandWildCards=false, Qt::KeyboardModifiers modifiers=Qt::NoModifier) const
Returns the character sequence associated with this entry, with any non-printable characters replaced...
Definition: KeyboardTranslator.cpp:451
Scroll the terminal display down one line.
Definition: KeyboardTranslator.h:106
bool hasNextEntry()
Returns true if there is another entry in the source stream.
Definition: KeyboardTranslator.cpp:301
Scroll the terminal display up to the start of history.
Definition: KeyboardTranslator.h:108
TODO More documentation.
Definition: KeyboardTranslator.h:78
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
Indicates that any of the modifier keys is active.
Definition: KeyboardTranslator.h:85
Indicates that the alternate screen ( typically used by interactive programs such as screen or vim ) ...
Definition: KeyboardTranslator.h:83
Indicates that no special state is active.
Definition: KeyboardTranslator.h:65
QList< Entry > entries() const
Returns a list of all entries in the translator.
Definition: KeyboardTranslator.cpp:656
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
bool operator==(const Entry &rhs) const
Definition: KeyboardTranslator.cpp:411
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
void setName(const QString &name)
Sets the name of this keyboard translator.
Definition: KeyboardTranslator.cpp:646
KeyboardTranslator(const QString &name)
Constructs a new keyboard translator with the given name.
Definition: KeyboardTranslator.cpp:619
Indicates that the terminal is in 'ANSI' mode.
Definition: KeyboardTranslator.h:74
Scroll the terminal display down one page.
Definition: KeyboardTranslator.h:102
void setModifiers(Qt::KeyboardModifiers modifiers)
See modifiers()
Definition: KeyboardTranslator.h:451
void setModifierMask(Qt::KeyboardModifiers modifiers)
See modifierMask() and modifiers()
Definition: KeyboardTranslator.h:460
void writeEntry(const KeyboardTranslator::Entry &entry)
Writes a translator entry.
Definition: KeyboardTranslator.cpp:55
Entry findEntry(int keyCode, Qt::KeyboardModifiers modifiers, States state=NoState) const
Looks for an entry in this keyboard translator which matches the given key code, keyboard modifiers a...
Definition: KeyboardTranslator.cpp:680
void addEntry(const Entry &entry)
Adds an entry to this keyboard translator's table.
Definition: KeyboardTranslator.cpp:661
Scroll the terminal display down to the end of history.
Definition: KeyboardTranslator.h:110
Command command() const
Returns the commands associated with this entry.
Definition: KeyboardTranslator.h:478
QString name() const
Returns the name of this keyboard translator.
Definition: KeyboardTranslator.cpp:651
TODO More documentation.
Definition: KeyboardTranslator.h:69
void setText(const QByteArray &aText)
Sets the character sequence associated with this entry.
Definition: KeyboardTranslator.h:483
Indicates that no command is associated with this command sequence.
Definition: KeyboardTranslator.h:96
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
Scroll the terminal display up one page.
Definition: KeyboardTranslator.h:100
Scroll the terminal display up one line.
Definition: KeyboardTranslator.h:104
QString conditionToString() const
Returns the key code and modifiers associated with this entry as a QKeySequence.
Definition: KeyboardTranslator.cpp:599
Indicates that the numpad is in application mode.
Definition: KeyboardTranslator.h:87
~KeyboardTranslatorWriter()
Definition: KeyboardTranslator.cpp:47
void replaceEntry(const Entry &existing, const Entry &replacement)
Replaces an entry in the translator.
Definition: KeyboardTranslator.cpp:667
void setCommand(Command aCommand)
Sets the command associated with this entry.
Definition: KeyboardTranslator.h:474
void setDescription(const QString &description)
Sets the descriptive name of this keyboard translator.
Definition: KeyboardTranslator.cpp:636
bool matches(int keyCode, Qt::KeyboardModifiers modifiers, States flags) const
Returns true if this entry matches the given key sequence, specified as a combination of keyCode ...
Definition: KeyboardTranslator.cpp:422
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.