-
Notifications
You must be signed in to change notification settings - Fork 0
/
Commands_8cpp_source.html
274 lines (274 loc) · 54.8 KB
/
Commands_8cpp_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!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.8"/>
<title>MapMap: Commands.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="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">MapMap
 <span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Commands.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="Commands_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "<a class="code" href="Commands_8h.html">Commands.h</a>"</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="classAddShapesCommand.html#a5e9de315926a8e16e5c7296fb2df08be"> 4</a></span> <a class="code" href="classAddShapesCommand.html#a5e9de315926a8e16e5c7296fb2df08be">AddShapesCommand::AddShapesCommand</a>(<a class="code" href="classMainWindow.html">MainWindow</a> *mainWindow, <a class="code" href="UidAllocator_8h.html#ac83b9ada9e7333675745ef795a057883">uid</a> mappingId, <a class="code" href="classQUndoCommand.html">QUndoCommand</a> *parent):</div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  <a class="code" href="classQUndoCommand.html">QUndoCommand</a>(parent)</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> {</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  setText(QObject::tr(<span class="stringliteral">"Add mapping"</span>));</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  <a class="code" href="classAddShapesCommand.html#ae41dfdf34ca1f16dc940d3caf89cf11b">m_mainWindow</a> = mainWindow;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  <a class="code" href="classAddShapesCommand.html#aeda905b60411fc31a89d3cc48bdc06b2">m_mappingId</a> = mappingId;</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> }</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classAddShapesCommand.html#acee7ba76607b5c87eed865844966a839"> 12</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddShapesCommand.html#acee7ba76607b5c87eed865844966a839">AddShapesCommand::undo</a>()</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> {</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="classAddShapesCommand.html#a432259644660849e90f6d8bf81f13b07">m_mappingPtr</a> = <a class="code" href="classAddShapesCommand.html#ae41dfdf34ca1f16dc940d3caf89cf11b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#a0eb87b81740e8b4751899bd553cd5701">getMappingManager</a>().<a class="code" href="classMappingManager.html#a5f725de7227d100962da39ad646e9a03">getMappingById</a>(<a class="code" href="classAddShapesCommand.html#aeda905b60411fc31a89d3cc48bdc06b2">m_mappingId</a>);</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <a class="code" href="classAddShapesCommand.html#ae41dfdf34ca1f16dc940d3caf89cf11b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#adee7602073d020ba78b95421d2255668">deleteMapping</a>(<a class="code" href="classAddShapesCommand.html#aeda905b60411fc31a89d3cc48bdc06b2">m_mappingId</a>);</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> }</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classAddShapesCommand.html#a8521096ef210cc17c124f0ccb899a524"> 18</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddShapesCommand.html#a8521096ef210cc17c124f0ccb899a524">AddShapesCommand::redo</a>()</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">if</span>(<a class="code" href="classAddShapesCommand.html#a432259644660849e90f6d8bf81f13b07">m_mappingPtr</a> != NULL)</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  uint currentId = <a class="code" href="classAddShapesCommand.html#ae41dfdf34ca1f16dc940d3caf89cf11b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#a0eb87b81740e8b4751899bd553cd5701">getMappingManager</a>().<a class="code" href="classMappingManager.html#a8520f36639420ee5ea6df9ae80dc0e33">addMapping</a>(<a class="code" href="classAddShapesCommand.html#a432259644660849e90f6d8bf81f13b07">m_mappingPtr</a>);</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="classAddShapesCommand.html#ae41dfdf34ca1f16dc940d3caf89cf11b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#a91afdf837defb9031caa1517c8cb5c69">addMappingItem</a>(currentId);</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  }</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> }</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classTransformShapeCommand.html#a38361c52c867d2abcbd47d1309bcef37"> 28</a></span> <a class="code" href="classTransformShapeCommand.html#a38361c52c867d2abcbd47d1309bcef37">TransformShapeCommand::TransformShapeCommand</a>(<a class="code" href="classMapperGLCanvas.html">MapperGLCanvas</a>* canvas, <a class="code" href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dcc">TransformShapeOption</a> option, <a class="code" href="classQUndoCommand.html">QUndoCommand</a>* parent)</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  : <a class="code" href="classQUndoCommand.html">QUndoCommand</a>(parent),</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  _canvas(canvas), _option(option) {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="comment">// Copy shape.</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classTransformShapeCommand.html#a3c0864b206cb66903391686870441cfd">_shape</a> = canvas-><a class="code" href="classMapperGLCanvas.html#a94e50bea25cadd6de25091cfed85cbee">getCurrentShape</a>();</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a> = option;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="comment">// Clone shape before applying transform.</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classTransformShapeCommand.html#adb880f2ee5914de57a6a1949c85775e7">_originalShape</a>.reset(<a class="code" href="classTransformShapeCommand.html#a3c0864b206cb66903391686870441cfd">_shape</a>.toStrongRef()->clone());</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> }</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classTransformShapeCommand.html#adefad09c09e0ab150439fed8c45262db"> 39</a></span> <span class="keywordtype">void</span> <a class="code" href="classTransformShapeCommand.html#adefad09c09e0ab150439fed8c45262db">TransformShapeCommand::undo</a>() {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">// Copy back shape.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="classTransformShapeCommand.html#a3c0864b206cb66903391686870441cfd">_shape</a>.toStrongRef()->copyFrom(*<a class="code" href="classTransformShapeCommand.html#adb880f2ee5914de57a6a1949c85775e7">_originalShape</a>);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// Update everything.</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classTransformShapeCommand.html#a5a54859a241c5b67a2ed4a04e437557a">_canvas</a>-><a class="code" href="classMapperGLCanvas.html#a14dfb3ee24fa439b460c663dec088cda">currentShapeWasChanged</a>();</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classTransformShapeCommand.html#a5a54859a241c5b67a2ed4a04e437557a">_canvas</a>->update();</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classTransformShapeCommand.html#a160b6c68b1b4a0d89e5492444ae60820"> 48</a></span> <span class="keywordtype">void</span> <a class="code" href="classTransformShapeCommand.html#a160b6c68b1b4a0d89e5492444ae60820">TransformShapeCommand::redo</a>() {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">// Call transformation.</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="classTransformShapeCommand.html#ab8c89495a7cc8008a3570d91927b2b76">_doTransform</a>(<a class="code" href="classTransformShapeCommand.html#a3c0864b206cb66903391686870441cfd">_shape</a>);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="comment">// Update everything.</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classTransformShapeCommand.html#a5a54859a241c5b67a2ed4a04e437557a">_canvas</a>-><a class="code" href="classMapperGLCanvas.html#a14dfb3ee24fa439b460c663dec088cda">currentShapeWasChanged</a>();</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classTransformShapeCommand.html#a5a54859a241c5b67a2ed4a04e437557a">_canvas</a>->update();</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> }</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classTransformShapeCommand.html#a82a79f1952b20ceb7207af9139efd1b2"> 57</a></span> <span class="keywordtype">bool</span> <a class="code" href="classTransformShapeCommand.html#a82a79f1952b20ceb7207af9139efd1b2">TransformShapeCommand::mergeWith</a>(<span class="keyword">const</span> <a class="code" href="classQUndoCommand.html">QUndoCommand</a>* other) {</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">// Make sure other is of the same type (id).</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">if</span> (other->id() != id())</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">const</span> <a class="code" href="classTransformShapeCommand.html">TransformShapeCommand</a>* cmd = <span class="keyword">static_cast<</span><span class="keyword">const </span><a class="code" href="classTransformShapeCommand.html">TransformShapeCommand</a>*<span class="keyword">></span>(other);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// Don't merge a new transform with a dropped tranform move (ie. each drag'n'drop is considered</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// as a single separate command).</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">if</span> (<a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a> == <a class="code" href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dccaef667f7efdfd9d0e41f516995adfea87">RELEASE</a> && cmd-><a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a> == <a class="code" href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dcca4f8b9a81c2d4289f26ccfa99a47de618">FREE</a>)</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// Don't merge transforms</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">if</span> (cmd-><a class="code" href="classTransformShapeCommand.html#a5a54859a241c5b67a2ed4a04e437557a">_canvas</a> != <a class="code" href="classTransformShapeCommand.html#a5a54859a241c5b67a2ed4a04e437557a">_canvas</a> ||</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  cmd-><a class="code" href="classTransformShapeCommand.html#a3c0864b206cb66903391686870441cfd">_shape</a> != <a class="code" href="classTransformShapeCommand.html#a3c0864b206cb66903391686870441cfd">_shape</a>)</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classMoveVertexCommand.html#aa87476a6ff326e7149c5cf41cfed385f"> 77</a></span> <a class="code" href="classMoveVertexCommand.html#aa87476a6ff326e7149c5cf41cfed385f">MoveVertexCommand::MoveVertexCommand</a>(<a class="code" href="classMapperGLCanvas.html">MapperGLCanvas</a>* canvas, <a class="code" href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dcc">TransformShapeOption</a> option, <span class="keywordtype">int</span> activeVertex, <span class="keyword">const</span> QPointF &point, <a class="code" href="classQUndoCommand.html">QUndoCommand</a> *parent)</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  : <a class="code" href="classTransformShapeCommand.html">TransformShapeCommand</a>(canvas, option, parent),</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  _movedVertex(activeVertex),</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  _vertexPosition(point)</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  setText(QObject::tr(<span class="stringliteral">"Move vertex"</span>));</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classMoveVertexCommand.html#a4a48b70f363531e5a248c7800413b3af"> 85</a></span> <span class="keywordtype">int</span> <a class="code" href="classMoveVertexCommand.html#a4a48b70f363531e5a248c7800413b3af">MoveVertexCommand::id</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a> == <a class="code" href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dccad91774baa7f734488e4ae1d03d625297">STEP</a> ? <a class="code" href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aa1cf703848a1674affb60c2a05ac6fa2f">CMD_KEY_MOVE_VERTEX</a> : <a class="code" href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aa4699a7d650d626485846d33d2748473f">CMD_MOUSE_MOVE_VERTEX</a>); }</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classMoveVertexCommand.html#a419ad892aebc3caf6889a11f76c3ecb4"> 87</a></span> <span class="keywordtype">void</span> <a class="code" href="classMoveVertexCommand.html#a419ad892aebc3caf6889a11f76c3ecb4">MoveVertexCommand::_doTransform</a>(<a class="code" href="classMShape.html#abaea0495adea6f577e352d8d90fe161e">MShape::ptr</a> shape)</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  shape->setVertex(<a class="code" href="classMoveVertexCommand.html#aa6eb2e94f1101cfb4a0ab954beebf1be">_movedVertex</a>, <a class="code" href="classMoveVertexCommand.html#ac4f366e1e0706dfb53ec065732e256c8">_vertexPosition</a>);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> }</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classMoveVertexCommand.html#ad0ae3a89865911dd555e58188717e647"> 92</a></span> <span class="keywordtype">bool</span> <a class="code" href="classMoveVertexCommand.html#ad0ae3a89865911dd555e58188717e647">MoveVertexCommand::mergeWith</a>(<span class="keyword">const</span> <a class="code" href="classQUndoCommand.html">QUndoCommand</a>* other)</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> {</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">if</span> (!<a class="code" href="classTransformShapeCommand.html#a82a79f1952b20ceb7207af9139efd1b2">TransformShapeCommand::mergeWith</a>(other))</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">const</span> <a class="code" href="classMoveVertexCommand.html">MoveVertexCommand</a>* cmd = <span class="keyword">static_cast<</span><span class="keyword">const </span><a class="code" href="classMoveVertexCommand.html">MoveVertexCommand</a>*<span class="keyword">></span>(other);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// Needs to be the same vertex.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">if</span> (cmd-><a class="code" href="classMoveVertexCommand.html#aa6eb2e94f1101cfb4a0ab954beebf1be">_movedVertex</a> != <a class="code" href="classMoveVertexCommand.html#aa6eb2e94f1101cfb4a0ab954beebf1be">_movedVertex</a>)</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classMoveVertexCommand.html#ac4f366e1e0706dfb53ec065732e256c8">_vertexPosition</a> = cmd-><a class="code" href="classMoveVertexCommand.html#ac4f366e1e0706dfb53ec065732e256c8">_vertexPosition</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a> = cmd-><a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> }</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classTranslateShapeCommand.html#a4152acd9d24de8a7df44472fb9f77619"> 109</a></span> <a class="code" href="classTranslateShapeCommand.html#a4152acd9d24de8a7df44472fb9f77619">TranslateShapeCommand::TranslateShapeCommand</a>(<a class="code" href="classMapperGLCanvas.html">MapperGLCanvas</a> *canvas, <a class="code" href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dcc">TransformShapeOption</a> option, <span class="keyword">const</span> QPointF &translation, <a class="code" href="classQUndoCommand.html">QUndoCommand</a> *parent)</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  : <a class="code" href="classTransformShapeCommand.html">TransformShapeCommand</a>(canvas, option, parent),</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  _translation(translation)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  setText(QObject::tr(<span class="stringliteral">"Move shape"</span>));</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classTranslateShapeCommand.html#ac3986303c37f62e6fa6a36283a48347a"> 116</a></span> <span class="keywordtype">int</span> <a class="code" href="classTranslateShapeCommand.html#ac3986303c37f62e6fa6a36283a48347a">TranslateShapeCommand::id</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a> == <a class="code" href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dccad91774baa7f734488e4ae1d03d625297">STEP</a> ? <a class="code" href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aaf3d1a6f12d614a1c66cc67040efde106">CMD_KEY_TRANSLATE_SHAPE</a> : <a class="code" href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aada9e0b21adec2cba1de4d783f4703c3b">CMD_MOUSE_TRANSLATE_SHAPE</a>); }</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classTranslateShapeCommand.html#ae24ea59895ee9b3f4e71e4f3fbd95d26"> 118</a></span> <span class="keywordtype">bool</span> <a class="code" href="classTranslateShapeCommand.html#ae24ea59895ee9b3f4e71e4f3fbd95d26">TranslateShapeCommand::mergeWith</a>(<span class="keyword">const</span> <a class="code" href="classQUndoCommand.html">QUndoCommand</a>* other)</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> {</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">if</span> (!<a class="code" href="classTransformShapeCommand.html#a82a79f1952b20ceb7207af9139efd1b2">TransformShapeCommand::mergeWith</a>(other))</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">const</span> <a class="code" href="classTranslateShapeCommand.html">TranslateShapeCommand</a>* cmd = <span class="keyword">static_cast<</span><span class="keyword">const </span><a class="code" href="classTranslateShapeCommand.html">TranslateShapeCommand</a>*<span class="keyword">></span>(other);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="comment">// Update translation.</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classTranslateShapeCommand.html#a0299cb061df117f82f85fffb23444714">_translation</a> += cmd-><a class="code" href="classTranslateShapeCommand.html#a0299cb061df117f82f85fffb23444714">_translation</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a> = cmd-><a class="code" href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">_option</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classTranslateShapeCommand.html#afb01c5885370b1b63780abcbaa503c15"> 131</a></span> <span class="keywordtype">void</span> <a class="code" href="classTranslateShapeCommand.html#afb01c5885370b1b63780abcbaa503c15">TranslateShapeCommand::_doTransform</a>(<a class="code" href="classMShape.html#abaea0495adea6f577e352d8d90fe161e">MShape::ptr</a> shape)</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> {</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// Apply translation.</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  shape->translate(<a class="code" href="classTranslateShapeCommand.html#a0299cb061df117f82f85fffb23444714">_translation</a>);</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classDeleteMappingCommand.html#a0c544e2eccccecdfd6925e88739a7465"> 138</a></span> <a class="code" href="classDeleteMappingCommand.html#a0c544e2eccccecdfd6925e88739a7465">DeleteMappingCommand::DeleteMappingCommand</a>(<a class="code" href="classMainWindow.html">MainWindow</a> *mainWindow, <a class="code" href="UidAllocator_8h.html#ac83b9ada9e7333675745ef795a057883">uid</a> mappingId, <a class="code" href="classQUndoCommand.html">QUndoCommand</a> *parent) :</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classQUndoCommand.html">QUndoCommand</a>(parent)</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> {</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  setText(QObject::tr(<span class="stringliteral">"Delete mapping"</span>));</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="classDeleteMappingCommand.html#a7f50068565bf513bce736508aefff31b">m_mainWindow</a> = mainWindow;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="classDeleteMappingCommand.html#ab11379f98f9dbc41566938e580d0bdf0">m_mappingId</a> = mappingId;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> }</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classDeleteMappingCommand.html#ad5b8989668fdee7466d4e9483c11c34b"> 146</a></span> <span class="keywordtype">void</span> <a class="code" href="classDeleteMappingCommand.html#ad5b8989668fdee7466d4e9483c11c34b">DeleteMappingCommand::undo</a>()</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span>(<a class="code" href="classDeleteMappingCommand.html#a5218bf1c97515d4ebba9cb376a49fb66">m_mappingPtr</a> != NULL)</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  uint currentId = <a class="code" href="classDeleteMappingCommand.html#a7f50068565bf513bce736508aefff31b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#a0eb87b81740e8b4751899bd553cd5701">getMappingManager</a>().<a class="code" href="classMappingManager.html#a8520f36639420ee5ea6df9ae80dc0e33">addMapping</a>(<a class="code" href="classDeleteMappingCommand.html#a5218bf1c97515d4ebba9cb376a49fb66">m_mappingPtr</a>);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="classDeleteMappingCommand.html#a7f50068565bf513bce736508aefff31b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#a91afdf837defb9031caa1517c8cb5c69">addMappingItem</a>(currentId);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> }</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classDeleteMappingCommand.html#a936ed4ffa3da5f80644fb768a9b1ef9a"> 155</a></span> <span class="keywordtype">void</span> <a class="code" href="classDeleteMappingCommand.html#a936ed4ffa3da5f80644fb768a9b1ef9a">DeleteMappingCommand::redo</a>()</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> {</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="classDeleteMappingCommand.html#a5218bf1c97515d4ebba9cb376a49fb66">m_mappingPtr</a> = <a class="code" href="classDeleteMappingCommand.html#a7f50068565bf513bce736508aefff31b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#a0eb87b81740e8b4751899bd553cd5701">getMappingManager</a>().<a class="code" href="classMappingManager.html#a5f725de7227d100962da39ad646e9a03">getMappingById</a>(<a class="code" href="classDeleteMappingCommand.html#ab11379f98f9dbc41566938e580d0bdf0">m_mappingId</a>);</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="classDeleteMappingCommand.html#a7f50068565bf513bce736508aefff31b">m_mainWindow</a>-><a class="code" href="classMainWindow.html#adee7602073d020ba78b95421d2255668">deleteMapping</a>(<a class="code" href="classDeleteMappingCommand.html#ab11379f98f9dbc41566938e580d0bdf0">m_mappingId</a>);</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> }</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="ttc" id="classTranslateShapeCommand_html_afb01c5885370b1b63780abcbaa503c15"><div class="ttname"><a href="classTranslateShapeCommand.html#afb01c5885370b1b63780abcbaa503c15">TranslateShapeCommand::_doTransform</a></div><div class="ttdeci">virtual void _doTransform(MShape::ptr shape)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00131">Commands.cpp:131</a></div></div>
