Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 07118dbc7175a4a7d1e779ad4c1549db > files > 21

flowcanvas-devel-0.6.4-1.fc14.1.i686.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"/>
<title>FlowCanvas: /builddir/build/BUILD/flowcanvas-0.6.4/flowcanvas/Canvas.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/builddir/build/BUILD/flowcanvas-0.6.4/flowcanvas/Canvas.hpp</h1>  </div>
</div>
<div class="contents">
<a href="Canvas_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* This file is part of FlowCanvas.</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2007-2009 David Robillard &lt;http://drobilla.net&gt;</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * FlowCanvas is free software; you can redistribute it and/or modify it under the</span>
<a name="l00005"></a>00005 <span class="comment"> * terms of the GNU General Public License as published by the Free Software</span>
<a name="l00006"></a>00006 <span class="comment"> * Foundation; either version 2 of the License, or (at your option) any later</span>
<a name="l00007"></a>00007 <span class="comment"> * version.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * FlowCanvas is distributed in the hope that it will be useful, but WITHOUT ANY</span>
<a name="l00010"></a>00010 <span class="comment"> * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
<a name="l00011"></a>00011 <span class="comment"> * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for details.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU General Public License along</span>
<a name="l00014"></a>00014 <span class="comment"> * with this program; if not, write to the Free Software Foundation, Inc.,</span>
<a name="l00015"></a>00015 <span class="comment"> * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef FLOWCANVAS_CANVAS_HPP</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define FLOWCANVAS_CANVAS_HPP</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;boost/enable_shared_from_this.hpp&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;boost/utility.hpp&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;libgnomecanvasmm.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="Connection_8hpp.html">flowcanvas/Connection.hpp</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="Module_8hpp.html">flowcanvas/Module.hpp</a>&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;<a class="code" href="Item_8hpp.html">flowcanvas/Item.hpp</a>&quot;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 
<a name="l00034"></a><a class="code" href="namespaceFlowCanvas.html">00034</a> <span class="keyword">namespace </span>FlowCanvas {
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="classFlowCanvas_1_1Port.html" title="A port on a Module.">Port</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="classFlowCanvas_1_1Module.html" title="A named block (possibly) containing input and output ports.">Module</a>;
<a name="l00038"></a>00038 <span class="keyword">class </span>GVNodes;
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 
<a name="l00054"></a><a class="code" href="classFlowCanvas_1_1Canvas.html">00054</a> <span class="keyword">class </span><a class="code" href="classFlowCanvas_1_1Canvas.html" title="The &amp;#39;master&amp;#39; canvas widget which contains all other objects.">Canvas</a> : boost::noncopyable
<a name="l00055"></a>00055              , <span class="keyword">public</span> boost::enable_shared_from_this&lt;Canvas&gt;
<a name="l00056"></a>00056              , <span class="keyword">public</span> <span class="comment">/*CANVASBASE*/</span>Gnome::<a class="code" href="classFlowCanvas_1_1Canvas.html" title="The &amp;#39;master&amp;#39; canvas widget which contains all other objects.">Canvas</a>::CanvasAA
<a name="l00057"></a>00057 <span class="comment">// (CANVASBASE is a hook for a sed script in configure.ac)</span>
<a name="l00058"></a>00058 {
<a name="l00059"></a>00059 <span class="keyword">public</span>:
<a name="l00060"></a>00060     <a class="code" href="classFlowCanvas_1_1Canvas.html#adb6d329147bd6fa21715d9015b194878">Canvas</a>(<span class="keywordtype">double</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a1c9037faa9d9cdf17a517156b917fdb6">width</a>, <span class="keywordtype">double</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a5344c073d3efa7099dc6310344aba6d1">height</a>);
<a name="l00061"></a>00061     <span class="keyword">virtual</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#adb89ef7b5107696429f2058890e3fafc">~Canvas</a>();
<a name="l00062"></a>00062 
<a name="l00063"></a>00063     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#aae22e84b6cb70a62e85945b1a9b0d8c1">destroy</a>();
<a name="l00064"></a>00064 
<a name="l00065"></a>00065     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a9f6f42b50ee32f2f7386f030950c1d4b">add_item</a>(boost::shared_ptr&lt;Item&gt; i);
<a name="l00066"></a>00066     <span class="keywordtype">bool</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#addb7bc9d24f7a70c5032ff17064c1abd">remove_item</a>(boost::shared_ptr&lt;Item&gt; i);
<a name="l00067"></a>00067 
<a name="l00068"></a>00068     boost::shared_ptr&lt;Connection&gt;
<a name="l00069"></a>00069     <a class="code" href="classFlowCanvas_1_1Canvas.html#a6f2f92b5e15557e90207a92ed5eed700">get_connection</a>(boost::shared_ptr&lt;Connectable&gt; tail,
<a name="l00070"></a>00070                    boost::shared_ptr&lt;Connectable&gt; head) <span class="keyword">const</span>;
<a name="l00071"></a>00071 
<a name="l00072"></a>00072     <span class="keywordtype">bool</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a8da18cae326c944e45abecf46d5c5463">add_connection</a>(boost::shared_ptr&lt;Connectable&gt; tail,
<a name="l00073"></a>00073                         boost::shared_ptr&lt;Connectable&gt; head,
<a name="l00074"></a>00074                         uint32_t                       color);
<a name="l00075"></a>00075 
<a name="l00076"></a>00076     <span class="keywordtype">bool</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a8da18cae326c944e45abecf46d5c5463">add_connection</a>(boost::shared_ptr&lt;Connection&gt; connection);
<a name="l00077"></a>00077 
<a name="l00078"></a>00078     boost::shared_ptr&lt;Connection&gt; <a class="code" href="classFlowCanvas_1_1Canvas.html#a899f3eb2b839759cb63a6bec8d230b51">remove_connection</a>(boost::shared_ptr&lt;Connectable&gt; tail,
<a name="l00079"></a>00079                                                     boost::shared_ptr&lt;Connectable&gt; head);
<a name="l00080"></a>00080 
<a name="l00081"></a>00081     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#ac2967d8ce851ec3c390821b31d6736dc">set_default_placement</a>(boost::shared_ptr&lt;Module&gt; m);
<a name="l00082"></a>00082 
<a name="l00083"></a>00083     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#ad7580ac84131228bfec5770a476e853b">clear_selection</a>();
<a name="l00084"></a>00084     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#aa8a0963dd933af64ae6ab97d44bc55c8">select_item</a>(boost::shared_ptr&lt;Item&gt; item);
<a name="l00085"></a>00085     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a8365cb46d22f3a240415d5a3536ca984">unselect_ports</a>();
<a name="l00086"></a>00086     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#af4cd3c2aad497174e722acb31cb47964">unselect_item</a>(boost::shared_ptr&lt;Item&gt; item);
<a name="l00087"></a>00087     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a7b834d0b6acbdf07c1951b4e027057f0">unselect_connection</a>(<a class="code" href="classFlowCanvas_1_1Connection.html" title="A connection (line) between two canvas objects.">Connection</a>* c);
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a390de2dc3ac251bfae01bc2fe6ec9ba3">00089</a>     <a class="code" href="namespaceFlowCanvas.html#ab4c39f25b89c40708f2478a262fa4726">ItemList</a>&amp;       <a class="code" href="classFlowCanvas_1_1Canvas.html#a390de2dc3ac251bfae01bc2fe6ec9ba3">items</a>()                { <span class="keywordflow">return</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#ac1f899d52cb5081609fb4f6f40916223" title="All items on this canvas.">_items</a>; }
<a name="l00090"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a44fff730c57afe5ab93eee68d6d8c87b">00090</a>     <a class="code" href="namespaceFlowCanvas.html#ab4c39f25b89c40708f2478a262fa4726">ItemList</a>&amp;       <a class="code" href="classFlowCanvas_1_1Canvas.html#a44fff730c57afe5ab93eee68d6d8c87b">selected_items</a>()       { <span class="keywordflow">return</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#ad6b14aca9902a4a58d6da522864088be" title="All currently selected modules.">_selected_items</a>; }
<a name="l00091"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#aacfaeeecab89658eed7a8a787daaee70">00091</a>     <a class="code" href="namespaceFlowCanvas.html#a95ded2c688bc4a98564a47ebb93a8c73">ConnectionList</a>&amp; <a class="code" href="classFlowCanvas_1_1Canvas.html#aacfaeeecab89658eed7a8a787daaee70">connections</a>()          { <span class="keywordflow">return</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a4879659380dc9a174f1fd0ae047d8b73" title="All connections on this canvas.">_connections</a>; }
<a name="l00092"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a539a767af30b45beb29f7fac6085d480">00092</a>     <a class="code" href="namespaceFlowCanvas.html#a95ded2c688bc4a98564a47ebb93a8c73">ConnectionList</a>&amp; <a class="code" href="classFlowCanvas_1_1Canvas.html#a539a767af30b45beb29f7fac6085d480">selected_connections</a>() { <span class="keywordflow">return</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a6f910a0f700b81bd63eb48319c5044ae" title="All currently selected connections.">_selected_connections</a>; }
<a name="l00093"></a>00093 
<a name="l00094"></a>00094     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a6988d81b0db8d62ec67ebcfbaf687095">lock</a>(<span class="keywordtype">bool</span> l);
<a name="l00095"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a0d6cbfbec25d6d871aa552784533ac26">00095</a>     <span class="keywordtype">bool</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a0d6cbfbec25d6d871aa552784533ac26">locked</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _locked; }
<a name="l00096"></a>00096 
<a name="l00097"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#ad70fffade471e1c2d9923fd3ffac6fe7">00097</a>     <span class="keywordtype">double</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#ad70fffade471e1c2d9923fd3ffac6fe7">get_zoom</a>() { <span class="keywordflow">return</span> _zoom; }
<a name="l00098"></a>00098     <span class="keywordtype">void</span>   <a class="code" href="classFlowCanvas_1_1Canvas.html#a6c3dd94b67c37e688e6759d3bd805385">set_zoom</a>(<span class="keywordtype">double</span> pix_per_unit);
<a name="l00099"></a>00099     <span class="keywordtype">void</span>   <a class="code" href="classFlowCanvas_1_1Canvas.html#adc99561da3f9885d32ce1fc46dbd1c51">zoom_full</a>();
<a name="l00100"></a>00100 
<a name="l00101"></a>00101     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a3a107569d9a2bbfb38df6e90bd178b04">render_to_dot</a>(<span class="keyword">const</span> std::string&amp; filename);
<a name="l00102"></a>00102     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#aec42e5149e4f738c095ffda1eb09e4e4">arrange</a>(<span class="keywordtype">bool</span> use_length_hints=<span class="keyword">false</span>, <span class="keywordtype">bool</span> center=<span class="keyword">true</span>);
<a name="l00103"></a>00103 
<a name="l00104"></a>00104     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#abf4e2624cc5aaa6e3555f2bc1fee3e79">move_contents_to</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00105"></a>00105 
<a name="l00106"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a1c9037faa9d9cdf17a517156b917fdb6">00106</a>     <span class="keywordtype">double</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a1c9037faa9d9cdf17a517156b917fdb6">width</a>()<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> _width; }
<a name="l00107"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a5344c073d3efa7099dc6310344aba6d1">00107</a>     <span class="keywordtype">double</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a5344c073d3efa7099dc6310344aba6d1">height</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _height; }
<a name="l00108"></a>00108 
<a name="l00109"></a>00109     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#afa99a58b37ec3060f0ee22ce18a1cc7f">resize</a>(<span class="keywordtype">double</span> width, <span class="keywordtype">double</span> height);
<a name="l00110"></a>00110     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a89550a9a43e5eebb7053ad56387d10e5">resize_all_items</a>();
<a name="l00111"></a>00111 
<a name="l00112"></a>00112     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a1ab1ecd92047653a758c1b0322d4ccc4">scroll_to_center</a>();
<a name="l00113"></a>00113 
<a name="l00114"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1">00114</a>     <span class="keyword">enum</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1">FlowDirection</a> {
<a name="l00115"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1ac2d244ef156d5dd7df1cb1eafc8a5ca8">00115</a>         HORIZONTAL,
<a name="l00116"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1a81696b43e13610f7f178760722d326d2">00116</a>         <a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1a81696b43e13610f7f178760722d326d2">VERTICAL</a>
<a name="l00117"></a>00117     };
<a name="l00118"></a>00118 
<a name="l00119"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a34a617bf11e26323aea49ce99422dd19">00119</a>     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a34a617bf11e26323aea49ce99422dd19">set_direction</a>(<a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1">FlowDirection</a> d) { _direction = d; }
<a name="l00120"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#afb2bf401066616f85384acfa4ebf51b4">00120</a>     <a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1">FlowDirection</a> <a class="code" href="classFlowCanvas_1_1Canvas.html#afb2bf401066616f85384acfa4ebf51b4">direction</a>()<span class="keyword"> const     </span>{ <span class="keywordflow">return</span> _direction; }
<a name="l00121"></a>00121 
<a name="l00124"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a716ce9815b2be3afb9314b7a14364340">00124</a>     ArtVpathDash* <a class="code" href="classFlowCanvas_1_1Canvas.html#a716ce9815b2be3afb9314b7a14364340" title="Dash applied to selected items.">select_dash</a>() { <span class="keywordflow">return</span> _select_dash; }
<a name="l00125"></a>00125 
<a name="l00127"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a2265d7b989dfe12691aecdc53d5f7938">00127</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a2265d7b989dfe12691aecdc53d5f7938" title="Make a connection.">connect</a>(boost::shared_ptr&lt;Connectable&gt; <span class="comment">/*tail*/</span>,
<a name="l00128"></a>00128                          boost::shared_ptr&lt;Connectable&gt; <span class="comment">/*head*/</span>) {}
<a name="l00129"></a>00129 
<a name="l00131"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a560d18c5919e4d2353a151335c82151a">00131</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a560d18c5919e4d2353a151335c82151a" title="Disconnect two ports.">disconnect</a>(boost::shared_ptr&lt;Connectable&gt; <span class="comment">/*tail*/</span>,
<a name="l00132"></a>00132                             boost::shared_ptr&lt;Connectable&gt; <span class="comment">/*head*/</span>) {}
<a name="l00133"></a>00133 
<a name="l00134"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a4462cf8ed219bd84d8e7043a2d91d677">00134</a>     <span class="keyword">static</span> sigc::signal&lt;void, Gnome::Canvas::Item*&gt; <a class="code" href="classFlowCanvas_1_1Canvas.html#a4462cf8ed219bd84d8e7043a2d91d677">signal_item_entered</a>;
<a name="l00135"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a12ecf160f322298bda3f40b927c54944">00135</a>     <span class="keyword">static</span> sigc::signal&lt;void, Gnome::Canvas::Item*&gt; <a class="code" href="classFlowCanvas_1_1Canvas.html#a12ecf160f322298bda3f40b927c54944">signal_item_left</a>;
<a name="l00136"></a>00136 
<a name="l00137"></a>00137 <span class="keyword">protected</span>:
<a name="l00138"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#ac1f899d52cb5081609fb4f6f40916223">00138</a>     <a class="code" href="namespaceFlowCanvas.html#ab4c39f25b89c40708f2478a262fa4726">ItemList</a>                                   <a class="code" href="classFlowCanvas_1_1Canvas.html#ac1f899d52cb5081609fb4f6f40916223" title="All items on this canvas.">_items</a>;  
<a name="l00139"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a4879659380dc9a174f1fd0ae047d8b73">00139</a>     <a class="code" href="namespaceFlowCanvas.html#a95ded2c688bc4a98564a47ebb93a8c73">ConnectionList</a>                             <a class="code" href="classFlowCanvas_1_1Canvas.html#a4879659380dc9a174f1fd0ae047d8b73" title="All connections on this canvas.">_connections</a>;  
<a name="l00140"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#ad6b14aca9902a4a58d6da522864088be">00140</a>     std::list&lt; boost::shared_ptr&lt;Item&gt; &gt;       <a class="code" href="classFlowCanvas_1_1Canvas.html#ad6b14aca9902a4a58d6da522864088be" title="All currently selected modules.">_selected_items</a>;  
<a name="l00141"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a6f910a0f700b81bd63eb48319c5044ae">00141</a>     std::list&lt; boost::shared_ptr&lt;Connection&gt; &gt; <a class="code" href="classFlowCanvas_1_1Canvas.html#a6f910a0f700b81bd63eb48319c5044ae" title="All currently selected connections.">_selected_connections</a>;  
<a name="l00142"></a>00142 
<a name="l00143"></a>00143     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#ac9a5c9d447ed6dca8e2af47370d9738c">canvas_event</a>(GdkEvent* event);
<a name="l00144"></a>00144     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#adf31ebec99e1979546ddd515615ef0a5">frame_event</a>(GdkEvent* ev);
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 <span class="keyword">private</span>:
<a name="l00147"></a>00147 
<a name="l00148"></a><a class="code" href="classFlowCanvas_1_1Canvas.html#a21f639900c480510650969df9c74d17d">00148</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classFlowCanvas_1_1Module.html" title="A named block (possibly) containing input and output ports.">Module</a>;
<a name="l00149"></a>00149     <span class="keywordtype">bool</span> port_event(GdkEvent* event, boost::weak_ptr&lt;Port&gt; port);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151     GVNodes layout_dot(<span class="keywordtype">bool</span> use_length_hints, <span class="keyword">const</span> std::string&amp; filename);
<a name="l00152"></a>00152 
<a name="l00153"></a>00153     <span class="keywordtype">void</span> <a class="code" href="classFlowCanvas_1_1Canvas.html#a899f3eb2b839759cb63a6bec8d230b51">remove_connection</a>(boost::shared_ptr&lt;Connection&gt; c);
<a name="l00154"></a>00154     <span class="keywordtype">bool</span> are_connected(boost::shared_ptr&lt;const Connectable&gt; tail,
<a name="l00155"></a>00155                        boost::shared_ptr&lt;const Connectable&gt; head);
<a name="l00156"></a>00156 
<a name="l00157"></a>00157     <span class="keywordtype">void</span> select_port(boost::shared_ptr&lt;Port&gt; p, <span class="keywordtype">bool</span> unique = <span class="keyword">false</span>);
<a name="l00158"></a>00158     <span class="keywordtype">void</span> select_port_toggle(boost::shared_ptr&lt;Port&gt; p, <span class="keywordtype">int</span> mod_state);
<a name="l00159"></a>00159     <span class="keywordtype">void</span> unselect_port(boost::shared_ptr&lt;Port&gt; p);
<a name="l00160"></a>00160     <span class="keywordtype">void</span> selection_joined_with(boost::shared_ptr&lt;Port&gt; port);
<a name="l00161"></a>00161     <span class="keywordtype">void</span> join_selection();
<a name="l00162"></a>00162 
<a name="l00163"></a>00163     boost::shared_ptr&lt;Port&gt; get_port_at(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00164"></a>00164 
<a name="l00165"></a>00165     <span class="keywordtype">bool</span>         scroll_drag_handler(GdkEvent* event);
<a name="l00166"></a>00166     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> select_drag_handler(GdkEvent* event);
<a name="l00167"></a>00167     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> connection_drag_handler(GdkEvent* event);
<a name="l00168"></a>00168 
<a name="l00169"></a>00169     <span class="keywordtype">void</span> ports_joined(boost::shared_ptr&lt;Port&gt; port1, boost::shared_ptr&lt;Port&gt; port2);
<a name="l00170"></a>00170     <span class="keywordtype">bool</span> animate_selected();
<a name="l00171"></a>00171 
<a name="l00172"></a>00172     <span class="keywordtype">void</span> move_contents_to_internal(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> min_x, <span class="keywordtype">double</span> min_y);
<a name="l00173"></a>00173 
<a name="l00174"></a>00174     <span class="keywordtype">void</span> on_parent_changed(Gtk::Widget* old_parent);
<a name="l00175"></a>00175     sigc::connection _parent_event_connection;
<a name="l00176"></a>00176 
<a name="l00177"></a>00177     <span class="keyword">typedef</span> std::list&lt; boost::shared_ptr&lt;Port&gt; &gt; SelectedPorts;
<a name="l00178"></a>00178     SelectedPorts _selected_ports; 
<a name="l00179"></a>00179     boost::shared_ptr&lt;Port&gt; _connect_port;  
<a name="l00180"></a>00180     boost::shared_ptr&lt;Port&gt; _last_selected_port;
<a name="l00181"></a>00181 
<a name="l00182"></a>00182     <span class="keywordtype">double</span> _zoom;   
<a name="l00183"></a>00183     <span class="keywordtype">double</span> _width;
<a name="l00184"></a>00184     <span class="keywordtype">double</span> _height;
<a name="l00185"></a>00185 
<a name="l00186"></a>00186     <span class="keyword">enum</span> DragState { NOT_DRAGGING, CONNECTION, SCROLL, SELECT };
<a name="l00187"></a>00187     DragState      _drag_state;
<a name="l00188"></a>00188 
<a name="l00189"></a>00189     <span class="keywordtype">bool</span> _remove_objects; <span class="comment">// flag to avoid removing objects from destructors when unnecessary</span>
<a name="l00190"></a>00190     <span class="keywordtype">bool</span> _locked;
<a name="l00191"></a>00191 
<a name="l00192"></a>00192     <a class="code" href="classFlowCanvas_1_1Canvas.html#aa23cb275264c537348d083a3d43f4ec1">FlowDirection</a> _direction;
<a name="l00193"></a>00193 
<a name="l00194"></a>00194     Gnome::Canvas::Rect  _base_rect;   
<a name="l00195"></a>00195     Gnome::Canvas::Rect* _select_rect; 
<a name="l00196"></a>00196     ArtVpathDash*        _select_dash; 
<a name="l00197"></a>00197 };
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 
<a name="l00200"></a>00200 } <span class="comment">// namespace FlowCanvas</span>
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="preprocessor">#endif // FLOWCANVAS_CANVAS_HPP</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Sep 30 2010 for FlowCanvas by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>