| 1 | /****************************************************************************** |
| 2 | ******************************************************************************* |
| 3 | ******************************************************************************* |
| 4 | |
| 5 | Copyright (C) 2013 Ben Martin |
| 6 | |
| 7 | This file is part of FontForge. |
| 8 | |
| 9 | FontForge 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 3 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | FontForge 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 FontForge. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | For more details see the COPYING.gplv3 file in the root directory of this |
| 23 | distribution. |
| 24 | |
| 25 | ******************************************************************************* |
| 26 | ******************************************************************************* |
| 27 | ******************************************************************************/ |
| 28 | |
| 29 | #ifndef FONTFORGE_SFUNDO_H |
| 30 | #define FONTFORGE_SFUNDO_H |
| 31 | |
| 32 | #include "splinefont.h" |
| 33 | |
| 34 | void SFUndoFreeAssociated( struct sfundoes *undo ); |
| 35 | void SFUndoFree( struct sfundoes *undo ); |
| 36 | SFUndoes* SFUndoCreateSFD( enum sfundotype t, char* staticmsg, char* sfdfrag ); |
| 37 | |
| 38 | /** |
| 39 | * Remove undo from the font level undoes on splinefont 'sf' and |
| 40 | * completely free the given undo from memory. |
| 41 | */ |
| 42 | void SFUndoRemoveAndFree( SplineFont *sf, struct sfundoes *undo ); |
| 43 | |
| 44 | |
| 45 | char* SFUndoToString( SFUndoes* undo ); |
| 46 | SFUndoes* SFUndoFromString( char* str ); |
| 47 | |
| 48 | void SFUndoPerform( SFUndoes* undo, SplineFont* sf ); |
| 49 | SFUndoes* SFUndoCreateRedo( SFUndoes* undo, SplineFont* sf ); |
| 50 | |
| 51 | void SFUndoPushFront( struct sfundoes ** undoes, SFUndoes* undo ); |
| 52 | |
| 53 | |
| 54 | |
| 55 | #endif /* FONTFORGE_SFUNDO_H */ |