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">
6
<!-- Generated by Doxygen 1.3.4 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="functions.html">Class Members</a></div>
8
<h1>IpeUndoStack Class Reference<br>
10
[<a class="el" href="group__high.html">Ipe Management</a>]</small>
11
</h1>An undo stack for Ipe.
12
<a href="#_details">More...</a>
14
<a href="class_ipe_undo_stack-members.html">List of all members.</a><h2>Public Member Functions</h2>
16
<li><a class="el" href="class_ipe_undo_stack.html#a0">IpeUndoStack</a> ()
17
<li><a class="el" href="class_ipe_undo_stack.html#a1">~IpeUndoStack</a> ()
18
<li>void <a class="el" href="class_ipe_undo_stack.html#a2">Clear</a> ()
19
<li>void <a class="el" href="class_ipe_undo_stack.html#a3">Add</a> (<a class="el" href="class_ipe_undo_item.html">IpeUndoItem</a> *item)
20
<li>int <a class="el" href="class_ipe_undo_stack.html#a4">Undo</a> (<a class="el" href="class_ipe_document.html">IpeDocument</a> *doc)
21
<li>int <a class="el" href="class_ipe_undo_stack.html#a5">Redo</a> (<a class="el" href="class_ipe_document.html">IpeDocument</a> *doc)
22
<li><a class="el" href="class_ipe_string.html">IpeString</a> <a class="el" href="class_ipe_undo_stack.html#a6">UndoText</a> () const
23
<li><a class="el" href="class_ipe_string.html">IpeString</a> <a class="el" href="class_ipe_undo_stack.html#a7">RedoText</a> () const
24
<li>bool <a class="el" href="class_ipe_undo_stack.html#a8">CanUndo</a> () const
25
<li>bool <a class="el" href="class_ipe_undo_stack.html#a9">CanRedo</a> () const
27
<hr><a name="_details"></a><h2>Detailed Description</h2>
28
An undo stack for Ipe.
30
<hr><h2>Constructor & Destructor Documentation</h2>
31
<a class="anchor" name="a0" doxytag="IpeUndoStack::IpeUndoStack" ></a><p>
32
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
35
<table cellpadding="0" cellspacing="0" border="0">
37
<td class="md" nowrap valign="top"> IpeUndoStack::IpeUndoStack </td>
38
<td class="md" valign="top">( </td>
39
<td class="mdname1" valign="top" nowrap> </td>
40
<td class="md" valign="top"> ) </td>
41
<td class="md" nowrap></td>
48
<table cellspacing=5 cellpadding=0 border=0>
56
Create empty undo stack.
61
<a class="anchor" name="a1" doxytag="IpeUndoStack::~IpeUndoStack" ></a><p>
62
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
65
<table cellpadding="0" cellspacing="0" border="0">
67
<td class="md" nowrap valign="top"> IpeUndoStack::~<a class="el" href="class_ipe_undo_stack.html">IpeUndoStack</a> </td>
68
<td class="md" valign="top">( </td>
69
<td class="mdname1" valign="top" nowrap> </td>
70
<td class="md" valign="top"> ) </td>
71
<td class="md" nowrap></td>
78
<table cellspacing=5 cellpadding=0 border=0>
86
Destructor destroys all items on stack.
91
<hr><h2>Member Function Documentation</h2>
92
<a class="anchor" name="a2" doxytag="IpeUndoStack::Clear" ></a><p>
93
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
96
<table cellpadding="0" cellspacing="0" border="0">
98
<td class="md" nowrap valign="top"> void IpeUndoStack::Clear </td>
99
<td class="md" valign="top">( </td>
100
<td class="mdname1" valign="top" nowrap> </td>
101
<td class="md" valign="top"> ) </td>
102
<td class="md" nowrap></td>
109
<table cellspacing=5 cellpadding=0 border=0>
117
Clears the complete undo stack.
122
<a class="anchor" name="a3" doxytag="IpeUndoStack::Add" ></a><p>
123
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
126
<table cellpadding="0" cellspacing="0" border="0">
128
<td class="md" nowrap valign="top"> void IpeUndoStack::Add </td>
129
<td class="md" valign="top">( </td>
130
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_undo_item.html">IpeUndoItem</a> * </td>
131
<td class="mdname1" valign="top" nowrap> <em>item</em> </td>
132
<td class="md" valign="top"> ) </td>
133
<td class="md" nowrap></td>
140
<table cellspacing=5 cellpadding=0 border=0>
148
Add an undo item to the stack.
150
If the stack is not at the end, discard remaining items. Takes ownership of item. </td>
153
<a class="anchor" name="a4" doxytag="IpeUndoStack::Undo" ></a><p>
154
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
157
<table cellpadding="0" cellspacing="0" border="0">
159
<td class="md" nowrap valign="top"> int IpeUndoStack::Undo </td>
160
<td class="md" valign="top">( </td>
161
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_document.html">IpeDocument</a> * </td>
162
<td class="mdname1" valign="top" nowrap> <em>doc</em> </td>
163
<td class="md" valign="top"> ) </td>
164
<td class="md" nowrap></td>
171
<table cellspacing=5 cellpadding=0 border=0>
179
Perform an undo operation.
184
<a class="anchor" name="a5" doxytag="IpeUndoStack::Redo" ></a><p>
185
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
188
<table cellpadding="0" cellspacing="0" border="0">
190
<td class="md" nowrap valign="top"> int IpeUndoStack::Redo </td>
191
<td class="md" valign="top">( </td>
192
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_document.html">IpeDocument</a> * </td>
193
<td class="mdname1" valign="top" nowrap> <em>doc</em> </td>
194
<td class="md" valign="top"> ) </td>
195
<td class="md" nowrap></td>
202
<table cellspacing=5 cellpadding=0 border=0>
210
Perform a redo operation.
215
<a class="anchor" name="a6" doxytag="IpeUndoStack::UndoText" ></a><p>
216
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
219
<table cellpadding="0" cellspacing="0" border="0">
221
<td class="md" nowrap valign="top"> <a class="el" href="class_ipe_string.html">IpeString</a> IpeUndoStack::UndoText </td>
222
<td class="md" valign="top">( </td>
223
<td class="mdname1" valign="top" nowrap> </td>
224
<td class="md" valign="top"> ) </td>
225
<td class="md" nowrap> const</td>
232
<table cellspacing=5 cellpadding=0 border=0>
240
Return text for possible undo operation.
245
<a class="anchor" name="a7" doxytag="IpeUndoStack::RedoText" ></a><p>
246
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
249
<table cellpadding="0" cellspacing="0" border="0">
251
<td class="md" nowrap valign="top"> <a class="el" href="class_ipe_string.html">IpeString</a> IpeUndoStack::RedoText </td>
252
<td class="md" valign="top">( </td>
253
<td class="mdname1" valign="top" nowrap> </td>
254
<td class="md" valign="top"> ) </td>
255
<td class="md" nowrap> const</td>
262
<table cellspacing=5 cellpadding=0 border=0>
270
Return text for possible redo operation.
275
<a class="anchor" name="a8" doxytag="IpeUndoStack::CanUndo" ></a><p>
276
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
279
<table cellpadding="0" cellspacing="0" border="0">
281
<td class="md" nowrap valign="top"> bool IpeUndoStack::CanUndo </td>
282
<td class="md" valign="top">( </td>
283
<td class="mdname1" valign="top" nowrap> </td>
284
<td class="md" valign="top"> ) </td>
285
<td class="md" nowrap> const<code> [inline]</code></td>
292
<table cellspacing=5 cellpadding=0 border=0>
300
Is an Undo action available?
305
<a class="anchor" name="a9" doxytag="IpeUndoStack::CanRedo" ></a><p>
306
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
309
<table cellpadding="0" cellspacing="0" border="0">
311
<td class="md" nowrap valign="top"> bool IpeUndoStack::CanRedo </td>
312
<td class="md" valign="top">( </td>
313
<td class="mdname1" valign="top" nowrap> </td>
314
<td class="md" valign="top"> ) </td>
315
<td class="md" nowrap> const<code> [inline]</code></td>
322
<table cellspacing=5 cellpadding=0 border=0>
330
Is a Redo action available?
335
<hr>The documentation for this class was generated from the following files:<ul>
336
<li>ipeundo.h<li>ipeundo.cpp</ul>