Blender V4.3
nla_buttons.cc File Reference
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include "DNA_anim_types.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_nla.hh"
#include "BKE_screen.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "ANIM_action.hh"
#include "ANIM_action_legacy.hh"
#include "ED_anim_api.hh"
#include "UI_interface.hh"
#include "UI_interface_c.hh"
#include "UI_resources.hh"
#include "nla_intern.hh"

Go to the source code of this file.

Macros

#define NLA_FMODIFIER_PANEL_PREFIX   "NLA"
 

Functions

static void do_nla_region_buttons (bContext *C, void *, int)
 
bool nla_panel_context (const bContext *C, PointerRNA *adt_ptr, PointerRNA *nlt_ptr, PointerRNA *strip_ptr)
 
bool ANIM_nla_context_track_ptr (const bContext *C, PointerRNA *r_ptr)
 
bool ANIM_nla_context_strip_ptr (const bContext *C, PointerRNA *r_ptr)
 
NlaTrackANIM_nla_context_track (const bContext *C)
 
NlaStripANIM_nla_context_strip (const bContext *C)
 
static bool nla_animdata_panel_poll (const bContext *C, PanelType *)
 
static bool nla_strip_panel_poll (const bContext *C, PanelType *)
 
static bool nla_strip_actclip_panel_poll (const bContext *C, PanelType *)
 
static bool nla_strip_eval_panel_poll (const bContext *C, PanelType *)
 
static void nla_panel_animdata (const bContext *C, Panel *panel)
 
static void nla_panel_stripname (const bContext *C, Panel *panel)
 
static void nla_panel_properties (const bContext *C, Panel *panel)
 
static void nla_panel_actclip (const bContext *C, Panel *panel)
 
static void nla_panel_animated_influence_header (const bContext *C, Panel *panel)
 
static void nla_panel_evaluation (const bContext *C, Panel *panel)
 
static void nla_panel_animated_strip_time_header (const bContext *C, Panel *panel)
 
static void nla_panel_animated_strip_time (const bContext *C, Panel *panel)
 
static void nla_fmodifier_panel_id (void *fcm_link, char *r_name)
 
static void nla_panel_modifiers (const bContext *C, Panel *panel)
 
void nla_buttons_register (ARegionType *art)
 

Macro Definition Documentation

◆ NLA_FMODIFIER_PANEL_PREFIX

#define NLA_FMODIFIER_PANEL_PREFIX   "NLA"

Definition at line 605 of file nla_buttons.cc.

Referenced by nla_buttons_register(), and nla_fmodifier_panel_id().

Function Documentation

◆ ANIM_nla_context_strip()

NlaStrip * ANIM_nla_context_strip ( const bContext * C)

Definition at line 225 of file nla_buttons.cc.

References ANIM_nla_context_strip_ptr(), and PointerRNA::data.

Referenced by fmodifier_list_space_specific().

◆ ANIM_nla_context_strip_ptr()

bool ANIM_nla_context_strip_ptr ( const bContext * C,
PointerRNA * r_ptr )

Definition at line 211 of file nla_buttons.cc.

References nla_panel_context().

Referenced by ANIM_nla_context_strip(), and screen_ctx_active_nla_strip().

◆ ANIM_nla_context_track()

NlaTrack * ANIM_nla_context_track ( const bContext * C)

Definition at line 216 of file nla_buttons.cc.

References ANIM_nla_context_track_ptr(), and PointerRNA::data.

◆ ANIM_nla_context_track_ptr()

bool ANIM_nla_context_track_ptr ( const bContext * C,
PointerRNA * r_ptr )

Definition at line 206 of file nla_buttons.cc.

References nla_panel_context().

Referenced by ANIM_nla_context_track(), and screen_ctx_active_nla_track().

◆ do_nla_region_buttons()

◆ nla_animdata_panel_poll()

static bool nla_animdata_panel_poll ( const bContext * C,
PanelType *  )
static

Definition at line 241 of file nla_buttons.cc.

References PointerRNA::data, nla_panel_context(), PointerRNA::owner_id, and ptr.

Referenced by nla_buttons_register().

◆ nla_buttons_register()

◆ nla_fmodifier_panel_id()

static void nla_fmodifier_panel_id ( void * fcm_link,
char * r_name )
static

◆ nla_panel_actclip()

◆ nla_panel_animated_influence_header()

static void nla_panel_animated_influence_header ( const bContext * C,
Panel * panel )
static

◆ nla_panel_animated_strip_time()

static void nla_panel_animated_strip_time ( const bContext * C,
Panel * panel )
static

◆ nla_panel_animated_strip_time_header()

static void nla_panel_animated_strip_time_header ( const bContext * C,
Panel * panel )
static

◆ nla_panel_animdata()

◆ nla_panel_context()

bool nla_panel_context ( const bContext * C,
PointerRNA * adt_ptr,
PointerRNA * nlt_ptr,
PointerRNA * strip_ptr )

Definition at line 65 of file nla_buttons.cc.

References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_ANIMDATA, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACT_LAYERED, ANIMTYPE_FILLACTD, ANIMTYPE_FILLDRIVERS, ANIMTYPE_GPDATABLOCK, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACONTROLS, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_NONE, ANIMTYPE_NUM_TYPES, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, ANIMTYPE_SHAPEKEY, ANIMTYPE_SPECIALDATA__UNUSED, ANIMTYPE_SUMMARY, BKE_nlastrip_find_active(), bAnimContext::data, bAnimContext::datatype, LISTBASE_FOREACH, and RNA_pointer_create().

Referenced by ANIM_nla_context_strip_ptr(), ANIM_nla_context_track_ptr(), nla_action_unlink_exec(), nla_action_unlink_poll(), nla_animdata_panel_poll(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), nla_strip_actclip_panel_poll(), nla_strip_eval_panel_poll(), nla_strip_panel_poll(), and nlatracks_pushdown_exec().

◆ nla_panel_evaluation()

◆ nla_panel_modifiers()

◆ nla_panel_properties()

◆ nla_panel_stripname()

◆ nla_strip_actclip_panel_poll()

static bool nla_strip_actclip_panel_poll ( const bContext * C,
PanelType *  )
static

◆ nla_strip_eval_panel_poll()

static bool nla_strip_eval_panel_poll ( const bContext * C,
PanelType *  )
static

◆ nla_strip_panel_poll()

static bool nla_strip_panel_poll ( const bContext * C,
PanelType *  )
static

Definition at line 249 of file nla_buttons.cc.

References PointerRNA::data, nla_panel_context(), and ptr.

Referenced by nla_buttons_register().