Blender V2.61 - r43446
Defines | Functions

undo.c File Reference

#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.

Defines

#define MAXUNDONAME   64
#define UNDOSYSTEM_GLOBAL   1
#define UNDOSYSTEM_EDITMODE   2
#define UNDOSYSTEM_PARTICLE   3

Functions

void ED_undo_push (bContext *C, const char *str)
static int ed_undo_step (bContext *C, int step, const char *undoname)
void ED_undo_pop (bContext *C)
void ED_undo_redo (bContext *C)
void ED_undo_push_op (bContext *C, wmOperator *op)
void ED_undo_pop_op (bContext *C, wmOperator *op)
int ED_undo_valid (const bContext *C, const char *undoname)
static int ed_undo_exec (bContext *C, wmOperator *UNUSED(op))
static int ed_undo_push_exec (bContext *C, wmOperator *op)
static int ed_redo_exec (bContext *C, wmOperator *UNUSED(op))
void ED_OT_undo (wmOperatorType *ot)
void ED_OT_undo_push (wmOperatorType *ot)
void ED_OT_redo (wmOperatorType *ot)
int ED_undo_operator_repeat (bContext *C, struct wmOperator *op)
void ED_undo_operator_repeat_cb (bContext *C, void *arg_op, void *UNUSED(arg_unused))
void ED_undo_operator_repeat_cb_evt (bContext *C, void *arg_op, int UNUSED(arg_event))
static int get_undo_system (bContext *C)
static EnumPropertyItemrna_undo_itemf (bContext *C, int undosys, int *totitem)
static int undo_history_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static int undo_history_exec (bContext *C, wmOperator *op)
void ED_OT_undo_history (wmOperatorType *ot)

Detailed Description

Definition in file undo.c.


Define Documentation

#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().


Function Documentation

void ED_OT_redo ( wmOperatorType ot)
void ED_OT_undo ( wmOperatorType ot)
void ED_OT_undo_history ( wmOperatorType ot)
void ED_OT_undo_push ( wmOperatorType ot)
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 
)
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 
)
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 
)
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]
int ED_undo_valid ( const bContext C,
const char *  undoname 
)
static int get_undo_system ( bContext C) [static]
static EnumPropertyItem* rna_undo_itemf ( bContext C,
int  undosys,
int *  totitem 
) [static]
static int undo_history_exec ( bContext C,
wmOperator op 
) [static]
static int undo_history_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]