4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2008 Blender Foundation.
21 * All rights reserved.
24 * Contributor(s): Blender Foundation
26 * ***** END GPL LICENSE BLOCK *****
28 #ifndef ED_ACTION_INTERN_H
29 #define ED_ACTION_INTERN_H
35 struct wmWindowManager;
36 struct wmOperatorType;
38 /* internal exports only */
40 /* ***************************************** */
42 void draw_channel_names(struct bAnimContext *ac, struct SpaceAction *saction, struct ARegion *ar);
43 void draw_channel_strips(struct bAnimContext *ac, struct SpaceAction *saction, struct ARegion *ar);
45 /* ***************************************** */
47 void action_header_buttons(const struct bContext *C, struct ARegion *ar);
49 /* ***************************************** */
52 void ACT_OT_keyframes_deselectall(struct wmOperatorType *ot);
53 void ACT_OT_keyframes_borderselect(struct wmOperatorType *ot);
54 void ACT_OT_keyframes_columnselect(struct wmOperatorType *ot);
55 void ACT_OT_keyframes_clickselect(struct wmOperatorType *ot);
57 /* defines for left-right select tool */
59 ACTKEYS_LRSEL_TEST = -1,
63 } eActKeys_LeftRightSelect_Mode;
65 /* defines for column-select mode */
67 ACTKEYS_COLUMNSEL_KEYS = 0,
68 ACTKEYS_COLUMNSEL_CFRA,
69 ACTKEYS_COLUMNSEL_MARKERS_COLUMN,
70 ACTKEYS_COLUMNSEL_MARKERS_BETWEEN,
71 } eActKeys_ColumnSelect_Mode;
73 /* ***************************************** */
74 /* action_edit_keyframes.c */
76 void ACT_OT_keyframes_delete(struct wmOperatorType *ot);
77 void ACT_OT_keyframes_clean(struct wmOperatorType *ot);
78 void ACT_OT_keyframes_sample(struct wmOperatorType *ot);
80 void ACT_OT_keyframes_handletype(struct wmOperatorType *ot);
81 void ACT_OT_keyframes_ipotype(struct wmOperatorType *ot);
82 void ACT_OT_keyframes_expotype(struct wmOperatorType *ot);
84 void ACT_OT_keyframes_cfrasnap(struct wmOperatorType *ot);
85 void ACT_OT_keyframes_snap(struct wmOperatorType *ot);
86 void ACT_OT_keyframes_mirror(struct wmOperatorType *ot);
88 /* defines for snap keyframes
89 * NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.h)
92 ACTKEYS_SNAP_CFRA = 1,
93 ACTKEYS_SNAP_NEAREST_FRAME,
94 ACTKEYS_SNAP_NEAREST_SECOND,
95 ACTKEYS_SNAP_NEAREST_MARKER,
98 /* defines for mirror keyframes
99 * NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.h)
102 ACTKEYS_MIRROR_CFRA = 1,
103 ACTKEYS_MIRROR_YAXIS,
104 ACTKEYS_MIRROR_XAXIS,
105 ACTKEYS_MIRROR_MARKER,
106 } eActKeys_Mirror_Mode;
108 /* ***************************************** */
110 void action_operatortypes(void);
111 void action_keymap(struct wmWindowManager *wm);
113 #endif /* ED_ACTION_INTERN_H */