<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6">
  <compounddef id="View_8h" kind="file">
    <compoundname>View.h</compoundname>
    <includes refid="ViewBase_8h" local="yes">ViewBase.h</includes>
    <includes refid="Document_8h" local="yes">../Document/Document.h</includes>
    <includes local="no">sigc++/sigc++.h</includes>
    <includedby refid="bakery_8h" local="no">bakery.h</includedby>
    <includedby refid="Document_8h" local="yes">Document.h</includedby>
    <includedby refid="View__Composite_8h" local="yes">View_Composite.h</includedby>
    <incdepgraph>
      <node id="273">
        <label>../Document/Document.h</label>
        <link refid="Document_8h"/>
        <childnode refid="270" relation="include">
        </childnode>
        <childnode refid="274" relation="include">
        </childnode>
        <childnode refid="275" relation="include">
        </childnode>
      </node>
      <node id="271">
        <label>ViewBase.h</label>
        <link refid="ViewBase_8h"/>
        <childnode refid="272" relation="include">
        </childnode>
      </node>
      <node id="276">
        <label>sigc++/sigc++.h</label>
      </node>
      <node id="275">
        <label>iostream</label>
      </node>
      <node id="272">
        <label>sigc++/trackable.h</label>
      </node>
      <node id="270">
        <label>View.h</label>
        <link refid="View.h"/>
        <childnode refid="271" relation="include">
        </childnode>
        <childnode refid="273" relation="include">
        </childnode>
        <childnode refid="276" relation="include">
        </childnode>
      </node>
      <node id="274">
        <label>glibmm.h</label>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="282">
        <label>GtkDialogs.h</label>
        <link refid="GtkDialogs_8h"/>
      </node>
      <node id="280">
        <label>App_WithDoc.h</label>
        <link refid="App__WithDoc_8h"/>
        <childnode refid="281" relation="include">
        </childnode>
        <childnode refid="282" relation="include">
        </childnode>
        <childnode refid="278" relation="include">
        </childnode>
      </node>
      <node id="279">
        <label>Document.h</label>
        <link refid="Document_8h"/>
        <childnode refid="280" relation="include">
        </childnode>
        <childnode refid="281" relation="include">
        </childnode>
        <childnode refid="283" relation="include">
        </childnode>
        <childnode refid="277" relation="include">
        </childnode>
      </node>
      <node id="283">
        <label>Document_XML.h</label>
        <link refid="Document__XML_8h"/>
        <childnode refid="278" relation="include">
        </childnode>
      </node>
      <node id="284">
        <label>View_Composite.h</label>
        <link refid="View__Composite_8h"/>
        <childnode refid="278" relation="include">
        </childnode>
      </node>
      <node id="278">
        <label>bakery.h</label>
        <link refid="bakery_8h"/>
      </node>
      <node id="281">
        <label>App_WithDoc_Gtk.h</label>
        <link refid="App__WithDoc__Gtk_8h"/>
        <childnode refid="278" relation="include">
        </childnode>
      </node>
      <node id="277">
        <label>View.h</label>
        <link refid="View.h"/>
        <childnode refid="278" relation="include">
        </childnode>
        <childnode refid="279" relation="include">
        </childnode>
        <childnode refid="284" relation="include">
        </childnode>
      </node>
    </invincdepgraph>
    <innerclass refid="classBakery_1_1View" prot="public">Bakery::View</innerclass>
    <innernamespace refid="namespaceBakery">Bakery</innernamespace>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>2000<sp/>Murray<sp/>Cumming</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/>This<sp/>library<sp/>is<sp/>free<sp/>software;<sp/>you<sp/>can<sp/>redistribute<sp/>it<sp/>and/or</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>modify<sp/>it<sp/>under<sp/>the<sp/>terms<sp/>of<sp/>the<sp/>GNU<sp/>Library<sp/>General<sp/>Public</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/>License<sp/>as<sp/>published<sp/>by<sp/>the<sp/>Free<sp/>Software<sp/>Foundation;<sp/>either</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>version<sp/>2<sp/>of<sp/>the<sp/>License,<sp/>or<sp/>(at<sp/>your<sp/>option)<sp/>any<sp/>later<sp/>version.</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/>This<sp/>library<sp/>is<sp/>distributed<sp/>in<sp/>the<sp/>hope<sp/>that<sp/>it<sp/>will<sp/>be<sp/>useful,</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/>but<sp/>WITHOUT<sp/>ANY<sp/>WARRANTY;<sp/>without<sp/>even<sp/>the<sp/>implied<sp/>warranty<sp/>of</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/>MERCHANTABILITY<sp/>or<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE.<sp/><sp/>See<sp/>the<sp/>GNU</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/>Library<sp/>General<sp/>Public<sp/>License<sp/>for<sp/>more<sp/>details.</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/>You<sp/>should<sp/>have<sp/>received<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>GNU<sp/>Library<sp/>General<sp/>Public</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/>License<sp/>along<sp/>with<sp/>this<sp/>library;<sp/>if<sp/>not,<sp/>write<sp/>to<sp/>the<sp/>Free</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/>Software<sp/>Foundation,<sp/>Inc.,<sp/>675<sp/>Mass<sp/>Ave,<sp/>Cambridge,<sp/>MA<sp/>02139,<sp/>USA.</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="18"><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>BAKERY_VIEW_H</highlight></codeline>
