Blender  V2.93
action_intern.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 struct ARegion;
27 struct ARegionType;
28 struct Object;
29 struct Scene;
30 struct SpaceAction;
31 struct bAnimContext;
32 struct bContext;
33 struct wmOperatorType;
34 
35 /* internal exports only */
36 
37 /* **************************************** */
38 /* space_action.c / action_buttons.c */
39 
41 
42 /* ***************************************** */
43 /* action_draw.c */
44 void draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *region);
45 void draw_channel_strips(struct bAnimContext *ac,
46  struct SpaceAction *saction,
47  struct ARegion *region);
48 
49 void timeline_draw_cache(struct SpaceAction *saction, struct Object *ob, struct Scene *scene);
50 
51 /* ***************************************** */
52 /* action_select.c */
53 
64 
65 /* defines for left-right select tool */
70 };
71 
72 /* defines for column-select mode */
78 };
79 
80 /* ***************************************** */
81 /* action_edit.c */
82 
87 
88 void ACTION_OT_copy(struct wmOperatorType *ot);
89 void ACTION_OT_paste(struct wmOperatorType *ot);
90 
93 void ACTION_OT_delete(struct wmOperatorType *ot);
94 void ACTION_OT_clean(struct wmOperatorType *ot);
95 void ACTION_OT_sample(struct wmOperatorType *ot);
96 
102 
104 
105 void ACTION_OT_snap(struct wmOperatorType *ot);
106 void ACTION_OT_mirror(struct wmOperatorType *ot);
107 
108 void ACTION_OT_new(struct wmOperatorType *ot);
109 void ACTION_OT_unlink(struct wmOperatorType *ot);
110 
112 void ACTION_OT_stash(struct wmOperatorType *ot);
114 
117 
119 
120 /* defines for snap keyframes
121  * NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.h)
122  */
128 };
129 
130 /* defines for mirror keyframes
131  * NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.h)
132  */
138 };
139 
140 /* ***************************************** */
141 /* action_ops.c */
142 void action_operatortypes(void);
143 void action_keymap(struct wmKeyConfig *keyconf);
#define C
Definition: RandGen.cpp:39
void ACTION_OT_select_box(struct wmOperatorType *ot)
void ACTION_OT_clickselect(struct wmOperatorType *ot)
void action_keymap(struct wmKeyConfig *keyconf)
Definition: action_ops.c:110
void ACTION_OT_select_all(struct wmOperatorType *ot)
void action_buttons_register(struct ARegionType *art)
void ACTION_OT_view_all(struct wmOperatorType *ot)
Definition: action_edit.c:447
void ACTION_OT_select_circle(struct wmOperatorType *ot)
void action_operatortypes(void)
Definition: action_ops.c:41
void ACTION_OT_markers_make_local(struct wmOperatorType *ot)
Definition: action_edit.c:146
void ACTION_OT_keyframe_type(struct wmOperatorType *ot)
Definition: action_edit.c:1615
void ACTION_OT_previewrange_set(struct wmOperatorType *ot)
Definition: action_edit.c:295
void ACTION_OT_handle_type(struct wmOperatorType *ot)
Definition: action_edit.c:1509
void ACTION_OT_stash(struct wmOperatorType *ot)
Definition: action_data.c:411
void ACTION_OT_layer_prev(struct wmOperatorType *ot)
Definition: action_data.c:966
void ACTION_OT_push_down(struct wmOperatorType *ot)
Definition: action_data.c:356
void ACTION_OT_sample(struct wmOperatorType *ot)
Definition: action_edit.c:1192
void ACTION_OT_select_more(struct wmOperatorType *ot)
void ACTION_OT_mirror(struct wmOperatorType *ot)
Definition: action_edit.c:1948
void ACTION_OT_easing_type(struct wmOperatorType *ot)
Definition: action_edit.c:1422
void ACTION_OT_paste(struct wmOperatorType *ot)
Definition: action_edit.c:668
void ACTION_OT_interpolation_type(struct wmOperatorType *ot)
Definition: action_edit.c:1374
void ACTION_OT_keyframe_insert(struct wmOperatorType *ot)
Definition: action_edit.c:876
void ACTION_OT_select_column(struct wmOperatorType *ot)
void timeline_draw_cache(struct SpaceAction *saction, struct Object *ob, struct Scene *scene)
Definition: action_draw.c:548
void ACTION_OT_select_less(struct wmOperatorType *ot)
void draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *region)
Definition: action_draw.c:67
eActKeys_LeftRightSelect_Mode
Definition: action_intern.h:66
@ ACTKEYS_LRSEL_TEST
Definition: action_intern.h:67
@ ACTKEYS_LRSEL_LEFT
Definition: action_intern.h:68
@ ACTKEYS_LRSEL_RIGHT
Definition: action_intern.h:69
void ACTION_OT_clean(struct wmOperatorType *ot)
Definition: action_edit.c:1121
eActKeys_Snap_Mode
@ ACTKEYS_SNAP_NEAREST_FRAME
@ ACTKEYS_SNAP_NEAREST_SECOND
@ ACTKEYS_SNAP_CFRA
@ ACTKEYS_SNAP_NEAREST_MARKER
eActKeys_ColumnSelect_Mode
Definition: action_intern.h:73
@ ACTKEYS_COLUMNSEL_CFRA
Definition: action_intern.h:75
@ ACTKEYS_COLUMNSEL_MARKERS_BETWEEN
Definition: action_intern.h:77
@ ACTKEYS_COLUMNSEL_MARKERS_COLUMN
Definition: action_intern.h:76
@ ACTKEYS_COLUMNSEL_KEYS
Definition: action_intern.h:74
void ACTION_OT_duplicate(struct wmOperatorType *ot)
Definition: action_edit.c:956
void ACTION_OT_unlink(struct wmOperatorType *ot)
Definition: action_data.c:674
void draw_channel_strips(struct bAnimContext *ac, struct SpaceAction *saction, struct ARegion *region)
Definition: action_draw.c:135
void ACTION_OT_layer_next(struct wmOperatorType *ot)
Definition: action_data.c:867
void ACTION_OT_new(struct wmOperatorType *ot)
Definition: action_data.c:283
void ACTION_OT_select_lasso(struct wmOperatorType *ot)
void ACTION_OT_select_linked(struct wmOperatorType *ot)
void ACTION_OT_frame_jump(struct wmOperatorType *ot)
Definition: action_edit.c:1696
void ACTION_OT_view_frame(struct wmOperatorType *ot)
Definition: action_edit.c:487
eActKeys_Mirror_Mode
@ ACTKEYS_MIRROR_CFRA
@ ACTKEYS_MIRROR_MARKER
@ ACTKEYS_MIRROR_YAXIS
@ ACTKEYS_MIRROR_XAXIS
void ACTION_OT_copy(struct wmOperatorType *ot)
Definition: action_edit.c:593
void ACTION_OT_view_selected(struct wmOperatorType *ot)
Definition: action_edit.c:462
void ACTION_OT_stash_and_create(struct wmOperatorType *ot)
Definition: action_data.c:519
void ACTION_OT_delete(struct wmOperatorType *ot)
Definition: action_edit.c:1049
void ACTION_OT_select_leftright(struct wmOperatorType *ot)
void ACTION_OT_extrapolation_type(struct wmOperatorType *ot)
Definition: action_edit.c:1323
void ACTION_OT_snap(struct wmOperatorType *ot)
Definition: action_edit.c:1818
Scene scene
wmOperatorType * ot
Definition: wm_files.c:3156