<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/> <title>The Gnome Chemistry Utils: gccv::ItemClient 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="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 style="padding-left: 0.5em;"> <div id="projectname">The Gnome Chemistry Utils  <span id="projectnumber">0.14.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</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> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <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 id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacegccv.html">gccv</a></li><li class="navelem"><a class="el" href="classgccv_1_1ItemClient.html">ItemClient</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="classgccv_1_1ItemClient-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">gccv::ItemClient Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>the base class for objects associated with a canvas item. <a href="classgccv_1_1ItemClient.html#details">More...</a></p> <p><code>#include <<a class="el" href="item-client_8h_source.html">item-client.h</a>></code></p> <div class="dynheader"> Inheritance diagram for gccv::ItemClient:</div> <div class="dyncontent"> <div class="center"> <img src="classgccv_1_1ItemClient.png" usemap="#gccv::ItemClient_map" alt=""/> <map id="gccv::ItemClient_map" name="gccv::ItemClient_map"> <area href="classgccv_1_1TextClient.html" title="ItemClient for text items." alt="gccv::TextClient" shape="rect" coords="149,56,288,80"/> <area href="classgcp_1_1Arrow.html" alt="gcp::Arrow" shape="rect" coords="149,112,288,136"/> <area href="classgcp_1_1Atom.html" alt="gcp::Atom" shape="rect" coords="149,168,288,192"/> <area href="classgcp_1_1Bond.html" alt="gcp::Bond" shape="rect" coords="149,224,288,248"/> <area href="classgcp_1_1Brackets.html" title="Brackets class." alt="gcp::Brackets" shape="rect" coords="149,280,288,304"/> <area href="classgcp_1_1Electron.html" alt="gcp::Electron" shape="rect" coords="149,336,288,360"/> <area href="classgcp_1_1MechanismArrow.html" title="Mechanism curved arrows." alt="gcp::MechanismArrow" shape="rect" coords="149,392,288,416"/> <area href="classgcp_1_1ReactionOperator.html" title="Class for '+' signs in chemical reaction equations." alt="gcp::ReactionOperator" shape="rect" coords="149,448,288,472"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a77802cf51f5419709032f50f277b13b1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1ItemClient.html#a77802cf51f5419709032f50f277b13b1">ItemClient</a> ()</td></tr> <tr class="memitem:a7f46045d4e3ebbe27c94dc3a1c493de5"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1ItemClient.html#a7f46045d4e3ebbe27c94dc3a1c493de5">~ItemClient</a> ()</td></tr> <tr class="memitem:a5aa6bf91b58d0c54a9921fa1019a2b07"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1ItemClient.html#a5aa6bf91b58d0c54a9921fa1019a2b07">AddItem</a> ()</td></tr> <tr class="memitem:acf21ab3e7fc437a86ff7fc4735495f1a"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1ItemClient.html#acf21ab3e7fc437a86ff7fc4735495f1a">UpdateItem</a> ()</td></tr> <tr class="memitem:a8c49c3f53c965e73a7ad5101719aea6a"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1ItemClient.html#a8c49c3f53c965e73a7ad5101719aea6a">SetSelected</a> (int state)</td></tr> <tr class="memitem:a92e601f98e98c93e8593d42c549c771f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgccv_1_1Item.html">Item</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1ItemClient.html#a92e601f98e98c93e8593d42c549c771f">GetItem</a> (void)</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr class="memitem:a7832ee36900ecde2210cee00d8232732"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgccv_1_1Item.html">Item</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1ItemClient.html#a7832ee36900ecde2210cee00d8232732">m_Item</a></td></tr> </table> <a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>the base class for objects associated with a canvas item. </p> <p>The <a class="el" href="classgccv_1_1ItemClient.html" title="the base class for objects associated with a canvas item.">ItemClient</a> class is a base class used to associate document objects to items in the canvas. The associated item might be a <a class="el" href="classgccv_1_1Group.html" title="Item with Item children.">Group</a>, and the client might be registered for all group children. If several items are associated to the same object, the m_Item member should be the toplevel group. Destroying an <a class="el" href="classgccv_1_1ItemClient.html" title="the base class for objects associated with a canvas item.">ItemClient</a> instance will destroy the item. </p> <p>Definition at line <a class="el" href="item-client_8h_source.html#l00044">44</a> of file <a class="el" href="item-client_8h_source.html">item-client.h</a>.</p> </div><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a77802cf51f5419709032f50f277b13b1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gccv::ItemClient::ItemClient </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The constructor. </p> </div> </div> <a class="anchor" id="a7f46045d4e3ebbe27c94dc3a1c493de5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual gccv::ItemClient::~ItemClient </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>The destructor. Deletes the associated item if any. </p> </div> </div> <h2>Member Function Documentation</h2> <a class="anchor" id="a5aa6bf91b58d0c54a9921fa1019a2b07"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void gccv::ItemClient::AddItem </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Used to add a representation of the Object in the view. This method might be overloaded for displayable Object classes unless the application uses another mechanism. </p> <p>Reimplemented in <a class="el" href="classgcp_1_1Atom.html#affe3a63809fcb1ca9cc8a02dd45b6902">gcp::Atom</a>, <a class="el" href="classgcp_1_1Bond.html#abb9aff04890b96212b93d6aeda47c6d1">gcp::Bond</a>, <a class="el" href="classgcp_1_1MechanismArrow.html#a5f733d34838477f5d7c284f3bdde64ed">gcp::MechanismArrow</a>, <a class="el" href="classgcp_1_1Fragment.html#a8e8740a9caec4b359ef2536fc28ab250">gcp::Fragment</a>, <a class="el" href="classgcp_1_1Text.html#a576e4366b4bb4a8e611d7689f99f9063">gcp::Text</a>, <a class="el" href="classgcp_1_1Brackets.html#a7c823c1687d4998d92fe7e0eb356a5d9">gcp::Brackets</a>, <a class="el" href="classgcp_1_1Electron.html#ab7e21b022334432823c5cbe62c264bf7">gcp::Electron</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#a4f4af10ffb847d8b18f56c1c46bd0f44">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#a16a1759d60306d825b9a951646900641">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1MesomeryArrow.html#a15347bf597a2ab09e126b9e1becd1430">gcp::MesomeryArrow</a>, and <a class="el" href="classgcp_1_1ReactionOperator.html#a71d336f809b79afbbdc9d7cc7c0c94a8">gcp::ReactionOperator</a>.</p> </div> </div> <a class="anchor" id="a92e601f98e98c93e8593d42c549c771f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">gccv::ItemClient::GetItem </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the associated item. </dd></dl> <p>Definition at line <a class="el" href="item-client_8h_source.html#l00081">81</a> of file <a class="el" href="item-client_8h_source.html">item-client.h</a>.</p> </div> </div> <a class="anchor" id="a8c49c3f53c965e73a7ad5101719aea6a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void gccv::ItemClient::SetSelected </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>state</em></td><td>)</td> <td></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="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">state</td><td>the selection state of the Object.</td></tr> </table> </dd> </dl> <p>Used to set the selection state of the Object inside the widget. The values of state are application dependant and have no default value. </p> <p>Reimplemented in <a class="el" href="classgcp_1_1Atom.html#accb0d96fef92726488bef04bf87b38ce">gcp::Atom</a>, <a class="el" href="classgcp_1_1Bond.html#aa2b44c60a8d5e100d32cdba4d619b1b2">gcp::Bond</a>, <a class="el" href="classgcp_1_1MechanismArrow.html#aef6d55084f125c90839fe3471acfc3e1">gcp::MechanismArrow</a>, <a class="el" href="classgcp_1_1Fragment.html#afbc2128fc049dbdd9269994bd5398df6">gcp::Fragment</a>, <a class="el" href="classgcp_1_1Text.html#a67a83a8b12959a9e5c7670d20aefde04">gcp::Text</a>, <a class="el" href="classgcp_1_1Brackets.html#ab8fce54613f19e20935e693445db2419">gcp::Brackets</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#aaf47061eeaa3a0516a137cc314534baf">gcp::ReactionArrow</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#a479cb7a61287c7dfd939f6fa278903a8">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1Electron.html#a7e17eb4eb49aba8d8d47e3a72ec739d2">gcp::Electron</a>, <a class="el" href="classgcp_1_1Arrow.html#af3fe0d90d0e16a83d0c4afac5eb3fce6">gcp::Arrow</a>, and <a class="el" href="classgcp_1_1ReactionOperator.html#a310d61ffd031c7b84440276c28868f1b">gcp::ReactionOperator</a>.</p> </div> </div> <a class="anchor" id="acf21ab3e7fc437a86ff7fc4735495f1a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void gccv::ItemClient::UpdateItem </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Used to update the representation of the Object in the view. This method might be overloaded for displayable Object classes unless the application uses another mechanism. </p> <p>Reimplemented in <a class="el" href="classgcp_1_1Bond.html#a28d3e65553ef398d702a74ee27eaf466">gcp::Bond</a>, <a class="el" href="classgcp_1_1Fragment.html#a38f289db1278252c081fac9412394c3b">gcp::Fragment</a>, <a class="el" href="classgcp_1_1Text.html#a923cf855fdfac4f0c499ffdc89e6c0e9">gcp::Text</a>, <a class="el" href="classgcp_1_1FragmentAtom.html#aa3a5ae2466637a121c6236858eaf4284">gcp::FragmentAtom</a>, <a class="el" href="classgcp_1_1ReactionArrow.html#ae92c30142700a169589fcc0ea5f0dbde">gcp::ReactionArrow</a>, and <a class="el" href="classgcp_1_1MesomeryArrow.html#a910ffa8e03a5118e0d6493a8a3439a31">gcp::MesomeryArrow</a>.</p> </div> </div> <h2>Member Data Documentation</h2> <a class="anchor" id="a7832ee36900ecde2210cee00d8232732"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">gccv::ItemClient::m_Item</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>The associated item. Being protected, it can be set only from derived classes. </p> <p>Definition at line <a class="el" href="item-client_8h_source.html#l00081">81</a> of file <a class="el" href="item-client_8h_source.html">item-client.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="item-client_8h_source.html">item-client.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu Mar 14 2013 17:34:29 for The Gnome Chemistry Utils by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>