<codeline lineno="20"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>BAKERY_VIEW_H</highlight></codeline>
<codeline lineno="21"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="ViewBase_8h" kindref="compound">ViewBase.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="23"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;../Document/Document.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;sigc++/sigc++.h&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="25"><highlight class="normal"></highlight></codeline>
<codeline lineno="26"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Bakery</highlight></codeline>
<codeline lineno="27"><highlight class="normal">{</highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="keyword">template</highlight><highlight class="normal">&lt;<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T_Document<sp/>&gt;</highlight></codeline>
<codeline lineno="33" refid="classBakery_1_1View" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classBakery_1_1View" kindref="compound" tooltip="This is a base class which should be multiple-inherited with gtkmm widgets.">View</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1ViewBase" kindref="compound" tooltip="This is a base class for View.">ViewBase</ref></highlight></codeline>
<codeline lineno="34"><highlight class="normal">{</highlight></codeline>
<codeline lineno="35"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:<sp/></highlight></codeline>
<codeline lineno="36" refid="classBakery_1_1View_1e81d22e250e9ec3c602496968f6f9851" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classBakery_1_1View_1e81d22e250e9ec3c602496968f6f9851" kindref="member">View</ref>()</highlight></codeline>
<codeline lineno="37"><highlight class="normal"><sp/><sp/>:<sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>(0)</highlight></codeline>
<codeline lineno="38"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="39"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight></codeline>
<codeline lineno="41" refid="classBakery_1_1View_13961c0cfa09090f7de9d1cda367bc05f" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1View_13961c0cfa09090f7de9d1cda367bc05f" kindref="member">~View</ref>()</highlight></codeline>
<codeline lineno="42"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="44"><highlight class="normal"></highlight></codeline>
<codeline lineno="45" refid="classBakery_1_1View_15856203b1978eb7bb9ad0de2d64732be" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1View" kindref="compound" tooltip="This is a base class which should be multiple-inherited with gtkmm widgets.">View&lt;T_Document&gt;</ref><sp/><ref refid="classBakery_1_1View" kindref="compound" tooltip="This is a base class which should be multiple-inherited with gtkmm widgets.">type_self</ref>;</highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
<codeline lineno="47"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//typedef<sp/>typename<sp/>T_Document<sp/>type_document;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight></codeline>
<codeline lineno="49" refid="classBakery_1_1View_1a1394819e838be9275ada68024dd0119" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>T_Document*<sp/><ref refid="classBakery_1_1View_1a1394819e838be9275ada68024dd0119" kindref="member">get_document</ref>()</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>;</highlight></codeline>
<codeline lineno="52"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="53"><highlight class="normal"></highlight></codeline>
<codeline lineno="54" refid="classBakery_1_1View_196eee566c2784abb9af27b43a280191c" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T_Document*<sp/><ref refid="classBakery_1_1View_1a1394819e838be9275ada68024dd0119" kindref="member">get_document</ref>()</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
<codeline lineno="55"><highlight class="keyword"><sp/><sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>;</highlight></codeline>
<codeline lineno="57"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="58"><highlight class="normal"></highlight></codeline>
<codeline lineno="59" refid="classBakery_1_1View_106b90bcc2706443457d96c0dafcdad47" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1View_106b90bcc2706443457d96c0dafcdad47" kindref="member">set_document</ref>(T_Document*<sp/>pDocument)</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref><sp/>=<sp/>pDocument;</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>)</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>-&gt;signal_forget().connect(<sp/>sigc::mem_fun(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,<sp/>&amp;<ref refid="classBakery_1_1View_12e22637840b8dd7aa80f2c44c21a1d4d" kindref="member">type_self::on_document_forget</ref>)<sp/>);</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="65"><highlight class="normal"></highlight></codeline>
<codeline lineno="67" refid="classBakery_1_1View_144fa1f9438b08b51969d51268fb28317" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1View_144fa1f9438b08b51969d51268fb28317" kindref="member" tooltip="Just a convenience, instead of get_docuement()-&amp;gt;set_modified().">set_modified</ref>(</highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>val<sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">)</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(<ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>)</highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>-&gt;set_modified(val);</highlight></codeline>
<codeline lineno="71"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
<codeline lineno="73"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="74"><highlight class="normal"></highlight></codeline>
<codeline lineno="75" refid="classBakery_1_1View_12e22637840b8dd7aa80f2c44c21a1d4d" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classBakery_1_1View_12e22637840b8dd7aa80f2c44c21a1d4d" kindref="member">on_document_forget</ref>()</highlight></codeline>
<codeline lineno="76"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//This<sp/>should<sp/>prevent<sp/>some<sp/>segfaults:</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref><sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="79"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="81" refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" refkind="member"><highlight class="normal"><sp/><sp/>T_Document*<sp/><ref refid="classBakery_1_1View_190094a6dd9c95dad28cdc707e169334f" kindref="member">m_pDocument</ref>;</highlight></codeline>
<codeline lineno="82"><highlight class="normal">};</highlight></codeline>
<codeline lineno="83"><highlight class="normal"></highlight></codeline>
<codeline lineno="84"><highlight class="normal">}<sp/></highlight><highlight class="comment">//namespace</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
<codeline lineno="86"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/>//BAKERY_VIEW_H</highlight></codeline>
<codeline lineno="87"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/home/murrayc/svn/gnome220/bakery/bakery/View/View.h"/>
  </compounddef>
</doxygen>
