10#ifndef QWT_EVENT_PATTERN
11#define QWT_EVENT_PATTERN
13#include "qwt_global.h"
15#include <qnamespace.h>
154 Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):
156 modifiers( modifierCodes )
173 Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):
175 modifiers( modifierCodes )
189 void initMousePattern(
int numButtons );
190 void initKeyPattern();
193 Qt::KeyboardModifiers = Qt::NoModifier );
196 Qt::KeyboardModifiers modifiers = Qt::NoModifier );
211 virtual bool mouseMatch(
const MousePattern&,
const QMouseEvent* )
const;
212 virtual bool keyMatch(
const KeyPattern&,
const QKeyEvent* )
const;
216#if defined( _MSC_VER )
218#pragma warning(disable: 4251)
222#if defined( _MSC_VER )
A pattern for key events.
Qt::KeyboardModifiers modifiers
Modifiers.
KeyPattern(int keyCode=Qt::Key_unknown, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)
Constructor.
A pattern for mouse events.
MousePattern(Qt::MouseButton btn=Qt::NoButton, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)
Constructor.
Qt::KeyboardModifiers modifiers
Keyboard modifier.
Qt::MouseButton button
Button.
A collection of event patterns.
KeyPatternCode
Symbolic keyboard input codes.
@ KeySelect1
Qt::Key_Return.
@ KeyAbort
Qt::Key_Escape.
@ KeySelect2
Qt::Key_Space.
MousePatternCode
Symbolic mouse input codes.