Blender V5.0
action_buttons.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include <cfloat>
10#include <cstring>
11
12#include "BKE_screen.hh"
13
14#include "action_intern.hh" /* own include */
15
16/* ******************* action editor space & buttons ************** */
17
18/* ******************* general ******************************** */
19
21{
22#if 0
23 PanelType *pt;
24
25 /* TODO: AnimData / Actions List */
26
27 pt = MEM_callocN<PanelType>("spacetype action panel properties");
28 STRNCPY_UTF8(pt->idname, "ACTION_PT_properties");
29 STRNCPY_UTF8(pt->label, N_("Active F-Curve"));
31 pt->draw = action_anim_panel_properties;
32 pt->poll = action_anim_panel_poll;
33 BLI_addtail(&art->paneltypes, pt);
34
35 pt = MEM_callocN<PanelType>("spacetype action panel properties");
36 STRNCPY_UTF8(pt->idname, "ACTION_PT_key_properties");
37 STRNCPY_UTF8(pt->label, N_("Active Keyframe"));
39 pt->draw = action_anim_panel_key_properties;
40 pt->poll = action_anim_panel_poll;
41 BLI_addtail(&art->paneltypes, pt);
42
43 pt = MEM_callocN(sizeof(PanelType), "spacetype action panel modifiers");
44 STRNCPY_UTF8(pt->idname, "ACTION_PT_modifiers");
45 STRNCPY_UTF8(pt->label, N_("Modifiers"));
47 pt->draw = action_anim_panel_modifiers;
48 pt->poll = action_anim_panel_poll;
49 BLI_addtail(&art->paneltypes, pt);
50#endif
51}
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition listbase.cc:111
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
void action_buttons_register(ARegionType *)
void * MEM_callocN(size_t len, const char *str)
Definition mallocn.cc:118
void(* draw)(const bContext *C, Panel *panel)
char idname[BKE_ST_MAXNAME]
bool(* poll)(const bContext *C, PanelType *pt)
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
#define N_(msgid)