Envision
A visual programming IDE for object-oriented languages
|
Classes | |
struct | RegisteredHandler |
Public Types | |
using | InputHandler = bool(*)(Visualization::Item *target, QKeySequence keys, InputState state) |
enum | InputState { DefaultState , AnyState } |
Public Member Functions | |
void | enterChangeShortcutState (const QString &eventName) |
bool | handleKeyInput (Visualization::Item *target, QKeySequence keys, const QString &handlerName) |
void | registerInputHandler (const QString &eventName, const InputHandler handler) |
void | saveShortcuts () |
void | setState (InputState state) |
InputState | state () const |
Static Public Member Functions | |
static ActionRegistry * | instance () |
Private Member Functions | |
ActionRegistry () | |
Static Private Member Functions | |
static const QHash< const QString, QKeySequence::StandardKey > & | standardKeysMap () |
Private Attributes | |
QList< RegisteredHandler * > | handlers_ |
InputState | state_ {DefaultState} |
using Interaction::ActionRegistry::InputHandler = bool (*) (Visualization::Item* target, QKeySequence keys, InputState state) |
|
private |
void Interaction::ActionRegistry::enterChangeShortcutState | ( | const QString & | eventName | ) |
bool Interaction::ActionRegistry::handleKeyInput | ( | Visualization::Item * | target, |
QKeySequence | keys, | ||
const QString & | handlerName | ||
) |
|
static |
void Interaction::ActionRegistry::registerInputHandler | ( | const QString & | eventName, |
const InputHandler | handler | ||
) |
void Interaction::ActionRegistry::saveShortcuts | ( | ) |
|
inline |
|
staticprivate |
|
inline |
|
private |
|
private |