2008-12-14 14:43:08 +00:00
|
|
|
/**
|
|
|
|
* $Id:
|
|
|
|
*
|
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2008 Blender Foundation.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*
|
2009-01-26 09:13:15 +00:00
|
|
|
* Contributor(s): Blender Foundation, Campbell Barton
|
2008-12-14 14:43:08 +00:00
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
*/
|
|
|
|
#ifndef ED_SEQUENCER_INTERN_H
|
|
|
|
#define ED_SEQUENCER_INTERN_H
|
|
|
|
|
2009-01-26 09:13:15 +00:00
|
|
|
#include "RNA_access.h"
|
|
|
|
#include "DNA_sequence_types.h"
|
|
|
|
|
2008-12-14 14:43:08 +00:00
|
|
|
/* internal exports only */
|
|
|
|
|
2009-01-12 19:02:08 +00:00
|
|
|
struct Sequence;
|
|
|
|
struct bContext;
|
|
|
|
struct rctf;
|
|
|
|
struct SpaceSeq;
|
|
|
|
struct ARegion;
|
|
|
|
struct Scene;
|
|
|
|
|
2008-12-14 14:43:08 +00:00
|
|
|
/* sequencer_header.c */
|
2009-01-12 19:02:08 +00:00
|
|
|
void sequencer_header_buttons(const struct bContext *C, struct ARegion *ar);
|
|
|
|
|
|
|
|
/* sequencer_draw.c */
|
|
|
|
void drawseqspace(const struct bContext *C, struct ARegion *ar);
|
2009-01-25 14:53:41 +00:00
|
|
|
void seq_reset_imageofs(struct SpaceSeq *sseq);
|
2009-01-12 19:02:08 +00:00
|
|
|
|
|
|
|
/* sequencer_edit.c */
|
2009-01-20 14:19:39 +00:00
|
|
|
struct View2D;
|
2009-01-12 19:02:08 +00:00
|
|
|
int check_single_seq(struct Sequence *seq);
|
|
|
|
int seq_tx_get_final_left(struct Sequence *seq, int metaclip);
|
|
|
|
int seq_tx_get_final_right(struct Sequence *seq, int metaclip);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
void seq_rectf(struct Sequence *seq, struct rctf *rectf);
|
2009-01-12 19:02:08 +00:00
|
|
|
void boundbox_seq(struct Scene *scene, struct rctf *rect);
|
|
|
|
struct Sequence *get_last_seq(struct Scene *scene);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
struct Sequence *find_nearest_seq(struct Scene *scene, struct View2D *v2d, int *hand, short mval[2]);
|
|
|
|
struct Sequence *find_neighboring_sequence(struct Scene *scene, struct Sequence *test, int lr, int sel);
|
|
|
|
void deselect_all_seq(struct Scene *scene);
|
|
|
|
void recurs_sel_seq(struct Sequence *seqm);
|
2009-01-20 14:19:39 +00:00
|
|
|
int event_to_efftype(int event);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
void set_last_seq(struct Scene *scene, struct Sequence *seq);
|
2009-01-26 09:13:15 +00:00
|
|
|
int seq_effect_find_selected(struct Scene *scene, struct Sequence *activeseq, int type, struct Sequence **selseq1, struct Sequence **selseq2, struct Sequence **selseq3, char **error_str);
|
2009-01-20 14:19:39 +00:00
|
|
|
struct Sequence *alloc_sequence(struct ListBase *lb, int cfra, int machine);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
|
2009-01-26 09:13:15 +00:00
|
|
|
/* externs */
|
|
|
|
extern EnumPropertyItem sequencer_prop_effect_types[];
|
2009-01-31 09:58:38 +00:00
|
|
|
extern EnumPropertyItem prop_side_types[];
|
2009-01-26 09:13:15 +00:00
|
|
|
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
/* operators */
|
|
|
|
struct wmOperatorType;
|
|
|
|
struct wmWindowManager;
|
|
|
|
void SEQUENCER_OT_cut(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_mute(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_unmute(struct wmOperatorType *ot);
|
2009-01-25 14:53:41 +00:00
|
|
|
void SEQUENCER_OT_lock(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_unlock(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_reload(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_refresh_all(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void SEQUENCER_OT_duplicate_add(struct wmOperatorType *ot);
|
2009-01-21 18:47:09 +00:00
|
|
|
void SEQUENCER_OT_delete(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_separate_images(struct wmOperatorType *ot);
|
2009-01-23 23:14:02 +00:00
|
|
|
void SEQUENCER_OT_meta_toggle(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_meta_make(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_meta_separate(struct wmOperatorType *ot);
|
2009-01-21 18:47:09 +00:00
|
|
|
|
2009-01-25 14:53:41 +00:00
|
|
|
void SEQUENCER_OT_view_all(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_view_selected(struct wmOperatorType *ot);
|
2009-01-20 14:19:39 +00:00
|
|
|
|
|
|
|
/* sequencer_select.c */
|
2009-03-29 02:15:13 +00:00
|
|
|
void SEQUENCER_OT_select_all_toggle(struct wmOperatorType *ot);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
void SEQUENCER_OT_select(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_select_more(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_select_less(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_select_linked(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void SEQUENCER_OT_select_linked_pick(struct wmOperatorType *ot);
|
2009-01-31 09:58:38 +00:00
|
|
|
void SEQUENCER_OT_select_handles(struct wmOperatorType *ot);
|
2009-02-13 14:16:56 +00:00
|
|
|
void SEQUENCER_OT_select_active_side(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void SEQUENCER_OT_select_border(struct wmOperatorType *ot);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
void SEQUENCER_OT_select_invert(struct wmOperatorType *ot);
|
|
|
|
|
2009-01-20 14:19:39 +00:00
|
|
|
|
|
|
|
/* sequencer_select.c */
|
|
|
|
void SEQUENCER_OT_add_scene_strip(struct wmOperatorType *ot);
|
New Operators, duplicate is shift+d, Add operators are accessible from the header.
SEQUENCER_OT_add_duplicate(mode=1)
SEQUENCER_OT_add_image_strip(name='', start_frame=0, channel=1, filename='', replace_sel=True)
SEQUENCER_OT_add_movie_strip(name='', start_frame=0, channel=1, filename='', replace_sel=True)
SEQUENCER_OT_add_sound_strip(name='', start_frame=0, channel=1, filename='', replace_sel=True)
Some of these use the file selector, Note that sound isn't working yet because editsound.c functions are not yet in 2.5 and Operators dont have a way to recieve an array of strings so SEQUENCER_OT_add_image_strip only adds 1 image at the moment.
2009-01-22 15:52:04 +00:00
|
|
|
void SEQUENCER_OT_add_movie_strip(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_add_sound_strip(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_add_image_strip(struct wmOperatorType *ot);
|
2009-01-26 09:13:15 +00:00
|
|
|
void SEQUENCER_OT_add_effect_strip(struct wmOperatorType *ot);
|
2009-01-20 14:19:39 +00:00
|
|
|
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
/* RNA enums, just to be more readable */
|
|
|
|
enum {
|
2009-02-15 17:24:09 +00:00
|
|
|
SEQ_SIDE_NONE=0,
|
2009-01-31 09:58:38 +00:00
|
|
|
SEQ_SIDE_LEFT,
|
|
|
|
SEQ_SIDE_RIGHT,
|
|
|
|
SEQ_SIDE_BOTH,
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
};
|
|
|
|
enum {
|
|
|
|
SEQ_CUT_SOFT,
|
|
|
|
SEQ_CUT_HARD,
|
|
|
|
};
|
|
|
|
enum {
|
|
|
|
SEQ_SELECTED,
|
|
|
|
SEQ_UNSELECTED,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* defines used internally */
|
|
|
|
#define SEQ_ALLSEL (SELECT+SEQ_LEFTSEL+SEQ_RIGHTSEL)
|
|
|
|
#define SEQ_DESEL ~SEQ_ALLSEL
|
|
|
|
#define SCE_MARKERS 0 // XXX - dummy
|
|
|
|
|
|
|
|
/* sequencer_ops.c */
|
|
|
|
void sequencer_operatortypes(void);
|
|
|
|
void sequencer_keymap(struct wmWindowManager *wm);
|
2008-12-14 14:43:08 +00:00
|
|
|
|
2009-01-12 19:02:08 +00:00
|
|
|
/* sequencer_scope.c */
|
|
|
|
struct ImBuf *make_waveform_view_from_ibuf(struct ImBuf * ibuf);
|
|
|
|
struct ImBuf *make_sep_waveform_view_from_ibuf(struct ImBuf * ibuf);
|
|
|
|
struct ImBuf *make_vectorscope_view_from_ibuf(struct ImBuf * ibuf);
|
|
|
|
struct ImBuf *make_zebra_view_from_ibuf(struct ImBuf * ibuf, float perc);
|
|
|
|
struct ImBuf *make_histogram_view_from_ibuf(struct ImBuf * ibuf);
|
2008-12-14 14:43:08 +00:00
|
|
|
|
|
|
|
#endif /* ED_SEQUENCER_INTERN_H */
|
|
|
|
|