8 #include <QKeySequence> 10 #include <QStringList> 14 class TextEditorCommand;
15 class TextEditorController;
29 QKeySequence sequence_;
49 QKeySequence getSequence(
const QString& name )
const;
50 QList<TextEditorKey*> getAll(
const QString& name )
const;
51 bool has(
const QString& name )
const;
54 void add(
const QString& command,
const QKeySequence& seq );
55 bool add(
const QString& command,
const QString& seq );
59 QString findBySequence( QKeySequence sequence, QKeySequence::SequenceMatch& match );
61 static QKeySequence joinKeySequences(
const QKeySequence seq1,
const QKeySequence seq2 );
62 static QKeySequence::StandardKey standardKeyFromString(
const QString& str );
64 QString toString()
const;
71 QHash<QString,TextEditorKey*> keyMap_;
87 void loadAllKeyMaps(
const QString& path );
88 void loadKeyMap(
const QString& file );
89 void loadFactoryKeyMap();
96 QHash<QString,TextEditorKeyMap*> keyMapHash_;
There can be different keymaps for different file-types/ The keymap manager manages all the available...
Definition: texteditorkeymap.h:81
TextEditorKey(const QKeySequence &seq)
Constructs the texteditor key sequence.
Definition: texteditorkeymap.cpp:23
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
TextEditorKey * clone() const
Clones the text editor key.
Definition: texteditorkeymap.cpp:30
#define add(key, value)
Definition: factorykeymap.cpp:15
A text editor key map This key map, maps key-sequences to action-names.
Definition: texteditorkeymap.h:39
TextEditorKeyMap * parentMap()
Definition: texteditorkeymap.h:66
const QKeySequence & sequence()
returns the keysequence
Definition: texteditorkeymap.cpp:37
A contexted keysequence This contains a keysequence and optionally a given context.
Definition: texteditorkeymap.h:20