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_GRAPH_INTERN_H
29 #define ED_GRAPH_INTERN_H
32 struct wmWindowManager;
38 /* internal exports only */
40 /* ***************************************** */
42 struct ARegion *graph_has_buttons_region(struct ScrArea *sa);
44 /* ***************************************** */
46 void graph_draw_channel_names(struct bAnimContext *ac, struct SpaceIpo *sipo, struct ARegion *ar);
47 void graph_draw_curves(struct bAnimContext *ac, struct SpaceIpo *sipo, struct ARegion *ar);
49 /* ***************************************** */
51 void graph_header_buttons(const bContext *C, struct ARegion *ar);
53 /* ***************************************** */
56 void GRAPHEDIT_OT_keyframes_deselectall(struct wmOperatorType *ot);
57 void GRAPHEDIT_OT_keyframes_borderselect(struct wmOperatorType *ot);
58 void GRAPHEDIT_OT_keyframes_columnselect(struct wmOperatorType *ot);
59 void GRAPHEDIT_OT_keyframes_clickselect(struct wmOperatorType *ot);
61 /* defines for left-right select tool */
63 GRAPHKEYS_LRSEL_TEST = -1,
66 GRAPHKEYS_LRSEL_RIGHT,
67 } eGraphKeys_LeftRightSelect_Mode;
69 /* defines for column-select mode */
71 GRAPHKEYS_COLUMNSEL_KEYS = 0,
72 GRAPHKEYS_COLUMNSEL_CFRA,
73 GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN,
74 GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN,
75 } eGraphKeys_ColumnSelect_Mode;
77 /* ***************************************** */
80 void GRAPHEDIT_OT_set_previewrange(struct wmOperatorType *ot);
81 void GRAPHEDIT_OT_view_all(struct wmOperatorType *ot);
83 void GRAPHEDIT_OT_keyframes_copy(struct wmOperatorType *ot);
84 void GRAPHEDIT_OT_keyframes_paste(struct wmOperatorType *ot);
86 void GRAPHEDIT_OT_keyframes_duplicate(struct wmOperatorType *ot);
87 void GRAPHEDIT_OT_keyframes_delete(struct wmOperatorType *ot);
88 void GRAPHEDIT_OT_keyframes_clean(struct wmOperatorType *ot);
89 void GRAPHEDIT_OT_keyframes_sample(struct wmOperatorType *ot);
90 void GRAPHEDIT_OT_keyframes_smooth(struct wmOperatorType *ot);
92 void GRAPHEDIT_OT_keyframes_handletype(struct wmOperatorType *ot);
93 void GRAPHEDIT_OT_keyframes_interpolation_type(struct wmOperatorType *ot);
94 void GRAPHEDIT_OT_keyframes_extrapolation_type(struct wmOperatorType *ot);
96 void GRAPHEDIT_OT_keyframes_cfrasnap(struct wmOperatorType *ot);
97 void GRAPHEDIT_OT_keyframes_snap(struct wmOperatorType *ot);
98 void GRAPHEDIT_OT_keyframes_mirror(struct wmOperatorType *ot);
100 /* defines for snap keyframes
101 * NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.h)
104 GRAPHKEYS_SNAP_CFRA = 1,
105 GRAPHKEYS_SNAP_NEAREST_FRAME,
106 GRAPHKEYS_SNAP_NEAREST_SECOND,
107 GRAPHKEYS_SNAP_NEAREST_MARKER,
108 GRAPHKEYS_SNAP_HORIZONTAL,
109 } eGraphKeys_Snap_Mode;
111 /* defines for mirror keyframes
112 * NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.h)
115 GRAPHKEYS_MIRROR_CFRA = 1,
116 GRAPHKEYS_MIRROR_YAXIS,
117 GRAPHKEYS_MIRROR_XAXIS,
118 GRAPHKEYS_MIRROR_MARKER,
119 } eGraphKeys_Mirror_Mode;
121 /* ***************************************** */
122 /* graph_buttons.c */
123 void GRAPHEDIT_OT_properties(struct wmOperatorType *ot);
124 void graph_region_buttons(const struct bContext *C, struct ARegion *ar);
126 /* ***************************************** */
128 void graphedit_keymap(struct wmWindowManager *wm);
129 void graphedit_operatortypes(void);
132 #endif /* ED_GRAPH_INTERN_H */