00001 /*************************************************************************** 00002 * qofundo.h 00003 * 00004 * Thu Aug 25 09:19:25 2005 00005 * Copyright 2005,2006 Neil Williams 00006 * linux@codehelp.co.uk 00007 ****************************************************************************/ 00008 /* 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA 00022 */ 00023 00083 #ifndef _QOFUNDO_H 00084 #define _QOFUNDO_H 00085 00086 #define QOF_MOD_UNDO "qof-undo" 00087 00104 void 00105 qof_undo_set_param (QofEntity * ent, const QofParam * param, 00106 gchar * value); 00107 00115 void 00116 qof_undo_modify (QofInstance * inst, const QofParam * param); 00117 00125 void 00126 qof_undo_commit (QofInstance * inst, const QofParam * param); 00127 00136 void qof_undo_create (QofInstance * inst); 00137 00148 void qof_undo_delete (QofInstance * inst); 00149 00156 void qof_book_clear_undo (QofBook * book); 00157 00159 void qof_book_undo (QofBook * book); 00160 00162 void qof_book_redo (QofBook * book); 00163 00169 gboolean qof_book_can_undo (QofBook * book); 00170 00176 gboolean qof_book_can_redo (QofBook * book); 00177 00181 void qof_book_start_operation (QofBook * book, gchar * label); 00182 00184 void qof_book_end_operation (QofBook * book); 00185 00187 QofTime * 00188 qof_book_undo_first_modified (QofBook * book); 00189 00191 gint qof_book_undo_count (QofBook * book); 00192 00193 #endif /* _QOFUNDO_H */ 00194