Blender
V3.3
|
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "DNA_sound_types.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BKE_fcurve.h"
#include "BKE_main.h"
#include "BKE_movieclip.h"
#include "BKE_scene.h"
#include "BKE_sound.h"
#include "SEQ_clipboard.h"
#include "SEQ_select.h"
#include "sequencer.h"
Go to the source code of this file.
Macros | |
#define | ID_PT (*id_pt) |
Functions | |
void | seq_clipboard_pointers_free (struct ListBase *seqbase) |
void | SEQ_clipboard_free (void) |
static void | seqclipboard_ptr_free (Main *UNUSED(bmain), ID **id_pt) |
static void | seqclipboard_ptr_store (Main *UNUSED(bmain), ID **id_pt) |
static void | seqclipboard_ptr_restore (Main *bmain, ID **id_pt) |
static void | sequence_clipboard_pointers (Main *bmain, Sequence *seq, void(*callback)(Main *, ID **)) |
void | SEQ_clipboard_pointers_store (Main *bmain, ListBase *seqbase) |
void | SEQ_clipboard_pointers_restore (ListBase *seqbase, Main *bmain) |
void | SEQ_clipboard_active_seq_name_store (Scene *scene) |
bool | SEQ_clipboard_pasted_seq_was_active (Sequence *pasted_seq) |
Variables | |
ListBase | seqbase_clipboard |
ListBase | fcurves_clipboard |
int | seqbase_clipboard_frame |
static char | seq_clipboard_active_seq_name [SEQ_NAME_MAXSTR] |
#define ID_PT (*id_pt) |
Definition at line 67 of file clipboard.c.
Definition at line 174 of file clipboard.c.
References Sequence::name, NULL, scene, seq_clipboard_active_seq_name, SEQ_select_active_get(), and STRNCPY.
Referenced by sequencer_copy_exec().
Definition at line 52 of file clipboard.c.
References BKE_fcurve_free(), BLI_listbase_clear(), fcurves_clipboard, LISTBASE_FOREACH_MUTABLE, NULL, seq_clipboard_pointers_free(), seq_free_sequence_recurse(), and seqbase_clipboard.
Referenced by sequencer_copy_exec(), and WM_exit_ex().
Check if strip was active when it was copied. User should restrict this check to pasted strips before ensuring original name, because strip name comparison is used to check.
pasted_seq | Strip that is pasted(duplicated) from clipboard |
Definition at line 185 of file clipboard.c.
References Sequence::name, seq_clipboard_active_seq_name, and STREQ.
Referenced by sequencer_paste_exec().
Definition at line 149 of file clipboard.c.
References ListBase::first, Sequence::next, NULL, Sequence::seqbase, seqclipboard_ptr_free(), and sequence_clipboard_pointers().
Referenced by SEQ_clipboard_free().
Definition at line 165 of file clipboard.c.
References ListBase::first, Sequence::next, Sequence::seqbase, seqclipboard_ptr_restore(), and sequence_clipboard_pointers().
Referenced by sequencer_paste_exec().
Definition at line 157 of file clipboard.c.
References ListBase::first, Sequence::next, Sequence::seqbase, seqclipboard_ptr_store(), and sequence_clipboard_pointers().
Referenced by sequencer_copy_exec(), and sequencer_paste_exec().
Definition at line 68 of file clipboard.c.
References BLI_assert, ID_PT, MEM_freeN, and NULL.
Referenced by seq_clipboard_pointers_free(), and seqclipboard_ptr_restore().
Definition at line 84 of file clipboard.c.
References BKE_movieclip_file_add(), BKE_sound_new_file(), BLI_assert, BLI_findindex(), BLI_findstring(), GS, ID_MC, ID_PT, ID_SO, NULL, seqclipboard_ptr_free(), and which_libbase().
Referenced by SEQ_clipboard_pointers_restore().
Definition at line 76 of file clipboard.c.
References ID_PT, and MEM_dupallocN.
Referenced by SEQ_clipboard_pointers_store().
|
static |
Definition at line 132 of file clipboard.c.
References callback, Sequence::clip, Sequence::effectdata, Sequence::mask, Sequence::scene, Sequence::scene_camera, SEQ_TYPE_TEXT, Sequence::sound, TextVars::text_font, and Sequence::type.
Referenced by seq_clipboard_pointers_free(), SEQ_clipboard_pointers_restore(), and SEQ_clipboard_pointers_store().
ListBase fcurves_clipboard |
Definition at line 46 of file clipboard.c.
Referenced by SEQ_clipboard_free(), sequencer_copy_animation(), and sequencer_paste_animation().
|
static |
Definition at line 48 of file clipboard.c.
Referenced by SEQ_clipboard_active_seq_name_store(), and SEQ_clipboard_pasted_seq_was_active().
ListBase seqbase_clipboard |
Definition at line 45 of file clipboard.c.
Referenced by lib_link_clipboard_restore(), SEQ_clipboard_free(), sequencer_copy_exec(), and sequencer_paste_exec().
int seqbase_clipboard_frame |
Definition at line 47 of file clipboard.c.
Referenced by sequencer_copy_exec(), and sequencer_paste_exec().