Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_undo.h
| Show All 20 Lines | |||||
| /** \file ED_undo.h | /** \file ED_undo.h | ||||
| * \ingroup editors | * \ingroup editors | ||||
| */ | */ | ||||
| #ifndef __ED_UNDO_H__ | #ifndef __ED_UNDO_H__ | ||||
| #define __ED_UNDO_H__ | #define __ED_UNDO_H__ | ||||
| struct bContext; | struct bContext; | ||||
| struct CLG_LogRef; | |||||
| struct wmOperator; | struct wmOperator; | ||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| struct UndoStack; | struct UndoStack; | ||||
| /* undo.c */ | /* undo.c */ | ||||
| void ED_undo_push(struct bContext *C, const char *str); | void ED_undo_push(struct bContext *C, const char *str); | ||||
| void ED_undo_push_op(struct bContext *C, struct wmOperator *op); | void ED_undo_push_op(struct bContext *C, struct wmOperator *op); | ||||
| void ED_undo_grouped_push(struct bContext *C, const char *str); | void ED_undo_grouped_push(struct bContext *C, const char *str); | ||||
| Show All 11 Lines | |||||
| /* convenience since UI callbacks use this mostly*/ | /* convenience since UI callbacks use this mostly*/ | ||||
| void ED_undo_operator_repeat_cb(struct bContext *C, void *arg_op, void *arg_unused); | void ED_undo_operator_repeat_cb(struct bContext *C, void *arg_op, void *arg_unused); | ||||
| void ED_undo_operator_repeat_cb_evt(struct bContext *C, void *arg_op, int arg_unused); | void ED_undo_operator_repeat_cb_evt(struct bContext *C, void *arg_op, int arg_unused); | ||||
| bool ED_undo_is_valid(const struct bContext *C, const char *undoname); | bool ED_undo_is_valid(const struct bContext *C, const char *undoname); | ||||
| struct UndoStack *ED_undo_stack_get(void); | struct UndoStack *ED_undo_stack_get(void); | ||||
| /* helpers */ | |||||
| void ED_undo_object_set_active_or_warn( | |||||
| struct ViewLayer *view_layer, struct Object *ob, const char *info, struct CLG_LogRef *log); | |||||
| /* undo_system_types.c */ | /* undo_system_types.c */ | ||||
| void ED_undosys_type_init(void); | void ED_undosys_type_init(void); | ||||
| void ED_undosys_type_free(void); | void ED_undosys_type_free(void); | ||||
| /* memfile_undo.c */ | /* memfile_undo.c */ | ||||
| struct MemFile *ED_undosys_stack_memfile_get_active(struct UndoStack *ustack); | struct MemFile *ED_undosys_stack_memfile_get_active(struct UndoStack *ustack); | ||||
| #endif /* __ED_UNDO_H__ */ | #endif /* __ED_UNDO_H__ */ | ||||