Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > cf48da7d1b8e1f83fb29b038ef4f8fc6 > files > 124

engauge-digitizer-doc-9.8-1.mga6.noarch.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"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Engauge Digitizer: Cmd/CmdStackShadow.cpp Source File</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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Engauge Digitizer
   &#160;<span id="projectnumber">2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_bb72159373bf7ad4d9054b2904342cd3.html">Cmd</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">CmdStackShadow.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released      *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission.     *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> ******************************************************************************************************/</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;CmdAbstract.h&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;CmdFactory.h&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;CmdMediator.h&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;CmdRedoForTest.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;CmdStackShadow.h&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;CmdUndoForTest.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;Document.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;DocumentSerialize.h&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;Logger.h&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;MainWindow.h&quot;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;QUndoCommand&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;QXmlStreamReader&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;Xml.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classCmdStackShadow.html#ac56db4ae6dbb76e8569666418c24cb9c">   21</a></span>&#160;<a class="code" href="classCmdStackShadow.html#ac56db4ae6dbb76e8569666418c24cb9c">CmdStackShadow::CmdStackShadow</a>() :</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  m_mainWindow (0)</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;  LOG4CPP_INFO_S ((*mainCat)) &lt;&lt; <span class="stringliteral">&quot;CmdStackShadow::CmdStackShadow&quot;</span>;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;}</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classCmdStackShadow.html#a255e38a68ad878578add9824a1ef54e6">   27</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classCmdStackShadow.html#a255e38a68ad878578add9824a1ef54e6">CmdStackShadow::canRedo</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  LOG4CPP_INFO_S ((*mainCat)) &lt;&lt; <span class="stringliteral">&quot;CmdStackShadow::canRedo&quot;</span>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classCmdStackShadow.html#a255e38a68ad878578add9824a1ef54e6">canRedo</a> = (m_cmdList.count () &gt; 0);</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classCmdStackShadow.html#a255e38a68ad878578add9824a1ef54e6">canRedo</a>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;}</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classCmdStackShadow.html#a7544f8a4189ef219eecf772df208db2b">   36</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classCmdStackShadow.html#a7544f8a4189ef219eecf772df208db2b">CmdStackShadow::loadCommands</a> (<a class="code" href="classMainWindow.html">MainWindow</a> &amp;mainWindow,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                                   <a class="code" href="classDocument.html">Document</a> &amp;document,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                                   QXmlStreamReader &amp;reader)</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  LOG4CPP_INFO_S ((*mainCat)) &lt;&lt; <span class="stringliteral">&quot;CmdStackShadow::loadCommands&quot;</span>;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="comment">// Save pointer to MainWindow</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  m_mainWindow = &amp;mainWindow;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  <span class="comment">// Signals for hack that allows script to perform redo/undo</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  connect (<span class="keyword">this</span>, SIGNAL (<a class="code" href="classCmdStackShadow.html#a1ab9208cc03d8d68c4339c55d5c50aab">signalRedo</a> ()), mainWindow.<a class="code" href="classMainWindow.html#a06649ff5d55c3b6fe8c20d26bae29937">cmdMediator</a>(), SLOT (redo ()));</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  connect (<span class="keyword">this</span>, SIGNAL (<a class="code" href="classCmdStackShadow.html#a5251f72bf353a9f4d9bb27097f07c59a">signalUndo</a> ()), mainWindow.<a class="code" href="classMainWindow.html#a06649ff5d55c3b6fe8c20d26bae29937">cmdMediator</a>(), SLOT (undo ()));</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="comment">// Load commands</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <a class="code" href="classCmdFactory.html">CmdFactory</a> factory;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keywordflow">while</span> (!reader.atEnd() &amp;&amp; !reader.hasError()) {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">if</span> ((loadNextFromReader (reader) == QXmlStreamReader::StartElement) &amp;&amp;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        (reader.name() == DOCUMENT_SERIALIZE_CMD)) {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      <span class="comment">// Extract and append new command to command stack</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;      m_cmdList.push_back (factory.createCmd (mainWindow,</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                                              document,</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                                              reader));</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    }</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;}</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classCmdStackShadow.html#a4661ca8ade6f29cc9bb6df35a16128aa">   64</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classCmdStackShadow.html#a4661ca8ade6f29cc9bb6df35a16128aa">CmdStackShadow::slotRedo</a> ()</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;{</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  LOG4CPP_INFO_S ((*mainCat)) &lt;&lt; <span class="stringliteral">&quot;CmdStackShadow::slotRedo&quot;</span>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <span class="keywordflow">if</span> (m_cmdList.count() &gt; 0) {</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="comment">// Get the next command from the shadow command stack</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    QUndoCommand *cmd = <span class="keyword">dynamic_cast&lt;</span>QUndoCommand*<span class="keyword">&gt;</span> (m_cmdList.front());</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="comment">// Remove this command from the shadow command stack</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    m_cmdList.pop_front();</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordflow">if</span> (m_mainWindow != 0) {</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;      <a class="code" href="classCmdRedoForTest.html">CmdRedoForTest</a> *cmdRedoForTest = <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classCmdRedoForTest.html">CmdRedoForTest</a>*<span class="keyword">&gt;</span> (cmd);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;      <a class="code" href="classCmdUndoForTest.html">CmdUndoForTest</a> *cmdUndoForTest = <span class="keyword">dynamic_cast&lt;</span><a class="code" href="classCmdUndoForTest.html">CmdUndoForTest</a>*<span class="keyword">&gt;</span> (cmd);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;      <span class="keywordflow">if</span> (cmdRedoForTest != 0) {</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="comment">// Redo command is a special case. Redo of this command is equivalent to redo of the last command on the command stack</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="comment">// (which will never be CmdRedoForTest or CmdUndoForTest since they are never passed onto that command stack)</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        emit (<a class="code" href="classCmdStackShadow.html#a1ab9208cc03d8d68c4339c55d5c50aab">signalRedo</a> ());</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;      } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cmdUndoForTest != 0) {</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="comment">// Undo command is a special case. Redo of this command is equivalent to undo of the last command on the command stack</span></div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="comment">// (which will never be CmdRedoForTest or CmdUndoForTest since they are never passed onto that command stack)</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        emit (<a class="code" href="classCmdStackShadow.html#a5251f72bf353a9f4d9bb27097f07c59a">signalUndo</a> ());</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;      } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="comment">// Normal command is simply pushed onto the primary command stack</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        m_mainWindow-&gt;<a class="code" href="classMainWindow.html#a06649ff5d55c3b6fe8c20d26bae29937">cmdMediator</a>()-&gt;push(cmd);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;      }</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    }</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;}</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classCmdStackShadow.html#ab4cfdc37f52f8786cf75900a5f43a1ca">  103</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classCmdStackShadow.html#ab4cfdc37f52f8786cf75900a5f43a1ca">CmdStackShadow::slotUndo</a>()</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;{</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  LOG4CPP_INFO_S ((*mainCat)) &lt;&lt; <span class="stringliteral">&quot;CmdStackShadow::slotUndo&quot;</span>;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  CmdListInternal::iterator itr;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <span class="keywordflow">for</span> (itr = m_cmdList.begin(); itr != m_cmdList.end(); itr++) {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <a class="code" href="classCmdAbstract.html">CmdAbstract</a> *cmd = *itr;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keyword">delete</span> cmd;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  }</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  m_cmdList.clear();</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;}</div><div class="ttc" id="classCmdStackShadow_html_a255e38a68ad878578add9824a1ef54e6"><div class="ttname"><a href="classCmdStackShadow.html#a255e38a68ad878578add9824a1ef54e6">CmdStackShadow::canRedo</a></div><div class="ttdeci">bool canRedo() const</div><div class="ttdoc">Return true if there is a command available. </div><div class="ttdef"><b>Definition:</b> <a href="CmdStackShadow_8cpp_source.html#l00027">CmdStackShadow.cpp:27</a></div></div>
