Go to the documentation of this file.
33 #ifndef TTA_KEYBOARD_SHORTCUT_HH
34 #define TTA_KEYBOARD_SHORTCUT_HH
75 std::string
action()
const;
bool ctrl_
True if Ctrl button is used in the key combination.
static const std::string OSKEY_KEY
ObjectState attribute key for normal letter or number key.
static const std::string OSKEY_ACTION
ObjectState attribute key for action name.
static const std::string OSNAME_KEYBOARD_SHORTCUT
ObjectState name for keyboard shortcut.
void loadState(const ObjectState *state)
KeyboardShortcut & operator=(const KeyboardShortcut)
Assigment forbidden.
virtual ~KeyboardShortcut()
static const std::string OSKEY_ALT
ObjectState attribute key for alt key.
std::string action_
Name of the action which is performed by the key combination.
bool equals(const KeyboardShortcut &sc) const
std::string action() const
static const std::string OSKEY_CTRL
ObjectState attribute key for ctrl key.
KeyboardShortcut(const std::string &action, int fKey, bool ctrl, bool alt, char key)
int fKey_
Number of the function key if it is used, 0 otherwise.
static const std::string OSKEY_FKEY
ObjectState attribute key for function key number.
bool alt_
True if Alt button is used in the key combination.
ObjectState * saveState() const