Blender V2.61 - r43446
Classes | Typedefs | Functions

anim_markers.c File Reference

#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_view2d.h"
#include "UI_resources.h"
#include "ED_anim_api.h"
#include "ED_markers.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "ED_numinput.h"
#include "ED_object.h"
#include "ED_transform.h"
#include "ED_types.h"

Go to the source code of this file.

Classes

struct  MarkerMove

Typedefs

typedef struct MarkerMove MarkerMove

Functions

static ListBasecontext_get_markers (Scene *scene, ScrArea *sa)
ListBaseED_context_get_markers (const bContext *C)
ListBaseED_animcontext_get_markers (const bAnimContext *ac)
int ED_markers_post_apply_transform (ListBase *markers, Scene *scene, int mode, float value, char side)
TimeMarkerED_markers_find_nearest_marker (ListBase *markers, float x)
int ED_markers_find_nearest_marker_time (ListBase *markers, float x)
void ED_markers_get_minmax (ListBase *markers, short sel, float *first, float *last)
static void add_marker_to_cfra_elem (ListBase *lb, TimeMarker *marker, short only_sel)
void ED_markers_make_cfra_list (ListBase *markers, ListBase *lb, short only_sel)
TimeMarkerED_markers_get_first_selected (ListBase *markers)
void debug_markers_print_list (ListBase *markers)
static void draw_marker (View2D *v2d, TimeMarker *marker, int cfra, int flag)
void draw_markers_time (const bContext *C, int flag)
static int ed_markers_poll_selected_markers (bContext *C)
static int ed_markers_poll_markers_exist (bContext *C)
static int ed_markers_opwrap_invoke_custom (bContext *C, wmOperator *op, wmEvent *evt, int(*invoke_func)(bContext *, wmOperator *, wmEvent *))
static int ed_markers_opwrap_invoke (bContext *C, wmOperator *op, wmEvent *evt)
static int ed_marker_add (bContext *C, wmOperator *UNUSED(op))
static void MARKER_OT_add (wmOperatorType *ot)
static int ed_marker_move_init (bContext *C, wmOperator *op)
static void ed_marker_move_exit (bContext *C, wmOperator *op)
static int ed_marker_move_invoke (bContext *C, wmOperator *op, wmEvent *evt)
static int ed_marker_move_invoke_wrapper (bContext *C, wmOperator *op, wmEvent *evt)
static void ed_marker_move_apply (wmOperator *op)
static int ed_marker_move_cancel (bContext *C, wmOperator *op)
static int ed_marker_move_modal (bContext *C, wmOperator *op, wmEvent *evt)
static int ed_marker_move_exec (bContext *C, wmOperator *op)
static void MARKER_OT_move (wmOperatorType *ot)
static void ed_marker_duplicate_apply (bContext *C)
static int ed_marker_duplicate_exec (bContext *C, wmOperator *op)
static int ed_marker_duplicate_invoke (bContext *C, wmOperator *op, wmEvent *evt)
static int ed_marker_duplicate_invoke_wrapper (bContext *C, wmOperator *op, wmEvent *evt)
static void MARKER_OT_duplicate (wmOperatorType *ot)
static void select_timeline_marker_frame (ListBase *markers, int frame, unsigned char shift)
static int ed_marker_select (bContext *C, wmEvent *evt, int extend, int camera)
static int ed_marker_select_invoke (bContext *C, wmOperator *op, wmEvent *evt)
static int ed_marker_select_invoke_wrapper (bContext *C, wmOperator *op, wmEvent *evt)
static void MARKER_OT_select (wmOperatorType *ot)
static int ed_marker_border_select_exec (bContext *C, wmOperator *op)
static int ed_marker_select_border_invoke_wrapper (bContext *C, wmOperator *op, wmEvent *evt)
static void MARKER_OT_select_border (wmOperatorType *ot)
static int ed_marker_select_all_exec (bContext *C, wmOperator *op)
static void MARKER_OT_select_all (wmOperatorType *ot)
static int ed_marker_delete_exec (bContext *C, wmOperator *UNUSED(op))
static int ed_marker_delete_invoke_wrapper (bContext *C, wmOperator *op, wmEvent *evt)
static void MARKER_OT_delete (wmOperatorType *ot)
static int ed_marker_rename_exec (bContext *C, wmOperator *op)
static int ed_marker_rename_invoke_wrapper (bContext *C, wmOperator *op, wmEvent *evt)
static void MARKER_OT_rename (wmOperatorType *ot)
static int ed_marker_make_links_scene_exec (bContext *C, wmOperator *op)
static void MARKER_OT_make_links_scene (wmOperatorType *ot)
void ED_operatortypes_marker (void)
void ED_marker_keymap (wmKeyConfig *keyconf)
void ED_marker_keymap_animedit_conflictfree (wmKeyMap *keymap)

Detailed Description

Definition in file anim_markers.c.


Typedef Documentation

typedef struct MarkerMove MarkerMove

Function Documentation

static void add_marker_to_cfra_elem ( ListBase lb,
TimeMarker marker,
short  only_sel 
) [static]
static ListBase* context_get_markers ( Scene scene,
ScrArea sa 
) [static]
void debug_markers_print_list ( ListBase markers)
static void draw_marker ( View2D v2d,
TimeMarker marker,
int  cfra,
int  flag 
) [static]
void draw_markers_time ( const bContext C,
int  flag 
)
ListBase* ED_animcontext_get_markers ( const bAnimContext ac)

Definition at line 107 of file anim_markers.c.

