📄 class_qwt_event_pattern.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User's Guide: QwtEventPattern Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>QwtEventPattern Class Reference</h1><!-- doxytag: class="QwtEventPattern" -->Inheritance diagram for QwtEventPattern:<p><center><img src="class_qwt_event_pattern__inherit__graph.png" border="0" usemap="#_qwt_event_pattern__inherit__map" alt="Inheritance graph"></center><map name="_qwt_event_pattern__inherit__map"><area href="class_qwt_picker.html" shape="rect" coords="27,83,109,107" alt=""><area href="class_qwt_plot_picker.html" shape="rect" coords="16,157,120,181" alt=""><area href="class_qwt_plot_zoomer.html" shape="rect" coords="11,232,125,256" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_event_pattern-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A collection of event patterns. <p><a class="el" href="class_qwt_event_pattern.html">QwtEventPattern</a> 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.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html">QwtPicker</a>, <a class="el" href="class_qwt_picker_machine.html">QwtPickerMachine</a>, <a class="el" href="class_qwt_plot_zoomer.html">QwtPlotZoomer</a> </dd></dl><p><p>Definition at line <a class="el" href="qwt__event__pattern_8h-source.html#l00028">28</a> of file <a class="el" href="qwt__event__pattern_8h-source.html">qwt_event_pattern.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#f48dc808ac5e125eeed41a4c0285d1ea">MousePatternCode</a> { <br> <b>MouseSelect1</b>, <br> <b>MouseSelect2</b>, <br> <b>MouseSelect3</b>, <br> <b>MouseSelect4</b>, <br> <b>MouseSelect5</b>, <br> <b>MouseSelect6</b>, <br> <b>MousePatternCount</b><br> }</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#8fb57ceb9982d5583a1bf568e37d3007">KeyPatternCode</a> { <br> <b>KeySelect1</b>, <br> <b>KeySelect2</b>, <br> <b>KeyAbort</b>, <br> <b>KeyLeft</b>, <br> <b>KeyRight</b>, <br> <b>KeyUp</b>, <br> <b>KeyDown</b>, <br> <b>KeyRedo</b>, <br> <b>KeyUndo</b>, <br> <b>KeyHome</b>, <br> <b>KeyPatternCount</b><br> }</td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#1236c9239a3d8281d66b255ad18f7ee2">QwtEventPattern</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#3f8c2a2cca991000bafefd924b47895d">~QwtEventPattern</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#b885e0f266fd5b574ccbc6272225f486">initMousePattern</a> (int numButtons)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#91c1acb96b5c3849b9518206290f7da8">initKeyPattern</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#c63fb935c777421794d669aa63faec68">setMousePattern</a> (uint pattern, int button, int state=Qt::NoButton)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#2c3b52e4f470086fb6b883ff1f48b711">setKeyPattern</a> (uint pattern, int key, int state=Qt::NoButton)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#1696c1c6eb8de3696296f8cd52bd2293">setMousePattern</a> (const QwtArray< <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a> > &)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#3f47d5f9adf63d2dd9b927423c3efeba">setKeyPattern</a> (const QwtArray< <a class="el" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a> > &)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const QwtArray< <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#9619b8fa02b595abd93a9a0942bdce70">mousePattern</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const QwtArray< <a class="el" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#b3704e66ac68612b8c52395cc8478533">keyPattern</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtArray< <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#1da4b7b9287743c969fbb603220104d7">mousePattern</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtArray< <a class="el" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#169413c761883609ece9b61cdfb3f605">keyPattern</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#ab4d0d2780ed7b3de54502b05fb9f366">mouseMatch</a> (uint pattern, const QMouseEvent *) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#0a727c4369d8535eed5695a2a76b7e79">keyMatch</a> (uint pattern, const QKeyEvent *) const </td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#091006f03b17d638a84ab0211e5c39de">mouseMatch</a> (const <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a> &, const QMouseEvent *) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern.html#c2748e712cbfa8ce9eb12a3364b862de">keyMatch</a> (const <a class="el" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a> &, const QKeyEvent *) const </td></tr><tr><td colspan="2"><br><h2>Classes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">A pattern for key events. <a href="class_qwt_event_pattern_1_1_key_pattern.html#_details">More...</a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">A pattern for mouse events. <a href="class_qwt_event_pattern_1_1_mouse_pattern.html#_details">More...</a><br></td></tr></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="8fb57ceb9982d5583a1bf568e37d3007"></a><!-- doxytag: member="QwtEventPattern::KeyPatternCode" ref="8fb57ceb9982d5583a1bf568e37d3007" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_event_pattern.html#8fb57ceb9982d5583a1bf568e37d3007">QwtEventPattern::KeyPatternCode</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Symbolic keyboard input codes. <p>Default initialization:<ul><li>KeySelect1<br> Qt::Key_Return</li><li>KeySelect2<br> Qt::Key_Space</li><li>KeyAbort<br> Qt::Key_Escape</li></ul><p><ul><li>KeyLeft<br> Qt::Key_Left</li><li>KeyRight<br> Qt::Key_Right</li><li>KeyUp<br> Qt::Key_Up</li><li>KeyDown<br> Qt::Key_Down</li></ul><p><ul><li>KeyUndo<br> Qt::Key_Minus</li><li>KeyRedo<br> Qt::Key_Plus</li><li>KeyHome<br> Qt::Key_Escape </li></ul><p>Definition at line <a class="el" href="qwt__event__pattern_8h-source.html#l00118">118</a> of file <a class="el" href="qwt__event__pattern_8h-source.html">qwt_event_pattern.h</a>. </td> </tr></table><a class="anchor" name="f48dc808ac5e125eeed41a4c0285d1ea"></a><!-- doxytag: member="QwtEventPattern::MousePatternCode" ref="f48dc808ac5e125eeed41a4c0285d1ea" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_event_pattern.html#f48dc808ac5e125eeed41a4c0285d1ea">QwtEventPattern::MousePatternCode</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Symbolic mouse input codes. <p>The default initialization for 3 button mice is:<ul><li>MouseSelect1<br> Qt::LeftButton</li><li>MouseSelect2<br> Qt::RightButton</li><li>MouseSelect3<br> Qt::MidButton</li><li>MouseSelect4<br> Qt::LeftButton + Qt::ShiftButton</li><li>MouseSelect5<br> Qt::RightButton + Qt::ShiftButton</li><li>MouseSelect6<br> Qt::MidButton + Qt::ShiftButton</li></ul><p>The default initialization for 2 button mice is:<ul><li>MouseSelect1<br> Qt::LeftButton</li><li>MouseSelect2<br> Qt::RightButton</li><li>MouseSelect3<br> Qt::LeftButton + Qt::AltButton</li><li>MouseSelect4<br> Qt::LeftButton + Qt::ShiftButton</li><li>MouseSelect5<br> Qt::RightButton + Qt::ShiftButton</li><li>MouseSelect6<br> Qt::LeftButton + Qt::AltButton + Qt::ShiftButton</li></ul><p>The default initialization for 1 button mice is:<ul><li>MouseSelect1<br> Qt::LeftButton</li><li>MouseSelect2<br> Qt::LeftButton + Qt::ControlButton</li><li>MouseSelect3<br> Qt::LeftButton + Qt::AltButton</li><li>MouseSelect4<br> Qt::LeftButton + Qt::ShiftButton</li><li>MouseSelect5<br> Qt::LeftButton + Qt::ControlButton + Qt::ShiftButton</li><li>MouseSelect6<br> Qt::LeftButton + Qt::AltButton + Qt::ShiftButton</li></ul><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_event_pattern.html#b885e0f266fd5b574ccbc6272225f486">initMousePattern()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8h-source.html#l00079">79</a> of file <a class="el" href="qwt__event__pattern_8h-source.html">qwt_event_pattern.h</a>. </td> </tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="1236c9239a3d8281d66b255ad18f7ee2"></a><!-- doxytag: member="QwtEventPattern::QwtEventPattern" ref="1236c9239a3d8281d66b255ad18f7ee2" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QwtEventPattern::QwtEventPattern </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Constructor<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_event_pattern.html#f48dc808ac5e125eeed41a4c0285d1ea">MousePatternCode</a>, <a class="el" href="class_qwt_event_pattern.html#8fb57ceb9982d5583a1bf568e37d3007">KeyPatternCode</a> </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00019">19</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>References <a class="el" href="qwt__event__pattern_8cpp-source.html#l00088">initKeyPattern()</a>, and <a class="el" href="qwt__event__pattern_8cpp-source.html#l00038">initMousePattern()</a>. </td> </tr></table><a class="anchor" name="3f8c2a2cca991000bafefd924b47895d"></a><!-- doxytag: member="QwtEventPattern::~QwtEventPattern" ref="3f8c2a2cca991000bafefd924b47895d" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QwtEventPattern::~QwtEventPattern </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Destructor. <p><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00028">28</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="91c1acb96b5c3849b9518206290f7da8"></a><!-- doxytag: member="QwtEventPattern::initKeyPattern" ref="91c1acb96b5c3849b9518206290f7da8" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -