123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtArrowButton Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_arrow_button.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_arrow_button-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtArrowButton Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>Arrow Button.
- <a href="class_qwt_arrow_button.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__arrow__button_8h_source.html">qwt_arrow_button.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtArrowButton:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_arrow_button__inherit__graph.png" border="0" usemap="#a_qwt_arrow_button_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_arrow_button_inherit__map" id="a_qwt_arrow_button_inherit__map">
- <area shape="rect" title="Arrow Button." alt="" coords="5,80,124,107"/>
- <area shape="rect" title=" " alt="" coords="15,5,115,32"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:ab0ad5aefdd56db10976796be717671e9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#ab0ad5aefdd56db10976796be717671e9">QwtArrowButton</a> (int <a class="el" href="class_qwt_arrow_button.html#a680ecdc99fdc5971ddfabc643e1ed52a">num</a>, Qt::ArrowType, QWidget *parent=NULL)</td></tr>
- <tr class="separator:ab0ad5aefdd56db10976796be717671e9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a506ab071fa7ee92928ace7dcea774a73"><td class="memItemLeft" align="right" valign="top"><a id="a506ab071fa7ee92928ace7dcea774a73"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#a506ab071fa7ee92928ace7dcea774a73">~QwtArrowButton</a> ()</td></tr>
- <tr class="memdesc:a506ab071fa7ee92928ace7dcea774a73"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a506ab071fa7ee92928ace7dcea774a73"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7e9b1a97e6f6281aee4ada6293931d90"><td class="memItemLeft" align="right" valign="top"><a id="a7e9b1a97e6f6281aee4ada6293931d90"></a>
- Qt::ArrowType </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#a7e9b1a97e6f6281aee4ada6293931d90">arrowType</a> () const</td></tr>
- <tr class="memdesc:a7e9b1a97e6f6281aee4ada6293931d90"><td class="mdescLeft"> </td><td class="mdescRight">The direction of the arrows. <br /></td></tr>
- <tr class="separator:a7e9b1a97e6f6281aee4ada6293931d90"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a680ecdc99fdc5971ddfabc643e1ed52a"><td class="memItemLeft" align="right" valign="top"><a id="a680ecdc99fdc5971ddfabc643e1ed52a"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#a680ecdc99fdc5971ddfabc643e1ed52a">num</a> () const</td></tr>
- <tr class="memdesc:a680ecdc99fdc5971ddfabc643e1ed52a"><td class="mdescLeft"> </td><td class="mdescRight">The number of arrows. <br /></td></tr>
- <tr class="separator:a680ecdc99fdc5971ddfabc643e1ed52a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:adb6261ccd02e32c824a8af86f0120aee"><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#adb6261ccd02e32c824a8af86f0120aee">sizeHint</a> () const</td></tr>
- <tr class="separator:adb6261ccd02e32c824a8af86f0120aee"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab5f5985f350107db6e785281135a187c"><td class="memItemLeft" align="right" valign="top"><a id="ab5f5985f350107db6e785281135a187c"></a>
- virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#ab5f5985f350107db6e785281135a187c">minimumSizeHint</a> () const</td></tr>
- <tr class="memdesc:ab5f5985f350107db6e785281135a187c"><td class="mdescLeft"> </td><td class="mdescRight">Return a minimum size hint. <br /></td></tr>
- <tr class="separator:ab5f5985f350107db6e785281135a187c"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:ad9bdd4ed2e655aa19929ab436ec8ab45"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#ad9bdd4ed2e655aa19929ab436ec8ab45">paintEvent</a> (QPaintEvent *event)</td></tr>
- <tr class="separator:ad9bdd4ed2e655aa19929ab436ec8ab45"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afa3b1930046c73aa764caced4aa09c45"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#afa3b1930046c73aa764caced4aa09c45">drawButtonLabel</a> (QPainter *)</td></tr>
- <tr class="memdesc:afa3b1930046c73aa764caced4aa09c45"><td class="mdescLeft"> </td><td class="mdescRight">Draw the button label. <a href="class_qwt_arrow_button.html#afa3b1930046c73aa764caced4aa09c45">More...</a><br /></td></tr>
- <tr class="separator:afa3b1930046c73aa764caced4aa09c45"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a54c272f2ca19627613415fb5e0bf0b88"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#a54c272f2ca19627613415fb5e0bf0b88">drawArrow</a> (QPainter *, const QRect &, Qt::ArrowType) const</td></tr>
- <tr class="separator:a54c272f2ca19627613415fb5e0bf0b88"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5f4449198f900946579c843ff56e0a5a"><td class="memItemLeft" align="right" valign="top">virtual QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#a5f4449198f900946579c843ff56e0a5a">labelRect</a> () const</td></tr>
- <tr class="separator:a5f4449198f900946579c843ff56e0a5a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a018b7b1a6c1e2b74f8edcb0421310cfa"><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#a018b7b1a6c1e2b74f8edcb0421310cfa">arrowSize</a> (Qt::ArrowType, const QSize &boundingSize) const</td></tr>
- <tr class="separator:a018b7b1a6c1e2b74f8edcb0421310cfa"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a17612daa99344272c4de1313a5c67b02"><td class="memItemLeft" align="right" valign="top"><a id="a17612daa99344272c4de1313a5c67b02"></a>
- virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_arrow_button.html#a17612daa99344272c4de1313a5c67b02">keyPressEvent</a> (QKeyEvent *)</td></tr>
- <tr class="memdesc:a17612daa99344272c4de1313a5c67b02"><td class="mdescLeft"> </td><td class="mdescRight">autoRepeat for the space keys <br /></td></tr>
- <tr class="separator:a17612daa99344272c4de1313a5c67b02"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>Arrow Button. </p>
- <p>A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right. </p>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="ab0ad5aefdd56db10976796be717671e9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab0ad5aefdd56db10976796be717671e9">◆ </a></span>QwtArrowButton()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QwtArrowButton::QwtArrowButton </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>num</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">Qt::ArrowType </td>
- <td class="paramname"><em>arrowType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>parent</em> = <code>NULL</code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">num</td><td>Number of arrows </td></tr>
- <tr><td class="paramname">arrowType</td><td>see Qt::ArrowType in the Qt docs. </td></tr>
- <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a018b7b1a6c1e2b74f8edcb0421310cfa"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a018b7b1a6c1e2b74f8edcb0421310cfa">◆ </a></span>arrowSize()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QSize QwtArrowButton::arrowSize </td>
- <td>(</td>
- <td class="paramtype">Qt::ArrowType </td>
- <td class="paramname"><em>arrowType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QSize & </td>
- <td class="paramname"><em>boundingSize</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate the size for a arrow that fits into a rectangle of a given size</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">arrowType</td><td>Arrow type </td></tr>
- <tr><td class="paramname">boundingSize</td><td>Bounding size </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Size of the arrow </dd></dl>
- </div>
- </div>
- <a id="a54c272f2ca19627613415fb5e0bf0b88"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a54c272f2ca19627613415fb5e0bf0b88">◆ </a></span>drawArrow()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtArrowButton::drawArrow </td>
- <td>(</td>
- <td class="paramtype">QPainter * </td>
- <td class="paramname"><em>painter</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QRect & </td>
- <td class="paramname"><em>r</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">Qt::ArrowType </td>
- <td class="paramname"><em>arrowType</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Draw an arrow int a bounding rectangle</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">painter</td><td>Painter </td></tr>
- <tr><td class="paramname">r</td><td>Rectangle where to paint the arrow </td></tr>
- <tr><td class="paramname">arrowType</td><td>Arrow type </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="afa3b1930046c73aa764caced4aa09c45"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#afa3b1930046c73aa764caced4aa09c45">◆ </a></span>drawButtonLabel()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtArrowButton::drawButtonLabel </td>
- <td>(</td>
- <td class="paramtype">QPainter * </td>
- <td class="paramname"><em>painter</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Draw the button label. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">painter</td><td>Painter </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd>The Qt Manual for QPushButton </dd></dl>
- </div>
- </div>
- <a id="a5f4449198f900946579c843ff56e0a5a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5f4449198f900946579c843ff56e0a5a">◆ </a></span>labelRect()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QRect QwtArrowButton::labelRect </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>the bounding rectangle for the label </dd></dl>
- </div>
- </div>
- <a id="ad9bdd4ed2e655aa19929ab436ec8ab45"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad9bdd4ed2e655aa19929ab436ec8ab45">◆ </a></span>paintEvent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtArrowButton::paintEvent </td>
- <td>(</td>
- <td class="paramtype">QPaintEvent * </td>
- <td class="paramname"><em>event</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Paint event handler </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">event</td><td>Paint event </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="adb6261ccd02e32c824a8af86f0120aee"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#adb6261ccd02e32c824a8af86f0120aee">◆ </a></span>sizeHint()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QSize QwtArrowButton::sizeHint </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>a size hint </dd></dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_arrow_button.html">QwtArrowButton</a></li>
- <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
- </ul>
- </div>
- </body>
- </html>
|