Blender  V3.3
action_buttons.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 Blender Foundation. All rights reserved. */
3 
8 #include <float.h>
9 #include <math.h>
10 #include <stdio.h>
11 #include <string.h>
12 
13 #include "BLI_utildefines.h"
14 
15 #include "BKE_context.h"
16 #include "BKE_screen.h"
17 
18 #include "action_intern.h" /* own include */
19 
20 /* ******************* action editor space & buttons ************** */
21 
22 /* ******************* general ******************************** */
23 
25 {
26 #if 0
27  PanelType *pt;
28 
29  /* TODO: AnimData / Actions List */
30 
31  pt = MEM_callocN(sizeof(PanelType), "spacetype action panel properties");
32  strcpy(pt->idname, "ACTION_PT_properties");
33  strcpy(pt->label, N_("Active F-Curve"));
35  pt->draw = action_anim_panel_properties;
36  pt->poll = action_anim_panel_poll;
37  BLI_addtail(&art->paneltypes, pt);
38 
39  pt = MEM_callocN(sizeof(PanelType), "spacetype action panel properties");
40  strcpy(pt->idname, "ACTION_PT_key_properties");
41  strcpy(pt->label, N_("Active Keyframe"));
43  pt->draw = action_anim_panel_key_properties;
44  pt->poll = action_anim_panel_poll;
45  BLI_addtail(&art->paneltypes, pt);
46 
47  pt = MEM_callocN(sizeof(PanelType), "spacetype action panel modifiers");
48  strcpy(pt->idname, "ACTION_PT_modifiers");
49  strcpy(pt->label, N_("Modifiers"));
51  pt->draw = action_anim_panel_modifiers;
52  pt->poll = action_anim_panel_poll;
53  BLI_addtail(&art->paneltypes, pt);
54 #endif
55 }
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition: listbase.c:80
#define UNUSED(x)
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
void action_buttons_register(ARegionType *UNUSED(art))
void *(* MEM_callocN)(size_t len, const char *str)
Definition: mallocn.c:31
void(* draw)(const struct bContext *C, struct Panel *panel)
Definition: BKE_screen.h:248
bool(* poll)(const struct bContext *C, struct PanelType *pt)
Definition: BKE_screen.h:242
char idname[BKE_ST_MAXNAME]
Definition: BKE_screen.h:223
char translation_context[BKE_ST_MAXNAME]
Definition: BKE_screen.h:226
char label[BKE_ST_MAXNAME]
Definition: BKE_screen.h:224
#define N_(msgid)