diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-30 22:01:12 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-30 22:01:12 +0300 |
commit | 47796b75ff5dc43d38d21f6cf091a6c88478e571 (patch) | |
tree | e89202ad8bf27f9657bb42a37f7d00f3fda82ed8 /source/blender/editors/include/ED_util.h | |
parent | 14d1538941791513be70ef51bd956b425011d17f (diff) |
2.5
Undo editmode and global undo code back.
It's now called ED_undo_push() btw, but don't worry, for operators
this is going to be a simple operator flag, so you can remove the
old calls from all tools (but keep them when you directly change
data outide modifiers).
Will put undo back functional tomorrow
Diffstat (limited to 'source/blender/editors/include/ED_util.h')
-rw-r--r-- | source/blender/editors/include/ED_util.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_util.h b/source/blender/editors/include/ED_util.h index 93bb5ef1208..49aee466562 100644 --- a/source/blender/editors/include/ED_util.h +++ b/source/blender/editors/include/ED_util.h @@ -28,6 +28,30 @@ #ifndef ED_UTIL_H #define ED_UTIL_H +struct Object; +struct bContext; +struct uiMenuBlockHandle; +struct uiBlock; + +/* ************** Undo ************************ */ + +/* undo.c */ +void ED_redo (struct bContext *C); +void ED_undo (struct bContext *C); +void ED_undo_push (struct bContext *C, char *str); +void ED_undo_menu (struct bContext *C); + +/* undo_editmode.c */ +void undo_editmode_push (char *name, void (*freedata)(void *), + void (*to_editmode)(void *), void *(*from_editmode)(void), + int (*validate_undo)(void *)); +void *undo_editmode_get_prev (struct Object *ob); +struct uiBlock *editmode_undohistorymenu(struct bContext *C, struct uiMenuBlockHandle *handle, void *arg_unused); +void undo_editmode_menu (void); +void undo_editmode_clear (void); +void undo_editmode_step (int step); + + /* ************** XXX OLD CRUFT WARNING ************* */ void apply_keyb_grid(int shift, int ctrl, float *val, float fac1, float fac2, float fac3, int invert); |