Sophie

Sophie

distrib > Mageia > 3 > x86_64 > by-pkgid > d2855e9970bf9a8259f08fe181d69f9d > files > 278

gnome-chemistry-utils-devel-0.14.2-1.mga3.x86_64.rpm

<!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: gcp::Tool 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
   &#160;<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&#160;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&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacegcp.html">gcp</a></li><li class="navelem"><a class="el" href="classgcp_1_1Tool.html">Tool</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classgcp_1_1Tool-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">gcp::Tool Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="tool_8h_source.html">tool.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4e029fa832ca304f4358c86de8486907"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a4e029fa832ca304f4358c86de8486907">Tool</a> (<a class="el" href="classgcp_1_1Application.html">gcp::Application</a> *App, std::string Id)</td></tr>
<tr class="memitem:a07f442bc4b2df4a1c1f02959e504b34b"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a07f442bc4b2df4a1c1f02959e504b34b">~Tool</a> ()</td></tr>
<tr class="memitem:ab55c8a8a54a06f70bcae1b294ac1bdcf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ab55c8a8a54a06f70bcae1b294ac1bdcf">OnClicked</a> (<a class="el" href="classgcp_1_1View.html">View</a> *pView, <a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *pObject, double x, double y, unsigned int state)</td></tr>
<tr class="memitem:ab2893b1bd81ae595fe9fc68da12e60bf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ab2893b1bd81ae595fe9fc68da12e60bf">OnDrag</a> (double x, double y, unsigned int state)</td></tr>
<tr class="memitem:ab2cf5a17830a43f0783a79792aeccab9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ab2cf5a17830a43f0783a79792aeccab9">OnMotion</a> (<a class="el" href="classgcp_1_1View.html">View</a> *pView, <a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *pObject, double x, double y, unsigned int state)</td></tr>
<tr class="memitem:aada3043ec4b2e56e11fa38855dd34a24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#aada3043ec4b2e56e11fa38855dd34a24">OnLeaveNotify</a> (<a class="el" href="classgcp_1_1View.html">View</a> *pView, unsigned int state)</td></tr>
<tr class="memitem:aeb1d200bddaead7a6d8ddedb33e671bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#aeb1d200bddaead7a6d8ddedb33e671bb">OnRelease</a> (double x, double y, unsigned int state)</td></tr>
<tr class="memitem:a061e4b855e510c527175d945a31ee134"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a061e4b855e510c527175d945a31ee134">OnRightButtonClicked</a> (<a class="el" href="classgcp_1_1View.html">View</a> *pView, <a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *pObject, double x, double y, <a class="el" href="classgcu_1_1UIManager.html">gcu::UIManager</a> *UIManager)</td></tr>
<tr class="memitem:a700cbeeb66297ba0408895f2b5302963"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a700cbeeb66297ba0408895f2b5302963">Activate</a> (bool bState)</td></tr>
<tr class="memitem:a34e3682aecf3a561cd8cb45d6fd24e8b"><td class="memItemLeft" align="right" valign="top">std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a34e3682aecf3a561cd8cb45d6fd24e8b">GetName</a> ()</td></tr>
<tr class="memitem:a145811c19d8fb068b72154df3a946c21"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a145811c19d8fb068b72154df3a946c21">OnRightButtonClicked</a> (<a class="el" href="classgcu_1_1UIManager.html">gcu::UIManager</a> *UIManager)</td></tr>
<tr class="memitem:a8aebc439e1998d3394c46346127b9c5b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a8aebc439e1998d3394c46346127b9c5b">Activate</a> ()</td></tr>
<tr class="memitem:afba86a9637568d67957fdd332ba90b7d"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#afba86a9637568d67957fdd332ba90b7d">Deactivate</a> ()</td></tr>
<tr class="memitem:a59b1c3533db86d2765de7ab8faa09f9f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a59b1c3533db86d2765de7ab8faa09f9f">OnKeyPressed</a> (unsigned int code)</td></tr>
<tr class="memitem:a5675a754e3355ab22887df22f24274dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a5675a754e3355ab22887df22f24274dd">OnKeyReleased</a> (unsigned int code)</td></tr>
<tr class="memitem:a96b69eea6baef8e068ccc45d021d3291"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a96b69eea6baef8e068ccc45d021d3291">OnKeyPress</a> (GdkEventKey *event)</td></tr>
<tr class="memitem:ac41fbe61d9f1df061c75da60407e1227"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ac41fbe61d9f1df061c75da60407e1227">OnKeyRelease</a> (GdkEventKey *event)</td></tr>
<tr class="memitem:ac2ce6f93c981bfd0a2c81d62cb9cda9c"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ac2ce6f93c981bfd0a2c81d62cb9cda9c">NotifyViewChange</a> ()</td></tr>
<tr class="memitem:ad89b2abe3a25d88b7e77adaa3f940d45"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ad89b2abe3a25d88b7e77adaa3f940d45">DeleteSelection</a> ()</td></tr>
<tr class="memitem:aae1576393f6a01e195e7a041bdd2a9e5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#aae1576393f6a01e195e7a041bdd2a9e5">CopySelection</a> (GtkClipboard *clipboard)</td></tr>
<tr class="memitem:a0dd65cf398ac0fdde8c4e3c572cb49f8"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a0dd65cf398ac0fdde8c4e3c572cb49f8">CutSelection</a> (GtkClipboard *clipboard)</td></tr>
<tr class="memitem:a2df0a3ef6144e0b5c8e38316fc30d5c1"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a2df0a3ef6144e0b5c8e38316fc30d5c1">PasteSelection</a> (GtkClipboard *clipboard)</td></tr>
<tr class="memitem:a3a75c4a0f9626d347a12533f00cd60c6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a3a75c4a0f9626d347a12533f00cd60c6">AddSelection</a> (<a class="el" href="classgcp_1_1WidgetData.html">WidgetData</a> *data)</td></tr>
<tr class="memitem:a8940d4a2fbb476958139835e89561d35"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a8940d4a2fbb476958139835e89561d35">OnReceive</a> (GtkClipboard *clipboard, GtkSelectionData *data, int type)</td></tr>
<tr class="memitem:a489d1bafa688035591029387e03045bc"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a489d1bafa688035591029387e03045bc">OnUndo</a> ()</td></tr>
<tr class="memitem:a53b4167dbd6b644eca0247296e2026dc"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a53b4167dbd6b644eca0247296e2026dc">OnRedo</a> ()</td></tr>
<tr class="memitem:a9629306c40897bc5bd90234afae8ffd1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a9629306c40897bc5bd90234afae8ffd1">PushNode</a> (xmlNodePtr node)</td></tr>
<tr class="memitem:ac69c94ae9f21b891fabaf646b4c97d09"><td class="memItemLeft" align="right" valign="top">virtual GtkWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ac69c94ae9f21b891fabaf646b4c97d09">GetPropertyPage</a> ()</td></tr>
<tr class="memitem:aca1cc7a28d773640101b9de149aad841"><td class="memItemLeft" align="right" valign="top">virtual char const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#aca1cc7a28d773640101b9de149aad841">GetHelpTag</a> ()</td></tr>
<tr class="memitem:a720acfe05d3915f1f0bc60110bd9bcf3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1Application.html">Application</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a720acfe05d3915f1f0bc60110bd9bcf3">GetApplication</a> ()</td></tr>
<tr class="memitem:a25cfa99df30e231c0d3ee6578385d483"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a25cfa99df30e231c0d3ee6578385d483">OnConfigChanged</a> ()</td></tr>
<tr class="memitem:a5ab8ab49da0e0a29c13157dc521e7e1f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a5ab8ab49da0e0a29c13157dc521e7e1f">GetOwnStatus</a> (void)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a077eb7afc990c114dec587b3f5a45406"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a077eb7afc990c114dec587b3f5a45406">OnClicked</a> ()</td></tr>
<tr class="memitem:a2182d7ec1e2dd070f9089c6b50458611"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a2182d7ec1e2dd070f9089c6b50458611">OnDrag</a> ()</td></tr>
<tr class="memitem:acabdd715ac8bd7f7c19545e25e286171"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#acabdd715ac8bd7f7c19545e25e286171">OnMotion</a> ()</td></tr>
<tr class="memitem:abbdedc32fb8c020c19a835c187a4a1a4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#abbdedc32fb8c020c19a835c187a4a1a4">OnLeaveNotify</a> ()</td></tr>
<tr class="memitem:a5c1c4b1735f3505c674ae6f050cd983a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a5c1c4b1735f3505c674ae6f050cd983a">OnRelease</a> ()</td></tr>
<tr class="memitem:a1fe407af41fe78e2dab6a52ae68e2627"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a1fe407af41fe78e2dab6a52ae68e2627">OnChangeState</a> ()</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:aca0eae41fe76815ee4613efa5ec8edfa"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#aca0eae41fe76815ee4613efa5ec8edfa">m_x0</a></td></tr>
<tr class="memitem:ab3e5e3d05e3d4634d5c8201aee3c12ea"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ab3e5e3d05e3d4634d5c8201aee3c12ea">m_y0</a></td></tr>
<tr class="memitem:ad9c2d4f63ddc9080ea91827ff7adfbf8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ad9c2d4f63ddc9080ea91827ff7adfbf8">m_x1</a></td></tr>
<tr class="memitem:a5b618f7a1d9b339a04aec62e715e5f43"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a5b618f7a1d9b339a04aec62e715e5f43">m_y1</a></td></tr>
<tr class="memitem:af22e21f5f1c5bf7fef4d6ec9d95913f8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#af22e21f5f1c5bf7fef4d6ec9d95913f8">m_x</a></td></tr>
<tr class="memitem:a10675973e3bed89d2d08b82d32dfde38"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a10675973e3bed89d2d08b82d32dfde38">m_y</a></td></tr>
<tr class="memitem:ab2dbd5621d18e5c5cab28402c2a2670a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#ab2dbd5621d18e5c5cab28402c2a2670a">m_pObject</a></td></tr>
<tr class="memitem:a8837ee126b7c1191600aeb00e55f644e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a8837ee126b7c1191600aeb00e55f644e">m_pObjectGroup</a></td></tr>
<tr class="memitem:a1752604cbfe8aa9958bb910f0bbcd4be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1View.html">View</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a1752604cbfe8aa9958bb910f0bbcd4be">m_pView</a></td></tr>
<tr class="memitem:a7bad52ce7945afd8592f52b458c7981f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1WidgetData.html">WidgetData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a7bad52ce7945afd8592f52b458c7981f">m_pData</a></td></tr>
<tr class="memitem:a65c1c52bdc8ea710fe44adf00f37ffa8"><td class="memItemLeft" align="right" valign="top">GtkWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a65c1c52bdc8ea710fe44adf00f37ffa8">m_pWidget</a></td></tr>
<tr class="memitem:a6b1ffb348ea2baef62501dbd5301d3c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgccv_1_1Item.html">gccv::Item</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a6b1ffb348ea2baef62501dbd5301d3c5">m_Item</a></td></tr>
<tr class="memitem:a5807a694fe45292f44b65caf6c575084"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a5807a694fe45292f44b65caf6c575084">m_dZoomFactor</a></td></tr>
<tr class="memitem:a40863b4307a752e4a070e5ce36642a40"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a40863b4307a752e4a070e5ce36642a40">m_bChanged</a></td></tr>
<tr class="memitem:a68f3a4535f712db3dc23117cbc6731a6"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a68f3a4535f712db3dc23117cbc6731a6">m_nState</a></td></tr>
<tr class="memitem:a115c200196b4f54a3ed2326af76c9b41"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1Application.html">gcp::Application</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a115c200196b4f54a3ed2326af76c9b41">m_pApp</a></td></tr>
<tr class="memitem:abb6f90f54a1e70912848430c011220cc"><td class="memItemLeft" align="right" valign="top">std::set&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#abb6f90f54a1e70912848430c011220cc">ModifiedObjects</a></td></tr>
<tr class="memitem:add1a7428f84b500cd0ebebe3d67213d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#add1a7428f84b500cd0ebebe3d67213d2">m_bAllowed</a></td></tr>
<tr class="memitem:a991b403a24a2b4683d4f07c4b5dbf30a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1Tool.html#a991b403a24a2b4683d4f07c4b5dbf30a">m_OwnStatus</a></td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Base clas for GChemPaint tools. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00056">56</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>
</div><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4e029fa832ca304f4358c86de8486907"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcp::Tool::Tool </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1Application.html">gcp::Application</a> *&#160;</td>
          <td class="paramname"><em>App</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>Id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">App</td><td>the GChemPaint application. </td></tr>
    <tr><td class="paramname">Id</td><td>the name of the tool.</td></tr>
  </table>
  </dd>
