|
Blender
V2.59
|
00001 /* 00002 * $Id: sequencer_intern.h 36644 2011-05-12 16:47:36Z campbellbarton $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2008 Blender Foundation. 00021 * All rights reserved. 00022 * 00023 * 00024 * Contributor(s): Blender Foundation, Campbell Barton 00025 * 00026 * ***** END GPL LICENSE BLOCK ***** 00027 */ 00028 00033 #ifndef ED_SEQUENCER_INTERN_H 00034 #define ED_SEQUENCER_INTERN_H 00035 00036 #include "RNA_access.h" 00037 #include "DNA_sequence_types.h" 00038 00039 /* internal exports only */ 00040 00041 struct Sequence; 00042 struct bContext; 00043 struct rctf; 00044 struct SpaceSeq; 00045 struct ScrArea; 00046 struct ARegion; 00047 struct ARegionType; 00048 struct Scene; 00049 00050 /* space_sequencer.c */ 00051 struct ARegion *sequencer_has_buttons_region(struct ScrArea *sa); 00052 00053 00054 /* sequencer_draw.c */ 00055 void draw_timeline_seq(const struct bContext *C, struct ARegion *ar); 00056 void draw_image_seq(const struct bContext* C, struct Scene *scene,struct ARegion *ar, struct SpaceSeq *sseq, int cfra, int offset); 00057 00058 void seq_reset_imageofs(struct SpaceSeq *sseq); 00059 00060 /* sequencer_edit.c */ 00061 struct View2D; 00062 void seq_rectf(struct Sequence *seq, struct rctf *rectf); 00063 void boundbox_seq(struct Scene *scene, struct rctf *rect); 00064 struct Sequence *find_nearest_seq(struct Scene *scene, struct View2D *v2d, int *hand, const int mval[2]); 00065 struct Sequence *find_neighboring_sequence(struct Scene *scene, struct Sequence *test, int lr, int sel); 00066 void deselect_all_seq(struct Scene *scene); 00067 void recurs_sel_seq(struct Sequence *seqm); 00068 int event_to_efftype(int event); 00069 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); 00070 00071 /* operator helpers */ 00072 int sequencer_edit_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_images_separate(struct wmOperatorType *ot); 00095 void SEQUENCER_OT_meta_toggle(struct wmOperatorType *ot); 00096 void SEQUENCER_OT_meta_make(struct wmOperatorType *ot); 00097 void SEQUENCER_OT_meta_separate(struct wmOperatorType *ot); 00098 void SEQUENCER_OT_snap(struct wmOperatorType *ot); 00099 void SEQUENCER_OT_previous_edit(struct wmOperatorType *ot); 00100 void SEQUENCER_OT_next_edit(struct wmOperatorType *ot); 00101 void SEQUENCER_OT_swap(struct wmOperatorType *ot); 00102 void SEQUENCER_OT_swap_data(struct wmOperatorType *ot); 00103 void SEQUENCER_OT_rendersize(struct wmOperatorType *ot); 00104 00105 void SEQUENCER_OT_view_toggle(struct wmOperatorType *ot); 00106 void SEQUENCER_OT_view_all(struct wmOperatorType *ot); 00107 void SEQUENCER_OT_view_selected(struct wmOperatorType *ot); 00108 void SEQUENCER_OT_view_zoom_ratio(struct wmOperatorType *ot); 00109 void SEQUENCER_OT_view_ghost_border(struct wmOperatorType *ot); 00110 00111 void SEQUENCER_OT_copy(struct wmOperatorType *ot); 00112 void SEQUENCER_OT_paste(struct wmOperatorType *ot); 00113 00114 /* preview specific operators */ 00115 void SEQUENCER_OT_view_all_preview(struct wmOperatorType *ot); 00116 00117 /* sequencer_select.c */ 00118 void SEQUENCER_OT_select_all_toggle(struct wmOperatorType *ot); 00119 void SEQUENCER_OT_select(struct wmOperatorType *ot); 00120 void SEQUENCER_OT_select_more(struct wmOperatorType *ot); 00121 void SEQUENCER_OT_select_less(struct wmOperatorType *ot); 00122 void SEQUENCER_OT_select_linked(struct wmOperatorType *ot); 00123 void SEQUENCER_OT_select_linked_pick(struct wmOperatorType *ot); 00124 void SEQUENCER_OT_select_handles(struct wmOperatorType *ot); 00125 void SEQUENCER_OT_select_active_side(struct wmOperatorType *ot); 00126 void SEQUENCER_OT_select_border(struct wmOperatorType *ot); 00127 void SEQUENCER_OT_select_inverse(struct wmOperatorType *ot); 00128 00129 00130 /* sequencer_select.c */ 00131 void SEQUENCER_OT_scene_strip_add(struct wmOperatorType *ot); 00132 void SEQUENCER_OT_movie_strip_add(struct wmOperatorType *ot); 00133 void SEQUENCER_OT_sound_strip_add(struct wmOperatorType *ot); 00134 void SEQUENCER_OT_image_strip_add(struct wmOperatorType *ot); 00135 void SEQUENCER_OT_effect_strip_add(struct wmOperatorType *ot); 00136 00137 /* RNA enums, just to be more readable */ 00138 enum { 00139 SEQ_SIDE_NONE=0, 00140 SEQ_SIDE_LEFT, 00141 SEQ_SIDE_RIGHT, 00142 SEQ_SIDE_BOTH, 00143 }; 00144 enum { 00145 SEQ_CUT_SOFT, 00146 SEQ_CUT_HARD, 00147 }; 00148 enum { 00149 SEQ_SELECTED, 00150 SEQ_UNSELECTED, 00151 }; 00152 00153 /* defines used internally */ 00154 #define SCE_MARKERS 0 // XXX - dummy 00155 00156 /* sequencer_ops.c */ 00157 void sequencer_operatortypes(void); 00158 void sequencer_keymap(struct wmKeyConfig *keyconf); 00159 00160 /* sequencer_scope.c */ 00161 struct ImBuf *make_waveform_view_from_ibuf(struct ImBuf * ibuf); 00162 struct ImBuf *make_sep_waveform_view_from_ibuf(struct ImBuf * ibuf); 00163 struct ImBuf *make_vectorscope_view_from_ibuf(struct ImBuf * ibuf); 00164 struct ImBuf *make_zebra_view_from_ibuf(struct ImBuf * ibuf, float perc); 00165 struct ImBuf *make_histogram_view_from_ibuf(struct ImBuf * ibuf); 00166 00167 /* sequencer_buttons.c */ 00168 00169 void SEQUENCER_OT_properties(struct wmOperatorType *ot); 00170 void sequencer_buttons_register(struct ARegionType *art); 00171 00172 #endif /* ED_SEQUENCER_INTERN_H */ 00173