<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>HippoDraw Class Library</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="hippoApp.ico"> </head><body> <!-- Generated by Doxygen 1.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</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> <div class="navpath"><a class="el" href="namespacehippodraw.html">hippodraw</a>::<a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html">QtSortedCheckListItem</a> </div> </div> <div class="contents"> <h1>QtSortedCheckListItem Class Reference</h1><!-- doxytag: class="hippodraw::QtSortedCheckListItem" --><!-- doxytag: inherits="QCheckListItem" --> <p>This class inherits the <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html">QCheckListItem</a> and overrides the <a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html#aeec186e0a41bc1891b5dc069999d3730">compare()</a> function, so that the list can be sorted in numerical order. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="QtSortedCheckListItem_8h_source.html">QtSortedCheckListItem.h</a>></code></p> <div class="dynheader"> Inheritance diagram for QtSortedCheckListItem:</div> <div class="dynsection"> <div class="center"><img src="classhippodraw_1_1QtSortedCheckListItem__inherit__graph.gif" border="0" usemap="#QtSortedCheckListItem_inherit__map" alt="Inheritance graph"/></div> <map name="QtSortedCheckListItem_inherit__map" id="QtSortedCheckListItem_inherit__map"> <area shape="rect" id="node2" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html" title="QCheckListItem" alt="" coords="25,5,143,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for QtSortedCheckListItem:</div> <div class="dynsection"> <div class="center"><img src="classhippodraw_1_1QtSortedCheckListItem__coll__graph.gif" border="0" usemap="#QtSortedCheckListItem_coll__map" alt="Collaboration graph"/></div> <map name="QtSortedCheckListItem_coll__map" id="QtSortedCheckListItem_coll__map"> <area shape="rect" id="node2" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html" title="QCheckListItem" alt="" coords="25,5,143,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classhippodraw_1_1QtSortedCheckListItem-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef QCheckListItem::Type </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html#a3482ba19f4d8d8b7e4b3c859ce8a2265">Type</a></td></tr> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#activate">activate</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html#aeec186e0a41bc1891b5dc069999d3730">compare</a> (<a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlistviewitem.html">QListViewItem</a> *i, int col, bool ascending) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#Type">enum</a> instead)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#ToggleState">enum</a> {Off, NoChange, On}</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#Type">enum</a> {RadioButton, CheckBox, Controller, RadioButtonController=Controller, CheckBoxController}</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#isOn">isOn</a> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#isTristate">isTristate</a> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#paintCell">paintCell</a> (<a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qpainter.html">QPainter</a> *p, const <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcolorgroup.html">QColorGroup</a> &cg, int column, int width, int align)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#paintFocus">paintFocus</a> (<a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qpainter.html">QPainter</a> *p, const <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcolorgroup.html">QColorGroup</a> &cg, const <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qrect.html">QRect</a> &r)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html#a44911c7a89e04ad7aa0ece80a2cdd747">QtSortedCheckListItem</a> (<a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlistview.html">QListView</a> *parent, const <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a> &<a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#text">text</a>)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#rtti">rtti</a> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#setOn">setOn</a> (bool b)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#setState">setState</a> (ToggleState s)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#setTristate">setTristate</a> (bool b)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#state">state</a> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#stateChange">stateChange</a> (bool)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#text">text</a> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#turnOffChild">turnOffChild</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html#type">type</a> () const</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This class inherits the <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qchecklistitem.html">QCheckListItem</a> and overrides the <a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html#aeec186e0a41bc1891b5dc069999d3730">compare()</a> function, so that the list can be sorted in numerical order. </p> <dl class="author"><dt><b>Author:</b></dt><dd>Xie Fang <<a href="mailto:xiefang@stanford.edu">xiefang@stanford.edu</a>> </dd></dl> <p>Definition at line <a class="el" href="QtSortedCheckListItem_8h_source.html#l00038">38</a> of file <a class="el" href="QtSortedCheckListItem_8h_source.html">QtSortedCheckListItem.h</a>.</p> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a3482ba19f4d8d8b7e4b3c859ce8a2265"></a><!-- doxytag: member="hippodraw::QtSortedCheckListItem::Type" ref="a3482ba19f4d8d8b7e4b3c859ce8a2265" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef QCheckListItem::Type <a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html#a3482ba19f4d8d8b7e4b3c859ce8a2265">Type</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="QtSortedCheckListItem_8h_source.html#l00047">47</a> of file <a class="el" href="QtSortedCheckListItem_8h_source.html">QtSortedCheckListItem.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a44911c7a89e04ad7aa0ece80a2cdd747"></a><!-- doxytag: member="hippodraw::QtSortedCheckListItem::QtSortedCheckListItem" ref="a44911c7a89e04ad7aa0ece80a2cdd747" args="(QListView *parent, const QString &text)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classhippodraw_1_1QtSortedCheckListItem.html">QtSortedCheckListItem</a> </td> <td>(</td> <td class="paramtype"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlistview.html">QListView</a> * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qstring.html">QString</a> & </td> <td class="paramname"> <em>text</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="QtSortedCheckListItem_8cxx_source.html#l00025">25</a> of file <a class="el" href="QtSortedCheckListItem_8cxx_source.html">QtSortedCheckListItem.cxx</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aeec186e0a41bc1891b5dc069999d3730"></a><!-- doxytag: member="hippodraw::QtSortedCheckListItem::compare" ref="aeec186e0a41bc1891b5dc069999d3730" args="(QListViewItem *i, int col, bool ascending) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int compare </td> <td>(</td> <td class="paramtype"><a class="elRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qlistviewitem.html">QListViewItem</a> * </td> <td class="paramname"> <em>i</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>col</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>ascending</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="QtSortedCheckListItem_8cxx_source.html#l00037">37</a> of file <a class="el" href="QtSortedCheckListItem_8cxx_source.html">QtSortedCheckListItem.cxx</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="QtSortedCheckListItem_8h_source.html">QtSortedCheckListItem.h</a></li> <li><a class="el" href="QtSortedCheckListItem_8cxx_source.html">QtSortedCheckListItem.cxx</a></li> </ul> </div> <hr size="1"><address style="align: right;"><small> Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0> </a> </small></address> </body> </html>