<div class="ttc" id="classCmdFactory_html"><div class="ttname"><a href="classCmdFactory.html">CmdFactory</a></div><div class="ttdoc">Factory for CmdAbstractBase objects. </div><div class="ttdef"><b>Definition:</b> <a href="CmdFactory_8h_source.html#l00016">CmdFactory.h:16</a></div></div>
<div class="ttc" id="classCmdStackShadow_html_a1ab9208cc03d8d68c4339c55d5c50aab"><div class="ttname"><a href="classCmdStackShadow.html#a1ab9208cc03d8d68c4339c55d5c50aab">CmdStackShadow::signalRedo</a></div><div class="ttdeci">void signalRedo()</div><div class="ttdoc">Signal used to emulate a shift-control-z redo command from user during testing. </div></div>
<div class="ttc" id="classCmdAbstract_html"><div class="ttname"><a href="classCmdAbstract.html">CmdAbstract</a></div><div class="ttdoc">Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand. </div><div class="ttdef"><b>Definition:</b> <a href="CmdAbstract_8h_source.html#l00019">CmdAbstract.h:19</a></div></div>
<div class="ttc" id="classCmdUndoForTest_html"><div class="ttname"><a href="classCmdUndoForTest.html">CmdUndoForTest</a></div><div class="ttdoc">Command for performing Undo during testing. </div><div class="ttdef"><b>Definition:</b> <a href="CmdUndoForTest_8h_source.html#l00020">CmdUndoForTest.h:20</a></div></div>
<div class="ttc" id="classCmdRedoForTest_html"><div class="ttname"><a href="classCmdRedoForTest.html">CmdRedoForTest</a></div><div class="ttdoc">Command for performing Redo during testing. </div><div class="ttdef"><b>Definition:</b> <a href="CmdRedoForTest_8h_source.html#l00020">CmdRedoForTest.h:20</a></div></div>
<div class="ttc" id="classCmdStackShadow_html_a4661ca8ade6f29cc9bb6df35a16128aa"><div class="ttname"><a href="classCmdStackShadow.html#a4661ca8ade6f29cc9bb6df35a16128aa">CmdStackShadow::slotRedo</a></div><div class="ttdeci">void slotRedo()</div><div class="ttdoc">Move next command from list to CmdMediator. Noop if there are no more commands. </div><div class="ttdef"><b>Definition:</b> <a href="CmdStackShadow_8cpp_source.html#l00064">CmdStackShadow.cpp:64</a></div></div>
<div class="ttc" id="classMainWindow_html_a06649ff5d55c3b6fe8c20d26bae29937"><div class="ttname"><a href="classMainWindow.html#a06649ff5d55c3b6fe8c20d26bae29937">MainWindow::cmdMediator</a></div><div class="ttdeci">CmdMediator * cmdMediator()</div><div class="ttdoc">Accessor for commands to process the Document. </div><div class="ttdef"><b>Definition:</b> <a href="MainWindow_8cpp_source.html#l00320">MainWindow.cpp:320</a></div></div>
<div class="ttc" id="classCmdStackShadow_html_ac56db4ae6dbb76e8569666418c24cb9c"><div class="ttname"><a href="classCmdStackShadow.html#ac56db4ae6dbb76e8569666418c24cb9c">CmdStackShadow::CmdStackShadow</a></div><div class="ttdeci">CmdStackShadow()</div><div class="ttdoc">Single constructor. </div><div class="ttdef"><b>Definition:</b> <a href="CmdStackShadow_8cpp_source.html#l00021">CmdStackShadow.cpp:21</a></div></div>
<div class="ttc" id="classCmdStackShadow_html_ab4cfdc37f52f8786cf75900a5f43a1ca"><div class="ttname"><a href="classCmdStackShadow.html#ab4cfdc37f52f8786cf75900a5f43a1ca">CmdStackShadow::slotUndo</a></div><div class="ttdeci">void slotUndo()</div><div class="ttdoc">Throw away every command since trying to reconcile two different command stacks after an undo is too ...</div><div class="ttdef"><b>Definition:</b> <a href="CmdStackShadow_8cpp_source.html#l00103">CmdStackShadow.cpp:103</a></div></div>
<div class="ttc" id="classDocument_html"><div class="ttname"><a href="classDocument.html">Document</a></div><div class="ttdoc">Storage of one imported image and the data attached to that image. </div><div class="ttdef"><b>Definition:</b> <a href="Document_8h_source.html#l00041">Document.h:41</a></div></div>
<div class="ttc" id="classCmdStackShadow_html_a5251f72bf353a9f4d9bb27097f07c59a"><div class="ttname"><a href="classCmdStackShadow.html#a5251f72bf353a9f4d9bb27097f07c59a">CmdStackShadow::signalUndo</a></div><div class="ttdeci">void signalUndo()</div><div class="ttdoc">Signal used to emulate a shift-z undo command from user during testing. </div></div>
<div class="ttc" id="classCmdStackShadow_html_a7544f8a4189ef219eecf772df208db2b"><div class="ttname"><a href="classCmdStackShadow.html#a7544f8a4189ef219eecf772df208db2b">CmdStackShadow::loadCommands</a></div><div class="ttdeci">void loadCommands(MainWindow &amp;mainWindow, Document &amp;document, QXmlStreamReader &amp;reader)</div><div class="ttdoc">Load commands from serialized xml. </div><div class="ttdef"><b>Definition:</b> <a href="CmdStackShadow_8cpp_source.html#l00036">CmdStackShadow.cpp:36</a></div></div>
<div class="ttc" id="classMainWindow_html"><div class="ttname"><a href="classMainWindow.html">MainWindow</a></div><div class="ttdoc">Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...</div><div class="ttdef"><b>Definition:</b> <a href="MainWindow_8h_source.html#l00086">MainWindow.h:86</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Dec 25 2016 20:54:08 for Engauge Digitizer by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>