Blender V4.3
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
9#include <cfloat>
10#include <cmath>
11#include <cstdio>
12#include <cstring>
13
14#include "BLI_utildefines.h"
15
16#include "BKE_context.hh"
17#include "BKE_screen.hh"
18
19#include "action_intern.hh" /* own include */
20
21/* ******************* action editor space & buttons ************** */
22
23/* ******************* general ******************************** */
24
26{
27#if 0
28 PanelType *pt;
29
30 /* TODO: AnimData / Actions List */
31
32 pt = MEM_cnew<PanelType>("spacetype action panel properties");
33 STRNCPY(pt->idname, "ACTION_PT_properties");
34 STRNCPY(pt->label, N_("Active F-Curve"));
36 pt->draw = action_anim_panel_properties;
37 pt->poll = action_anim_panel_poll;
38 BLI_addtail(&art->paneltypes, pt);
39
40 pt = MEM_cnew<PanelType>("spacetype action panel properties");
41 STRNCPY(pt->idname, "ACTION_PT_key_properties");
42 STRNCPY(pt->label, N_("Active Keyframe"));
44 pt->draw = action_anim_panel_key_properties;
45 pt->poll = action_anim_panel_poll;
46 BLI_addtail(&art->paneltypes, pt);
47
48 pt = MEM_callocN(sizeof(PanelType), "spacetype action panel modifiers");
49 STRNCPY(pt->idname, "ACTION_PT_modifiers");
50 STRNCPY(pt->label, N_("Modifiers"));
52 pt->draw = action_anim_panel_modifiers;
53 pt->poll = action_anim_panel_poll;
54 BLI_addtail(&art->paneltypes, pt);
55#endif
56}
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition listbase.cc:110
#define STRNCPY(dst, src)
Definition BLI_string.h:593
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
void action_buttons_register(ARegionType *)
void *(* MEM_callocN)(size_t len, const char *str)
Definition mallocn.cc:42
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)