Blender
V2.93
source
blender
editors
undo
undo_system_types.c
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
21
#include <string.h>
22
23
#include "
BLI_utildefines.h
"
24
25
#include "
ED_armature.h
"
26
#include "
ED_curve.h
"
27
#include "
ED_lattice.h
"
28
#include "
ED_mball.h
"
29
#include "
ED_mesh.h
"
30
#include "
ED_paint.h
"
31
#include "
ED_particle.h
"
32
#include "
ED_sculpt.h
"
33
#include "
ED_text.h
"
34
#include "
ED_undo.h
"
35
#include "
undo_intern.h
"
36
37
/* Keep last */
38
#include "
BKE_undo_system.h
"
39
40
void
ED_undosys_type_init
(
void
)
41
{
42
/* Edit Modes */
43
BKE_undosys_type_append
(
ED_armature_undosys_type
);
44
BKE_undosys_type_append
(
ED_curve_undosys_type
);
45
BKE_undosys_type_append
(
ED_font_undosys_type
);
46
BKE_undosys_type_append
(
ED_lattice_undosys_type
);
47
BKE_undosys_type_append
(
ED_mball_undosys_type
);
48
BKE_undosys_type_append
(
ED_mesh_undosys_type
);
49
50
/* Paint Modes */
51
BKE_UNDOSYS_TYPE_IMAGE
=
BKE_undosys_type_append
(
ED_image_undosys_type
);
52
53
BKE_UNDOSYS_TYPE_SCULPT
=
BKE_undosys_type_append
(
ED_sculpt_undosys_type
);
54
55
BKE_UNDOSYS_TYPE_PARTICLE
=
BKE_undosys_type_append
(
ED_particle_undosys_type
);
56
57
BKE_UNDOSYS_TYPE_PAINTCURVE
=
BKE_undosys_type_append
(
ED_paintcurve_undosys_type
);
58
59
/* Text editor */
60
BKE_UNDOSYS_TYPE_TEXT
=
BKE_undosys_type_append
(
ED_text_undosys_type
);
61
62
/* Keep global undo last (as a fallback). */
63
BKE_UNDOSYS_TYPE_MEMFILE
=
BKE_undosys_type_append
(
ED_memfile_undosys_type
);
64
}
65
66
void
ED_undosys_type_free
(
void
)
67
{
68
BKE_undosys_type_free_all
();
69
}
BKE_undo_system.h
BKE_undosys_type_append
UndoType * BKE_undosys_type_append(void(*undosys_fn)(UndoType *))
Definition:
undo_system.c:947
BKE_UNDOSYS_TYPE_SCULPT
const UndoType * BKE_UNDOSYS_TYPE_SCULPT
Definition:
undo_system.c:104
BKE_UNDOSYS_TYPE_MEMFILE
const UndoType * BKE_UNDOSYS_TYPE_MEMFILE
Definition:
undo_system.c:101
BKE_UNDOSYS_TYPE_PARTICLE
const UndoType * BKE_UNDOSYS_TYPE_PARTICLE
Definition:
undo_system.c:103
BKE_UNDOSYS_TYPE_TEXT
const UndoType * BKE_UNDOSYS_TYPE_TEXT
Definition:
undo_system.c:105
BKE_UNDOSYS_TYPE_PAINTCURVE
const UndoType * BKE_UNDOSYS_TYPE_PAINTCURVE
Definition:
undo_system.c:102
BKE_undosys_type_free_all
void BKE_undosys_type_free_all(void)
Definition:
undo_system.c:960
BKE_UNDOSYS_TYPE_IMAGE
const UndoType * BKE_UNDOSYS_TYPE_IMAGE
Definition:
undo_system.c:100
BLI_utildefines.h
ED_armature.h
ED_curve.h
ED_lattice.h
ED_lattice_undosys_type
void ED_lattice_undosys_type(struct UndoType *ut)
Definition:
editlattice_undo.c:282
ED_mball.h
ED_mball_undosys_type
void ED_mball_undosys_type(struct UndoType *ut)
Definition:
editmball_undo.c:257
ED_mesh.h
ED_mesh_undosys_type
void ED_mesh_undosys_type(struct UndoType *ut)
Definition:
editmesh_undo.c:840
ED_paint.h
ED_paintcurve_undosys_type
void ED_paintcurve_undosys_type(struct UndoType *ut)
Definition:
paint_curve_undo.c:151
ED_image_undosys_type
void ED_image_undosys_type(struct UndoType *ut)
Definition:
image_undo.c:993
ED_particle.h
ED_particle_undosys_type
void ED_particle_undosys_type(struct UndoType *ut)
Definition:
particle_edit_undo.c:305
ED_sculpt.h
ED_sculpt_undosys_type
void ED_sculpt_undosys_type(struct UndoType *ut)
Definition:
sculpt_undo.c:1604
ED_text.h
ED_text_undosys_type
void ED_text_undosys_type(struct UndoType *ut)
Definition:
text_undo.c:257
ED_undo.h
ED_armature_undosys_type
void ED_armature_undosys_type(UndoType *ut)
Definition:
editarmature_undo.c:248
ED_curve_undosys_type
void ED_curve_undosys_type(UndoType *ut)
Definition:
editcurve_undo.c:309
ED_font_undosys_type
void ED_font_undosys_type(UndoType *ut)
Definition:
editfont_undo.c:409
ED_memfile_undosys_type
void ED_memfile_undosys_type(UndoType *ut)
Definition:
memfile_undo.c:275
undo_intern.h
ED_undosys_type_free
void ED_undosys_type_free(void)
Definition:
undo_system_types.c:66
ED_undosys_type_init
void ED_undosys_type_init(void)
Definition:
undo_system_types.c:40
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1