References context_get_markers(), NULL, bAnimContext::sa, and bAnimContext::scene.

Referenced by actkeys_select_leftright().

ListBase* ED_context_get_markers ( const bContext C)
static int ed_marker_add ( bContext C,
wmOperator UNUSEDop 
) [static]
static int ed_marker_border_select_exec ( bContext C,
wmOperator op 
) [static]
static int ed_marker_delete_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int ed_marker_delete_invoke_wrapper ( bContext C,
wmOperator op,
wmEvent evt 
) [static]

Definition at line 1290 of file anim_markers.c.

References ed_markers_opwrap_invoke_custom(), and WM_operator_confirm().

Referenced by MARKER_OT_delete().

static void ed_marker_duplicate_apply ( bContext C) [static]
static int ed_marker_duplicate_exec ( bContext C,
wmOperator op 
) [static]
static int ed_marker_duplicate_invoke ( bContext C,
wmOperator op,
wmEvent evt 
) [static]
static int ed_marker_duplicate_invoke_wrapper ( bContext C,
wmOperator op,
wmEvent evt 
) [static]

Definition at line 968 of file anim_markers.c.

References ed_marker_duplicate_invoke(), and ed_markers_opwrap_invoke_custom().

Referenced by MARKER_OT_duplicate().

void ED_marker_keymap ( wmKeyConfig keyconf)
void ED_marker_keymap_animedit_conflictfree ( wmKeyMap keymap)
static int ed_marker_make_links_scene_exec ( bContext C,
wmOperator op 
) [static]
static void ed_marker_move_apply ( wmOperator op) [static]
static int ed_marker_move_cancel ( bContext C,
wmOperator op 
) [static]
static int ed_marker_move_exec ( bContext C,
wmOperator op 
) [static]
static void ed_marker_move_exit ( bContext C,
wmOperator op 
) [static]
static int ed_marker_move_init ( bContext C,
wmOperator op 
) [static]
static int ed_marker_move_invoke ( bContext C,
wmOperator op,
wmEvent evt 
) [static]
static int ed_marker_move_invoke_wrapper ( bContext C,
wmOperator op,
wmEvent evt 
) [static]

Definition at line 697 of file anim_markers.c.

References ed_marker_move_invoke(), and ed_markers_opwrap_invoke_custom().

Referenced by MARKER_OT_move().

static int ed_marker_move_modal ( bContext C,
wmOperator op,
wmEvent evt 
) [static]
static int ed_marker_rename_exec ( bContext C,
wmOperator op 
) [static]
static int ed_marker_rename_invoke_wrapper ( bContext C,
wmOperator op,
wmEvent evt 
) [static]
static int ed_marker_select ( bContext C,
wmEvent evt,
int  extend,
int  camera 
) [static]
static int ed_marker_select_all_exec ( bContext C,
wmOperator op 
) [static]
static int ed_marker_select_border_invoke_wrapper ( bContext C,
wmOperator op,
wmEvent evt 
) [static]
static int ed_marker_select_invoke ( bContext C,
wmOperator op,
wmEvent evt 
) [static]

Definition at line 1083 of file anim_markers.c.

References ed_marker_select(), wmOperator::ptr, and RNA_boolean_get().

Referenced by ed_marker_select_invoke_wrapper().

static int ed_marker_select_invoke_wrapper ( bContext C,
wmOperator op,
wmEvent evt 
) [static]

Definition at line 1093 of file anim_markers.c.

References ed_marker_select_invoke(), and ed_markers_opwrap_invoke_custom().

Referenced by MARKER_OT_select().

TimeMarker* ED_markers_find_nearest_marker ( ListBase markers,
float  x 
) [read]
int ED_markers_find_nearest_marker_time ( ListBase markers,
float  x 
)
TimeMarker* ED_markers_get_first_selected ( ListBase markers) [read]
void ED_markers_get_minmax ( ListBase markers,
short  sel,
float *  first,
float *  last 
)
void ED_markers_make_cfra_list ( ListBase markers,
ListBase lb,
short  only_sel 
)
static int ed_markers_opwrap_invoke ( bContext C,
wmOperator op,
wmEvent evt 
) [static]
static int ed_markers_opwrap_invoke_custom ( bContext C,
wmOperator op,
wmEvent evt,
int(*)(bContext *, wmOperator *, wmEvent *)  invoke_func 
) [static]
static int ed_markers_poll_markers_exist ( bContext C) [static]
static int ed_markers_poll_selected_markers ( bContext C) [static]
int ED_markers_post_apply_transform ( ListBase markers,
Scene scene,
int  mode,
float  value,
char  side 
)
void ED_operatortypes_marker ( void  )
static void MARKER_OT_add ( wmOperatorType ot) [static]
static void MARKER_OT_delete ( wmOperatorType ot) [static]
static void MARKER_OT_duplicate ( wmOperatorType ot) [static]
static void MARKER_OT_make_links_scene ( wmOperatorType ot) [static]
static void MARKER_OT_move ( wmOperatorType ot) [static]
static void MARKER_OT_rename ( wmOperatorType ot) [static]
static void MARKER_OT_select ( wmOperatorType ot) [static]
static void MARKER_OT_select_all ( wmOperatorType ot) [static]
static void MARKER_OT_select_border ( wmOperatorType ot) [static]
static void select_timeline_marker_frame ( ListBase markers,
int  frame,
unsigned char  shift 
) [static]

Definition at line 997 of file anim_markers.c.

References ListBase::first, TimeMarker::flag, TimeMarker::frame, TimeMarker::next, and SELECT.

Referenced by ed_marker_select().