|
OpenMW
|
Users of this class should install it as an event handler. More...
#include <shortcuteventhandler.hpp>
Public Member Functions | |
| ShortcutEventHandler (QObject *parent) | |
| void | addShortcut (Shortcut *shortcut) |
| void | removeShortcut (Shortcut *shortcut) |
Protected Member Functions | |
| bool | eventFilter (QObject *watched, QEvent *event) |
Private Types | |
| enum | MatchResult { Matches_WithMod, Matches_NoMod, Matches_Not } |
| typedef std::vector< Shortcut * > | ShortcutList |
| typedef std::map< QWidget *, QWidget * > | WidgetMap |
| typedef std::map< QWidget *, ShortcutList > | ShortcutMap |
Private Slots | |
| void | widgetDestroyed () |
Private Member Functions | |
| void | updateParent (QWidget *widget) |
| bool | activate (QWidget *widget, unsigned int mod, unsigned int button) |
| bool | deactivate (QWidget *widget, unsigned int mod, unsigned int button) |
| bool | checkModifier (unsigned int mod, unsigned int button, Shortcut *shortcut, bool activate) |
| MatchResult | match (unsigned int mod, unsigned int button, unsigned int value) |
Static Private Member Functions | |
| static bool | sort (const std::pair< MatchResult, Shortcut * > &left, const std::pair< MatchResult, Shortcut * > &right) |
Private Attributes | |
| WidgetMap | mChildParentRelations |
| ShortcutMap | mWidgetShortcuts |
Users of this class should install it as an event handler.
|
private |
|
private |
|
private |
|
private |
| CSMPrefs::ShortcutEventHandler::ShortcutEventHandler | ( | QObject * | parent | ) |
|
private |
| void CSMPrefs::ShortcutEventHandler::addShortcut | ( | Shortcut * | shortcut | ) |
|
private |
|
private |
|
private |
| void CSMPrefs::ShortcutEventHandler::removeShortcut | ( | Shortcut * | shortcut | ) |
|
staticprivate |
|
private |
|
privateslot |
|
private |
|
private |
1.8.6