20 inline operator QString ()
const {
return _value; }
25 static inline QString
noAction() {
return ""; }
59 return ((ret.count() >= 4) && (ret.count() <= 5));
75 QStringList ret =
_value.split(
":");
78 }
else return QStringList();
100 QStringList rval =
_value.split(
":");
101 return (rval.length() == 4)? rval[1] : rval[4];
129 static QString
dpiAction(
int level,
int customX = 0,
int customY = 0);
140 static QString
programAction(
const QString& onPress,
const QString& onRelease,
int stop);
142 static QString
animAction(
const QUuid& guid,
bool onlyOnce,
bool stopOnRelease);
168 int programInfo(QString& onPress, QString& onRelease)
const;
170 int dpiInfo(QPoint& custom)
const;
172 QUuid
animInfo(
bool& onlyOnce,
bool& stopOnRelease)
const;
199 #endif // KEYACTION_H
static QString noAction()
static const int DPI_CYCLE_DOWN
QString macroFullLine() const
macroFullLine If a macro command and a macro definition exists for the given key, returns the complet...
static QString animAction(const QUuid &guid, bool onlyOnce, bool stopOnRelease)
static QString macroAction(QString macroDef)
well documented in cpp file
static const int DPI_CUSTOM
static const int PROGRAM_PR_MULTI
static const int PROGRAM_RE_MULTI
static QString dpiAction(int level, int customX=0, int customY=0)
QString specialInfo(int ¶meter) const
bool isValidMacro() const
isValidMacro checks whether a keyAction contains a valid macro. This is done easily: If the macro act...
static const int MODE_PREV
static QString programAction(const QString &onPress, const QString &onRelease, int stop)
static const int PROGRAM_PR_KPSTOP
QUuid animInfo(bool &onlyOnce, bool &stopOnRelease) const
QStringList macroLine() const
macroLine returns all interresting content for a macro definition.
static const int PROGRAM_RE_INDEF
static const int PROGRAM_PR_INDEF
KeyAction(const QString &action, QObject *parent=0)
static const int DPI_SNIPER
static const int PROGRAM_RE_KPSTOP
static QString lockAction(int type=LOCK_TOGGLE)
static const int MODE_PREV_WRAP
void keyRelease(KbBind *bind)
static const int LOCK_TOGGLE
static QString modeAction(int mode)
static const int LIGHT_DOWN
static const int DPI_CYCLE_UP
static const int LOCK_OFF
int dpiInfo(QPoint &custom) const
static const int PROGRAM_PR_KRSTOP
static QString lightAction(int type=LIGHT_UP_WRAP)
QString driverName() const
static const int MODE_NEXT_WRAP
void macroDisplay()
Debug output for invalid macro Definitions.
QString macroTiming() const
macroTiming returns the macro key definition with original timing infos (the fifth and up to now last...
void operator=(const KeyAction &rhs)
ccMSC: Don't copy key actions (the old one needs to be deleted first) frickler24: statement left as d...
int programInfo(QString &onPress, QString &onRelease) const
static const int MODE_NEXT
QString friendlyName(const KeyMap &map) const
static const int LIGHT_DOWN_WRAP
static const int DPI_DOWN
QString macroContent() const
macroContent returns the macro key definition only (the second part of the macro action).
static const int LIGHT_UP_WRAP
KeyAction(const KeyAction &rhs)
static QString defaultAction(const QString &key, KeyMap::Model model)
void keyEvent(KbBind *bind, bool down)
static const int LIGHT_UP