📄 qwteventpattern.3
字号:
.TH "QwtEventPattern" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtEventPattern \- .SH SYNOPSIS.br.PPInherited by \fBQwtPicker\fP..PP.SH "Detailed Description".PP A collection of event patterns. QwtEventPattern 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.PPDefinition at line 27 of file qwt_event_pattern.h..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.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.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtEventPattern\fP ()".br.ti -1c.RI "virtual \fB~QwtEventPattern\fP ()".br.ti -1c.RI "void \fBinitMousePattern\fP (int numButtons)".br.ti -1c.RI "void \fBinitKeyPattern\fP ()".br.ti -1c.RI "void \fBsetMousePattern\fP (uint pattern, int button, int state=Qt::NoButton)".br.ti -1c.RI "void \fBsetKeyPattern\fP (uint pattern, int key, int state=Qt::NoButton)".br.ti -1c.RI "void \fBsetMousePattern\fP (const QwtArray< MousePattern > &)".br.ti -1c.RI "void \fBsetKeyPattern\fP (const QwtArray< KeyPattern > &)".br.ti -1c.RI "const QwtArray< MousePattern > & \fBmousePattern\fP () const".br.ti -1c.RI "const QwtArray< KeyPattern > & \fBkeyPattern\fP () const".br.ti -1c.RI "QwtArray< MousePattern > & \fBmousePattern\fP ()".br.ti -1c.RI "QwtArray< KeyPattern > & \fBkeyPattern\fP ()".br.ti -1c.RI "bool \fBmouseMatch\fP (uint pattern, const QMouseEvent *) const".br.ti -1c.RI "bool \fBkeyMatch\fP (uint pattern, const QKeyEvent *) const".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual bool \fBmouseMatch\fP (const MousePattern &, const QMouseEvent *) const".br.ti -1c.RI "virtual bool \fBkeyMatch\fP (const KeyPattern &, const QKeyEvent *) const".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtEventPattern::KeyPatternCode\fP".PPSymbolic keyboard input codes. .PPDefault initialization:.IP "\(bu" 2KeySelect1.br Qt::Key_Return.IP "\(bu" 2KeySelect2.br Qt::Key_Space.IP "\(bu" 2KeyAbort.br Qt::Key_Escape.PP.PP.IP "\(bu" 2KeyLeft.br Qt::Key_Left.IP "\(bu" 2KeyRight.br Qt::Key_Right.IP "\(bu" 2KeyUp.br Qt::Key_Up.IP "\(bu" 2KeyDown.br Qt::Key_Down.PP.PP.IP "\(bu" 2KeyUndo.br Qt::Key_Minus.IP "\(bu" 2KeyRedo.br Qt::Key_Plus.IP "\(bu" 2KeyHome.br Qt::Key_Escape .PPDefinition at line 117 of file qwt_event_pattern.h..SS "enum \fBQwtEventPattern::MousePatternCode\fP".PPSymbolic mouse input codes. .PPThe default initialization for 3 button mice is:.IP "\(bu" 2MouseSelect1.br Qt::LeftButton.IP "\(bu" 2MouseSelect2.br Qt::RightButton.IP "\(bu" 2MouseSelect3.br Qt::MidButton.IP "\(bu" 2MouseSelect4.br Qt::LeftButton + Qt::ShiftButton.IP "\(bu" 2MouseSelect5.br Qt::RightButton + Qt::ShiftButton.IP "\(bu" 2MouseSelect6.br Qt::MidButton + Qt::ShiftButton.PP.PPThe default initialization for 2 button mice is:.IP "\(bu" 2MouseSelect1.br Qt::LeftButton.IP "\(bu" 2MouseSelect2.br Qt::RightButton.IP "\(bu" 2MouseSelect3.br Qt::LeftButton + Qt::AltButton.IP "\(bu" 2MouseSelect4.br Qt::LeftButton + Qt::ShiftButton.IP "\(bu" 2MouseSelect5.br Qt::RightButton + Qt::ShiftButton.IP "\(bu" 2MouseSelect6.br Qt::LeftButton + Qt::AltButton + Qt::ShiftButton.PP.PPThe default initialization for 1 button mice is:.IP "\(bu" 2MouseSelect1.br Qt::LeftButton.IP "\(bu" 2MouseSelect2.br Qt::LeftButton + Qt::ControlButton.IP "\(bu" 2MouseSelect3.br Qt::LeftButton + Qt::AltButton.IP "\(bu" 2MouseSelect4.br Qt::LeftButton + Qt::ShiftButton.IP "\(bu" 2MouseSelect5.br Qt::LeftButton + Qt::ControlButton + Qt::ShiftButton.IP "\(bu" 2MouseSelect6.br Qt::LeftButton + Qt::AltButton + Qt::ShiftButton.PP.PP\fBSee also:\fP.RS 4\fBinitMousePattern()\fP .RE.PPDefinition at line 78 of file qwt_event_pattern.h..SH "Constructor & Destructor Documentation".PP .SS "QwtEventPattern::QwtEventPattern ()".PPConstructor.PP\fBSee also:\fP.RS 4\fBMousePatternCode\fP, \fBKeyPatternCode\fP .RE.PPDefinition at line 19 of file qwt_event_pattern.cpp..PPReferences initKeyPattern(), and initMousePattern()..SS "QwtEventPattern::~\fBQwtEventPattern\fP ()\fC [virtual]\fP".PPDestructor. .PPDefinition at line 28 of file qwt_event_pattern.cpp..SH "Member Function Documentation".PP .SS "void QwtEventPattern::initKeyPattern ()".PPSet default mouse patterns..PP\fBSee also:\fP.RS 4\fBKeyPatternCode\fP .RE.PPDefinition at line 78 of file qwt_event_pattern.cpp..PPReferences setKeyPattern()..PPReferenced by QwtEventPattern()..SS "void QwtEventPattern::initMousePattern (int numButtons)".PPSet 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.PPDefinition at line 38 of file qwt_event_pattern.cpp..PPReferences setMousePattern()..PPReferenced by QwtEventPattern()..SS "bool QwtEventPattern::keyMatch (const KeyPattern & pattern, const QKeyEvent * e) const\fC [protected, virtual]\fP".PPCompare a key event with an event pattern. .PPA 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\fIe\fP Key event .RE.PP\fBReturns:\fP.RS 4TRUE if matches.RE.PP\fBSee also:\fP.RS 4\fBmouseMatch()\fP .RE.PPDefinition at line 251 of file qwt_event_pattern.cpp..SS "bool QwtEventPattern::keyMatch (uint pattern, const QKeyEvent * e) const".PPCompare a key event with an event pattern. .PPA 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 Index of the event pattern .br\fIe\fP Key event .RE.PP\fBReturns:\fP.RS 4TRUE if matches.RE.PP\fBSee also:\fP.RS 4\fBmouseMatch()\fP .RE.PPDefinition at line 227 of file qwt_event_pattern.cpp..PPReferenced by QwtPickerPolygonMachine::transition(), QwtPickerDragRectMachine::transition(), QwtPickerClickRectMachine::transition(), QwtPickerDragPointMachine::transition(), QwtPickerClickPointMachine::transition(), QwtPlotZoomer::widgetKeyPressEvent(), and QwtPicker::widgetKeyPressEvent()..SS "QwtArray< QwtEventPattern::KeyPattern > & QwtEventPattern::keyPattern ()".PPReturn Key patterns. .PPDefinition at line 165 of file qwt_event_pattern.cpp..SS "const QwtArray< QwtEventPattern::KeyPattern > & QwtEventPattern::keyPattern () const".PPReturn key patterns. .PPDefinition at line 153 of file qwt_event_pattern.cpp..SS "bool QwtEventPattern::mouseMatch (const MousePattern & pattern, const QMouseEvent * e) const\fC [protected, virtual]\fP".PPCompare a mouse event with an event pattern. .PPA 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\fIe\fP Mouse event .RE.PP\fBReturns:\fP.RS 4TRUE if matches.RE.PP\fBSee also:\fP.RS 4\fBkeyMatch()\fP .RE.PPDefinition at line 207 of file qwt_event_pattern.cpp..SS "bool QwtEventPattern::mouseMatch (uint pattern, const QMouseEvent * e) const".PPCompare a mouse event with an event pattern. .PPA 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 Index of the event pattern .br\fIe\fP Mouse event .RE.PP\fBReturns:\fP.RS 4TRUE if matches.RE.PP\fBSee also:\fP.RS 4\fBkeyMatch()\fP .RE.PPDefinition at line 183 of file qwt_event_pattern.cpp..PPReferenced by QwtPickerPolygonMachine::transition(), QwtPickerDragRectMachine::transition(), QwtPickerClickRectMachine::transition(), QwtPickerDragPointMachine::transition(), QwtPickerClickPointMachine::transition(), and QwtPlotZoomer::widgetMouseReleaseEvent()..SS "QwtArray< QwtEventPattern::MousePattern > & QwtEventPattern::mousePattern ()".PPReturn ,ouse patterns. .PPDefinition at line 159 of file qwt_event_pattern.cpp..SS "const QwtArray< QwtEventPattern::MousePattern > & QwtEventPattern::mousePattern () const".PPReturn mouse patterns. .PPDefinition at line 146 of file qwt_event_pattern.cpp..SS "void QwtEventPattern::setKeyPattern (const QwtArray< KeyPattern > &)".PPChange the key event patterns. .PPDefinition at line 139 of file qwt_event_pattern.cpp..SS "void QwtEventPattern::setKeyPattern (uint pattern, int key, int state = \fCQt::NoButton\fP)".PPChange one key pattern.PP\fBParameters:\fP.RS 4\fIpattern\fP Index of the pattern .br\fIkey\fP Key .br\fIstate\fP State.RE.PP\fBSee also:\fP.RS 4QKeyEvent .RE.PPDefinition at line 123 of file qwt_event_pattern.cpp..PPReferenced by initKeyPattern()..SS "void QwtEventPattern::setMousePattern (const QwtArray< MousePattern > &)".PPChange the mouse event patterns. .PPDefinition at line 133 of file qwt_event_pattern.cpp..SS "void QwtEventPattern::setMousePattern (uint pattern, int button, int state = \fCQt::NoButton\fP)".PPChange one mouse pattern.PP\fBParameters:\fP.RS 4\fIpattern\fP Index of the pattern .br\fIbutton\fP Button .br\fIstate\fP State.RE.PP\fBSee also:\fP.RS 4QMouseEvent .RE.PPDefinition at line 105 of file qwt_event_pattern.cpp..PPReferenced by initMousePattern()..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -