Blender V2.61 - r43446
|
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, Campbell Barton 00023 * 00024 * ***** END GPL LICENSE BLOCK ***** 00025 */ 00026 00031 #ifndef ED_SEQUENCER_INTERN_H 00032 #define ED_SEQUENCER_INTERN_H 00033 00034 #include "RNA_access.h" 00035 #include "DNA_sequence_types.h" 00036 00037 /* internal exports only */ 00038 00039 struct Sequence; 00040 struct bContext; 00041 struct rctf; 00042 struct SpaceSeq; 00043 struct ScrArea; 00044 struct ARegion; 00045 struct ARegionType; 00046 struct Scene; 00047 00048 /* space_sequencer.c */ 00049 struct ARegion *sequencer_has_buttons_region(struct ScrArea *sa); 00050 00051 00052 /* sequencer_draw.c */ 00053 void draw_timeline_seq(const struct bContext *C, struct ARegion *ar); 00054 void draw_image_seq(const struct bContext* C, struct Scene *scene,struct ARegion *ar, struct SpaceSeq *sseq, int cfra, int offset); 00055 00056 void seq_reset_imageofs(struct SpaceSeq *sseq); 00057 00058 /* sequencer_edit.c */ 00059 struct View2D; 00060 void seq_rectf(struct Sequence *seq, struct rctf *rectf); 00061 void boundbox_seq(struct Scene *scene, struct rctf *rect); 00062 struct Sequence *find_nearest_seq(struct Scene *scene, struct View2D *v2d, int *hand, const int mval[2]); 00063 struct Sequence *find_neighboring_sequence(struct Scene *scene, struct Sequence *test, int lr, int sel); 00064 void deselect_all_seq(struct Scene *scene); 00065 void recurs_sel_seq(struct Sequence *seqm); 00066 int event_to_efftype(int event); 00067 int seq_effect_find_selected(struct Scene *scene, struct Sequence *activeseq, int type, struct Sequence **selseq1, struct Sequence **selseq2, struct Sequence **selseq3, const char **error_str); 00068 00069 /* operator helpers */ 00070 int sequencer_edit_poll(struct bContext *C); 00071 int sequencer_strip_poll(struct bContext *C); 00072 int sequencer_strip_has_path_poll(struct bContext *C); 00073 int sequencer_view_poll(struct bContext *C); 00074 00075 /* externs */ 00076 extern EnumPropertyItem sequencer_prop_effect_types[]; 00077 extern EnumPropertyItem prop_side_types[]; 00078 00079 /* operators */ 00080 struct wmOperatorType; 00081 struct wmKeyConfig; 00082 00083 void SEQUENCER_OT_cut(struct wmOperatorType *ot); 00084 void SEQUENCER_OT_mute(struct wmOperatorType *ot); 00085 void SEQUENCER_OT_unmute(struct wmOperatorType *ot); 00086 void SEQUENCER_OT_lock(struct wmOperatorType *ot); 00087 void SEQUENCER_OT_unlock(struct wmOperatorType *ot); 00088 void SEQUENCER_OT_reload(struct wmOperatorType *ot); 00089 void SEQUENCER_OT_refresh_all(struct wmOperatorType *ot); 00090 void SEQUENCER_OT_reassign_inputs(struct wmOperatorType *ot); 00091 void SEQUENCER_OT_swap_inputs(struct wmOperatorType *ot); 00092 void SEQUENCER_OT_duplicate(struct wmOperatorType *ot); 00093 void SEQUENCER_OT_delete(struct wmOperatorType *ot); 00094 void SEQUENCER_OT_offset_clear(struct wmOperatorType *ot); 00095 void SEQUENCER_OT_images_separate(struct wmOperatorType *ot); 00096 void SEQUENCER_OT_meta_toggle(struct wmOperatorType *ot); 00097 void SEQUENCER_OT_meta_make(struct wmOperatorType *ot); 00098 void SEQUENCER_OT_meta_separate(struct wmOperatorType *ot); 00099 void SEQUENCER_OT_snap(struct wmOperatorType *ot); 00100 void SEQUENCER_OT_previous_edit(struct wmOperatorType *ot); 00101 void SEQUENCER_OT_next_edit(struct wmOperatorType *ot); 00102 void SEQUENCER_OT_swap(struct wmOperatorType *ot); 00103 void SEQUENCER_OT_swap_data(struct wmOperatorType *ot); 00104 void SEQUENCER_OT_rendersize(struct wmOperatorType *ot); 00105 00106 void SEQUENCER_OT_view_toggle(struct wmOperatorType *ot); 00107 void SEQUENCER_OT_view_all(struct wmOperatorType *ot); 00108 void SEQUENCER_OT_view_selected(struct wmOperatorType *ot); 00109 void SEQUENCER_OT_view_zoom_ratio(struct wmOperatorType *ot); 00110 void SEQUENCER_OT_view_ghost_border(struct wmOperatorType *ot); 00111 00112 void SEQUENCER_OT_change_effect_input(struct wmOperatorType *ot); 00113 void SEQUENCER_OT_change_effect_type(struct wmOperatorType *ot); 00114 void SEQUENCER_OT_change_path(struct wmOperatorType *ot); 00115 00116 void SEQUENCER_OT_copy(struct wmOperatorType *ot); 00117 void SEQUENCER_OT_paste(struct wmOperatorType *ot); 00118 00119 void SEQUENCER_OT_rebuild_proxy(struct wmOperatorType *ot); 00120 00121 /* preview specific operators */ 00122 void SEQUENCER_OT_view_all_preview(struct wmOperatorType *ot); 00123 00124 /* sequencer_select.c */ 00125 void SEQUENCER_OT_select_all(struct wmOperatorType *ot); 00126 void SEQUENCER_OT_select(struct wmOperatorType *ot); 00127 void SEQUENCER_OT_select_more(struct wmOperatorType *ot); 00128 void SEQUENCER_OT_select_less(struct wmOperatorType *ot); 00129 void SEQUENCER_OT_select_linked(struct wmOperatorType *ot); 00130 void SEQUENCER_OT_select_linked_pick(struct wmOperatorType *ot); 00131 void SEQUENCER_OT_select_handles(struct wmOperatorType *ot); 00132 void SEQUENCER_OT_select_active_side(struct wmOperatorType *ot); 00133 void SEQUENCER_OT_select_border(struct wmOperatorType *ot); 00134 void SEQUENCER_OT_select_inverse(struct wmOperatorType *ot); 00135 void SEQUENCER_OT_select_grouped(struct wmOperatorType *ot); 00136 00137 /* sequencer_select.c */ 00138 void SEQUENCER_OT_scene_strip_add(struct wmOperatorType *ot); 00139 void SEQUENCER_OT_movie_strip_add(struct wmOperatorType *ot); 00140 void SEQUENCER_OT_sound_strip_add(struct wmOperatorType *ot); 00141 void SEQUENCER_OT_image_strip_add(struct wmOperatorType *ot); 00142 void SEQUENCER_OT_effect_strip_add(struct wmOperatorType *ot); 00143 00144 /* RNA enums, just to be more readable */ 00145 enum { 00146 SEQ_SIDE_NONE=0, 00147 SEQ_SIDE_LEFT, 00148 SEQ_SIDE_RIGHT, 00149 SEQ_SIDE_BOTH, 00150 }; 00151 enum { 00152 SEQ_CUT_SOFT, 00153 SEQ_CUT_HARD, 00154 }; 00155 enum { 00156 SEQ_SELECTED, 00157 SEQ_UNSELECTED, 00158 }; 00159 00160 /* defines used internally */ 00161 #define SCE_MARKERS 0 // XXX - dummy 00162 00163 /* sequencer_ops.c */ 00164 void sequencer_operatortypes(void); 00165 void sequencer_keymap(struct wmKeyConfig *keyconf); 00166 00167 /* sequencer_scope.c */ 00168 struct ImBuf *make_waveform_view_from_ibuf(struct ImBuf * ibuf); 00169 struct ImBuf *make_sep_waveform_view_from_ibuf(struct ImBuf * ibuf); 00170 struct ImBuf *make_vectorscope_view_from_ibuf(struct ImBuf * ibuf); 00171 struct ImBuf *make_zebra_view_from_ibuf(struct ImBuf * ibuf, float perc); 00172 struct ImBuf *make_histogram_view_from_ibuf(struct ImBuf * ibuf); 00173 00174 /* sequencer_buttons.c */ 00175 00176 void SEQUENCER_OT_properties(struct wmOperatorType *ot); 00177 void sequencer_buttons_register(struct ARegionType *art); 00178 00179 #endif /* ED_SEQUENCER_INTERN_H */ 00180