Blender
V3.3
|
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "SEQ_iterator.h"
#include "SEQ_modifier.h"
#include "SEQ_relations.h"
#include "SEQ_select.h"
#include "SEQ_sequencer.h"
#include "sequencer_intern.h"
Go to the source code of this file.
Enumerations | |
enum | { SEQ_MODIFIER_MOVE_UP = 0 , SEQ_MODIFIER_MOVE_DOWN } |
enum | { SEQ_MODIFIER_COPY_REPLACE = 0 , SEQ_MODIFIER_COPY_APPEND = 1 } |
Functions | |
static bool | strip_modifier_active_poll (bContext *C) |
static int | strip_modifier_add_exec (bContext *C, wmOperator *op) |
void | SEQUENCER_OT_strip_modifier_add (wmOperatorType *ot) |
static int | strip_modifier_remove_exec (bContext *C, wmOperator *op) |
void | SEQUENCER_OT_strip_modifier_remove (wmOperatorType *ot) |
static int | strip_modifier_move_exec (bContext *C, wmOperator *op) |
void | SEQUENCER_OT_strip_modifier_move (wmOperatorType *ot) |
static int | strip_modifier_copy_exec (bContext *C, wmOperator *op) |
void | SEQUENCER_OT_strip_modifier_copy (wmOperatorType *ot) |
anonymous enum |
Enumerator | |
---|---|
SEQ_MODIFIER_MOVE_UP | |
SEQ_MODIFIER_MOVE_DOWN |
Definition at line 136 of file sequencer_modifier.c.
anonymous enum |
Enumerator | |
---|---|
SEQ_MODIFIER_COPY_REPLACE | |
SEQ_MODIFIER_COPY_APPEND |
Definition at line 207 of file sequencer_modifier.c.
void SEQUENCER_OT_strip_modifier_add | ( | wmOperatorType * | ot | ) |
Definition at line 62 of file sequencer_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), rna_enum_sequence_modifier_type_items, seqModifierType_ColorBalance, wmOperatorType::srna, strip_modifier_active_poll(), and strip_modifier_add_exec().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_strip_modifier_copy | ( | wmOperatorType * | ot | ) |
Definition at line 252 of file sequencer_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), SEQ_MODIFIER_COPY_APPEND, SEQ_MODIFIER_COPY_REPLACE, wmOperatorType::srna, strip_modifier_active_poll(), strip_modifier_copy_exec(), and WM_menu_invoke().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_strip_modifier_move | ( | wmOperatorType * | ot | ) |
Definition at line 176 of file sequencer_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MAX_NAME, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), RNA_def_string(), SEQ_MODIFIER_MOVE_DOWN, SEQ_MODIFIER_MOVE_UP, wmOperatorType::srna, strip_modifier_active_poll(), and strip_modifier_move_exec().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_strip_modifier_remove | ( | wmOperatorType * | ot | ) |
Definition at line 113 of file sequencer_modifier.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MAX_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_property_flag(), RNA_def_string(), wmOperatorType::srna, strip_modifier_active_poll(), and strip_modifier_remove_exec().
Referenced by sequencer_operatortypes().
Definition at line 32 of file sequencer_modifier.c.
References C, CTX_data_scene(), scene, SEQ_editing_get(), SEQ_select_active_get(), and SEQ_sequence_supports_modifiers().
Referenced by SEQUENCER_OT_strip_modifier_add(), SEQUENCER_OT_strip_modifier_copy(), SEQUENCER_OT_strip_modifier_move(), and SEQUENCER_OT_strip_modifier_remove().
|
static |
Definition at line 48 of file sequencer_modifier.c.
References C, CTX_data_scene(), NC_SCENE, ND_SEQUENCER, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), scene, SEQ_modifier_new(), SEQ_relations_invalidate_cache_preprocessed(), SEQ_select_active_get(), type, and WM_event_add_notifier().
Referenced by SEQUENCER_OT_strip_modifier_add().
|
static |
Definition at line 212 of file sequencer_modifier.c.
References BLI_listbase_clear(), BLI_remlink(), C, CTX_data_scene(), Scene::ed, ListBase::first, LISTBASE_FOREACH, Sequence::modifiers, NC_SCENE, ND_SEQUENCER, SequenceModifierData::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), scene, SELECT, SEQ_active_seqbase_get(), SEQ_MODIFIER_COPY_REPLACE, SEQ_modifier_free(), SEQ_modifier_list_copy(), SEQ_relations_invalidate_cache_preprocessed(), SEQ_select_active_get(), type, and WM_event_add_notifier().
Referenced by SEQUENCER_OT_strip_modifier_copy().
|
static |
Definition at line 141 of file sequencer_modifier.c.
References BLI_insertlinkafter(), BLI_insertlinkbefore(), BLI_remlink(), C, CTX_data_scene(), MAX_NAME, Sequence::modifiers, NC_SCENE, ND_SEQUENCER, SequenceModifierData::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, SequenceModifierData::prev, wmOperator::ptr, RNA_enum_get(), RNA_string_get(), scene, SEQ_modifier_find_by_name(), SEQ_MODIFIER_MOVE_DOWN, SEQ_MODIFIER_MOVE_UP, SEQ_relations_invalidate_cache_preprocessed(), SEQ_select_active_get(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_strip_modifier_move().
|
static |
Definition at line 90 of file sequencer_modifier.c.
References BLI_remlink(), C, CTX_data_scene(), MAX_NAME, Sequence::modifiers, NC_SCENE, ND_SEQUENCER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), scene, SEQ_modifier_find_by_name(), SEQ_modifier_free(), SEQ_relations_invalidate_cache_preprocessed(), SEQ_select_active_get(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_strip_modifier_remove().