Blender
V3.3
|
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "DNA_anim_types.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_nla.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "ED_anim_api.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "nla_intern.h"
Go to the source code of this file.
Macros | |
#define | NLA_FMODIFIER_PANEL_PREFIX "NLA" |
#define NLA_FMODIFIER_PANEL_PREFIX "NLA" |
Definition at line 561 of file nla_buttons.c.
Definition at line 199 of file nla_buttons.c.
References ANIM_nla_context_strip_ptr(), C, PointerRNA::data, and NULL.
bool ANIM_nla_context_strip_ptr | ( | const bContext * | C, |
PointerRNA * | r_ptr | ||
) |
Definition at line 183 of file nla_buttons.c.
References C, nla_panel_context(), and NULL.
Referenced by ANIM_nla_context_strip().
Definition at line 188 of file nla_buttons.c.
References ANIM_nla_context_track_ptr(), C, PointerRNA::data, and NULL.
bool ANIM_nla_context_track_ptr | ( | const bContext * | C, |
PointerRNA * | r_ptr | ||
) |
Definition at line 178 of file nla_buttons.c.
References C, nla_panel_context(), and NULL.
Referenced by ANIM_nla_context_track().
Definition at line 46 of file nla_buttons.c.
References C, NC_OBJECT, NC_SCENE, ND_TRANSFORM, NULL, and WM_event_add_notifier().
Referenced by 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(), and nla_panel_stripname().
Definition at line 217 of file nla_buttons.c.
References C, PointerRNA::data, nla_panel_context(), NULL, and ptr.
Referenced by nla_buttons_register().
void nla_buttons_register | ( | ARegionType * | art | ) |
Definition at line 610 of file nla_buttons.c.
References ANIM_modifier_panels_register_graph_and_NLA(), BLI_addtail(), BLI_genericNodeN(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::category, PanelType::children, PanelType::draw, PanelType::draw_header, PanelType::flag, PanelType::idname, PanelType::label, MEM_callocN, N_, nla_animdata_panel_poll(), NLA_FMODIFIER_PANEL_PREFIX, 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(), PANEL_TYPE_DEFAULT_CLOSED, PANEL_TYPE_NO_HEADER, ARegionType::paneltypes, PanelType::parent, PanelType::parent_id, PanelType::poll, and PanelType::translation_context.
Referenced by ED_spacetype_nla().
Definition at line 563 of file nla_buttons.c.
References BKE_ST_MAXNAME, BLI_snprintf(), get_fmodifier_typeinfo(), FModifierTypeInfo::name, NLA_FMODIFIER_PANEL_PREFIX, snprintf, type, and FModifier::type.
Referenced by nla_panel_modifiers().
Definition at line 445 of file nla_buttons.c.
References C, do_nla_region_buttons(), IFACE_, Panel::layout, nla_panel_context(), NULL, RNA_boolean_get(), UI_block_func_handle_set(), uiItemO(), uiItemR(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by nla_buttons_register().
Definition at line 484 of file nla_buttons.c.
References C, col, do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, UI_block_func_handle_set(), uiItemR(), uiLayoutColumn(), and uiLayoutGetBlock().
Referenced by nla_buttons_register().
Definition at line 542 of file nla_buttons.c.
References C, do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, RNA_boolean_get(), UI_block_func_handle_set(), uiItemR(), uiLayoutGetBlock(), uiLayoutSetEnabled(), and uiLayoutSetPropSep().
Referenced by nla_buttons_register().
Definition at line 523 of file nla_buttons.c.
References C, col, do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, UI_block_func_handle_set(), uiItemR(), uiLayoutColumn(), and uiLayoutGetBlock().
Referenced by nla_buttons_register().
Definition at line 269 of file nla_buttons.c.
References C, do_nla_region_buttons(), id, IFACE_, Panel::layout, ID::name, nla_panel_context(), NULL, PointerRNA::owner_id, RNA_id_pointer_create(), RNA_struct_ui_icon(), PointerRNA::type, UI_block_func_handle_set(), UI_LAYOUT_ALIGN_LEFT, UI_TEMPLATE_ID_FILTER_ALL, uiItemL(), uiItemR(), uiItemS(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetAlignment(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateID().
Referenced by nla_buttons_register().
bool nla_panel_context | ( | const bContext * | C, |
PointerRNA * | adt_ptr, | ||
PointerRNA * | nlt_ptr, | ||
PointerRNA * | strip_ptr | ||
) |
Definition at line 59 of file nla_buttons.c.
References bAnimListElem::adt, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSIMULATION, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_NLAACTION, ANIMTYPE_NLATRACK, ANIMTYPE_OBJECT, ANIMTYPE_PALETTE, ANIMTYPE_SCENE, BKE_nlastrip_find_active(), C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, id, bAnimListElem::id, if(), bAnimListElem::next, NULL, RNA_pointer_create(), and bAnimListElem::type.
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 nlachannels_pushdown_exec().
Definition at line 504 of file nla_buttons.c.
References C, do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, RNA_boolean_get(), UI_block_func_handle_set(), uiItemR(), uiLayoutGetBlock(), uiLayoutSetEnabled(), and uiLayoutSetPropSep().
Referenced by nla_buttons_register().
Definition at line 573 of file nla_buttons.c.
References ANIM_fmodifier_panels(), C, PointerRNA::data, do_nla_region_buttons(), IFACE_, Panel::layout, NlaStrip::modifiers, nla_fmodifier_panel_id(), nla_panel_context(), NULL, PointerRNA::owner_id, UI_block_func_handle_set(), uiItemMenuEnumO(), uiItemO(), uiLayoutGetBlock(), and uiLayoutRow().
Referenced by nla_buttons_register().
Definition at line 377 of file nla_buttons.c.
References C, do_nla_region_buttons(), IFACE_, Panel::layout, nla_panel_context(), NLASTRIP_TYPE_SOUND, NULL, RNA_boolean_get(), RNA_enum_get(), UI_block_func_handle_set(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutColumnWithHeading(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by nla_buttons_register().
Definition at line 339 of file nla_buttons.c.
References C, do_nla_region_buttons(), Panel::layout, nla_panel_context(), NLASTRIP_TYPE_CLIP, NLASTRIP_TYPE_META, NLASTRIP_TYPE_SOUND, NLASTRIP_TYPE_TRANSITION, NULL, RNA_enum_get(), UI_block_emboss_set(), UI_block_func_handle_set(), UI_EMBOSS, UI_EMBOSS_NONE_OR_STATUS, uiItemL(), uiItemR(), uiLayoutGetBlock(), and uiLayoutRow().
Referenced by nla_buttons_register().
Definition at line 229 of file nla_buttons.c.
References C, PointerRNA::data, nla_panel_context(), NLASTRIP_TYPE_CLIP, NULL, ptr, and NlaStrip::type.
Referenced by nla_buttons_register().
Definition at line 245 of file nla_buttons.c.
References C, PointerRNA::data, nla_panel_context(), NLASTRIP_TYPE_SOUND, NULL, ptr, and NlaStrip::type.
Referenced by nla_buttons_register().
Definition at line 223 of file nla_buttons.c.
References C, PointerRNA::data, nla_panel_context(), NULL, and ptr.
Referenced by nla_buttons_register().