123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 |
- .TH "QwtEventPattern" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- QwtEventPattern \- A collection of event patterns\&.
- .SH SYNOPSIS
- .br
- .PP
- .PP
- \fC#include <qwt_event_pattern\&.h>\fP
- .PP
- Inherited by \fBQwtPicker\fP\&.
- .SS "Classes"
- .in +1c
- .ti -1c
- .RI "class \fBKeyPattern\fP"
- .br
- .RI "A pattern for key events\&. "
- .ti -1c
- .RI "class \fBMousePattern\fP"
- .br
- .RI "A pattern for mouse events\&. "
- .in -1c
- .SS "Public Types"
- .in +1c
- .ti -1c
- .RI "enum \fBMousePatternCode\fP { \fBMouseSelect1\fP, \fBMouseSelect2\fP, \fBMouseSelect3\fP, \fBMouseSelect4\fP, \fBMouseSelect5\fP, \fBMouseSelect6\fP, \fBMousePatternCount\fP }"
- .br
- .RI "Symbolic mouse input codes\&. "
- .ti -1c
- .RI "enum \fBKeyPatternCode\fP { \fBKeySelect1\fP, \fBKeySelect2\fP, \fBKeyAbort\fP, \fBKeyLeft\fP, \fBKeyRight\fP, \fBKeyUp\fP, \fBKeyDown\fP, \fBKeyRedo\fP, \fBKeyUndo\fP, \fBKeyHome\fP, \fBKeyPatternCount\fP }"
- .br
- .RI "Symbolic keyboard input codes\&. "
- .in -1c
- .SS "Public Member Functions"
- .in +1c
- .ti -1c
- .RI "\fBQwtEventPattern\fP ()"
- .br
- .ti -1c
- .RI "virtual \fB~QwtEventPattern\fP ()"
- .br
- .RI "Destructor\&. "
- .ti -1c
- .RI "void \fBinitMousePattern\fP (int numButtons)"
- .br
- .ti -1c
- .RI "void \fBinitKeyPattern\fP ()"
- .br
- .ti -1c
- .RI "void \fBsetMousePattern\fP (\fBMousePatternCode\fP, Qt::MouseButton button, Qt::KeyboardModifiers=Qt::NoModifier)"
- .br
- .ti -1c
- .RI "void \fBsetKeyPattern\fP (\fBKeyPatternCode\fP, int key, Qt::KeyboardModifiers modifiers=Qt::NoModifier)"
- .br
- .ti -1c
- .RI "void \fBsetMousePattern\fP (const QVector< \fBMousePattern\fP > &)"
- .br
- .RI "Change the mouse event patterns\&. "
- .ti -1c
- .RI "void \fBsetKeyPattern\fP (const QVector< \fBKeyPattern\fP > &)"
- .br
- .RI "Change the key event patterns\&. "
- .ti -1c
- .RI "const QVector< \fBMousePattern\fP > & \fBmousePattern\fP () const"
- .br
- .ti -1c
- .RI "const QVector< \fBKeyPattern\fP > & \fBkeyPattern\fP () const"
- .br
- .ti -1c
- .RI "QVector< \fBMousePattern\fP > & \fBmousePattern\fP ()"
- .br
- .ti -1c
- .RI "QVector< \fBKeyPattern\fP > & \fBkeyPattern\fP ()"
- .br
- .ti -1c
- .RI "bool \fBmouseMatch\fP (\fBMousePatternCode\fP, const QMouseEvent *) const"
- .br
- .RI "Compare a mouse event with an event pattern\&. "
- .ti -1c
- .RI "bool \fBkeyMatch\fP (\fBKeyPatternCode\fP, const QKeyEvent *) const"
- .br
- .RI "Compare a key event with an event pattern\&. "
- .in -1c
- .SS "Protected Member Functions"
- .in +1c
- .ti -1c
- .RI "virtual bool \fBmouseMatch\fP (const \fBMousePattern\fP &, const QMouseEvent *) const"
- .br
- .RI "Compare a mouse event with an event pattern\&. "
- .ti -1c
- .RI "virtual bool \fBkeyMatch\fP (const \fBKeyPattern\fP &, const QKeyEvent *) const"
- .br
- .RI "Compare a key event with an event pattern\&. "
- .in -1c
- .SH "Detailed Description"
- .PP
- A collection of event patterns\&.
- \fBQwtEventPattern\fP introduces an level of indirection for mouse and keyboard inputs\&. Those are represented by symbolic names, so the application code can be configured by individual mappings\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBQwtPicker\fP, \fBQwtPickerMachine\fP, \fBQwtPlotZoomer\fP
- .RE
- .PP
- .SH "Member Enumeration Documentation"
- .PP
- .SS "enum \fBQwtEventPattern::KeyPatternCode\fP"
- .PP
- Symbolic keyboard input codes\&. Individual settings can be configured using \fBsetKeyPattern()\fP
- .PP
- \fBSee also\fP
- .RS 4
- \fBsetKeyPattern()\fP, \fBsetMousePattern()\fP
- .RE
- .PP
- .PP
- \fBEnumerator\fP
- .in +1c
- .TP
- \fB\fIKeySelect1 \fP\fP
- Qt::Key_Return\&.
- .TP
- \fB\fIKeySelect2 \fP\fP
- Qt::Key_Space\&.
- .TP
- \fB\fIKeyAbort \fP\fP
- Qt::Key_Escape\&.
- .TP
- \fB\fIKeyLeft \fP\fP
- Qt::Key_Left\&.
- .TP
- \fB\fIKeyRight \fP\fP
- Qt::Key_Right\&.
- .TP
- \fB\fIKeyUp \fP\fP
- Qt::Key_Up\&.
- .TP
- \fB\fIKeyDown \fP\fP
- Qt::Key_Down\&.
- .TP
- \fB\fIKeyRedo \fP\fP
- Qt::Key_Plus\&.
- .TP
- \fB\fIKeyUndo \fP\fP
- Qt::Key_Minus\&.
- .TP
- \fB\fIKeyHome \fP\fP
- Qt::Key_Escape\&.
- .TP
- \fB\fIKeyPatternCount \fP\fP
- Number of key patterns\&.
- .SS "enum \fBQwtEventPattern::MousePatternCode\fP"
- .PP
- Symbolic mouse input codes\&. \fBQwtEventPattern\fP implements 3 different settings for mice with 1, 2, or 3 buttons that can be activated using \fBinitMousePattern()\fP\&. The default setting is for 3 button mice\&.
- .PP
- Individual settings can be configured using \fBsetMousePattern()\fP\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBinitMousePattern()\fP, \fBsetMousePattern()\fP, \fBsetKeyPattern()\fP
- .RE
- .PP
- .PP
- \fBEnumerator\fP
- .in +1c
- .TP
- \fB\fIMouseSelect1 \fP\fP
- The default setting for 1, 2 and 3 button mice is:
- .PP
- .IP "\(bu" 2
- Qt::LeftButton
- .IP "\(bu" 2
- Qt::LeftButton
- .IP "\(bu" 2
- Qt::LeftButton
- .PP
- .TP
- \fB\fIMouseSelect2 \fP\fP
- The default setting for 1, 2 and 3 button mice is:
- .PP
- .IP "\(bu" 2
- Qt::LeftButton + Qt::ControlModifier
- .IP "\(bu" 2
- Qt::RightButton
- .IP "\(bu" 2
- Qt::RightButton
- .PP
- .TP
- \fB\fIMouseSelect3 \fP\fP
- The default setting for 1, 2 and 3 button mice is:
- .PP
- .IP "\(bu" 2
- Qt::LeftButton + Qt::AltModifier
- .IP "\(bu" 2
- Qt::LeftButton + Qt::AltModifier
- .IP "\(bu" 2
- Qt::MidButton
- .PP
- .TP
- \fB\fIMouseSelect4 \fP\fP
- The default setting for 1, 2 and 3 button mice is:
- .PP
- .IP "\(bu" 2
- Qt::LeftButton + Qt::ShiftModifier
- .IP "\(bu" 2
- Qt::LeftButton + Qt::ShiftModifier
- .IP "\(bu" 2
- Qt::LeftButton + Qt::ShiftModifier
- .PP
- .TP
- \fB\fIMouseSelect5 \fP\fP
- The default setting for 1, 2 and 3 button mice is:
- .PP
- .IP "\(bu" 2
- Qt::LeftButton + Qt::ControlButton | Qt::ShiftModifier
- .IP "\(bu" 2
- Qt::RightButton + Qt::ShiftModifier
- .IP "\(bu" 2
- Qt::RightButton + Qt::ShiftModifier
- .PP
- .TP
- \fB\fIMouseSelect6 \fP\fP
- The default setting for 1, 2 and 3 button mice is:
- .PP
- .IP "\(bu" 2
- Qt::LeftButton + Qt::AltModifier + Qt::ShiftModifier
- .IP "\(bu" 2
- Qt::LeftButton + Qt::AltModifier | Qt::ShiftModifier
- .IP "\(bu" 2
- Qt::MidButton + Qt::ShiftModifier
- .PP
- .TP
- \fB\fIMousePatternCount \fP\fP
- Number of mouse patterns\&.
- .SH "Constructor & Destructor Documentation"
- .PP
- .SS "QwtEventPattern::QwtEventPattern ()"
- Constructor
- .PP
- \fBSee also\fP
- .RS 4
- \fBMousePatternCode\fP, \fBKeyPatternCode\fP
- .RE
- .PP
- .SH "Member Function Documentation"
- .PP
- .SS "void QwtEventPattern::initKeyPattern ()"
- Set default mouse patterns\&.
- .PP
- \fBSee also\fP
- .RS 4
- \fBKeyPatternCode\fP
- .RE
- .PP
- .SS "void QwtEventPattern::initMousePattern (int numButtons)"
- Set default mouse patterns, depending on the number of mouse buttons
- .PP
- \fBParameters\fP
- .RS 4
- \fInumButtons\fP Number of mouse buttons ( <= 3 )
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBMousePatternCode\fP
- .RE
- .PP
- .SS "bool QwtEventPattern::keyMatch (const \fBKeyPattern\fP & pattern, const QKeyEvent * event) const\fC [protected]\fP, \fC [virtual]\fP"
- .PP
- Compare a key event with an event pattern\&. A key event matches the pattern when both have the same key value and in the state value the same key flags (Qt::KeyButtonMask) are set\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpattern\fP Key event pattern
- .br
- \fIevent\fP Key event
- .RE
- .PP
- \fBReturns\fP
- .RS 4
- true if matches
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBmouseMatch()\fP
- .RE
- .PP
- .SS "bool QwtEventPattern::keyMatch (\fBKeyPatternCode\fP code, const QKeyEvent * event) const"
- .PP
- Compare a key event with an event pattern\&. A key event matches the pattern when both have the same key value and in the state value the same key flags (Qt::KeyButtonMask) are set\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIcode\fP Index of the event pattern
- .br
- \fIevent\fP Key event
- .RE
- .PP
- \fBReturns\fP
- .RS 4
- true if matches
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBmouseMatch()\fP
- .RE
- .PP
- .SS "QVector< \fBQwtEventPattern::KeyPattern\fP > & QwtEventPattern::keyPattern ()"
- .PP
- \fBReturns\fP
- .RS 4
- Key pattern
- .RE
- .PP
- .SS "const QVector< \fBQwtEventPattern::KeyPattern\fP > & QwtEventPattern::keyPattern () const"
- .PP
- \fBReturns\fP
- .RS 4
- Key pattern
- .RE
- .PP
- .SS "bool QwtEventPattern::mouseMatch (const \fBMousePattern\fP & pattern, const QMouseEvent * event) const\fC [protected]\fP, \fC [virtual]\fP"
- .PP
- Compare a mouse event with an event pattern\&. A mouse event matches the pattern when both have the same button value and in the state value the same key flags(Qt::KeyButtonMask) are set\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIpattern\fP Mouse event pattern
- .br
- \fIevent\fP Mouse event
- .RE
- .PP
- \fBReturns\fP
- .RS 4
- true if matches
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBkeyMatch()\fP
- .RE
- .PP
- .SS "bool QwtEventPattern::mouseMatch (\fBMousePatternCode\fP code, const QMouseEvent * event) const"
- .PP
- Compare a mouse event with an event pattern\&. A mouse event matches the pattern when both have the same button value and in the state value the same key flags(Qt::KeyButtonMask) are set\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fIcode\fP Index of the event pattern
- .br
- \fIevent\fP Mouse event
- .RE
- .PP
- \fBReturns\fP
- .RS 4
- true if matches
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- \fBkeyMatch()\fP
- .RE
- .PP
- .SS "QVector< \fBQwtEventPattern::MousePattern\fP > & QwtEventPattern::mousePattern ()"
- .PP
- \fBReturns\fP
- .RS 4
- Mouse pattern
- .RE
- .PP
- .SS "const QVector< \fBQwtEventPattern::MousePattern\fP > & QwtEventPattern::mousePattern () const"
- .PP
- \fBReturns\fP
- .RS 4
- Mouse pattern
- .RE
- .PP
- .SS "void QwtEventPattern::setKeyPattern (\fBKeyPatternCode\fP pattern, int key, Qt::KeyboardModifiers modifiers = \fCQt::NoModifier\fP)"
- Change one key pattern
- .PP
- \fBParameters\fP
- .RS 4
- \fIpattern\fP Index of the pattern
- .br
- \fIkey\fP Key
- .br
- \fImodifiers\fP Keyboard modifiers
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- QKeyEvent
- .RE
- .PP
- .SS "void QwtEventPattern::setMousePattern (\fBMousePatternCode\fP pattern, Qt::MouseButton button, Qt::KeyboardModifiers modifiers = \fCQt::NoModifier\fP)"
- Change one mouse pattern
- .PP
- \fBParameters\fP
- .RS 4
- \fIpattern\fP Index of the pattern
- .br
- \fIbutton\fP Button
- .br
- \fImodifiers\fP Keyboard modifiers
- .RE
- .PP
- \fBSee also\fP
- .RS 4
- QMouseEvent
- .RE
- .PP
- .SH "Author"
- .PP
- Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|