Blender V5.0
action_ops.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include <cstdlib>
10
11#include "DNA_space_types.h"
12
13#include "ED_anim_api.hh"
14#include "ED_transform.hh"
15
16#include "action_intern.hh"
17
18#include "RNA_access.hh"
19
20#include "WM_api.hh"
21#include "WM_types.hh"
22
23/* ************************** registration - operator types **********************************/
24
26{
27 /* keyframes */
28 /* selection */
39
40 /* editing */
56
59
63
68
70}
71
73{
75 wmOperatorTypeMacro *otmacro;
76
77 ot = WM_operatortype_append_macro("ACTION_OT_duplicate_move",
78 "Duplicate",
79 "Make a copy of all selected keyframes and move them",
81 WM_operatortype_macro_define(ot, "ACTION_OT_duplicate");
82 otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
84 RNA_boolean_set(otmacro->ptr, "use_duplicated_keyframes", true);
85 RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false);
86}
87
88/* ************************** registration - keymaps **********************************/
89
90/* --------------- */
91
93{
94 /* keymap for all regions */
95 WM_keymap_ensure(keyconf, "Dopesheet Generic", SPACE_ACTION, RGN_TYPE_WINDOW);
96
97 /* channels */
98 /* Channels are not directly handled by the Action Editor module,
99 * but are inherited from the Animation module.
100 * All the relevant operations, keymaps, drawing, etc.
101 * can therefore all be found in that module instead, as these
102 * are all used for the Graph-Editor too.
103 */
104
105 /* keyframes */
106 WM_keymap_ensure(keyconf, "Dopesheet", SPACE_ACTION, RGN_TYPE_WINDOW);
107}
@ RGN_TYPE_WINDOW
@ SPACE_ACTION
@ OPTYPE_UNDO
Definition WM_types.hh:182
@ OPTYPE_REGISTER
Definition WM_types.hh:180
void ACTION_OT_push_down(wmOperatorType *ot)
void ACTION_OT_unlink(wmOperatorType *ot)
void ACTION_OT_stash_and_create(wmOperatorType *ot)
void ACTION_OT_stash(wmOperatorType *ot)
void ACTION_OT_new(wmOperatorType *ot)
void ACTION_OT_view_selected(wmOperatorType *ot)
void ACTION_OT_keyframe_type(wmOperatorType *ot)
void ACTION_OT_easing_type(wmOperatorType *ot)
void ACTION_OT_view_all(wmOperatorType *ot)
void ACTION_OT_previewrange_set(wmOperatorType *ot)
void ACTION_OT_duplicate(wmOperatorType *ot)
void ACTION_OT_delete(wmOperatorType *ot)
void ACTION_OT_view_frame(wmOperatorType *ot)
void ACTION_OT_extrapolation_type(wmOperatorType *ot)
void ACTION_OT_keyframe_insert(wmOperatorType *ot)
void ACTION_OT_snap(wmOperatorType *ot)
void ACTION_OT_bake_keys(wmOperatorType *ot)
void ACTION_OT_frame_jump(wmOperatorType *ot)
void ACTION_OT_paste(wmOperatorType *ot)
void ACTION_OT_copy(wmOperatorType *ot)
void ACTION_OT_markers_make_local(wmOperatorType *ot)
void ACTION_OT_interpolation_type(wmOperatorType *ot)
void ACTION_OT_handle_type(wmOperatorType *ot)
void ACTION_OT_mirror(wmOperatorType *ot)
void ACTION_OT_clean(wmOperatorType *ot)
void ACTION_OT_select_column(wmOperatorType *ot)
void ACTION_OT_select_less(wmOperatorType *ot)
void ACTION_OT_select_all(wmOperatorType *ot)
void ACTION_OT_select_lasso(wmOperatorType *ot)
void ACTION_OT_select_leftright(wmOperatorType *ot)
void ACTION_OT_select_linked(wmOperatorType *ot)
void ACTION_OT_select_box(wmOperatorType *ot)
void ACTION_OT_select_circle(wmOperatorType *ot)
void ACTION_OT_clickselect(wmOperatorType *ot)
void ACTION_OT_select_more(wmOperatorType *ot)
void action_operatortypes()
Definition action_ops.cc:25
void ED_operatormacros_action()
Definition action_ops.cc:72
void action_keymap(wmKeyConfig *keyconf)
Definition action_ops.cc:92
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
wmOperatorType * ot
Definition wm_files.cc:4237
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition wm_keymap.cc:895
wmOperatorTypeMacro * WM_operatortype_macro_define(wmOperatorType *ot, const char *idname)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
wmOperatorType * WM_operatortype_append_macro(const char *idname, const char *name, const char *description, int flag)