https://github.com/kanryu/qactionmanager
A portable component for providing keyboard and mouse input customization functions to applications
https://github.com/kanryu/qactionmanager
keyboard mouse qt shortcuts
Last synced: about 1 year ago
JSON representation
A portable component for providing keyboard and mouse input customization functions to applications
- Host: GitHub
- URL: https://github.com/kanryu/qactionmanager
- Owner: kanryu
- License: bsd-2-clause
- Created: 2017-09-11T13:12:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-05-15T07:00:48.000Z (about 1 year ago)
- Last Synced: 2025-05-15T08:21:43.862Z (about 1 year ago)
- Topics: keyboard, mouse, qt, shortcuts
- Language: C++
- Size: 21.5 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1. QActionManager
A portable component for providing keyboard and mouse input customization functions to applications
## 1.2 Summary
A portable component for providing keyboard and mouse input customization functions to applications
It contains QKeySequence or QMouseSequence and QAction(default) mapping.
Each Action can have/set unique Keyboard/Mouse Sequence.
It has default mapping, and can restore setting.
Each shortcut can be serialized as a character string,
It can be stored in the registry or ini file.


# 2. QMouseSequence
A simple object provides to serialize mouse inputs like QKeySequence
## 2.2 Summary
QMouseSequence is a class created by mimicking QKeySequence
and holds mouse buttons, wheels, key codes as unique values.
Instances of this class are values rather than objects,
are copyable and comparable, and do not have destructors.
Therefore, you can use this class as QMap's Key or Value.
QMouseSequence is effectively a list of instances of QMouseValue.
A QMouseValue instance can be serialized to a string,
and a QMouseSequence instance can be serialized with ',' separator in one string.
These are a part of [QuickViewer](https://github.com/kanryu/quickviewer).
## License
BSD-2
Copyright (c) 2017, KATO Kanryu