![]() |
Blender V2.61 - r43446
|
#include <stdlib.h>#include <string.h>#include <math.h>#include "MEM_guardedalloc.h"#include "DNA_object_types.h"#include "BLI_blenlib.h"#include "BLI_editVert.h"#include "BLI_dynstr.h"#include "BLI_utildefines.h"#include "BKE_blender.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_screen.h"#include "ED_armature.h"#include "ED_particle.h"#include "ED_curve.h"#include "ED_gpencil.h"#include "ED_mball.h"#include "ED_mesh.h"#include "ED_object.h"#include "ED_screen.h"#include "ED_sculpt.h"#include "ED_util.h"#include "ED_text.h"#include "WM_api.h"#include "WM_types.h"#include "RNA_access.h"#include "RNA_define.h"#include "UI_interface.h"#include "UI_resources.h"#include "util_intern.h"Go to the source code of this file.
Definition in file undo.c.
| #define MAXUNDONAME 64 |
Definition at line 75 of file undo.c.
Referenced by ED_OT_undo_push(), and ed_undo_push_exec().
| #define UNDOSYSTEM_EDITMODE 2 |
Definition at line 415 of file undo.c.
Referenced by get_undo_system(), rna_undo_itemf(), and undo_history_exec().
| #define UNDOSYSTEM_GLOBAL 1 |
Definition at line 414 of file undo.c.
Referenced by get_undo_system().
| #define UNDOSYSTEM_PARTICLE 3 |
Definition at line 416 of file undo.c.
Referenced by get_undo_system(), rna_undo_itemf(), and undo_history_exec().
| void ED_OT_redo | ( | wmOperatorType * | ot | ) |
Definition at line 325 of file undo.c.
References wmOperatorType::description, ED_operator_screenactive(), ed_redo_exec(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
| void ED_OT_undo | ( | wmOperatorType * | ot | ) |
Definition at line 298 of file undo.c.
References wmOperatorType::description, ED_operator_screenactive(), ed_undo_exec(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
| void ED_OT_undo_history | ( | wmOperatorType * | ot | ) |
Definition at line 534 of file undo.c.
References wmOperatorType::description, ED_operator_screenactive(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, undo_history_exec(), and undo_history_invoke().
Referenced by ED_operatortypes_screen().
| void ED_OT_undo_push | ( | wmOperatorType * | ot | ) |
Definition at line 310 of file undo.c.
References wmOperatorType::description, ed_undo_push_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MAXUNDONAME, wmOperatorType::name, OPTYPE_INTERNAL, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
| static int ed_redo_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 290 of file undo.c.
References ed_undo_step(), and NULL.
Referenced by ED_OT_redo().
| static int ed_undo_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 275 of file undo.c.
References CTX_wm_manager(), ed_undo_step(), NULL, and WM_operator_stack_clear().
Referenced by ED_OT_undo().
| int ED_undo_operator_repeat | ( | bContext * | C, |
| struct wmOperator * | op | ||
| ) |
Definition at line 339 of file undo.c.
References BKE_area_find_region_type(), wmOperatorType::check, CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_region_set(), ED_undo_pop_op(), ED_undo_redo(), G, G_DEBUG, wmOperatorType::name, OPERATOR_FINISHED, RGN_TYPE_WINDOW, wmOperator::type, WM_jobs_test(), WM_operator_poll(), WM_operator_repeat(), and WM_operator_repeat_check().
Referenced by ED_undo_operator_repeat_cb(), ED_undo_operator_repeat_cb_evt(), and file_browse_exec().
| void ED_undo_operator_repeat_cb | ( | bContext * | C, |
| void * | arg_op, | ||
| void * | UNUSEDarg_unused | ||
| ) |
Definition at line 401 of file undo.c.
References ED_undo_operator_repeat().
| void ED_undo_operator_repeat_cb_evt | ( | bContext * | C, |
| void * | arg_op, | ||
| int | UNUSEDarg_event | ||
| ) |
Definition at line 406 of file undo.c.
References ED_undo_operator_repeat().
| void ED_undo_pop | ( | bContext * | C | ) |
Definition at line 208 of file undo.c.
References ed_undo_step(), and NULL.
Referenced by redraw_timer_exec().
| void ED_undo_pop_op | ( | bContext * | C, |
| wmOperator * | op | ||
| ) |
Definition at line 223 of file undo.c.
References ed_undo_step(), wmOperatorType::name, and wmOperator::type.
Referenced by ED_undo_operator_repeat().
| void ED_undo_push | ( | bContext * | C, |
| const char * | str | ||
| ) |
Definition at line 79 of file undo.c.
References BKE_write_undo(), CTX_data_active_object(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_manager(), ELEM, wmWindowManager::file_saved, G, G_DEBUG, Object::mode, NC_WM, ND_DATACHANGED, NULL, OB_ARMATURE, OB_CURVE, OB_FONT, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_PARTICLE_EDIT, OB_SURF, PE_undo_push(), Object::type, U, UserDef::uiflag, undo_push_armature(), undo_push_curve(), undo_push_font(), undo_push_lattice(), undo_push_mball(), undo_push_mesh(), UserDef::undosteps, USER_GLOBALUNDO, and WM_event_add_notifier().
Referenced by adjustGraphs(), BIF_retargetArmature(), colorband_add_cb(), colorband_del_cb(), colorband_flip_cb(), curvesurf_prim_add(), delete_fmodifier_cb(), do_logic_buts(), do_view3d_header_buttons(), ED_object_enter_editmode(), ED_object_exit_editmode(), ed_undo_push_exec(), ED_undo_push_op(), modifiers_convertToReal(), old_sca_move_actuator(), old_sca_move_controller(), old_sca_move_sensor(), outliner_action_set_exec(), outliner_animdata_operation_exec(), outliner_data_operation_exec(), outliner_group_operation_exec(), outliner_id_operation_exec(), outliner_item_activate(), outliner_object_operation_exec(), and ui_apply_but_funcs_after().
| static int ed_undo_push_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 282 of file undo.c.
References ED_undo_push(), MAXUNDONAME, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and str.
Referenced by ED_OT_undo_push().
| void ED_undo_push_op | ( | bContext * | C, |
| wmOperator * | op | ||
| ) |
Definition at line 217 of file undo.c.
References ED_undo_push(), wmOperatorType::name, and wmOperator::type.
Referenced by wm_handler_fileselect_call(), wm_operator_finished(), and WM_operator_props_popup().
| void ED_undo_redo | ( | bContext * | C | ) |
Definition at line 212 of file undo.c.
References ed_undo_step(), and NULL.
Referenced by ED_undo_operator_repeat(), and redraw_timer_exec().
| static int ed_undo_step | ( | bContext * | C, |
| int | step, | ||
| const char * | undoname | ||
| ) | [static] |
Definition at line 122 of file undo.c.
References BKE_undo_name(), BKE_undo_step(), CTX_data_active_object(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), ED_gpencil_session_active(), ED_text_undo_step(), ED_undo_gpencil_step(), ED_undo_paint_step(), ELEM7, ListBase::first, SpaceImage::flag, Object::mode, NC_GEOM, NC_SCENE, NC_WINDOW, ND_DATA, ND_LAYER_CONTENT, NULL, OB_ARMATURE, OB_CURVE, OB_FONT, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_PARTICLE_EDIT, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_SURF, OPERATOR_CANCELLED, OPERATOR_FINISHED, PE_redo(), PE_undo(), SI_DRAWTOOL, SPACE_IMAGE, SPACE_TEXT, ScrArea::spacedata, ScrArea::spacetype, Object::type, U, UserDef::uiflag, undo_editmode_name(), undo_editmode_step(), UNDO_PAINT_IMAGE, UNDO_PAINT_MESH, USER_GLOBALUNDO, WM_event_add_notifier(), and WM_jobs_test().
Referenced by ed_redo_exec(), ed_undo_exec(), ED_undo_pop(), ED_undo_pop_op(), and ED_undo_redo().
| int ED_undo_valid | ( | const bContext * | C, |
| const char * | undoname | ||
| ) |
Definition at line 230 of file undo.c.
References BKE_undo_valid(), CTX_data_active_object(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_area(), ED_undo_paint_valid(), ELEM7, ListBase::first, SpaceImage::flag, Object::mode, OB_ARMATURE, OB_CURVE, OB_FONT, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_PARTICLE_EDIT, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_SURF, PE_undo_valid(), SI_DRAWTOOL, SPACE_IMAGE, SPACE_TEXT, ScrArea::spacedata, ScrArea::spacetype, Object::type, U, UserDef::uiflag, undo_editmode_valid(), UNDO_PAINT_IMAGE, UNDO_PAINT_MESH, and USER_GLOBALUNDO.
| static int get_undo_system | ( | bContext * | C | ) | [static] |
Definition at line 418 of file undo.c.
References CTX_data_active_object(), CTX_data_edit_object(), ELEM7, Object::mode, OB_ARMATURE, OB_CURVE, OB_FONT, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_PARTICLE_EDIT, OB_SURF, Scene::obedit, Object::type, U, UserDef::uiflag, UNDOSYSTEM_EDITMODE, UNDOSYSTEM_GLOBAL, UNDOSYSTEM_PARTICLE, and USER_GLOBALUNDO.
Referenced by undo_history_exec(), and undo_history_invoke().
| static EnumPropertyItem* rna_undo_itemf | ( | bContext * | C, |
| int | undosys, | ||
| int * | totitem | ||
| ) | [static] |
Definition at line 440 of file undo.c.
References BKE_undo_get_name(), CTX_data_scene(), i, EnumPropertyItem::icon, EnumPropertyItem::identifier, EnumPropertyItem::name, NULL, PE_undo_get_name(), RNA_enum_item_add(), RNA_enum_item_end(), TRUE, undo_editmode_get_name(), UNDOSYSTEM_EDITMODE, UNDOSYSTEM_PARTICLE, and EnumPropertyItem::value.
Referenced by undo_history_invoke().
| static int undo_history_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 510 of file undo.c.
References BKE_undo_number(), CTX_data_scene(), get_undo_system(), NC_GEOM, NC_SCENE, NC_WINDOW, ND_DATA, ND_LAYER_CONTENT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PE_undo_number(), wmOperator::ptr, RNA_int_get(), RNA_struct_property_is_set(), undo_editmode_number(), UNDOSYSTEM_EDITMODE, UNDOSYSTEM_PARTICLE, and WM_event_add_notifier().
Referenced by ED_OT_undo_history().
| static int undo_history_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 477 of file undo.c.
References get_undo_system(), i, wmOperatorType::idname, MEM_freeN(), wmOperatorType::name, NULL, OPERATOR_CANCELLED, rna_undo_itemf(), split(), wmOperator::type, uiItemIntO(), uiLayoutColumn(), uiLayoutSplit(), uiPupMenuBegin(), uiPupMenuEnd(), uiPupMenuLayout(), and EnumPropertyItem::value.
Referenced by ED_OT_undo_history().