QOF  0.8.7
qofundo.h
Go to the documentation of this file.
1 /***************************************************************************
2  * qofundo.h
3  *
4  * Thu Aug 25 09:19:25 2005
5  * Copyright 2005,2006 Neil Williams
6  * linux@codehelp.co.uk
7  ****************************************************************************/
8 /*
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
22  */
23 
83 #ifndef _QOFUNDO_H
84 #define _QOFUNDO_H
85 
86 #define QOF_MOD_UNDO "qof-undo"
87 
104 void
105 qof_undo_set_param (QofEntity * ent, const QofParam * param,
106  gchar * value);
107 
115 void
116 qof_undo_modify (QofInstance * inst, const QofParam * param);
117 
125 void
126 qof_undo_commit (QofInstance * inst, const QofParam * param);
127 
136 void qof_undo_create (QofInstance * inst);
137 
148 void qof_undo_delete (QofInstance * inst);
149 
156 void qof_book_clear_undo (QofBook * book);
157 
159 void qof_book_undo (QofBook * book);
160 
162 void qof_book_redo (QofBook * book);
163 
169 gboolean qof_book_can_undo (QofBook * book);
170 
176 gboolean qof_book_can_redo (QofBook * book);
177 
181 void qof_book_start_operation (QofBook * book, gchar * label);
182 
184 void qof_book_end_operation (QofBook * book);
185 
187 QofTime *
189 
191 gint qof_book_undo_count (QofBook * book);
192 
193 #endif /* _QOFUNDO_H */
194 
void qof_undo_delete(QofInstance *inst)
Definition: qofundo.c:501
gboolean qof_book_can_redo(QofBook *book)
event handler for redo widget
Definition: qofundo.c:420
void qof_book_start_operation(QofBook *book, gchar *label)
Start recording operation.
Definition: qofundo.c:565
gboolean qof_book_can_undo(QofBook *book)
event handler for undo widget
Definition: qofundo.c:407
void qof_book_end_operation(QofBook *book)
End recording the current operation.
Definition: qofundo.c:582
void qof_book_clear_undo(QofBook *book)
Free the entire undo list for this book.
Definition: qofundo.c:387
QofTime * qof_book_undo_first_modified(QofBook *book)
HIG compliance aid to report time of first change.
Definition: qofundo.c:595
void qof_book_undo(QofBook *book)
Set parameter values from before the previous event.
Definition: qofundo.c:284
struct QofTime64 QofTime
Use a 64-bit signed int QofTime.
Definition: qoftime.h:112
gint qof_book_undo_count(QofBook *book)
Number of undo operations available.
Definition: qofundo.c:607
void qof_undo_create(QofInstance *inst)
Definition: qofundo.c:464
void qof_undo_commit(QofInstance *inst, const QofParam *param)
Definition: qofundo.c:549
void qof_book_redo(QofBook *book)
Set parameter values from after the previous event.
Definition: qofundo.c:334
void qof_undo_modify(QofInstance *inst, const QofParam *param)
Definition: qofundo.c:525
void qof_undo_set_param(QofEntity *ent, const QofParam *param, gchar *value)
Set a value in this parameter of the entity.
Definition: qofundo.c:188