10 #ifndef QWT_EVENT_PATTERN 11 #define QWT_EVENT_PATTERN 1 14 #include <qnamespace.h> 153 Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):
155 modifiers( modifierCodes )
172 Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):
174 modifiers( modifierCodes )
188 void initMousePattern(
int numButtons );
189 void initKeyPattern();
192 Qt::KeyboardModifiers = Qt::NoModifier );
195 Qt::KeyboardModifiers modifierCodes = Qt::NoModifier );
197 void setMousePattern(
const QVector<MousePattern> & );
198 void setKeyPattern(
const QVector<KeyPattern> & );
200 const QVector<MousePattern> &mousePattern()
const;
201 const QVector<KeyPattern> &keyPattern()
const;
203 QVector<MousePattern> &mousePattern();
204 QVector<KeyPattern> &keyPattern();
210 virtual bool mouseMatch(
const MousePattern &,
const QMouseEvent * )
const;
211 virtual bool keyMatch(
const KeyPattern &,
const QKeyEvent * )
const;
215 #if defined(_MSC_VER) 216 #pragma warning(push) 217 #pragma warning(disable: 4251) 221 #if defined(_MSC_VER) A pattern for mouse events.
MousePattern(Qt::MouseButton btn=Qt::NoButton, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)
Constructor.
QVector< KeyPattern > d_keyPattern
QVector< MousePattern > d_mousePattern
KeyPattern(int keyCode=Qt::Key_unknown, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)
Constructor.
A pattern for key events.
Qt::KeyboardModifiers modifiers
Keyboard modifier.
KeyPatternCode
Symbolic keyboard input codes.
Qt::KeyboardModifiers modifiers
Modifiers.
bool operator==(QwtEventPattern::MousePattern b1, QwtEventPattern::MousePattern b2)
Compare operator.
A collection of event patterns.
MousePatternCode
Symbolic mouse input codes.
Qt::MouseButton button
Button.