</dl>
<p>Constructs a new tool. </p>

</div>
</div>
<a class="anchor" id="a07f442bc4b2df4a1c1f02959e504b34b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual gcp::Tool::~Tool </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. </p>

</div>
</div>
<h2>Member Function Documentation</h2>
<a class="anchor" id="a700cbeeb66297ba0408895f2b5302963"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::Tool::Activate </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>bState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bState</td><td>whether to activate or deactivate the tool.</td></tr>
  </table>
  </dd>
</dl>
<p>When <em>bState</em> is true, the tool is activated, otherwise it is deactivated. <a class="el" href="classgcp_1_1Tool.html#a8aebc439e1998d3394c46346127b9c5b">Activate()</a> or <a class="el" href="classgcp_1_1Tool.html#afba86a9637568d67957fdd332ba90b7d">Deactivate()</a> is called for this instance. </p>
<dl class="section return"><dt>Returns</dt><dd>true on success, and false otherwise. Activation always succeeds. </dd></dl>

</div>
</div>
<a class="anchor" id="a8aebc439e1998d3394c46346127b9c5b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::Activate </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>Virtual method called when the tool is activated. This method should be overriden for all tools which need some initialization when activated. Default does nothing. </p>

</div>
</div>
<a class="anchor" id="a3a75c4a0f9626d347a12533f00cd60c6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::AddSelection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1WidgetData.html">WidgetData</a> *&#160;</td>
          <td class="paramname"><em>data</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">
