1 #ifndef CSM_PREFS_SHORTCUT_H
2 #define CSM_PREFS_SHORTCUT_H
6 #include <QKeySequence>
44 const std::string&
getName()
const;
Definition: shortcut.hpp:25
void actionDeleted()
Definition: shortcut.cpp:210
void activated()
Convenience signal.
QAction * mAction
Definition: shortcut.hpp:99
Definition: shortcut.hpp:26
static const struct @2 signals[]
void setModifierStatus(bool status)
Definition: shortcut.cpp:159
int mLastPos
Definition: shortcut.hpp:94
void signalActivated()
Definition: shortcut.cpp:191
void secondary()
Convenience signal.
The secondary signal is emitted independent of the regular signal, even if not active.
Definition: shortcut.hpp:32
int getLastPosition() const
The position in the sequence.
Definition: shortcut.cpp:112
void setPosition(int pos)
The position in the sequence.
Definition: shortcut.cpp:149
The secondary signal will not ever be emitted.
Definition: shortcut.hpp:33
Shortcut(const std::string &name, QWidget *parent)
Definition: shortcut.cpp:13
const std::string & getName() const
Definition: shortcut.cpp:82
SecondaryMode mSecondaryMode
Definition: shortcut.hpp:89
ActivationStatus
Definition: shortcut.hpp:22
Definition: shortcut.hpp:24
bool mModifierStatus
Definition: shortcut.hpp:97
const std::string & getModifierName() const
Definition: shortcut.cpp:87
bool mEnabled
Definition: shortcut.hpp:85
void associateAction(QAction *action)
Appends the sequence to the QAction text, also keeps it up to date.
Definition: shortcut.cpp:164
int mCurrentPos
Definition: shortcut.hpp:93
std::string mName
Definition: shortcut.hpp:87
const QKeySequence & getSequence() const
Definition: shortcut.cpp:97
~Shortcut()
Definition: shortcut.cpp:72
void setSequence(const QKeySequence &sequence)
Definition: shortcut.cpp:132
int getModifier() const
Definition: shortcut.cpp:102
ActivationStatus getActivationStatus() const
Definition: shortcut.cpp:117
QKeySequence mSequence
Definition: shortcut.hpp:90
int getPosition() const
The position in the sequence.
Definition: shortcut.cpp:107
bool isEnabled() const
Definition: shortcut.cpp:77
SecondaryMode
Definition: shortcut.hpp:29
void signalSecondary()
Definition: shortcut.cpp:200
bool getModifierStatus() const
Definition: shortcut.cpp:122
SecondaryMode getSecondaryMode() const
Definition: shortcut.cpp:92
void setActivationStatus(ActivationStatus status)
Definition: shortcut.cpp:154
int mModifier
Definition: shortcut.hpp:91
void enable(bool state)
Definition: shortcut.cpp:127
ActivationStatus mActivationStatus
Definition: shortcut.hpp:96
QString toString() const
Definition: shortcut.cpp:205
The secondary signal replaces the regular signal when the modifier is active.
Definition: shortcut.hpp:31
std::string mModName
Definition: shortcut.hpp:88
QString mActionText
Definition: shortcut.hpp:100
A class similar in purpose to QShortcut, but with the ability to use mouse buttons.
Definition: shortcut.hpp:16
void setModifier(int modifier)
Definition: shortcut.cpp:144
const char * name
Definition: crashcatcher.cpp:59