Blender V2.61 - r43446

nla_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) 2009 Blender Foundation, Joshua Leung.
00019  * All rights reserved.
00020  *
00021  * 
00022  * Contributor(s): Blender Foundation, Joshua Leung
00023  *
00024  * ***** END GPL LICENSE BLOCK *****
00025  */
00026 
00031 #ifndef ED_NLA_INTERN_H
00032 #define ED_NLA_INTERN_H
00033 
00034 /* internal exports only */
00035 
00036 /* **************************************** */
00037 /* Macros, etc. only used by NLA */
00038 
00039 /* **************************************** */
00040 /* space_nla.c / nla_buttons.c */
00041 
00042 ARegion *nla_has_buttons_region(ScrArea *sa);
00043 
00044 void nla_buttons_register(ARegionType *art);
00045 void NLA_OT_properties(wmOperatorType *ot);
00046 
00047 /* **************************************** */
00048 /* nla_draw.c */
00049 
00050 void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *ar);
00051 void draw_nla_channel_list(bContext *C, bAnimContext *ac, ARegion *ar);
00052 
00053 /* **************************************** */
00054 /* nla_select.c */
00055 
00056 /* defines for left-right select tool */
00057 enum {
00058     NLAEDIT_LRSEL_TEST  = -1,
00059     NLAEDIT_LRSEL_NONE,
00060     NLAEDIT_LRSEL_LEFT,
00061     NLAEDIT_LRSEL_RIGHT
00062 } eNlaEdit_LeftRightSelect_Mode;
00063 
00064 /* --- */
00065 
00066 void NLA_OT_select_all_toggle(wmOperatorType *ot);
00067 void NLA_OT_select_border(wmOperatorType *ot);
00068 void NLA_OT_select_leftright(wmOperatorType *ot);
00069 void NLA_OT_click_select(wmOperatorType *ot);
00070 
00071 /* **************************************** */
00072 /* nla_edit.c */
00073 
00074 /* defines for snap strips
00075  */
00076 enum {
00077     NLAEDIT_SNAP_CFRA = 1,
00078     NLAEDIT_SNAP_NEAREST_FRAME,
00079     NLAEDIT_SNAP_NEAREST_SECOND,
00080     NLAEDIT_SNAP_NEAREST_MARKER
00081 } eNlaEdit_Snap_Mode;
00082 
00083 /* --- */
00084 
00085 void NLA_OT_tweakmode_enter(wmOperatorType *ot);
00086 void NLA_OT_tweakmode_exit(wmOperatorType *ot);
00087 
00088 /* --- */
00089 
00090 void NLA_OT_view_all(wmOperatorType *ot);
00091 void NLA_OT_view_selected(wmOperatorType *ot);
00092 
00093 void NLA_OT_actionclip_add(wmOperatorType *ot);
00094 void NLA_OT_transition_add(wmOperatorType *ot);
00095 void NLA_OT_soundclip_add(wmOperatorType *ot);
00096 
00097 void NLA_OT_meta_add(wmOperatorType *ot);
00098 void NLA_OT_meta_remove(wmOperatorType *ot);
00099 
00100 void NLA_OT_duplicate(wmOperatorType *ot);
00101 void NLA_OT_delete(wmOperatorType *ot);
00102 void NLA_OT_split(wmOperatorType *ot);
00103 
00104 void NLA_OT_mute_toggle(wmOperatorType *ot);
00105 
00106 void NLA_OT_swap(wmOperatorType *ot);
00107 void NLA_OT_move_up(wmOperatorType *ot);
00108 void NLA_OT_move_down(wmOperatorType *ot);
00109 
00110 void NLA_OT_action_sync_length(wmOperatorType *ot);
00111 
00112 void NLA_OT_apply_scale(wmOperatorType *ot);
00113 void NLA_OT_clear_scale(wmOperatorType *ot);
00114 
00115 void NLA_OT_snap(wmOperatorType *ot);
00116 
00117 void NLA_OT_fmodifier_add(wmOperatorType *ot);
00118 void NLA_OT_fmodifier_copy(wmOperatorType *ot);
00119 void NLA_OT_fmodifier_paste(wmOperatorType *ot);
00120 
00121 
00122 /* **************************************** */
00123 /* nla_channels.c */
00124 
00125 void NLA_OT_channels_click(wmOperatorType *ot);
00126 
00127 void NLA_OT_tracks_add(wmOperatorType *ot);
00128 void NLA_OT_delete_tracks(wmOperatorType *ot);
00129 
00130 /* **************************************** */
00131 /* nla_ops.c */
00132 
00133 int nlaop_poll_tweakmode_off(bContext *C);
00134 int nlaop_poll_tweakmode_on (bContext *C);
00135 
00136 short nlaedit_is_tweakmode_on(bAnimContext *ac);
00137 
00138 /* --- */
00139 
00140 void nla_operatortypes(void);
00141 void nla_keymap(wmKeyConfig *keyconf);
00142 
00143 #endif /* ED_NLA_INTERN_H */
00144