Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_action/action_ops.c')
-rw-r--r--source/blender/editors/space_action/action_ops.c138
1 files changed, 68 insertions, 70 deletions
diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c
index 87b9ee4e1ef..d5ddf974284 100644
--- a/source/blender/editors/space_action/action_ops.c
+++ b/source/blender/editors/space_action/action_ops.c
@@ -21,14 +21,11 @@
* \ingroup spaction
*/
-
#include <stdlib.h>
#include <math.h>
-
#include "DNA_space_types.h"
-
#include "ED_anim_api.h"
#include "ED_markers.h"
#include "ED_transform.h"
@@ -46,68 +43,69 @@
void action_operatortypes(void)
{
- /* view */
- WM_operatortype_append(ACTION_OT_properties);
-
- /* keyframes */
- /* selection */
- WM_operatortype_append(ACTION_OT_clickselect);
- WM_operatortype_append(ACTION_OT_select_all);
- WM_operatortype_append(ACTION_OT_select_box);
- WM_operatortype_append(ACTION_OT_select_lasso);
- WM_operatortype_append(ACTION_OT_select_circle);
- WM_operatortype_append(ACTION_OT_select_column);
- WM_operatortype_append(ACTION_OT_select_linked);
- WM_operatortype_append(ACTION_OT_select_more);
- WM_operatortype_append(ACTION_OT_select_less);
- WM_operatortype_append(ACTION_OT_select_leftright);
-
- /* editing */
- WM_operatortype_append(ACTION_OT_snap);
- WM_operatortype_append(ACTION_OT_mirror);
- WM_operatortype_append(ACTION_OT_frame_jump);
- WM_operatortype_append(ACTION_OT_handle_type);
- WM_operatortype_append(ACTION_OT_interpolation_type);
- WM_operatortype_append(ACTION_OT_extrapolation_type);
- WM_operatortype_append(ACTION_OT_keyframe_type);
- WM_operatortype_append(ACTION_OT_sample);
- WM_operatortype_append(ACTION_OT_clean);
- WM_operatortype_append(ACTION_OT_delete);
- WM_operatortype_append(ACTION_OT_duplicate);
- WM_operatortype_append(ACTION_OT_keyframe_insert);
- WM_operatortype_append(ACTION_OT_copy);
- WM_operatortype_append(ACTION_OT_paste);
-
- WM_operatortype_append(ACTION_OT_new);
- WM_operatortype_append(ACTION_OT_unlink);
-
- WM_operatortype_append(ACTION_OT_push_down);
- WM_operatortype_append(ACTION_OT_stash);
- WM_operatortype_append(ACTION_OT_stash_and_create);
-
- WM_operatortype_append(ACTION_OT_layer_next);
- WM_operatortype_append(ACTION_OT_layer_prev);
-
- WM_operatortype_append(ACTION_OT_previewrange_set);
- WM_operatortype_append(ACTION_OT_view_all);
- WM_operatortype_append(ACTION_OT_view_selected);
- WM_operatortype_append(ACTION_OT_view_frame);
-
- WM_operatortype_append(ACTION_OT_markers_make_local);
+ /* view */
+ WM_operatortype_append(ACTION_OT_properties);
+
+ /* keyframes */
+ /* selection */
+ WM_operatortype_append(ACTION_OT_clickselect);
+ WM_operatortype_append(ACTION_OT_select_all);
+ WM_operatortype_append(ACTION_OT_select_box);
+ WM_operatortype_append(ACTION_OT_select_lasso);
+ WM_operatortype_append(ACTION_OT_select_circle);
+ WM_operatortype_append(ACTION_OT_select_column);
+ WM_operatortype_append(ACTION_OT_select_linked);
+ WM_operatortype_append(ACTION_OT_select_more);
+ WM_operatortype_append(ACTION_OT_select_less);
+ WM_operatortype_append(ACTION_OT_select_leftright);
+
+ /* editing */
+ WM_operatortype_append(ACTION_OT_snap);
+ WM_operatortype_append(ACTION_OT_mirror);
+ WM_operatortype_append(ACTION_OT_frame_jump);
+ WM_operatortype_append(ACTION_OT_handle_type);
+ WM_operatortype_append(ACTION_OT_interpolation_type);
+ WM_operatortype_append(ACTION_OT_extrapolation_type);
+ WM_operatortype_append(ACTION_OT_keyframe_type);
+ WM_operatortype_append(ACTION_OT_sample);
+ WM_operatortype_append(ACTION_OT_clean);
+ WM_operatortype_append(ACTION_OT_delete);
+ WM_operatortype_append(ACTION_OT_duplicate);
+ WM_operatortype_append(ACTION_OT_keyframe_insert);
+ WM_operatortype_append(ACTION_OT_copy);
+ WM_operatortype_append(ACTION_OT_paste);
+
+ WM_operatortype_append(ACTION_OT_new);
+ WM_operatortype_append(ACTION_OT_unlink);
+
+ WM_operatortype_append(ACTION_OT_push_down);
+ WM_operatortype_append(ACTION_OT_stash);
+ WM_operatortype_append(ACTION_OT_stash_and_create);
+
+ WM_operatortype_append(ACTION_OT_layer_next);
+ WM_operatortype_append(ACTION_OT_layer_prev);
+
+ WM_operatortype_append(ACTION_OT_previewrange_set);
+ WM_operatortype_append(ACTION_OT_view_all);
+ WM_operatortype_append(ACTION_OT_view_selected);
+ WM_operatortype_append(ACTION_OT_view_frame);
+
+ WM_operatortype_append(ACTION_OT_markers_make_local);
}
void ED_operatormacros_action(void)
{
- wmOperatorType *ot;
- wmOperatorTypeMacro *otmacro;
-
- ot = WM_operatortype_append_macro("ACTION_OT_duplicate_move", "Duplicate",
- "Make a copy of all selected keyframes and move them",
- OPTYPE_UNDO | OPTYPE_REGISTER);
- WM_operatortype_macro_define(ot, "ACTION_OT_duplicate");
- otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
- RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
- RNA_enum_set(otmacro->ptr, "proportional", PROP_EDIT_OFF);
+ wmOperatorType *ot;
+ wmOperatorTypeMacro *otmacro;
+
+ ot = WM_operatortype_append_macro("ACTION_OT_duplicate_move",
+ "Duplicate",
+ "Make a copy of all selected keyframes and move them",
+ OPTYPE_UNDO | OPTYPE_REGISTER);
+ WM_operatortype_macro_define(ot, "ACTION_OT_duplicate");
+ otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
+ RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
+ RNA_enum_set(otmacro->ptr, "proportional", PROP_EDIT_OFF);
}
/* ************************** registration - keymaps **********************************/
@@ -116,15 +114,15 @@ void ED_operatormacros_action(void)
void action_keymap(wmKeyConfig *keyconf)
{
- /* keymap for all regions */
- WM_keymap_ensure(keyconf, "Dopesheet Generic", SPACE_ACTION, 0);
+ /* keymap for all regions */
+ WM_keymap_ensure(keyconf, "Dopesheet Generic", SPACE_ACTION, 0);
- /* channels */
- /* Channels are not directly handled by the Action Editor module, but are inherited from the Animation module.
- * All the relevant operations, keymaps, drawing, etc. can therefore all be found in that module instead, as these
- * are all used for the Graph-Editor too.
- */
+ /* channels */
+ /* Channels are not directly handled by the Action Editor module, but are inherited from the Animation module.
+ * All the relevant operations, keymaps, drawing, etc. can therefore all be found in that module instead, as these
+ * are all used for the Graph-Editor too.
+ */
- /* keyframes */
- WM_keymap_ensure(keyconf, "Dopesheet", SPACE_ACTION, 0);
+ /* keyframes */
+ WM_keymap_ensure(keyconf, "Dopesheet", SPACE_ACTION, 0);
}