<div class="ttc" id="Commands_8h_html_aaf8d2069e2c6bbecf4aa8f9819028e8aa4699a7d650d626485846d33d2748473f"><div class="ttname"><a href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aa4699a7d650d626485846d33d2748473f">CMD_MOUSE_MOVE_VERTEX</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00031">Commands.h:31</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a9118a4afb5014d3d9e0eff4adda89dccad91774baa7f734488e4ae1d03d625297"><div class="ttname"><a href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dccad91774baa7f734488e4ae1d03d625297">TransformShapeCommand::STEP</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00054">Commands.h:54</a></div></div>
<div class="ttc" id="classAddShapesCommand_html_a432259644660849e90f6d8bf81f13b07"><div class="ttname"><a href="classAddShapesCommand.html#a432259644660849e90f6d8bf81f13b07">AddShapesCommand::m_mappingPtr</a></div><div class="ttdeci">Mapping::ptr m_mappingPtr</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00045">Commands.h:45</a></div></div>
<div class="ttc" id="classTranslateShapeCommand_html_ac3986303c37f62e6fa6a36283a48347a"><div class="ttname"><a href="classTranslateShapeCommand.html#ac3986303c37f62e6fa6a36283a48347a">TranslateShapeCommand::id</a></div><div class="ttdeci">int id() const </div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00116">Commands.cpp:116</a></div></div>
<div class="ttc" id="classAddShapesCommand_html_aeda905b60411fc31a89d3cc48bdc06b2"><div class="ttname"><a href="classAddShapesCommand.html#aeda905b60411fc31a89d3cc48bdc06b2">AddShapesCommand::m_mappingId</a></div><div class="ttdeci">uid m_mappingId</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00046">Commands.h:46</a></div></div>
<div class="ttc" id="classDeleteMappingCommand_html_a936ed4ffa3da5f80644fb768a9b1ef9a"><div class="ttname"><a href="classDeleteMappingCommand.html#a936ed4ffa3da5f80644fb768a9b1ef9a">DeleteMappingCommand::redo</a></div><div class="ttdeci">void redo()</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00155">Commands.cpp:155</a></div></div>
<div class="ttc" id="classMoveVertexCommand_html_aa87476a6ff326e7149c5cf41cfed385f"><div class="ttname"><a href="classMoveVertexCommand.html#aa87476a6ff326e7149c5cf41cfed385f">MoveVertexCommand::MoveVertexCommand</a></div><div class="ttdeci">MoveVertexCommand(MapperGLCanvas *canvas, TransformShapeOption option, int activeVertex, const QPointF &point, QUndoCommand *parent=0)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00077">Commands.cpp:77</a></div></div>
<div class="ttc" id="classAddShapesCommand_html_a8521096ef210cc17c124f0ccb899a524"><div class="ttname"><a href="classAddShapesCommand.html#a8521096ef210cc17c124f0ccb899a524">AddShapesCommand::redo</a></div><div class="ttdeci">void redo()</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00018">Commands.cpp:18</a></div></div>
<div class="ttc" id="classMShape_html_abaea0495adea6f577e352d8d90fe161e"><div class="ttname"><a href="classMShape.html#abaea0495adea6f577e352d8d90fe161e">MShape::ptr</a></div><div class="ttdeci">QSharedPointer< MShape > ptr</div><div class="ttdef"><b>Definition:</b> <a href="Shape_8h_source.html#l00047">Shape.h:47</a></div></div>
<div class="ttc" id="classAddShapesCommand_html_ae41dfdf34ca1f16dc940d3caf89cf11b"><div class="ttname"><a href="classAddShapesCommand.html#ae41dfdf34ca1f16dc940d3caf89cf11b">AddShapesCommand::m_mainWindow</a></div><div class="ttdeci">MainWindow * m_mainWindow</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00044">Commands.h:44</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a82a79f1952b20ceb7207af9139efd1b2"><div class="ttname"><a href="classTransformShapeCommand.html#a82a79f1952b20ceb7207af9139efd1b2">TransformShapeCommand::mergeWith</a></div><div class="ttdeci">virtual bool mergeWith(const QUndoCommand *other)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00057">Commands.cpp:57</a></div></div>
<div class="ttc" id="classDeleteMappingCommand_html_a7f50068565bf513bce736508aefff31b"><div class="ttname"><a href="classDeleteMappingCommand.html#a7f50068565bf513bce736508aefff31b">DeleteMappingCommand::m_mainWindow</a></div><div class="ttdeci">MainWindow * m_mainWindow</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00120">Commands.h:120</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a3c0864b206cb66903391686870441cfd"><div class="ttname"><a href="classTransformShapeCommand.html#a3c0864b206cb66903391686870441cfd">TransformShapeCommand::_shape</a></div><div class="ttdeci">QWeakPointer< MShape > _shape</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00070">Commands.h:70</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a9118a4afb5014d3d9e0eff4adda89dcca4f8b9a81c2d4289f26ccfa99a47de618"><div class="ttname"><a href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dcca4f8b9a81c2d4289f26ccfa99a47de618">TransformShapeCommand::FREE</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00055">Commands.h:55</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a9118a4afb5014d3d9e0eff4adda89dcc"><div class="ttname"><a href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dcc">TransformShapeCommand::TransformShapeOption</a></div><div class="ttdeci">TransformShapeOption</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00053">Commands.h:53</a></div></div>
<div class="ttc" id="UidAllocator_8h_html_ac83b9ada9e7333675745ef795a057883"><div class="ttname"><a href="UidAllocator_8h.html#ac83b9ada9e7333675745ef795a057883">uid</a></div><div class="ttdeci">int uid</div><div class="ttdoc">The UidAllocator class. </div><div class="ttdef"><b>Definition:</b> <a href="UidAllocator_8h_source.html#l00033">UidAllocator.h:33</a></div></div>
<div class="ttc" id="Commands_8h_html_aaf8d2069e2c6bbecf4aa8f9819028e8aaf3d1a6f12d614a1c66cc67040efde106"><div class="ttname"><a href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aaf3d1a6f12d614a1c66cc67040efde106">CMD_KEY_TRANSLATE_SHAPE</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00032">Commands.h:32</a></div></div>
<div class="ttc" id="classMapperGLCanvas_html_a14dfb3ee24fa439b460c663dec088cda"><div class="ttname"><a href="classMapperGLCanvas.html#a14dfb3ee24fa439b460c663dec088cda">MapperGLCanvas::currentShapeWasChanged</a></div><div class="ttdeci">void currentShapeWasChanged()</div><div class="ttdoc">This function needs to be called after a shape inside the canvas has been changed for appropriate sig...</div><div class="ttdef"><b>Definition:</b> <a href="MapperGLCanvas_8cpp_source.html#l00096">MapperGLCanvas.cpp:96</a></div></div>
<div class="ttc" id="classDeleteMappingCommand_html_ab11379f98f9dbc41566938e580d0bdf0"><div class="ttname"><a href="classDeleteMappingCommand.html#ab11379f98f9dbc41566938e580d0bdf0">DeleteMappingCommand::m_mappingId</a></div><div class="ttdeci">uid m_mappingId</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00122">Commands.h:122</a></div></div>
<div class="ttc" id="classAddShapesCommand_html_a5e9de315926a8e16e5c7296fb2df08be"><div class="ttname"><a href="classAddShapesCommand.html#a5e9de315926a8e16e5c7296fb2df08be">AddShapesCommand::AddShapesCommand</a></div><div class="ttdeci">AddShapesCommand(MainWindow *mainWindow, uid mappingId, QUndoCommand *parent=0)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00004">Commands.cpp:4</a></div></div>
<div class="ttc" id="classMoveVertexCommand_html_ac4f366e1e0706dfb53ec065732e256c8"><div class="ttname"><a href="classMoveVertexCommand.html#ac4f366e1e0706dfb53ec065732e256c8">MoveVertexCommand::_vertexPosition</a></div><div class="ttdeci">QPointF _vertexPosition</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00093">Commands.h:93</a></div></div>
<div class="ttc" id="Commands_8h_html_aaf8d2069e2c6bbecf4aa8f9819028e8aada9e0b21adec2cba1de4d783f4703c3b"><div class="ttname"><a href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aada9e0b21adec2cba1de4d783f4703c3b">CMD_MOUSE_TRANSLATE_SHAPE</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00033">Commands.h:33</a></div></div>
<div class="ttc" id="Commands_8h_html"><div class="ttname"><a href="Commands_8h.html">Commands.h</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_ab8c89495a7cc8008a3570d91927b2b76"><div class="ttname"><a href="classTransformShapeCommand.html#ab8c89495a7cc8008a3570d91927b2b76">TransformShapeCommand::_doTransform</a></div><div class="ttdeci">virtual void _doTransform(MShape::ptr shape)=0</div></div>
<div class="ttc" id="Commands_8h_html_aaf8d2069e2c6bbecf4aa8f9819028e8aa1cf703848a1674affb60c2a05ac6fa2f"><div class="ttname"><a href="Commands_8h.html#aaf8d2069e2c6bbecf4aa8f9819028e8aa1cf703848a1674affb60c2a05ac6fa2f">CMD_KEY_MOVE_VERTEX</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00030">Commands.h:30</a></div></div>
<div class="ttc" id="classTranslateShapeCommand_html"><div class="ttname"><a href="classTranslateShapeCommand.html">TranslateShapeCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00096">Commands.h:96</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a9118a4afb5014d3d9e0eff4adda89dccaef667f7efdfd9d0e41f516995adfea87"><div class="ttname"><a href="classTransformShapeCommand.html#a9118a4afb5014d3d9e0eff4adda89dccaef667f7efdfd9d0e41f516995adfea87">TransformShapeCommand::RELEASE</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00056">Commands.h:56</a></div></div>
<div class="ttc" id="classMainWindow_html_adee7602073d020ba78b95421d2255668"><div class="ttname"><a href="classMainWindow.html#adee7602073d020ba78b95421d2255668">MainWindow::deleteMapping</a></div><div class="ttdeci">void deleteMapping(uid mappingId)</div><div class="ttdoc">Deletes/removes a mapping. </div><div class="ttdef"><b>Definition:</b> <a href="MainWindow_8cpp_source.html#l01137">MainWindow.cpp:1137</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html"><div class="ttname"><a href="classTransformShapeCommand.html">TransformShapeCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00050">Commands.h:50</a></div></div>
<div class="ttc" id="classDeleteMappingCommand_html_a0c544e2eccccecdfd6925e88739a7465"><div class="ttname"><a href="classDeleteMappingCommand.html#a0c544e2eccccecdfd6925e88739a7465">DeleteMappingCommand::DeleteMappingCommand</a></div><div class="ttdeci">DeleteMappingCommand(MainWindow *mainWindow, uid mappingId, QUndoCommand *parent=0)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00138">Commands.cpp:138</a></div></div>
<div class="ttc" id="classMainWindow_html_a0eb87b81740e8b4751899bd553cd5701"><div class="ttname"><a href="classMainWindow.html#a0eb87b81740e8b4751899bd553cd5701">MainWindow::getMappingManager</a></div><div class="ttdeci">MappingManager & getMappingManager() const </div><div class="ttdef"><b>Definition:</b> <a href="MainWindow_8h_source.html#l00418">MainWindow.h:418</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_adb880f2ee5914de57a6a1949c85775e7"><div class="ttname"><a href="classTransformShapeCommand.html#adb880f2ee5914de57a6a1949c85775e7">TransformShapeCommand::_originalShape</a></div><div class="ttdeci">MShape::ptr _originalShape</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00076">Commands.h:76</a></div></div>
<div class="ttc" id="classMappingManager_html_a5f725de7227d100962da39ad646e9a03"><div class="ttname"><a href="classMappingManager.html#a5f725de7227d100962da39ad646e9a03">MappingManager::getMappingById</a></div><div class="ttdeci">Mapping::ptr getMappingById(uid id)</div><div class="ttdoc">Returns mapping with given uid. </div><div class="ttdef"><b>Definition:</b> <a href="MappingManager_8h_source.html#l00098">MappingManager.h:98</a></div></div>
<div class="ttc" id="classTranslateShapeCommand_html_a0299cb061df117f82f85fffb23444714"><div class="ttname"><a href="classTranslateShapeCommand.html#a0299cb061df117f82f85fffb23444714">TranslateShapeCommand::_translation</a></div><div class="ttdeci">QPointF _translation</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00109">Commands.h:109</a></div></div>
<div class="ttc" id="classMapperGLCanvas_html"><div class="ttname"><a href="classMapperGLCanvas.html">MapperGLCanvas</a></div><div class="ttdoc">Mother class for OpenGL canvases that allow the display and controls of shapes and vertices...</div><div class="ttdef"><b>Definition:</b> <a href="MapperGLCanvas_8h_source.html#l00047">MapperGLCanvas.h:47</a></div></div>
<div class="ttc" id="classTranslateShapeCommand_html_ae24ea59895ee9b3f4e71e4f3fbd95d26"><div class="ttname"><a href="classTranslateShapeCommand.html#ae24ea59895ee9b3f4e71e4f3fbd95d26">TranslateShapeCommand::mergeWith</a></div><div class="ttdeci">bool mergeWith(const QUndoCommand *other)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00118">Commands.cpp:118</a></div></div>
<div class="ttc" id="classMappingManager_html_a8520f36639420ee5ea6df9ae80dc0e33"><div class="ttname"><a href="classMappingManager.html#a8520f36639420ee5ea6df9ae80dc0e33">MappingManager::addMapping</a></div><div class="ttdeci">uid addMapping(Mapping::ptr mapping)</div><div class="ttdoc">Adds a mapping and returns its uid. </div><div class="ttdef"><b>Definition:</b> <a href="MappingManager_8cpp_source.html#l00094">MappingManager.cpp:94</a></div></div>
<div class="ttc" id="classMoveVertexCommand_html_aa6eb2e94f1101cfb4a0ab954beebf1be"><div class="ttname"><a href="classMoveVertexCommand.html#aa6eb2e94f1101cfb4a0ab954beebf1be">MoveVertexCommand::_movedVertex</a></div><div class="ttdeci">int _movedVertex</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00092">Commands.h:92</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a5a54859a241c5b67a2ed4a04e437557a"><div class="ttname"><a href="classTransformShapeCommand.html#a5a54859a241c5b67a2ed4a04e437557a">TransformShapeCommand::_canvas</a></div><div class="ttdeci">MapperGLCanvas * _canvas</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00069">Commands.h:69</a></div></div>
<div class="ttc" id="classMoveVertexCommand_html_a419ad892aebc3caf6889a11f76c3ecb4"><div class="ttname"><a href="classMoveVertexCommand.html#a419ad892aebc3caf6889a11f76c3ecb4">MoveVertexCommand::_doTransform</a></div><div class="ttdeci">virtual void _doTransform(MShape::ptr shape)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00087">Commands.cpp:87</a></div></div>
<div class="ttc" id="classDeleteMappingCommand_html_ad5b8989668fdee7466d4e9483c11c34b"><div class="ttname"><a href="classDeleteMappingCommand.html#ad5b8989668fdee7466d4e9483c11c34b">DeleteMappingCommand::undo</a></div><div class="ttdeci">void undo()</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00146">Commands.cpp:146</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a642e6e5411e0591724caa2e9b533cac7"><div class="ttname"><a href="classTransformShapeCommand.html#a642e6e5411e0591724caa2e9b533cac7">TransformShapeCommand::_option</a></div><div class="ttdeci">int _option</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00073">Commands.h:73</a></div></div>
<div class="ttc" id="classMainWindow_html_a91afdf837defb9031caa1517c8cb5c69"><div class="ttname"><a href="classMainWindow.html#a91afdf837defb9031caa1517c8cb5c69">MainWindow::addMappingItem</a></div><div class="ttdeci">void addMappingItem(uid mappingId)</div><div class="ttdef"><b>Definition:</b> <a href="MainWindow_8cpp_source.html#l02180">MainWindow.cpp:2180</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a160b6c68b1b4a0d89e5492444ae60820"><div class="ttname"><a href="classTransformShapeCommand.html#a160b6c68b1b4a0d89e5492444ae60820">TransformShapeCommand::redo</a></div><div class="ttdeci">virtual void redo()</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00048">Commands.cpp:48</a></div></div>
<div class="ttc" id="classMapperGLCanvas_html_a94e50bea25cadd6de25091cfed85cbee"><div class="ttname"><a href="classMapperGLCanvas.html#a94e50bea25cadd6de25091cfed85cbee">MapperGLCanvas::getCurrentShape</a></div><div class="ttdeci">MShape::ptr getCurrentShape()</div><div class="ttdef"><b>Definition:</b> <a href="MapperGLCanvas_8cpp_source.html#l00064">MapperGLCanvas.cpp:64</a></div></div>
<div class="ttc" id="classTranslateShapeCommand_html_a4152acd9d24de8a7df44472fb9f77619"><div class="ttname"><a href="classTranslateShapeCommand.html#a4152acd9d24de8a7df44472fb9f77619">TranslateShapeCommand::TranslateShapeCommand</a></div><div class="ttdeci">TranslateShapeCommand(MapperGLCanvas *canvas, TransformShapeOption option, const QPointF &translation, QUndoCommand *parent=0)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00109">Commands.cpp:109</a></div></div>
<div class="ttc" id="classMoveVertexCommand_html_ad0ae3a89865911dd555e58188717e647"><div class="ttname"><a href="classMoveVertexCommand.html#ad0ae3a89865911dd555e58188717e647">MoveVertexCommand::mergeWith</a></div><div class="ttdeci">bool mergeWith(const QUndoCommand *other)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00092">Commands.cpp:92</a></div></div>
<div class="ttc" id="classDeleteMappingCommand_html_a5218bf1c97515d4ebba9cb376a49fb66"><div class="ttname"><a href="classDeleteMappingCommand.html#a5218bf1c97515d4ebba9cb376a49fb66">DeleteMappingCommand::m_mappingPtr</a></div><div class="ttdeci">Mapping::ptr m_mappingPtr</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00121">Commands.h:121</a></div></div>
<div class="ttc" id="classAddShapesCommand_html_acee7ba76607b5c87eed865844966a839"><div class="ttname"><a href="classAddShapesCommand.html#acee7ba76607b5c87eed865844966a839">AddShapesCommand::undo</a></div><div class="ttdeci">void undo()</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00012">Commands.cpp:12</a></div></div>
<div class="ttc" id="classMoveVertexCommand_html_a4a48b70f363531e5a248c7800413b3af"><div class="ttname"><a href="classMoveVertexCommand.html#a4a48b70f363531e5a248c7800413b3af">MoveVertexCommand::id</a></div><div class="ttdeci">int id() const </div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00085">Commands.cpp:85</a></div></div>
<div class="ttc" id="classQUndoCommand_html"><div class="ttname"><a href="classQUndoCommand.html">QUndoCommand</a></div></div>
<div class="ttc" id="classMainWindow_html"><div class="ttname"><a href="classMainWindow.html">MainWindow</a></div><div class="ttdoc">This is the main window of MapMap. </div><div class="ttdef"><b>Definition:</b> <a href="MainWindow_8h_source.html#l00055">MainWindow.h:55</a></div></div>
<div class="ttc" id="classMoveVertexCommand_html"><div class="ttname"><a href="classMoveVertexCommand.html">MoveVertexCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="Commands_8h_source.html#l00079">Commands.h:79</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_a38361c52c867d2abcbd47d1309bcef37"><div class="ttname"><a href="classTransformShapeCommand.html#a38361c52c867d2abcbd47d1309bcef37">TransformShapeCommand::TransformShapeCommand</a></div><div class="ttdeci">TransformShapeCommand(MapperGLCanvas *canvas, TransformShapeOption option, QUndoCommand *parent=0)</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00028">Commands.cpp:28</a></div></div>
<div class="ttc" id="classTransformShapeCommand_html_adefad09c09e0ab150439fed8c45262db"><div class="ttname"><a href="classTransformShapeCommand.html#adefad09c09e0ab150439fed8c45262db">TransformShapeCommand::undo</a></div><div class="ttdeci">virtual void undo()</div><div class="ttdef"><b>Definition:</b> <a href="Commands_8cpp_source.html#l00039">Commands.cpp:39</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 8 2016 09:37:01 for MapMap by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>