1 /* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
2 * Understanding is not required. Only obedience.
4 * This program is free software. It comes without any warranty, to
5 * the extent permitted by applicable law. You can redistribute it
6 * and/or modify it under the terms of the Do What The Fuck You Want
7 * To Public License, Version 2, as published by Sam Hocevar. See
8 * http://sam.zoy.org/wtfpl/COPYING for more details.
23 ///////////////////////////////////////////////////////////////////////////////
31 bool bind (const QString
&kn
, const QString
&cmd
);
39 * " ?": bad combo-binding, error
42 QString
process (QKeyEvent
*keyev
);
44 const QString
&lastCombo () const { return mLastCombo
; }
45 const QString
&lastComboText () const { return mLastComboText
; }
47 QStringList
toString () const;
49 bool isProcessing () const;
51 void appendFrom (KeyComboList
*kl
);
54 static QString
event2Kbd (QKeyEvent
*keyev
);
55 static QString
normalizeKbd (const QString
&kbd
, bool strictShift
=false);
58 QHash
<QString
, QString
> mBinds
;
62 QString mCurComboText
;
65 QString mLastComboText
;