Blender V2.61 - r43446
Defines | Functions | Variables

sequencer_select.c File Reference

#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "BKE_report.h"
#include "BKE_sequencer.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_define.h"
#include "ED_types.h"
#include "ED_screen.h"
#include "UI_view2d.h"
#include "sequencer_intern.h"

Go to the source code of this file.

Defines

#define SEQ_IS_SOUND(_seq)   ((_seq->type & SEQ_SOUND) && !(_seq->type & SEQ_EFFECT))
#define SEQ_IS_EFFECT(_seq)   (_seq->type & SEQ_EFFECT)
#define SEQ_USE_DATA(_seq)   (_seq->type == SEQ_SCENE || SEQ_HAS_PATH(_seq))

Functions

static void * find_nearest_marker (int UNUSED(d1), int UNUSED(d2))
static void select_surrounding_handles (Scene *scene, Sequence *test)
static void select_active_side (ListBase *seqbase, int sel_side, int channel, int frame)
static void select_linked_time (ListBase *seqbase, Sequence *seq_link)
static void UNUSED_FUNCTION() select_single_seq (Scene *scene, Sequence *seq, int deselect_all)
static int sequencer_de_select_all_exec (bContext *C, wmOperator *op)
void SEQUENCER_OT_select_all (struct wmOperatorType *ot)
static int sequencer_select_inverse_exec (bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_inverse (struct wmOperatorType *ot)
static int sequencer_select_invoke (bContext *C, wmOperator *op, wmEvent *event)
void SEQUENCER_OT_select (wmOperatorType *ot)
static int select_more_less_seq__internal (Scene *scene, int sel, int linked)
static int sequencer_select_more_exec (bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_more (wmOperatorType *ot)
static int sequencer_select_less_exec (bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_less (wmOperatorType *ot)
static int sequencer_select_linked_pick_invoke (bContext *C, wmOperator *op, wmEvent *event)
void SEQUENCER_OT_select_linked_pick (wmOperatorType *ot)
static int sequencer_select_linked_exec (bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_linked (wmOperatorType *ot)
static int sequencer_select_handles_exec (bContext *C, wmOperator *op)
void SEQUENCER_OT_select_handles (wmOperatorType *ot)
static int sequencer_select_active_side_exec (bContext *C, wmOperator *op)
void SEQUENCER_OT_select_active_side (wmOperatorType *ot)
static int sequencer_borderselect_exec (bContext *C, wmOperator *op)
void SEQUENCER_OT_select_border (wmOperatorType *ot)
static short select_grouped_type (Editing *ed, Sequence *actseq)
static short select_grouped_type_basic (Editing *ed, Sequence *actseq)
static short select_grouped_type_effect (Editing *ed, Sequence *actseq)
static short select_grouped_data (Editing *ed, Sequence *actseq)
static short select_grouped_effect (Editing *ed, Sequence *actseq)
static short select_grouped_time_overlap (Editing *ed, Sequence *actseq)
static short select_grouped_effect_link (Editing *ed, Sequence *actseq)
static int sequencer_select_grouped_exec (bContext *C, wmOperator *op)
void SEQUENCER_OT_select_grouped (wmOperatorType *ot)

Variables

static EnumPropertyItem sequencer_prop_select_grouped_types []

Detailed Description

Definition in file sequencer_select.c.


Define Documentation

#define SEQ_IS_EFFECT (   _seq)    (_seq->type & SEQ_EFFECT)

Definition at line 923 of file sequencer_select.c.

Referenced by select_grouped_effect_link(), and select_grouped_type_effect().

#define SEQ_IS_SOUND (   _seq)    ((_seq->type & SEQ_SOUND) && !(_seq->type & SEQ_EFFECT))

Definition at line 921 of file sequencer_select.c.

Referenced by select_grouped_effect_link(), and select_grouped_type_basic().

#define SEQ_USE_DATA (   _seq)    (_seq->type == SEQ_SCENE || SEQ_HAS_PATH(_seq))

Definition at line 925 of file sequencer_select.c.

Referenced by select_grouped_data().


Function Documentation

static void* find_nearest_marker ( int   UNUSEDd1,
int   UNUSEDd2 
) [static]

Definition at line 66 of file sequencer_select.c.

References NULL.

Referenced by sequencer_select_invoke().

static void select_active_side ( ListBase seqbase,
int  sel_side,
int  channel,
int  frame 
) [static]
static short select_grouped_data ( Editing ed,
Sequence actseq 
) [static]
static short select_grouped_effect ( Editing ed,
Sequence actseq 
) [static]
static short select_grouped_effect_link ( Editing ed,
Sequence actseq 
) [static]
static short select_grouped_time_overlap ( Editing ed,
Sequence actseq 
) [static]
static short select_grouped_type ( Editing ed,
Sequence actseq 
) [static]

Definition at line 927 of file sequencer_select.c.

References FALSE, Sequence::flag, SELECT, SEQ_END, SEQP_BEGIN, TRUE, and Sequence::type.

Referenced by sequencer_select_grouped_exec().

static short select_grouped_type_basic ( Editing ed,
Sequence actseq 
) [static]

Definition at line 943 of file sequencer_select.c.

References FALSE, Sequence::flag, SELECT, SEQ_END, SEQ_IS_SOUND, SEQP_BEGIN, and TRUE.

Referenced by sequencer_select_grouped_exec().

static short select_grouped_type_effect ( Editing ed,
Sequence actseq 
) [static]

Definition at line 960 of file sequencer_select.c.

References FALSE, Sequence::flag, SELECT, SEQ_END, SEQ_IS_EFFECT, SEQP_BEGIN, and TRUE.

Referenced by sequencer_select_grouped_exec().

static void select_linked_time ( ListBase seqbase,
Sequence seq_link 
) [static]
static int select_more_less_seq__internal ( Scene scene,
int  sel,
int  linked 
) [static]
static void UNUSED_FUNCTION() select_single_seq ( Scene scene,
Sequence seq,
int  deselect_all 
) [static]
static void select_surrounding_handles ( Scene scene,
Sequence test 
) [static]
static int sequencer_borderselect_exec ( bContext C,
wmOperator op 
) [static]
static int sequencer_de_select_all_exec ( bContext C,
wmOperator op 
) [static]
void SEQUENCER_OT_select ( wmOperatorType ot)
void SEQUENCER_OT_select_active_side ( wmOperatorType ot)
void SEQUENCER_OT_select_all ( struct wmOperatorType ot)
void SEQUENCER_OT_select_border ( wmOperatorType ot)
void SEQUENCER_OT_select_grouped ( wmOperatorType ot)
void SEQUENCER_OT_select_handles ( wmOperatorType ot)
void SEQUENCER_OT_select_inverse ( struct wmOperatorType ot)
void SEQUENCER_OT_select_less ( wmOperatorType ot)
void SEQUENCER_OT_select_linked ( wmOperatorType ot)
void SEQUENCER_OT_select_linked_pick ( wmOperatorType ot)
void SEQUENCER_OT_select_more ( wmOperatorType ot)
static int sequencer_select_active_side_exec ( bContext C,
wmOperator op 
) [static]
static int sequencer_select_grouped_exec ( bContext C,
wmOperator op 
) [static]
static int sequencer_select_handles_exec ( bContext C,
wmOperator op 
) [static]
static int sequencer_select_inverse_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int sequencer_select_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int sequencer_select_less_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int sequencer_select_linked_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int sequencer_select_linked_pick_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int sequencer_select_more_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Variable Documentation

Initial value:
 {
    {1, "TYPE", 0, "Type", "Shared strip type"},
    {2, "TYPE_BASIC", 0, "Global Type", "All strips of same basic type (Graphical or Sound)"},
    {3, "TYPE_EFFECT", 0, "Effect Type",
        "Shared strip effect type (if active strip is not an effect one, select all non-effect strips)"},
    {4, "DATA", 0, "Data", "Shared data (scene, image, sound, etc.)"},
    {5, "EFFECT", 0, "Effect", "Shared effects"},
    {6, "EFFECT_LINK", 0, "Effect/Linked",
        "Other strips affected by the active one (sharing some time, and below or effect-assigned)"},
    {7, "OVERLAP", 0, "Overlap", "Overlapping time"},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 908 of file sequencer_select.c.