Blender V4.5
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
66
71
73}
74
76{
78 wmOperatorTypeMacro *otmacro;
79
80 ot = WM_operatortype_append_macro("ACTION_OT_duplicate_move",
81 "Duplicate",
82 "Make a copy of all selected keyframes and move them",
84 WM_operatortype_macro_define(ot, "ACTION_OT_duplicate");
85 otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
87 RNA_boolean_set(otmacro->ptr, "use_duplicated_keyframes", true);
88 RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false);
89}
90
91/* ************************** registration - keymaps **********************************/
92
93/* --------------- */
94
96{
97 /* keymap for all regions */
98 WM_keymap_ensure(keyconf, "Dopesheet Generic", SPACE_ACTION, RGN_TYPE_WINDOW);
99
100 /* channels */
101 /* Channels are not directly handled by the Action Editor module,
102 * but are inherited from the Animation module.
103 * All the relevant operations, keymaps, drawing, etc.
104 * can therefore all be found in that module instead, as these
105 * are all used for the Graph-Editor too.
106 */
107
108 /* keyframes */
109 WM_keymap_ensure(keyconf, "Dopesheet", SPACE_ACTION, RGN_TYPE_WINDOW);
110}
@ RGN_TYPE_WINDOW
@ SPACE_ACTION
@ OPTYPE_UNDO
Definition WM_types.hh:182
@ OPTYPE_REGISTER
Definition WM_types.hh:180
void ACTION_OT_layer_prev(wmOperatorType *ot)
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_layer_next(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:75
void action_keymap(wmKeyConfig *keyconf)
Definition action_ops.cc:95
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:4226
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition wm_keymap.cc:893
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)