<p>Called by the framework to paste data. <a class="el" href="classgcp_1_1Tools.html">Tools</a> for which it is meaningful must have an overriden version of this method. </p>

</div>
</div>
<a class="anchor" id="aae1576393f6a01e195e7a041bdd2a9e5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::CopySelection </td>
          <td>(</td>
          <td class="paramtype">GtkClipboard *&#160;</td>
          <td class="paramname"><em>clipboard</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">
<p>Called by the framework to delete the selection. <a class="el" href="classgcp_1_1Tools.html">Tools</a> for which it is meaningful must have an overriden version of this method. </p>

</div>
</div>
<a class="anchor" id="a0dd65cf398ac0fdde8c4e3c572cb49f8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::CutSelection </td>
          <td>(</td>
          <td class="paramtype">GtkClipboard *&#160;</td>
          <td class="paramname"><em>clipboard</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">
<p>Called by the framework to copy the selection. <a class="el" href="classgcp_1_1Tools.html">Tools</a> for which it is meaningful must have an oveeriden version of this method. </p>

</div>
</div>
<a class="anchor" id="afba86a9637568d67957fdd332ba90b7d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::Deactivate </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>Virtual method called when the tool is deactivated. This method should be overriden for all tools which need some cleaning when deactivated. Default does nothing. </p>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ad89b2abe3a25d88b7e77adaa3f940d45"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::DeleteSelection </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>Called by the framework to delete the selection. <a class="el" href="classgcp_1_1Tools.html">Tools</a> for which it is meaningful must have an overriden version of this method. </p>

</div>
</div>
<a class="anchor" id="a720acfe05d3915f1f0bc60110bd9bcf3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1Application.html">Application</a>* gcp::Tool::GetApplication </td>
          <td>(</td>
          <td class="paramtype">void&#160;</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">
<p>Gets the <a class="el" href="classgcp_1_1Application.html" title="GChemPaint application base class.">Application</a> instance owning the tool. </p>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="classgcp_1_1Application.html" title="GChemPaint application base class.">Application</a> instance. </dd></dl>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00280">280</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

<p>References <a class="el" href="tool_8h_source.html#l00399">m_pApp</a>.</p>

</div>
</div>
<a class="anchor" id="aca1cc7a28d773640101b9de149aad841"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual char const* gcp::Tool::GetHelpTag </td>
          <td>(</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 class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Gets the tag used to display the appropriate help topic when the user presses the help button in the tools box. The framework will prefix the result with the application name. The text tool in GChemPaint returns "text" which becomes "gchempaint-text". </p>
<dl class="section return"><dt>Returns</dt><dd>the help tag for the tool. </dd></dl>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00275">275</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a34e3682aecf3a561cd8cb45d6fd24e8b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string&amp; gcp::Tool::GetName </td>
          <td>(</td>
          <td class="paramtype">void&#160;</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 tool name. </dd></dl>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00151">151</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5ab8ab49da0e0a29c13157dc521e7e1f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gcp::Tool::GetOwnStatus </td>
          <td>(</td>
          <td class="paramtype">void&#160;</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>whether the tool owns the status bar text. </dd></dl>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00421">421</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac69c94ae9f21b891fabaf646b4c97d09"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual GtkWidget* gcp::Tool::GetPropertyPage </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>Gets the property page for the tool. Called the first time the tool becomes active. </p>
<dl class="section return"><dt>Returns</dt><dd>the new tool property page. </dd></dl>

</div>
</div>
<a class="anchor" id="ac2ce6f93c981bfd0a2c81d62cb9cda9c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::NotifyViewChange </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>Virtual method called by the framework whenthe active view, and hence the active document has changed, so that the tool can finish its current operation in the previously active document and update its options box according to the new active document settings. </p>
<dl class="section return"><dt>Returns</dt><dd>true to accept the document change, false if something went wrong and the active document should not change, as in the case of the fragment tool when the symbols entered can't be interpreted. </dd></dl>

</div>
</div>
<a class="anchor" id="a1fe407af41fe78e2dab6a52ae68e2627"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::OnChangeState </td>
          <td>(</td>
          <td class="paramname"></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>Called when a modifier key has been pressed or released, and fires a drag event so that the tool can update things if necessary. </p>

<p>Referenced by <a class="el" href="tool_8h_source.html#l00181">OnKeyPressed()</a>, and <a class="el" href="tool_8h_source.html#l00189">OnKeyReleased()</a>.</p>

</div>
</div>
<a class="anchor" id="ab55c8a8a54a06f70bcae1b294ac1bdcf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::Tool::OnClicked </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1View.html">View</a> *&#160;</td>
          <td class="paramname"><em>pView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *&#160;</td>
          <td class="paramname"><em>pObject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pView</td><td>the view instance owning the event. </td></tr>
    <tr><td class="paramname">pObject</td><td>the Object on which the click occured. </td></tr>
    <tr><td class="paramname">x</td><td>the horizontal position of the mouse when the click occured. </td></tr>
    <tr><td class="paramname">y</td><td>the vertical position of the mouse when the click occured. </td></tr>
    <tr><td class="paramname">state</td><td>a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType in GDK documentation.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called by the framework when the tool is active and a click occurs. It initialize some members and then calls the virtual <a class="el" href="classgcp_1_1Tool.html#a077eb7afc990c114dec587b3f5a45406">OnClicked()</a> method. It might be called to simulate a click in some instances (e.g. from a contextual menu handler).</p>
<dl class="section return"><dt>Returns</dt><dd>true if the mouse drag and button release evens are significative for this tool in the current context, false otherwise. If true, a mouse move will fire the OnDrag method, and a button release will result in an OnRelease call. If false, nothing happens for these events. </dd></dl>

</div>
</div>
<a class="anchor" id="a077eb7afc990c114dec587b3f5a45406"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::OnClicked </td>
          <td>(</td>
          <td class="paramname"></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>Called from OnClicked(View*,gcu::Object*,double,doubl,unsigned int) when a click occured. This method must be overriden in derived classes, and return true if the drag and release events are meaningful for the tool in the current context. Default implementation does nothing and returns false.</p>
<dl class="section return"><dt>Returns</dt><dd>true if drag and release events are needed, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a25cfa99df30e231c0d3ee6578385d483"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::OnConfigChanged </td>
          <td>(</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 class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Callback for a settings change event. Only tools which are dependent on some configuration key need to override this method. Default does nothing. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00285">285</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab2893b1bd81ae595fe9fc68da12e60bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::Tool::OnDrag </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>the horizontal position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">y</td><td>the vertical position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">state</td><td>a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType in GDK documentation.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called by the framework when the tool is active, the first mouse button is pressed and the mouse is moved. </p>

</div>
</div>
<a class="anchor" id="a2182d7ec1e2dd070f9089c6b50458611"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::OnDrag </td>
          <td>(</td>
          <td class="paramname"></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>Called from <a class="el" href="classgcp_1_1Tool.html#ab2893b1bd81ae595fe9fc68da12e60bf">OnDrag(double,double,unsigned int)</a> when a drag event occured occured. This method must be overriden in derived classes if drag events are meaningful for the tool. Default implementation does nothing. </p>

</div>
</div>
<a class="anchor" id="a96b69eea6baef8e068ccc45d021d3291"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::OnKeyPress </td>
          <td>(</td>
          <td class="paramtype">GdkEventKey *&#160;</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Called by the framework for the active tool when a key press event occurs. Default just returns <em>false</em>.</p>
<dl class="section return"><dt>Returns</dt><dd>true to stop any further propagation of the event, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a59b1c3533db86d2765de7ab8faa09f9f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::Tool::OnKeyPressed </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em></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="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>the state of the mofifier keys as given inthe state field or some GdkEvent derived structures.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when a modifier key has been pressed, updates m_nState, and calls <a class="el" href="classgcp_1_1Tool.html#a1fe407af41fe78e2dab6a52ae68e2627">Tool::OnChangeState</a> (). </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00181">181</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

<p>References <a class="el" href="tool_8h_source.html#l00395">m_nState</a>, and <a class="el" href="classgcp_1_1Tool.html#a1fe407af41fe78e2dab6a52ae68e2627">OnChangeState()</a>.</p>

</div>
</div>
<a class="anchor" id="ac41fbe61d9f1df061c75da60407e1227"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::OnKeyRelease </td>
          <td>(</td>
          <td class="paramtype">GdkEventKey *&#160;</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Called by the framework for the active tool when a key release event occurs. Default just returns <em>false</em>.</p>
<dl class="section return"><dt>Returns</dt><dd>true to stop any further propagation of the event, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a5675a754e3355ab22887df22f24274dd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::Tool::OnKeyReleased </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em></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="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>the state of the mofifier keys as given inthe state field or some GdkEvent derived structures.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when a modifier key has been released, updates m_nState, and calls <a class="el" href="classgcp_1_1Tool.html#a1fe407af41fe78e2dab6a52ae68e2627">Tool::OnChangeState</a> (). </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00189">189</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

<p>References <a class="el" href="tool_8h_source.html#l00395">m_nState</a>, and <a class="el" href="classgcp_1_1Tool.html#a1fe407af41fe78e2dab6a52ae68e2627">OnChangeState()</a>.</p>

</div>
</div>
<a class="anchor" id="aada3043ec4b2e56e11fa38855dd34a24"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::Tool::OnLeaveNotify </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1View.html">View</a> *&#160;</td>
          <td class="paramname"><em>pView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pView</td><td>the view instance owning the event. </td></tr>
    <tr><td class="paramname">state</td><td>a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType in GDK documentation.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called by the framework when the tool is active and the mouse is moved outside the current view. </p>

</div>
</div>
<a class="anchor" id="abbdedc32fb8c020c19a835c187a4a1a4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::OnLeaveNotify </td>
          <td>(</td>
          <td class="paramname"></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>Called from OnLeaveNotify(gcp::View,unsigned int) when a leave notify event occured. This method must be overriden in derived classes if leave notify events are meaningful for the tool. Default implementation does nothing. </p>

</div>
</div>
<a class="anchor" id="ab2cf5a17830a43f0783a79792aeccab9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::Tool::OnMotion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1View.html">View</a> *&#160;</td>
          <td class="paramname"><em>pView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *&#160;</td>
          <td class="paramname"><em>pObject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pView</td><td>the view instance owning the event. </td></tr>
    <tr><td class="paramname">pObject</td><td>the Object on which the click occured. </td></tr>
    <tr><td class="paramname">x</td><td>the horizontal position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">y</td><td>the vertical position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">state</td><td>a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType in GDK documentation.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called by the framework when the tool is active, the first mouse button is not pressed and the mouse is moved. </p>

</div>
</div>
<a class="anchor" id="acabdd715ac8bd7f7c19545e25e286171"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::OnMotion </td>
          <td>(</td>
          <td class="paramname"></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>Called from OnMotion(gcp::View,double,double,unsigned int) when a motion event occured. This method must be overriden in derived classes if motion events are meaningful for the tool. Default implementation does nothing. </p>

</div>
</div>
<a class="anchor" id="a8940d4a2fbb476958139835e89561d35"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::OnReceive </td>
          <td>(</td>
          <td class="paramtype">GtkClipboard *&#160;</td>
          <td class="paramname"><em>clipboard</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkSelectionData *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>Called by the framework when clipboard data are available. <a class="el" href="classgcp_1_1Tools.html">Tools</a> for which this is meaningful must have an overriden version of this method. </p>

</div>
</div>
<a class="anchor" id="a53b4167dbd6b644eca0247296e2026dc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::OnRedo </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>Called by the framework when the user requests to redo the last undone change. <a class="el" href="classgcp_1_1Tools.html">Tools</a> such as text editing tools for which this is meaningful must have an overriden version of this method. </p>

</div>
</div>
<a class="anchor" id="aeb1d200bddaead7a6d8ddedb33e671bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::Tool::OnRelease </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>the horizontal position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">y</td><td>the vertical position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">state</td><td>a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType in GDK documentation.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called by the framework when the tool is active and the first mouse button is released. </p>

</div>
</div>
<a class="anchor" id="a5c1c4b1735f3505c674ae6f050cd983a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::OnRelease </td>
          <td>(</td>
          <td class="paramname"></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>Called from <a class="el" href="classgcp_1_1Tool.html#aeb1d200bddaead7a6d8ddedb33e671bb">OnRelease(double,double,unsigned int)</a> when a button release event occured. This method must be overriden in derived classes if button release events are meaningful for the tool. Default implementation does nothing. </p>

</div>
</div>
<a class="anchor" id="a061e4b855e510c527175d945a31ee134"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::Tool::OnRightButtonClicked </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1View.html">View</a> *&#160;</td>
          <td class="paramname"><em>pView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *&#160;</td>
          <td class="paramname"><em>pObject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1UIManager.html">gcu::UIManager</a> *&#160;</td>
          <td class="paramname"><em>UIManager</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pView</td><td>the view where the event occured. </td></tr>
    <tr><td class="paramname">pObject</td><td>the object on which the event occured. </td></tr>
    <tr><td class="paramname">x</td><td>the horizontal position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">y</td><td>the vertical position of the mouse when the event occured. </td></tr>
    <tr><td class="paramname">UIManager</td><td>the <a class="el" href="classgcu_1_1UIManager.html" title="base class for a user interface manager">gcu::UIManager</a> in use.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is called by the framework when the tool is active and the right mouse button is pressed. It is used to add tool specific menu items to the contextual menu. It calls <a class="el" href="classgcp_1_1Tool.html#a145811c19d8fb068b72154df3a946c21">OnRightButtonClicked(gcu::UIManager*)</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>true if at least one menu item was added, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a145811c19d8fb068b72154df3a946c21"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::OnRightButtonClicked </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1UIManager.html">gcu::UIManager</a> *&#160;</td>
          <td class="paramname"><em>UIManager</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">UIManager</td><td>the <a class="el" href="classgcu_1_1UIManager.html" title="base class for a user interface manager">gcu::UIManager</a> in use.</td></tr>
  </table>
  </dd>
</dl>
<p>Adds menu items to the contextual menu. Default implementation do not add any menu item and returns false. Derived classes for which menu items exist must override this method. </p>
<dl class="section return"><dt>Returns</dt><dd>true if at least one menu item was added, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a489d1bafa688035591029387e03045bc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::OnUndo </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>Called by the framework when the user requests to undo the last change. <a class="el" href="classgcp_1_1Tools.html">Tools</a> such as text editing tools for which this is meaningful must have an overriden version of this method. </p>

</div>
</div>
<a class="anchor" id="a2df0a3ef6144e0b5c8e38316fc30d5c1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool gcp::Tool::PasteSelection </td>
          <td>(</td>
          <td class="paramtype">GtkClipboard *&#160;</td>
          <td class="paramname"><em>clipboard</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">
<p>Called by the framework to cut the selection. <a class="el" href="classgcp_1_1Tools.html">Tools</a> for which it is meaningful must have an overriden version of this method. </p>

</div>
</div>
<a class="anchor" id="a9629306c40897bc5bd90234afae8ffd1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void gcp::Tool::PushNode </td>
          <td>(</td>
          <td class="paramtype">xmlNodePtr&#160;</td>
          <td class="paramname"><em>node</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">node</td><td>an xml node to push on the tools private undo stack.</td></tr>
  </table>
  </dd>
</dl>
<p>Used to store a node after a change while editing a text object by text tools. </p>

</div>
</div>
<h2>Member Data Documentation</h2>
<a class="anchor" id="add1a7428f84b500cd0ebebe3d67213d2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::Tool::m_bAllowed</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>if true, the intended operation is allowed. Default value is true, each tool must set this flag to false if necessary. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00408">408</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a40863b4307a752e4a070e5ce36642a40"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::Tool::m_bChanged</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>Flag that might be used by tools to store whether they changed something since the last click (and before releasing the button). </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00391">391</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5807a694fe45292f44b65caf6c575084"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::Tool::m_dZoomFactor</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 zoom factor when the click occured. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00386">386</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6b1ffb348ea2baef62501dbd5301d3c5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgccv_1_1Item.html">gccv::Item</a>* gcp::Tool::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 item on which the last click occured if any. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00382">382</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a68f3a4535f712db3dc23117cbc6731a6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int gcp::Tool::m_nState</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 state of modifier keys as a GdkModifierType values combination. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00395">395</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

<p>Referenced by <a class="el" href="tool_8h_source.html#l00181">OnKeyPressed()</a>, and <a class="el" href="tool_8h_source.html#l00189">OnKeyReleased()</a>.</p>

</div>
</div>
<a class="anchor" id="a991b403a24a2b4683d4f07c4b5dbf30a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gcp::Tool::m_OwnStatus</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>Whether the tool owns the status bar text. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00421">421</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a115c200196b4f54a3ed2326af76c9b41"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1Application.html">gcp::Application</a>* gcp::Tool::m_pApp</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 application owning the tool. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00399">399</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

<p>Referenced by <a class="el" href="tool_8h_source.html#l00280">GetApplication()</a>.</p>

</div>
</div>
<a class="anchor" id="a7bad52ce7945afd8592f52b458c7981f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1WidgetData.html">WidgetData</a>* gcp::Tool::m_pData</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 widget data for the current active canvas. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00374">374</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab2dbd5621d18e5c5cab28402c2a2670a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a>* gcp::Tool::m_pObject</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 object on which the last click occured or NULL. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00362">362</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8837ee126b7c1191600aeb00e55f644e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a>* gcp::Tool::m_pObjectGroup</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 group to which m_pObject belongs if any. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00366">366</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1752604cbfe8aa9958bb910f0bbcd4be"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1View.html">View</a>* gcp::Tool::m_pView</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 active <a class="el" href="classgcp_1_1View.html">gcp::View</a>. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00370">370</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a65c1c52bdc8ea710fe44adf00f37ffa8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GtkWidget* gcp::Tool::m_pWidget</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 active canvas widget. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00378">378</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="af22e21f5f1c5bf7fef4d6ec9d95913f8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::Tool::m_x</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 current x position of the mouse cursor. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00354">354</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="aca0eae41fe76815ee4613efa5ec8edfa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::Tool::m_x0</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>x coordinate for the last mouse click (unless the tool modified it). </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00336">336</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad9c2d4f63ddc9080ea91827ff7adfbf8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::Tool::m_x1</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>x coordinate for the last mouse click (unless the tool modified it). It might be used by tools necessitating two pairs of coordinates. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00345">345</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a10675973e3bed89d2d08b82d32dfde38"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::Tool::m_y</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 current y position of the mouse cursor. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00358">358</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab3e5e3d05e3d4634d5c8201aee3c12ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::Tool::m_y0</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>y coordinate for the last mouse click (unless the tool modified it). </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00340">340</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5b618f7a1d9b339a04aec62e715e5f43"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::Tool::m_y1</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>y coordinate for the last mouse click (unless the tool modified it). It might be used by tools necessitating two pairs of coordinates. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00350">350</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<a class="anchor" id="abb6f90f54a1e70912848430c011220cc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::set&lt;std::string&gt; gcp::Tool::ModifiedObjects</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>A set of modified objects tools might use to track what they did modify. </p>

<p>Definition at line <a class="el" href="tool_8h_source.html#l00403">403</a> of file <a class="el" href="tool_8h_source.html">tool.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="tool_8h_source.html">tool.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 14 2013 17:34:30 for The Gnome Chemistry Utils by &#160;<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>