1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Ipelib: IpeUndoStack Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.1 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li><a href="modules.html"><span>Modules</span></a></li>
12
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
16
<li><a href="annotated.html"><span>Class List</span></a></li>
17
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
18
<li><a href="functions.html"><span>Class Members</span></a></li>
20
<h1>IpeUndoStack Class Reference<br>
22
[<a class="el" href="group__high.html">Ipe Management</a>]</small>
23
</h1><!-- doxytag: class="IpeUndoStack" -->An undo stack for Ipe.
24
<a href="#_details">More...</a>
26
<a href="class_ipe_undo_stack-members.html">List of all members.</a><h2>Public Member Functions</h2>
28
<li><a class="el" href="class_ipe_undo_stack.html#b8c3a6522d7892476a0356cd838ad1fb">IpeUndoStack</a> ()
29
<li><a class="el" href="class_ipe_undo_stack.html#80f1e7c3bdcae755072fff1ebd4ebf07">~IpeUndoStack</a> ()
30
<li>void <a class="el" href="class_ipe_undo_stack.html#1b5e2b4e0137aec2f22083026163427e">Clear</a> ()
31
<li>void <a class="el" href="class_ipe_undo_stack.html#77575148c899bb81be4687d51c8b0b8b">Add</a> (<a class="el" href="class_ipe_undo_item.html">IpeUndoItem</a> *item)
32
<li>int <a class="el" href="class_ipe_undo_stack.html#abfe9247d2a6b788416fc0dc44dcc7d3">Undo</a> (<a class="el" href="class_ipe_document.html">IpeDocument</a> *doc)
33
<li>int <a class="el" href="class_ipe_undo_stack.html#ad4d9b8f7ded7d5a7c1adcbd268d18de">Redo</a> (<a class="el" href="class_ipe_document.html">IpeDocument</a> *doc)
34
<li><a class="el" href="class_ipe_string.html">IpeString</a> <a class="el" href="class_ipe_undo_stack.html#bb5955ab813722ef73fc8850b2b01e88">UndoText</a> () const
35
<li><a class="el" href="class_ipe_string.html">IpeString</a> <a class="el" href="class_ipe_undo_stack.html#8b6c88d41a7d69154e47ae1f3a04ff3d">RedoText</a> () const
36
<li>bool <a class="el" href="class_ipe_undo_stack.html#183f7d7ec2f26030b63f176558aa4882">CanUndo</a> () const
37
<li>bool <a class="el" href="class_ipe_undo_stack.html#e9cf411f5192ab64729206733ce22d61">CanRedo</a> () const
39
<hr><a name="_details"></a><h2>Detailed Description</h2>
40
An undo stack for Ipe.
42
<hr><h2>Constructor & Destructor Documentation</h2>
43
<a class="anchor" name="b8c3a6522d7892476a0356cd838ad1fb"></a><!-- doxytag: member="IpeUndoStack::IpeUndoStack" ref="b8c3a6522d7892476a0356cd838ad1fb" args="()" -->
45
<div class="memproto">
46
<table class="memname">
48
<td class="memname">IpeUndoStack::IpeUndoStack </td>
50
<td class="paramname"> </td>
51
<td> ) </td>
52
<td width="100%"></td>
59
Create empty undo stack.
64
<a class="anchor" name="80f1e7c3bdcae755072fff1ebd4ebf07"></a><!-- doxytag: member="IpeUndoStack::~IpeUndoStack" ref="80f1e7c3bdcae755072fff1ebd4ebf07" args="()" -->
66
<div class="memproto">
67
<table class="memname">
69
<td class="memname">IpeUndoStack::~IpeUndoStack </td>
71
<td class="paramname"> </td>
72
<td> ) </td>
73
<td width="100%"></td>
80
Destructor destroys all items on stack.
85
<hr><h2>Member Function Documentation</h2>
86
<a class="anchor" name="1b5e2b4e0137aec2f22083026163427e"></a><!-- doxytag: member="IpeUndoStack::Clear" ref="1b5e2b4e0137aec2f22083026163427e" args="()" -->
88
<div class="memproto">
89
<table class="memname">
91
<td class="memname">void IpeUndoStack::Clear </td>
93
<td class="paramname"> </td>
94
<td> ) </td>
95
<td width="100%"></td>
102
Clears the complete undo stack.
107
<a class="anchor" name="77575148c899bb81be4687d51c8b0b8b"></a><!-- doxytag: member="IpeUndoStack::Add" ref="77575148c899bb81be4687d51c8b0b8b" args="(IpeUndoItem *item)" -->
108
<div class="memitem">
109
<div class="memproto">
110
<table class="memname">
112
<td class="memname">void IpeUndoStack::Add </td>
114
<td class="paramtype"><a class="el" href="class_ipe_undo_item.html">IpeUndoItem</a> * </td>
115
<td class="paramname"> <em>item</em> </td>
116
<td> ) </td>
117
<td width="100%"></td>
124
Add an undo item to the stack.
126
If the stack is not at the end, discard remaining items. Takes ownership of item.
129
<a class="anchor" name="abfe9247d2a6b788416fc0dc44dcc7d3"></a><!-- doxytag: member="IpeUndoStack::Undo" ref="abfe9247d2a6b788416fc0dc44dcc7d3" args="(IpeDocument *doc)" -->
130
<div class="memitem">
131
<div class="memproto">
132
<table class="memname">
134
<td class="memname">int IpeUndoStack::Undo </td>
136
<td class="paramtype"><a class="el" href="class_ipe_document.html">IpeDocument</a> * </td>
137
<td class="paramname"> <em>doc</em> </td>
138
<td> ) </td>
139
<td width="100%"></td>
146
Perform an undo operation.
151
<a class="anchor" name="ad4d9b8f7ded7d5a7c1adcbd268d18de"></a><!-- doxytag: member="IpeUndoStack::Redo" ref="ad4d9b8f7ded7d5a7c1adcbd268d18de" args="(IpeDocument *doc)" -->
152
<div class="memitem">
153
<div class="memproto">
154
<table class="memname">
156
<td class="memname">int IpeUndoStack::Redo </td>
158
<td class="paramtype"><a class="el" href="class_ipe_document.html">IpeDocument</a> * </td>
159
<td class="paramname"> <em>doc</em> </td>
160
<td> ) </td>
161
<td width="100%"></td>
168
Perform a redo operation.
173
<a class="anchor" name="bb5955ab813722ef73fc8850b2b01e88"></a><!-- doxytag: member="IpeUndoStack::UndoText" ref="bb5955ab813722ef73fc8850b2b01e88" args="() const" -->
174
<div class="memitem">
175
<div class="memproto">
176
<table class="memname">
178
<td class="memname"><a class="el" href="class_ipe_string.html">IpeString</a> IpeUndoStack::UndoText </td>
180
<td class="paramname"> </td>
181
<td> ) </td>
182
<td width="100%"> const</td>
189
Return text for possible undo operation.
194
<a class="anchor" name="8b6c88d41a7d69154e47ae1f3a04ff3d"></a><!-- doxytag: member="IpeUndoStack::RedoText" ref="8b6c88d41a7d69154e47ae1f3a04ff3d" args="() const" -->
195
<div class="memitem">
196
<div class="memproto">
197
<table class="memname">
199
<td class="memname"><a class="el" href="class_ipe_string.html">IpeString</a> IpeUndoStack::RedoText </td>
201
<td class="paramname"> </td>
202
<td> ) </td>
203
<td width="100%"> const</td>
210
Return text for possible redo operation.
215
<a class="anchor" name="183f7d7ec2f26030b63f176558aa4882"></a><!-- doxytag: member="IpeUndoStack::CanUndo" ref="183f7d7ec2f26030b63f176558aa4882" args="() const" -->
216
<div class="memitem">
217
<div class="memproto">
218
<table class="memname">
220
<td class="memname">bool IpeUndoStack::CanUndo </td>
222
<td class="paramname"> </td>
223
<td> ) </td>
224
<td width="100%"> const<code> [inline]</code></td>
231
Is an Undo action available?
236
<a class="anchor" name="e9cf411f5192ab64729206733ce22d61"></a><!-- doxytag: member="IpeUndoStack::CanRedo" ref="e9cf411f5192ab64729206733ce22d61" args="() const" -->
237
<div class="memitem">
238
<div class="memproto">
239
<table class="memname">
241
<td class="memname">bool IpeUndoStack::CanRedo </td>
243
<td class="paramname"> </td>
244
<td> ) </td>
245
<td width="100%"> const<code> [inline]</code></td>
252
Is a Redo action available?
257
<hr>The documentation for this class was generated from the following files:<ul>
258
<li>ipeundo.h<li>ipeundo.cpp</ul>