Blender V2.61 - r43446
|
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "DNA_anim_types.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_rand.h"
#include "BLF_translation.h"
#include "BKE_nla.h"
#include "BKE_context.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.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.
Defines | |
#define | B_NOP 1 |
#define | B_REDR 2 |
Functions | |
static void | do_nla_region_buttons (bContext *C, void *UNUSED(arg), int event) |
static int | nla_panel_context (const bContext *C, PointerRNA *adt_ptr, PointerRNA *nlt_ptr, PointerRNA *strip_ptr) |
static int | nla_animdata_panel_poll (const bContext *C, PanelType *UNUSED(pt)) |
static int | nla_track_panel_poll (const bContext *C, PanelType *UNUSED(pt)) |
static int | nla_strip_panel_poll (const bContext *C, PanelType *UNUSED(pt)) |
static int | nla_strip_actclip_panel_poll (const bContext *C, PanelType *UNUSED(pt)) |
static int | nla_strip_eval_panel_poll (const bContext *C, PanelType *UNUSED(pt)) |
static void | nla_panel_animdata (const bContext *C, Panel *pa) |
static void | nla_panel_track (const bContext *C, Panel *pa) |
static void | nla_panel_properties (const bContext *C, Panel *pa) |
static void | nla_panel_actclip (const bContext *C, Panel *pa) |
static void | nla_panel_evaluation (const bContext *C, Panel *pa) |
static void | nla_panel_modifiers (const bContext *C, Panel *pa) |
void | nla_buttons_register (ARegionType *art) |
static int | nla_properties (bContext *C, wmOperator *UNUSED(op)) |
void | NLA_OT_properties (wmOperatorType *ot) |
Definition in file nla_buttons.c.
#define B_NOP 1 |
Definition at line 71 of file nla_buttons.c.
#define B_REDR 2 |
Definition at line 72 of file nla_buttons.c.
static void do_nla_region_buttons | ( | bContext * | C, |
void * | UNUSEDarg, | ||
int | event | ||
) | [static] |
Definition at line 76 of file nla_buttons.c.
References NC_OBJECT, NC_SCENE, ND_TRANSFORM, NULL, and WM_event_add_notifier().
Referenced by nla_panel_actclip(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), and nla_panel_track().
Definition at line 184 of file nla_buttons.c.
References PointerRNA::data, nla_panel_context(), and NULL.
Referenced by nla_buttons_register().
void nla_buttons_register | ( | ARegionType * | art | ) |
Definition at line 469 of file nla_buttons.c.
References BLI_addtail(), PanelType::draw, PanelType::flag, PanelType::idname, PanelType::label, MEM_callocN(), nla_animdata_panel_poll(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_track(), nla_strip_actclip_panel_poll(), nla_strip_eval_panel_poll(), nla_strip_panel_poll(), nla_track_panel_poll(), ARegionType::paneltypes, PNL_DEFAULT_CLOSED, and PanelType::poll.
Referenced by ED_spacetype_nla().
void NLA_OT_properties | ( | wmOperatorType * | ot | ) |
Definition at line 528 of file nla_buttons.c.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nla_properties(), and wmOperatorType::poll.
Referenced by nla_operatortypes().
Definition at line 358 of file nla_buttons.c.
References do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, RNA_boolean_get(), uiBlockSetHandleFunc(), uiItemL(), uiItemO(), uiItemR(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), and uiLayoutSetActive().
Referenced by nla_buttons_register().
Definition at line 237 of file nla_buttons.c.
References do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, uiBlockSetHandleFunc(), uiItemR(), uiLayoutGetBlock(), uiLayoutRow(), and uiTemplateID().
Referenced by nla_buttons_register().
static int nla_panel_context | ( | const bContext * | C, |
PointerRNA * | adt_ptr, | ||
PointerRNA * | nlt_ptr, | ||
PointerRNA * | strip_ptr | ||
) | [static] |
Definition at line 89 of file nla_buttons.c.
References bAnimListElem::adt, ANIM_animdata_filter(), ANIM_animdata_get_context(), ANIMFILTER_ACTIVE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_DSARM, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSLAM, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSWOR, ANIMTYPE_FILLACTD, ANIMTYPE_NLATRACK, ANIMTYPE_OBJECT, ANIMTYPE_SCENE, BKE_nlastrip_find_active(), BLI_freelistN(), bAnimListElem::data, bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::id, if(), bAnimListElem::next, NULL, RNA_AnimData, RNA_NlaStrip, RNA_NlaTrack, RNA_pointer_create(), io_export_cycles_xml::strip(), and bAnimListElem::type.
Referenced by nla_animdata_panel_poll(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_track(), nla_strip_actclip_panel_poll(), nla_strip_eval_panel_poll(), nla_strip_panel_poll(), and nla_track_panel_poll().
Definition at line 394 of file nla_buttons.c.
References do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, RNA_boolean_get(), uiBlockSetHandleFunc(), uiItemR(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), and uiLayoutSetEnabled().
Referenced by nla_buttons_register().
Definition at line 426 of file nla_buttons.c.
References ANIM_uiTemplate_fmodifier_draw(), BUT, PointerRNA::data, do_nla_region_buttons(), ListBase::first, PointerRNA::id, IFACE_, Panel::layout, NlaStrip::modifiers, nla_panel_context(), NULL, io_export_cycles_xml::strip(), TIP_, uiBlockSetHandleFunc(), uiDefButO(), uiItemO(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), and WM_OP_INVOKE_REGION_WIN.
Referenced by nla_buttons_register().
Definition at line 293 of file nla_buttons.c.
References do_nla_region_buttons(), Panel::layout, nla_panel_context(), NLASTRIP_TYPE_SOUND, NULL, RNA_boolean_get(), RNA_enum_get(), uiBlockSetHandleFunc(), uiItemL(), uiItemR(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), and uiLayoutSetActive().
Referenced by nla_buttons_register().
Definition at line 273 of file nla_buttons.c.
References do_nla_region_buttons(), Panel::layout, nla_panel_context(), NULL, uiBlockSetHandleFunc(), uiItemR(), uiLayoutGetBlock(), and uiLayoutRow().
Referenced by nla_buttons_register().
static int nla_properties | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 517 of file nla_buttons.c.
References CTX_wm_area(), ED_region_toggle_hidden(), nla_has_buttons_region(), and OPERATOR_FINISHED.
Referenced by NLA_OT_properties().
Definition at line 202 of file nla_buttons.c.
References PointerRNA::data, nla_panel_context(), NLASTRIP_TYPE_CLIP, NULL, io_export_cycles_xml::strip(), and NlaStrip::type.
Referenced by nla_buttons_register().
Definition at line 216 of file nla_buttons.c.
References PointerRNA::data, nla_panel_context(), NLASTRIP_TYPE_SOUND, NULL, io_export_cycles_xml::strip(), and NlaStrip::type.
Referenced by nla_buttons_register().
Definition at line 196 of file nla_buttons.c.
References PointerRNA::data, nla_panel_context(), and NULL.
Referenced by nla_buttons_register().
Definition at line 190 of file nla_buttons.c.
References PointerRNA::data, nla_panel_context(), and NULL.
Referenced by nla_buttons_register().