|
Blender V4.3
|
#include <cmath>#include "MEM_guardedalloc.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_context.hh"#include "BKE_idprop.hh"#include "BKE_layer.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_unit.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "WM_api.hh"#include "WM_types.hh"#include "GPU_immediate.hh"#include "GPU_matrix.hh"#include "GPU_state.hh"#include "UI_interface.hh"#include "UI_interface_icons.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "ED_anim_api.hh"#include "ED_keyframes_edit.hh"#include "ED_markers.hh"#include "ED_numinput.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "ED_transform.hh"#include "ED_util.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"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 } |
| 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) |
| Enumerator | |
|---|---|
| MARKERS_LRSEL_LEFT | |
| MARKERS_LRSEL_RIGHT | |
Definition at line 1572 of file anim_markers.cc.
|
static |
Definition at line 260 of file anim_markers.cc.
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.cc.
References SpaceAction::action, ELEM, SpaceAction::flag, bAction::markers, SpaceAction::mode, SACTCONT_ACTION, SACTCONT_SHAPEKEY, SACTION_POSEMARKERS_SHOW, and SPACE_ACTION.
Referenced by ED_animcontext_get_markers(), and ED_context_get_markers().
| void debug_markers_print_list | ( | ListBase * | markers | ) |
Debugging only: print debugging prints of list of markers.
Definition at line 356 of file anim_markers.cc.
References LISTBASE_FOREACH, markers, and printf.
|
static |
Definition at line 1252 of file anim_markers.cc.
References LISTBASE_FOREACH, and markers.
Referenced by ed_marker_select(), ED_markers_select_leftright(), and select_timeline_marker_frame().
|
static |
Definition at line 466 of file anim_markers.cc.
References draw_marker_line(), draw_marker_name(), flag, TimeMarker::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, marker_color_get(), marker_get_icon_id(), SELECT, TH_TEXT, TH_TIME_MARKER_LINE_SELECTED, UI_GetThemeColor4ubv(), UI_icon_draw_ex(), UI_ICON_SIZE, UI_INV_SCALE_FAC, UI_NO_ICON_OVERLAY_TEXT, and UI_SCALE_FAC.
Referenced by ED_markers_draw().
Definition at line 429 of file anim_markers.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_3D_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_SCALE_FAC.
Referenced by draw_marker().
|
static |
Definition at line 393 of file anim_markers.cc.
References uiFontStyleDraw_Params::align, TimeMarker::camera, copy_v4_v4_uchar(), Object::id, ID::name, TimeMarker::name, OB_HIDE_RENDER, UI_fontstyle_draw(), UI_ICON_SIZE, UI_STYLE_TEXT_LEFT, and rcti::xmin.
Referenced by draw_marker().
|
static |
Definition at line 512 of file anim_markers.cc.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_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 | ) |
Public API for getting markers from "animation" context.
Definition at line 93 of file anim_markers.cc.
References bAnimContext::area, context_get_markers(), and bAnimContext::scene.
Referenced by actkeys_select_leftright().
Public API for getting markers from context.
Definition at line 88 of file anim_markers.cc.
References context_get_markers(), CTX_data_scene(), and CTX_wm_area().
Referenced by act_markers_make_local_exec(), act_markers_make_local_poll(), add_region_padding(), ANIM_animdata_get_context(), ed_marker_add_exec(), ed_marker_box_select_exec(), ed_marker_box_select_invoke(), ed_marker_camera_bind_exec(), 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(), nla_track_region_draw(), SEQ_get_timeline_region_padding(), and special_aftertrans_update__actedit().
| void ED_keymap_marker | ( | wmKeyConfig * | keyconf | ) |
Called in screen_ops.cc, ED_keymap_screen().
Definition at line 1944 of file anim_markers.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
|
static |
Definition at line 734 of file anim_markers.cc.
References BLI_addtail(), RenderData::cfra, CTX_data_scene(), ED_context_get_markers(), TimeMarker::flag, TimeMarker::frame, LISTBASE_FOREACH, markers, MEM_callocN, TimeMarker::name, NC_ANIMATION, NC_SCENE, ND_MARKERS, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, SELECT, SNPRINTF, and WM_event_add_notifier().
Referenced by MARKER_OT_add().
|
static |
Definition at line 1468 of file anim_markers.cc.
References BLI_rctf_isect_x(), ED_context_get_markers(), ED_markers_deselect_all(), LISTBASE_FOREACH, markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, 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 1451 of file anim_markers.cc.
References CTX_wm_region(), ED_context_get_markers(), markers, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, region_position_is_over_marker(), RNA_boolean_get(), WM_gesture_box_invoke(), and wmEvent::xy.
Referenced by MARKER_OT_select_box().
|
static |
Definition at line 1852 of file anim_markers.cc.
References BKE_report(), BKE_scene_camera_switch_update(), BKE_screen_view3d_scene_sync(), BLI_addtail(), TimeMarker::camera, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), CTX_wm_screen(), DEG_relations_tag_update(), ED_context_get_markers(), ED_markers_find_nearest_marker(), TimeMarker::flag, TimeMarker::frame, LISTBASE_FOREACH, markers, MEM_callocN, NA_EDITED, TimeMarker::name, NC_ANIMATION, NC_SCENE, ND_MARKERS, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, SELECT, SNPRINTF, and WM_event_add_notifier().
Referenced by MARKER_OT_camera_bind().
|
static |
Definition at line 1653 of file anim_markers.cc.
References BLI_freelinkN(), ED_context_get_markers(), TimeMarker::flag, IDP_FreePropertyContent(), markers, MEM_freeN(), NC_ANIMATION, NC_SCENE, ND_MARKERS, TimeMarker::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, TimeMarker::prop, SELECT, and WM_event_add_notifier().
Referenced by ed_marker_delete_invoke(), and MARKER_OT_delete().
|
static |
Definition at line 1684 of file anim_markers.cc.
References ALERT_ICON_NONE, ed_marker_delete_exec(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by MARKER_OT_delete().
|
static |
Definition at line 1172 of file anim_markers.cc.
References BLI_addhead(), TimeMarker::camera, ED_context_get_markers(), TimeMarker::flag, TimeMarker::frame, IDP_CopyProperty(), LISTBASE_FOREACH, markers, MEM_callocN, TimeMarker::name, TimeMarker::prop, SELECT, and STRNCPY.
Referenced by ed_marker_duplicate_exec(), and ed_marker_duplicate_invoke().
|
static |
Definition at line 1209 of file anim_markers.cc.
References ed_marker_duplicate_apply(), ed_marker_move_exec(), and OPERATOR_FINISHED.
Referenced by MARKER_OT_duplicate().
|
static |
Definition at line 1217 of file anim_markers.cc.
References ed_marker_duplicate_apply(), and ed_marker_move_invoke().
Referenced by MARKER_OT_duplicate().
|
static |
Definition at line 1784 of file anim_markers.cc.
References BKE_report(), BLI_addtail(), BLI_findlink(), CTX_data_main(), CTX_data_scene(), ED_context_get_markers(), LISTBASE_FOREACH, ToolSettings::lock_markers, markers, Scene::markers, MEM_dupallocN, TimeMarker::next, 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 980 of file anim_markers.cc.
References BKE_scene_camera_switch_update(), BKE_screen_view3d_scene_sync(), 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, MarkerMove::oldframe, wmOperator::ptr, RNA_int_get(), 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 1016 of file anim_markers.cc.
References 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 1115 of file anim_markers.cc.
References 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 930 of file anim_markers.cc.
References CTX_wm_area(), wmOperator::customdata, ED_area_status_text(), MEM_freeN(), and MarkerMove::oldframe.
Referenced by ed_marker_move_cancel(), ed_marker_move_exec(), and ed_marker_move_modal().
|
static |
Definition at line 883 of file anim_markers.cc.
References B_UNIT_NONE, B_UNIT_TIME, 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(), MarkerMove::markers, markers, MEM_callocN, TimeMarker::next, MarkerMove::num, NUM_NO_FRACTION, MarkerMove::oldframe, SELECT, MarkerMove::slink, 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 943 of file anim_markers.cc.
References 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(), WM_event_add_modal_handler(), and wmEvent::xy.
Referenced by ed_marker_duplicate_invoke(), and MARKER_OT_move().
|
static |
Definition at line 1023 of file anim_markers.cc.
References apply_keyb_grid(), applyNumInput(), ATTR_FALLTHROUGH, BLI_rctf_size_x(), BLI_rcti_size_x(), 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, MarkerMove::num, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_int_get(), RNA_int_set(), 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 835 of file anim_markers.cc.
References 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(), IFACE_, MarkerMove::markers, TimeMarker::next, MarkerMove::num, NUM_STR_REP_LEN, outputNumInput(), wmOperator::ptr, RNA_int_get(), SELECT, SNPRINTF, str, and UI_MAX_DRAW_STR.
Referenced by ed_marker_move_invoke(), and ed_marker_move_modal().
|
static |
Definition at line 820 of file anim_markers.cc.
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 1723 of file anim_markers.cc.
References ED_context_get_markers(), ED_markers_get_first_selected(), TimeMarker::name, NC_ANIMATION, NC_SCENE, ND_MARKERS, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by MARKER_OT_rename().
|
static |
Definition at line 1739 of file anim_markers.cc.
References ED_context_get_markers(), ED_markers_get_first_selected(), IFACE_, TimeMarker::name, wmOperator::ptr, RNA_string_set(), and WM_operator_props_popup_confirm_ex().
Referenced by MARKER_OT_rename().
|
static |
Definition at line 1350 of file anim_markers.cc.
References deselect_markers(), ED_context_get_markers(), ED_markers_find_nearest_marker_time(), markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, 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 1532 of file anim_markers.cc.
References ED_context_get_markers(), ED_markers_deselect_all(), markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by MARKER_OT_select_all().
|
static |
Definition at line 1375 of file anim_markers.cc.
References BKE_report(), 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 1607 of file anim_markers.cc.
References ANIM_animdata_get_context(), ED_markers_select_leftright(), NA_SELECTED, NC_ANIMATION, ND_KEYFRAME, 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 317 of file anim_markers.cc.
References BLI_assert, ED_markers_get_first_selected(), TimeMarker::flag, 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().
Draw Scene-Markers in time window.
Set a temporary bit in the marker's flag to indicate that it should be elevated. This bit will be flipped back at the end of this function.
Draw non-elevated markers first. Note that unlike the elevated markers, these marker names will always be clipped by the proceeding marker. This is done because otherwise, the text overlaps with the icon of the marker itself.
Definition at line 565 of file anim_markers.cc.
References BLI_duplicatelist(), BLI_freelistN(), BLI_listbase_is_empty(), BLI_listbase_sort(), RenderData::cfra, CTX_data_scene(), CTX_wm_region(), draw_marker(), draw_markers_background(), ED_context_get_markers(), ListBase::first, flag, TimeMarker::flag, TimeMarker::frame, 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, markers_frame_sort(), next, TimeMarker::next, Scene::r, SELECT, SET_FLAG_FROM_TEST, UI_FSTYLE_WIDGET, UI_view2d_fromcontext(), and UI_view2d_scale_get().
Referenced by action_main_region_draw(), draw_timeline_markers(), 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.cc.
References fabsf, LISTBASE_FOREACH, and markers.
Referenced by ed_marker_camera_bind_exec(), 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.cc.
References ED_markers_find_nearest_marker(), markers, and round_fl_to_int().
Referenced by ed_marker_select(), blender::ed::greasepencil::get_snapped_frame_number(), 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 341 of file anim_markers.cc.
References LISTBASE_FOREACH, markers, 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(), mirror_graph_keys(), and blender::ed::greasepencil::mirror_selected_frames().
Definition at line 169 of file anim_markers.cc.
References ELEM, float, FLT_MAX, LISTBASE_FOREACH, markers, max, min, and SELECT.
Referenced by markers_selectkeys_between(), and 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 295 of file anim_markers.cc.
References add_marker_to_cfra_elem(), ListBase::first, ListBase::last, LISTBASE_FOREACH, and markers.
Referenced by columnselect_action_keys(), columnselect_graph_keys(), and get_selected_marker_positions().
|
static |
Definition at line 714 of file anim_markers.cc.
References 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().
|
static |
Definition at line 673 of file anim_markers.cc.
References CTX_wm_operator_poll_msg_set(), ED_context_get_markers(), ED_markers_get_first_selected(), ED_operator_markers_region_active(), and markers.
Referenced by MARKER_OT_make_links_scene().
|
static |
Definition at line 690 of file anim_markers.cc.
References CTX_data_tool_settings(), CTX_wm_operator_poll_msg_set(), ED_context_get_markers(), ED_markers_get_first_selected(), ED_operator_markers_region_active(), ToolSettings::lock_markers, and markers.
Referenced by MARKER_OT_delete(), MARKER_OT_duplicate(), MARKER_OT_move(), and MARKER_OT_rename().
| int ED_markers_post_apply_transform | ( | ListBase * | markers, |
| 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.cc.
References float, LISTBASE_FOREACH, markers, round_fl_to_int(), SELECT, TFM_TIME_EXTEND, TFM_TIME_SCALE, and TFM_TIME_TRANSLATE.
Referenced by special_aftertrans_update__actedit(), and special_aftertrans_update__sequencer().
|
static |
Definition at line 1583 of file anim_markers.cc.
References deselect_markers(), LISTBASE_FOREACH, bAnimContext::markers, markers, MARKERS_LRSEL_LEFT, MARKERS_LRSEL_RIGHT, bAnimContext::scene, and SELECT.
Referenced by ed_marker_select_leftright_exec().
|
static |
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 203 of file anim_markers.cc.
References CTX_wm_area(), SpaceAction::flag, SpaceGraph::flag, SpaceNla::flag, SpaceSeq::flag, SpaceGraph::mode, 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(), MARKER_OT_add(), and MARKER_OT_camera_bind().
| void ED_operatortypes_marker | ( | ) |
Called in screen_ops.cc, ED_operatortypes_screen().
Definition at line 1927 of file anim_markers.cc.
References MARKER_OT_add(), MARKER_OT_camera_bind(), 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 550 of file anim_markers.cc.
References View2D::cur, TimeMarker::name, UI_SCALE_FAC, rctf::xmax, and rctf::xmin.
Referenced by ED_markers_draw().
Definition at line 542 of file anim_markers.cc.
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 381 of file anim_markers.cc.
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 453 of file anim_markers.cc.
References TimeMarker::camera, DRAW_MARKERS_LOCAL, flag, TimeMarker::flag, and SELECT.
Referenced by draw_marker().
|
static |
Definition at line 531 of file anim_markers.cc.
References TimeMarker::frame.
Referenced by ED_markers_draw().
|
static |
Definition at line 769 of file anim_markers.cc.
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 1904 of file anim_markers.cc.
References wmOperatorType::description, ed_marker_camera_bind_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 1698 of file anim_markers.cc.
References wmOperatorType::description, ed_marker_delete_exec(), ed_marker_delete_invoke(), ed_markers_poll_selected_no_locked_markers(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1223 of file anim_markers.cc.
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 1820 of file anim_markers.cc.
References wmOperatorType::description, 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_enum_dummy_NULL_items, RNA_scene_itemf(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_marker().
|
static |
Definition at line 1125 of file anim_markers.cc.
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_HIDDEN, 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 1751 of file anim_markers.cc.
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, TimeMarker::name, wmOperatorType::name, 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 1399 of file anim_markers.cc.
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_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 1548 of file anim_markers.cc.
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 1499 of file anim_markers.cc.
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_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 1625 of file anim_markers.cc.
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 557 of file anim_markers.cc.
References b, and TimeMarker::frame.
Referenced by ED_markers_draw().
|
static |
Definition at line 243 of file anim_markers.cc.
References BLI_listbase_is_empty(), ED_markers_find_nearest_marker(), fabsf, TimeMarker::frame, markers, UI_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 1304 of file anim_markers.cc.
References BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, CTX_data_mode_enum(), CTX_data_scene(), CTX_data_view_layer(), CTX_MODE_OBJECT, DEG_id_tag_update(), ID_RECALC_SELECT, LISTBASE_FOREACH, markers, NC_SCENE, ND_OB_SELECT, SELECT, and WM_event_add_notifier().
Referenced by ed_marker_select().
|
static |
Definition at line 1259 of file anim_markers.cc.
References deselect_markers(), TimeMarker::flag, TimeMarker::frame, LISTBASE_CIRCULAR_FORWARD_BEGIN, LISTBASE_CIRCULAR_FORWARD_END, LISTBASE_FOREACH, markers, TimeMarker::next, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, and SELECT.
Referenced by ed_marker_select().
|
static |
Definition at line 1577 of file anim_markers.cc.
Referenced by MARKER_OT_select_leftright().