Blender
V3.3
|
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_idprop.h"
#include "BKE_layer.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "BKE_unit.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "GPU_state.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "ED_anim_api.h"
#include "ED_markers.h"
#include "ED_numinput.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "ED_transform.h"
#include "ED_types.h"
#include "ED_util.h"
#include "DEG_depsgraph.h"
Go to the source code of this file.
Classes | |
struct | MarkerMove |
Select Left/Right of Frame | |
enum | eMarkers_LeftRightSelect_Mode { MARKERS_LRSEL_LEFT = 0 , MARKERS_LRSEL_RIGHT } |
typedef enum eMarkers_LeftRightSelect_Mode | eMarkers_LeftRightSelect_Mode |
static const EnumPropertyItem | prop_markers_select_leftright_modes [] |
static void | ED_markers_select_leftright (bAnimContext *ac, const eMarkers_LeftRightSelect_Mode mode, const bool extend) |
static int | ed_marker_select_leftright_exec (bContext *C, wmOperator *op) |
static void | MARKER_OT_select_leftright (wmOperatorType *ot) |
Transform Markers | |
typedef struct MarkerMove | MarkerMove |
static bool | ed_marker_move_use_time (MarkerMove *mm) |
static void | ed_marker_move_update_header (bContext *C, wmOperator *op) |
static bool | 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, const wmEvent *event) |
static void | ed_marker_move_apply (bContext *C, wmOperator *op) |
static void | ed_marker_move_cancel (bContext *C, wmOperator *op) |
static int | ed_marker_move_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static int | ed_marker_move_exec (bContext *C, wmOperator *op) |
static void | MARKER_OT_move (wmOperatorType *ot) |
typedef struct MarkerMove MarkerMove |
Enumerator | |
---|---|
MARKERS_LRSEL_LEFT | |
MARKERS_LRSEL_RIGHT |
Definition at line 1473 of file anim_markers.c.
|
static |
Definition at line 261 of file anim_markers.c.
References BLI_addtail(), BLI_insertlinkbefore(), CfraElem::cfra, ListBase::first, TimeMarker::flag, TimeMarker::frame, MEM_callocN, CfraElem::next, CfraElem::sel, and SELECT.
Referenced by ED_markers_make_cfra_list().
Definition at line 64 of file anim_markers.c.
References SpaceAction::action, blender::compositor::area(), ELEM, SpaceAction::flag, if(), bAction::markers, Scene::markers, SpaceAction::mode, SACTCONT_ACTION, SACTCONT_SHAPEKEY, SACTION_POSEMARKERS_SHOW, scene, and SPACE_ACTION.
Referenced by ED_animcontext_get_markers(), and ED_context_get_markers().
Debugging only: print debugging prints of list of markers.
Definition at line 361 of file anim_markers.c.
References TimeMarker::flag, TimeMarker::frame, markers, TimeMarker::name, TimeMarker::next, and NULL.
Definition at line 1155 of file anim_markers.c.
References LISTBASE_FOREACH, markers, and SELECT.
Referenced by ed_marker_select(), ED_markers_select_leftright(), and select_timeline_marker_frame().
|
static |
Definition at line 465 of file anim_markers.c.
References draw_marker_line(), draw_marker_name(), TimeMarker::flag, TimeMarker::frame, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, marker_color_get(), marker_get_icon_id(), SELECT, UI_DPI_FAC, UI_DPI_ICON_SIZE, and UI_icon_draw().
Referenced by ED_markers_draw().
Definition at line 426 of file anim_markers.c.
References color, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniformColor4ubv(), immVertex2f(), immVertexFormat(), pos, and UI_DPI_FAC.
Referenced by draw_marker().
|
static |
Definition at line 401 of file anim_markers.c.
References TimeMarker::camera, camera, copy_v4_v4_uchar(), TimeMarker::name, OB_HIDE_RENDER, UI_DPI_ICON_SIZE, and UI_fontstyle_draw_simple().
Referenced by draw_marker().
Definition at line 490 of file anim_markers.c.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4ubv(), immVertexFormat(), pos, TH_TIME_SCRUB_BACKGROUND, UI_GetThemeColor4ubv(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ED_markers_draw().
ListBase* ED_animcontext_get_markers | ( | const bAnimContext * | ac | ) |
Definition at line 93 of file anim_markers.c.
References bAnimContext::area, context_get_markers(), NULL, and bAnimContext::scene.
Referenced by actkeys_select_leftright().
Definition at line 88 of file anim_markers.c.
References C, context_get_markers(), CTX_data_scene(), and CTX_wm_area().
Referenced by act_markers_make_local_exec(), act_markers_make_local_poll(), ANIM_animdata_get_context(), ed_marker_add_exec(), ed_marker_box_select_exec(), ed_marker_box_select_invoke(), ed_marker_delete_exec(), ed_marker_duplicate_apply(), ed_marker_make_links_scene_exec(), ed_marker_move_init(), ed_marker_move_invoke(), ed_marker_rename_exec(), ed_marker_rename_invoke(), ed_marker_select(), ed_marker_select_all_exec(), ED_markers_draw(), ed_markers_poll_markers_exist(), ed_markers_poll_selected_markers(), ed_markers_poll_selected_no_locked_markers(), graphkeys_viewall(), sequencer_main_clamp_view(), and special_aftertrans_update__actedit().
void ED_keymap_marker | ( | struct wmKeyConfig * | keyconf | ) |
Called in screen_ops.c:ED_keymap_screen().
Definition at line 1827 of file anim_markers.c.
References WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
|
static |
Definition at line 642 of file anim_markers.c.
References BLI_addtail(), BLI_snprintf(), C, RenderData::cfra, CTX_data_scene(), ED_context_get_markers(), TimeMarker::flag, TimeMarker::frame, markers, MEM_callocN, TimeMarker::name, NC_ANIMATION, NC_SCENE, ND_MARKERS, TimeMarker::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, SELECT, and WM_event_add_notifier().
Referenced by MARKER_OT_add().
|
static |
Definition at line 1369 of file anim_markers.c.
References BLI_rctf_isect_x(), C, ED_context_get_markers(), ED_markers_deselect_all(), LISTBASE_FOREACH, markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, NULL, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), SELECT, SET_FLAG_FROM_TEST, UI_view2d_fromcontext(), UI_view2d_region_to_view_rctf(), WM_event_add_notifier(), and WM_operator_properties_border_to_rctf().
Referenced by MARKER_OT_select_box().
|
static |
Definition at line 1352 of file anim_markers.c.
References C, CTX_wm_region(), ED_context_get_markers(), markers, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, region_position_is_over_marker(), RNA_boolean_get(), ARegion::v2d, ARegion::winrct, WM_gesture_box_invoke(), rcti::xmin, and wmEvent::xy.
Referenced by MARKER_OT_select_box().
|
static |
Definition at line 1552 of file anim_markers.c.
References BLI_freelinkN(), C, ED_context_get_markers(), TimeMarker::flag, IDP_FreePropertyContent(), markers, MEM_freeN, NC_ANIMATION, NC_SCENE, ND_MARKERS, TimeMarker::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, TimeMarker::prop, SELECT, and WM_event_add_notifier().
Referenced by MARKER_OT_delete().
Definition at line 1074 of file anim_markers.c.
References BLI_addhead(), BLI_strncpy(), C, TimeMarker::camera, ED_context_get_markers(), TimeMarker::flag, TimeMarker::frame, IDP_CopyProperty(), markers, MEM_callocN, TimeMarker::name, TimeMarker::next, NULL, TimeMarker::prop, and SELECT.
Referenced by ed_marker_duplicate_exec(), and ed_marker_duplicate_invoke().
|
static |
Definition at line 1112 of file anim_markers.c.
References C, ed_marker_duplicate_apply(), ed_marker_move_exec(), and OPERATOR_FINISHED.
Referenced by MARKER_OT_duplicate().
|
static |
Definition at line 1120 of file anim_markers.c.
References C, ed_marker_duplicate_apply(), and ed_marker_move_invoke().
Referenced by MARKER_OT_duplicate().
|
static |
Definition at line 1672 of file anim_markers.c.
References BKE_report(), BLI_addtail(), BLI_findlink(), C, CTX_data_main(), CTX_data_scene(), ED_context_get_markers(), TimeMarker::flag, ToolSettings::lock_markers, markers, Scene::markers, MEM_dupallocN, TimeMarker::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, TimeMarker::prev, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, Main::scenes, SELECT, and Scene::toolsettings.
Referenced by MARKER_OT_make_links_scene().
|
static |
Definition at line 884 of file anim_markers.c.
References Freestyle::a, BKE_scene_camera_switch_update(), BKE_screen_view3d_scene_sync(), C, Scene::camera, camera, CTX_data_scene(), CTX_wm_screen(), wmOperator::customdata, ListBase::first, TimeMarker::flag, TimeMarker::frame, MarkerMove::markers, NA_EDITED, NC_ANIMATION, NC_SCENE, ND_MARKERS, TimeMarker::next, NULL, MarkerMove::oldframe, wmOperator::ptr, RNA_int_get(), scene, SELECT, and WM_event_add_notifier().
Referenced by ed_marker_move_cancel(), ed_marker_move_exec(), and ed_marker_move_modal().
|
static |
Definition at line 918 of file anim_markers.c.
References C, ed_marker_move_apply(), ed_marker_move_exit(), wmOperator::ptr, and RNA_int_set().
Referenced by ed_marker_move_modal(), MARKER_OT_duplicate(), and MARKER_OT_move().
|
static |
Definition at line 1017 of file anim_markers.c.
References C, ed_marker_move_apply(), ed_marker_move_exit(), ed_marker_move_init(), OPERATOR_FINISHED, and OPERATOR_PASS_THROUGH.
Referenced by ed_marker_duplicate_exec(), and MARKER_OT_move().
|
static |
Definition at line 834 of file anim_markers.c.
References C, CTX_wm_area(), wmOperator::customdata, ED_area_status_text(), MEM_freeN, NULL, and MarkerMove::oldframe.
Referenced by ed_marker_move_cancel(), ed_marker_move_exec(), and ed_marker_move_modal().
|
static |
Definition at line 789 of file anim_markers.c.
References Freestyle::a, B_UNIT_NONE, B_UNIT_TIME, C, CTX_data_scene(), CTX_wm_space_data(), wmOperator::customdata, ED_context_get_markers(), ed_marker_move_use_time(), TimeMarker::flag, TimeMarker::frame, NumInput::idx_max, initNumInput(), markers, MarkerMove::markers, MEM_callocN, TimeMarker::next, NULL, MarkerMove::num, NUM_NO_FRACTION, MarkerMove::oldframe, scene, SELECT, MarkerMove::slink, UnitSettings::system, Scene::unit, NumInput::unit_sys, NumInput::unit_type, and NumInput::val_flag.
Referenced by ed_marker_move_exec(), and ed_marker_move_invoke().
|
static |
Definition at line 847 of file anim_markers.c.
References C, CTX_wm_region(), wmOperator::customdata, ED_context_get_markers(), ed_marker_move_init(), ed_marker_move_update_header(), MarkerMove::event_type, MarkerMove::event_val, MarkerMove::evtx, MarkerMove::firstx, markers, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, region_position_is_over_marker(), RNA_boolean_get(), RNA_int_set(), RNA_struct_find_property(), ARegion::v2d, ARegion::winrct, WM_event_add_modal_handler(), rcti::xmin, and wmEvent::xy.
Referenced by ed_marker_duplicate_invoke(), and MARKER_OT_move().
|
static |
Definition at line 925 of file anim_markers.c.
References apply_keyb_grid(), applyNumInput(), ATTR_FALLTHROUGH, BLI_rctf_size_x(), BLI_rcti_size_x(), C, CTX_data_scene(), View2D::cur, wmOperator::customdata, ed_marker_move_apply(), ed_marker_move_cancel(), ed_marker_move_exit(), ed_marker_move_update_header(), ed_marker_move_use_time(), MarkerMove::event_type, MarkerMove::event_val, EVT_ESCKEY, EVT_PADENTER, EVT_RETKEY, MarkerMove::evtx, MarkerMove::firstx, float(), FPS, handleNumInput(), hasNumInput(), KM_CTRL, KM_PRESS, KM_SHIFT, LEFTMOUSE, View2D::mask, MIDDLEMOUSE, wmEvent::modifier, MOUSEMOVE, NC_ANIMATION, NC_SCENE, ND_MARKERS, NULL, MarkerMove::num, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_int_get(), RNA_int_set(), scene, TIME2FRA, wmEvent::type, UI_view2d_fromcontext(), wmEvent::val, WM_event_add_notifier(), WM_event_is_modal_drag_exit(), and wmEvent::xy.
Referenced by MARKER_OT_duplicate(), and MARKER_OT_move().
|
static |
Definition at line 742 of file anim_markers.c.
References BLI_snprintf(), C, CTX_data_scene(), CTX_wm_area(), wmOperator::customdata, ED_area_status_text(), ed_marker_move_use_time(), ListBase::first, TimeMarker::flag, FRA2TIME, TimeMarker::frame, hasNumInput(), MarkerMove::markers, TimeMarker::next, NULL, MarkerMove::num, NUM_STR_REP_LEN, outputNumInput(), wmOperator::ptr, RNA_int_get(), scene, SELECT, str, TIP_, UI_MAX_DRAW_STR, and Scene::unit.
Referenced by ed_marker_move_invoke(), and ed_marker_move_modal().
|
static |
Definition at line 728 of file anim_markers.c.
References SACTION_DRAWTIME, SEQ_DRAWFRAMES, SIPO_DRAWTIME, MarkerMove::slink, SNLA_DRAWTIME, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, SPACE_SEQ, and SpaceLink::spacetype.
Referenced by ed_marker_move_init(), ed_marker_move_modal(), and ed_marker_move_update_header().
|
static |
Definition at line 1608 of file anim_markers.c.
References C, ED_context_get_markers(), ED_markers_get_first_selected(), TimeMarker::name, NC_ANIMATION, NC_SCENE, ND_MARKERS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by MARKER_OT_rename().
|
static |
Definition at line 1624 of file anim_markers.c.
References C, ED_context_get_markers(), ED_markers_get_first_selected(), TimeMarker::name, wmOperator::ptr, RNA_string_set(), and WM_operator_props_popup_confirm().
Referenced by MARKER_OT_rename().
|
static |
Definition at line 1251 of file anim_markers.c.
References C, camera, deselect_markers(), ED_context_get_markers(), ED_markers_find_nearest_marker_time(), markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, NULL, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, region_position_is_over_marker(), select_marker_camera_switch(), select_timeline_marker_frame(), UI_view2d_fromcontext(), UI_view2d_region_to_view_x(), and WM_event_add_notifier().
Referenced by ed_marker_select_exec().
|
static |
Definition at line 1433 of file anim_markers.c.
References C, ED_context_get_markers(), ED_markers_deselect_all(), markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by MARKER_OT_select_all().
|
static |
Definition at line 1276 of file anim_markers.c.
References BKE_report(), C, camera, CTX_data_mode_enum(), CTX_MODE_OBJECT, ed_marker_select(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_int_get(), and RPT_WARNING.
Referenced by MARKER_OT_select().
|
static |
Definition at line 1507 of file anim_markers.c.
References ANIM_animdata_get_context(), C, ED_markers_select_leftright(), NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), and WM_event_add_notifier().
Referenced by MARKER_OT_select_leftright().
Definition at line 320 of file anim_markers.c.
References BLI_assert, ED_markers_get_first_selected(), LISTBASE_FOREACH, markers, SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, and SELECT.
Referenced by ed_marker_box_select_exec(), and ed_marker_select_all_exec().
Definition at line 535 of file anim_markers.c.
References BLI_listbase_is_empty(), C, RenderData::cfra, CTX_data_scene(), CTX_wm_region(), draw_marker(), draw_markers_background(), ED_context_get_markers(), get_marker_clip_frame_range(), get_marker_region_rect(), GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_scale_2f(), LISTBASE_FOREACH, marker_is_in_frame_range(), markers, NULL, Scene::r, SELECT, UI_FSTYLE_WIDGET, UI_view2d_fromcontext(), UI_view2d_scale_get(), and ARegion::winy.
Referenced by action_main_region_draw(), draw_timeline_seq(), graph_main_region_draw(), and nla_main_region_draw().
TimeMarker* ED_markers_find_nearest_marker | ( | ListBase * | markers, |
float | x | ||
) |
Get the marker that is closest to this point. XXX: for select, the min_dist should be small.
Definition at line 144 of file anim_markers.c.
References fabsf, TimeMarker::frame, markers, TimeMarker::next, NULL, and x.
Referenced by ED_markers_find_nearest_marker_time(), and region_position_is_over_marker().
Return the time of the marker that occurs on a frame closest to the given time.
Definition at line 163 of file anim_markers.c.
References ED_markers_find_nearest_marker(), TimeMarker::frame, markers, round_fl_to_int(), and x.
Referenced by ed_marker_select(), gpencil_frame_snap_nearmarker(), nlaedit_snap_exec(), snap_bezier_nearmarker(), snap_mask_layer_nearmarker(), and snapFrameTransform().
TimeMarker* ED_markers_get_first_selected | ( | ListBase * | markers | ) |
Get the first selected marker.
Definition at line 344 of file anim_markers.c.
References TimeMarker::flag, markers, TimeMarker::next, NULL, and SELECT.
Referenced by act_markers_make_local_poll(), ed_marker_rename_exec(), ed_marker_rename_invoke(), ED_markers_deselect_all(), ed_markers_poll_selected_markers(), ed_markers_poll_selected_no_locked_markers(), gpencil_frame_mirror_marker(), mirror_action_keys(), and mirror_graph_keys().
Definition at line 169 of file anim_markers.c.
References ELEM, TimeMarker::flag, float(), TimeMarker::frame, markers, max, min, TimeMarker::next, NULL, and SELECT.
Referenced by markers_selectkeys_between().
This function makes a list of all the markers. The only_sel argument is used to specify whether only the selected markers are added.
Definition at line 296 of file anim_markers.c.
References add_marker_to_cfra_elem(), ListBase::first, ListBase::last, markers, TimeMarker::next, and NULL.
Referenced by columnselect_action_keys(), columnselect_graph_keys(), and pose_propagate_exec().
Definition at line 622 of file anim_markers.c.
References C, CTX_data_tool_settings(), ED_context_get_markers(), ED_operator_markers_region_active(), ToolSettings::lock_markers, and markers.
Referenced by MARKER_OT_select(), MARKER_OT_select_all(), MARKER_OT_select_box(), and MARKER_OT_select_leftright().
Definition at line 596 of file anim_markers.c.
References C, ED_context_get_markers(), ED_markers_get_first_selected(), ED_operator_markers_region_active(), markers, and NULL.
Referenced by MARKER_OT_make_links_scene().
Definition at line 608 of file anim_markers.c.
References C, CTX_data_tool_settings(), ED_context_get_markers(), ED_markers_get_first_selected(), ED_operator_markers_region_active(), ToolSettings::lock_markers, markers, and NULL.
Referenced by MARKER_OT_delete(), MARKER_OT_duplicate(), MARKER_OT_move(), and MARKER_OT_rename().
int ED_markers_post_apply_transform | ( | ListBase * | markers, |
struct Scene * | scene, | ||
int | mode, | ||
float | value, | ||
char | side | ||
) |
Apply some transformation to markers after the fact
markers | List of markers to affect - this may or may not be the scene markers list, so don't assume anything. |
scene | Current scene (for getting current frame) |
mode | (TfmMode) transform mode that this transform is for |
value | From the transform code, this is t->vec[0] (which is delta transform for grab/extend, and scale factor for scale) |
side | (B/L/R) for 'extend' functionality, which side of current frame to use |
Definition at line 103 of file anim_markers.c.
References RenderData::cfra, TimeMarker::flag, float(), TimeMarker::frame, if(), ToolSettings::lock_markers, markers, TimeMarker::next, NULL, Scene::r, round_fl_to_int(), scene, SELECT, TFM_TIME_EXTEND, TFM_TIME_SCALE, TFM_TIME_TRANSLATE, and Scene::toolsettings.
Referenced by special_aftertrans_update__actedit(), and special_aftertrans_update__sequencer().
|
static |
Definition at line 1484 of file anim_markers.c.
References RenderData::cfra, deselect_markers(), LISTBASE_FOREACH, markers, bAnimContext::markers, MARKERS_LRSEL_LEFT, MARKERS_LRSEL_RIGHT, NULL, Scene::r, scene, bAnimContext::scene, and SELECT.
Referenced by ed_marker_select_leftright_exec().
Function used in operator polls, checks whether the markers region is currently drawn in the editor in which the operator is called.
Definition at line 204 of file anim_markers.c.
References blender::compositor::area(), C, CTX_wm_area(), SpaceAction::flag, SpaceGraph::flag, SpaceNla::flag, SpaceSeq::flag, SpaceGraph::mode, NULL, SACTION_SHOW_MARKERS, SEQ_SHOW_MARKERS, SIPO_MODE_DRIVERS, SIPO_SHOW_MARKERS, SNLA_SHOW_MARKERS, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, and SPACE_SEQ.
Referenced by ed_markers_poll_markers_exist(), ed_markers_poll_selected_markers(), ed_markers_poll_selected_no_locked_markers(), and MARKER_OT_add().
Called in screen_ops.c:ED_operatortypes_screen().
Definition at line 1810 of file anim_markers.c.
References MARKER_OT_add(), MARKER_OT_delete(), MARKER_OT_duplicate(), MARKER_OT_make_links_scene(), MARKER_OT_move(), MARKER_OT_rename(), MARKER_OT_select(), MARKER_OT_select_all(), MARKER_OT_select_box(), MARKER_OT_select_leftright(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 528 of file anim_markers.c.
References View2D::cur, NULL, UI_DPI_FAC, rctf::xmax, and rctf::xmin.
Referenced by ED_markers_draw().
Definition at line 520 of file anim_markers.c.
References View2D::cur, UI_MARKER_MARGIN_Y, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ED_markers_draw().
|
static |
Definition at line 389 of file anim_markers.c.
References TimeMarker::flag, SELECT, TH_TEXT, TH_TEXT_HI, TH_TIME_MARKER_LINE, TH_TIME_MARKER_LINE_SELECTED, and UI_GetThemeColor4ubv().
Referenced by draw_marker().
|
static |
Definition at line 450 of file anim_markers.c.
References ACTIVE, TimeMarker::camera, DRAW_MARKERS_LOCAL, TimeMarker::flag, and SELECT.
Referenced by draw_marker().
|
static |
Definition at line 509 of file anim_markers.c.
References TimeMarker::frame.
Referenced by ED_markers_draw().
|
static |
Definition at line 677 of file anim_markers.c.
References wmOperatorType::description, ed_marker_add_exec(), ED_operator_markers_region_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1583 of file anim_markers.c.
References wmOperatorType::description, ed_marker_delete_exec(), ed_markers_poll_selected_no_locked_markers(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_operator_confirm_or_exec(), and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1126 of file anim_markers.c.
References wmOperatorType::cancel, wmOperatorType::description, ed_marker_duplicate_exec(), ed_marker_duplicate_invoke(), ed_marker_move_cancel(), ed_marker_move_modal(), ed_markers_poll_selected_no_locked_markers(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1707 of file anim_markers.c.
References wmOperatorType::description, DummyRNA_NULL_items, ed_marker_make_links_scene_exec(), ed_markers_poll_selected_markers(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), RNA_scene_itemf(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1027 of file anim_markers.c.
References wmOperatorType::cancel, wmOperatorType::description, ed_marker_move_cancel(), ed_marker_move_exec(), ed_marker_move_invoke(), ed_marker_move_modal(), ed_markers_poll_selected_no_locked_markers(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1635 of file anim_markers.c.
References wmOperatorType::description, ed_marker_rename_exec(), ed_marker_rename_invoke(), ed_markers_poll_selected_no_locked_markers(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1300 of file anim_markers.c.
References wmOperatorType::description, ed_marker_select_exec(), ed_markers_poll_markers_exist(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_generic_select_invoke(), WM_generic_select_modal(), and WM_operator_properties_generic_select().
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1449 of file anim_markers.c.
References wmOperatorType::description, ed_marker_select_all_exec(), ed_markers_poll_markers_exist(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1400 of file anim_markers.c.
References wmOperatorType::cancel, wmOperatorType::description, ed_marker_box_select_exec(), ed_marker_box_select_invoke(), ed_markers_poll_markers_exist(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_gesture_box_cancel(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1524 of file anim_markers.c.
References wmOperatorType::description, ed_marker_select_leftright_exec(), ed_markers_poll_markers_exist(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MARKERS_LRSEL_LEFT, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_markers_select_leftright_modes, RNA_def_boolean(), RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 244 of file anim_markers.c.
References BLI_listbase_is_empty(), ED_markers_find_nearest_marker(), fabsf, TimeMarker::frame, markers, NULL, UI_DPI_ICON_SIZE, UI_view2d_region_to_view_x(), and UI_view2d_scale_get_x().
Referenced by ed_marker_box_select_invoke(), ed_marker_move_invoke(), and ed_marker_select().
|
static |
Definition at line 1206 of file anim_markers.c.
References BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BLI_assert, C, TimeMarker::camera, camera, CTX_data_mode_enum(), CTX_data_scene(), CTX_data_view_layer(), CTX_MODE_OBJECT, DEG_id_tag_update(), ED_object_base_activate(), ED_object_base_select(), TimeMarker::flag, TimeMarker::frame, Scene::id, ID_RECALC_SELECT, markers, NC_SCENE, ND_OB_SELECT, TimeMarker::next, scene, SELECT, void, and WM_event_add_notifier().
Referenced by ed_marker_select().
|
static |
Definition at line 1162 of file anim_markers.c.
References deselect_markers(), TimeMarker::flag, TimeMarker::frame, LISTBASE_CIRCULAR_FORWARD_BEGIN, LISTBASE_CIRCULAR_FORWARD_END, markers, TimeMarker::next, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, and SELECT.
Referenced by ed_marker_select().
|
static |
Definition at line 1478 of file anim_markers.c.
Referenced by MARKER_OT_select_leftright().