Blender  V3.3
Enumerations | Functions | Variables
nla_select.c File Reference
#include <stdio.h>
#include <string.h>
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BKE_context.h"
#include "BKE_nla.h"
#include "BKE_screen.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_view2d.h"
#include "nla_intern.h"

Go to the source code of this file.

Enumerations

enum  { DESELECT_STRIPS_NOTEST = 0 , DESELECT_STRIPS_TEST , DESELECT_STRIPS_CLEARACTIVE }
 
enum  { NLA_BOXSEL_ALLSTRIPS = 0 , NLA_BOXSEL_FRAMERANGE , NLA_BOXSEL_CHANNELS }
 

Functions

static short selmodes_to_flagmodes (short sel)
 
static void deselect_nla_strips (bAnimContext *ac, short test, short sel)
 
static int nlaedit_deselectall_exec (bContext *C, wmOperator *op)
 
void NLA_OT_select_all (wmOperatorType *ot)
 
static void box_select_nla_strips (bAnimContext *ac, rcti rect, short mode, short selectmode)
 
static void nlaedit_strip_at_region_position (bAnimContext *ac, float region_x, float region_y, bAnimListElem **r_ale, NlaStrip **r_strip)
 
static bool nlaedit_mouse_is_over_strip (bAnimContext *ac, const int mval[2])
 
static int nlaedit_box_select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static int nlaedit_box_select_exec (bContext *C, wmOperator *op)
 
void NLA_OT_select_box (wmOperatorType *ot)
 
static void nlaedit_select_leftright (bContext *C, bAnimContext *ac, short leftright, short select_mode)
 
static int nlaedit_select_leftright_exec (bContext *C, wmOperator *op)
 
static int nlaedit_select_leftright_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void NLA_OT_select_leftright (wmOperatorType *ot)
 
static int mouse_nla_strips (bContext *C, bAnimContext *ac, const int mval[2], short select_mode, const bool deselect_all, bool wait_to_deselect_others)
 
static int nlaedit_clickselect_exec (bContext *C, wmOperator *op)
 
void NLA_OT_click_select (wmOperatorType *ot)
 

Variables

static const EnumPropertyItem prop_nlaedit_leftright_select_types []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DESELECT_STRIPS_NOTEST 
DESELECT_STRIPS_TEST 
DESELECT_STRIPS_CLEARACTIVE 

Definition at line 64 of file nla_select.c.

◆ anonymous enum

anonymous enum

This operator currently works in one of three ways:

  • BKEY - 1: all strips within region are selected #NLAEDIT_BOX_ALLSTRIPS.
  • ALT-BKEY - depending on which axis of the region was larger.
    • 2: x-axis, so select all frames within frame range #NLAEDIT_BOXSEL_FRAMERANGE.
    • 3: y-axis, so select all frames within channels that region included #NLAEDIT_BOXSEL_CHANNELS.
Enumerator
NLA_BOXSEL_ALLSTRIPS 
NLA_BOXSEL_FRAMERANGE 
NLA_BOXSEL_CHANNELS 

Definition at line 205 of file nla_select.c.

Function Documentation

◆ box_select_nla_strips()

static void box_select_nla_strips ( bAnimContext ac,
rcti  rect,
short  mode,
short  selectmode 
)
static

◆ deselect_nla_strips()

static void deselect_nla_strips ( bAnimContext ac,
short  test,
short  sel 
)
static

◆ mouse_nla_strips()

static int mouse_nla_strips ( bContext C,
bAnimContext ac,
const int  mval[2],
short  select_mode,
const bool  deselect_all,
bool  wait_to_deselect_others 
)
static

◆ NLA_OT_click_select()

void NLA_OT_click_select ( wmOperatorType ot)

◆ NLA_OT_select_all()

void NLA_OT_select_all ( wmOperatorType ot)

◆ NLA_OT_select_box()

void NLA_OT_select_box ( wmOperatorType ot)

◆ NLA_OT_select_leftright()

void NLA_OT_select_leftright ( wmOperatorType ot)

◆ nlaedit_box_select_exec()

static int nlaedit_box_select_exec ( bContext C,
wmOperator op 
)
static

◆ nlaedit_box_select_invoke()

static int nlaedit_box_select_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ nlaedit_clickselect_exec()

static int nlaedit_clickselect_exec ( bContext C,
wmOperator op 
)
static

◆ nlaedit_deselectall_exec()

static int nlaedit_deselectall_exec ( bContext C,
wmOperator op 
)
static

◆ nlaedit_mouse_is_over_strip()

static bool nlaedit_mouse_is_over_strip ( bAnimContext ac,
const int  mval[2] 
)
static

Definition at line 311 of file nla_select.c.

References BLI_assert, MEM_freeN, nlaedit_strip_at_region_position(), and NULL.

Referenced by nlaedit_box_select_invoke().

◆ nlaedit_select_leftright()

static void nlaedit_select_leftright ( bContext C,
bAnimContext ac,
short  leftright,
short  select_mode 
)
static

◆ nlaedit_select_leftright_exec()

static int nlaedit_select_leftright_exec ( bContext C,
wmOperator op 
)
static

◆ nlaedit_select_leftright_invoke()

static int nlaedit_select_leftright_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ nlaedit_strip_at_region_position()

static void nlaedit_strip_at_region_position ( bAnimContext ac,
float  region_x,
float  region_y,
bAnimListElem **  r_ale,
NlaStrip **  r_strip 
)
static

◆ selmodes_to_flagmodes()

static short selmodes_to_flagmodes ( short  sel)
static

Variable Documentation

◆ prop_nlaedit_leftright_select_types

const EnumPropertyItem prop_nlaedit_leftright_select_types[]
static
Initial value:
= {
{NLAEDIT_LRSEL_TEST, "CHECK", 0, "Check if Select Left or Right", ""},
{NLAEDIT_LRSEL_LEFT, "LEFT", 0, "Before Current Frame", ""},
{NLAEDIT_LRSEL_RIGHT, "RIGHT", 0, "After Current Frame", ""},
{0, NULL, 0, NULL, NULL},
}
@ NLAEDIT_LRSEL_RIGHT
Definition: nla_intern.h:39
@ NLAEDIT_LRSEL_TEST
Definition: nla_intern.h:36
@ NLAEDIT_LRSEL_LEFT
Definition: nla_intern.h:38

Definition at line 421 of file nla_select.c.

Referenced by NLA_OT_select_leftright().