Blender V2.61 - r43446

action_intern.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version. 
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2008 Blender Foundation.
00019  * All rights reserved.
00020  *
00021  * 
00022  * Contributor(s): Blender Foundation
00023  *
00024  * ***** END GPL LICENSE BLOCK *****
00025  */
00026 
00031 #ifndef ED_ACTION_INTERN_H
00032 #define ED_ACTION_INTERN_H
00033 
00034 struct bContext;
00035 struct bAnimContext;
00036 struct SpaceAction;
00037 struct ARegion;
00038 struct wmWindowManager;
00039 struct wmOperatorType;
00040 struct ActKeysInc;
00041 struct bAnimListElem;
00042 
00043 /* internal exports only */
00044 
00045 /* ***************************************** */
00046 /* action_draw.c */
00047 void draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *ar); 
00048 void draw_channel_strips(struct bAnimContext *ac, struct SpaceAction *saction, struct ARegion *ar);
00049 
00050 struct ActKeysInc *init_aki_data(struct bAnimContext *ac, struct bAnimListElem *ale);
00051 
00052 /* ***************************************** */
00053 /* action_header.c */
00054 void action_header_buttons(const struct bContext *C, struct ARegion *ar);
00055 
00056 /* ***************************************** */
00057 /* action_select.c */
00058 
00059 void ACTION_OT_select_all_toggle(struct wmOperatorType *ot);
00060 void ACTION_OT_select_border(struct wmOperatorType *ot);
00061 void ACTION_OT_select_column(struct wmOperatorType *ot);
00062 void ACTION_OT_select_linked(struct wmOperatorType *ot);
00063 void ACTION_OT_select_more(struct wmOperatorType *ot);
00064 void ACTION_OT_select_less(struct wmOperatorType *ot);
00065 void ACTION_OT_select_leftright(struct wmOperatorType *ot);
00066 void ACTION_OT_clickselect(struct wmOperatorType *ot);
00067 
00068 /* defines for left-right select tool */
00069 enum {
00070     ACTKEYS_LRSEL_TEST  = 0,
00071     ACTKEYS_LRSEL_LEFT,
00072     ACTKEYS_LRSEL_RIGHT
00073 } eActKeys_LeftRightSelect_Mode;
00074 
00075 /* defines for column-select mode */
00076 enum {
00077     ACTKEYS_COLUMNSEL_KEYS  = 0,
00078     ACTKEYS_COLUMNSEL_CFRA,
00079     ACTKEYS_COLUMNSEL_MARKERS_COLUMN,
00080     ACTKEYS_COLUMNSEL_MARKERS_BETWEEN,
00081 } eActKeys_ColumnSelect_Mode;
00082 
00083 /* ***************************************** */
00084 /* action_edit.c */
00085 
00086 void ACTION_OT_previewrange_set(struct wmOperatorType *ot);
00087 void ACTION_OT_view_all(struct wmOperatorType *ot);
00088 void ACTION_OT_view_selected(struct wmOperatorType *ot);
00089 
00090 void ACTION_OT_copy(struct wmOperatorType *ot);
00091 void ACTION_OT_paste(struct wmOperatorType *ot);
00092 
00093 void ACTION_OT_keyframe_insert(struct wmOperatorType *ot);
00094 void ACTION_OT_duplicate(struct wmOperatorType *ot);
00095 void ACTION_OT_delete(struct wmOperatorType *ot);
00096 void ACTION_OT_clean(struct wmOperatorType *ot);
00097 void ACTION_OT_sample(struct wmOperatorType *ot);
00098 
00099 void ACTION_OT_keyframe_type(struct wmOperatorType *ot);
00100 void ACTION_OT_handle_type(struct wmOperatorType *ot);
00101 void ACTION_OT_interpolation_type(struct wmOperatorType *ot);
00102 void ACTION_OT_extrapolation_type(struct wmOperatorType *ot);
00103 
00104 void ACTION_OT_frame_jump(struct wmOperatorType *ot);
00105 
00106 void ACTION_OT_snap(struct wmOperatorType *ot);
00107 void ACTION_OT_mirror(struct wmOperatorType *ot);
00108 
00109 void ACTION_OT_new(struct wmOperatorType *ot);
00110 
00111 void ACTION_OT_markers_make_local(struct wmOperatorType *ot);
00112 
00113 /* defines for snap keyframes 
00114  * NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.h)
00115  */
00116 enum {
00117     ACTKEYS_SNAP_CFRA = 1,
00118     ACTKEYS_SNAP_NEAREST_FRAME,
00119     ACTKEYS_SNAP_NEAREST_SECOND,
00120     ACTKEYS_SNAP_NEAREST_MARKER,    
00121 } eActKeys_Snap_Mode;
00122 
00123 /* defines for mirror keyframes 
00124  * NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.h)
00125  */
00126 enum {
00127     ACTKEYS_MIRROR_CFRA = 1,
00128     ACTKEYS_MIRROR_YAXIS,
00129     ACTKEYS_MIRROR_XAXIS,
00130     ACTKEYS_MIRROR_MARKER,  
00131 } eActKeys_Mirror_Mode;
00132     
00133 /* ***************************************** */
00134 /* action_ops.c */
00135 void action_operatortypes(void);
00136 void action_keymap(struct wmKeyConfig *keyconf);
00137 
00138 #endif /* ED_ACTION_INTERN_H */
00139