Blender V5.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
8
9#include <cfloat>
10#include <cstring>
11
12#include "BKE_screen.hh"
13
14#include "action_intern.hh" /* own include */
15
16namespace blender {
17
18/* ******************* action editor space & buttons ************** */
19
20/* ******************* general ******************************** */
21
23{
24#if 0
25 PanelType *pt;
26
27 /* TODO: AnimData / Actions List */
28
29 pt = MEM_new_zeroed<PanelType>("spacetype action panel properties");
30 STRNCPY_UTF8(pt->idname, "ACTION_PT_properties");
31 STRNCPY_UTF8(pt->label, N_("Active F-Curve"));
33 pt->draw = action_anim_panel_properties;
34 pt->poll = action_anim_panel_poll;
35 BLI_addtail(&art->paneltypes, pt);
36
37 pt = MEM_new_zeroed<PanelType>("spacetype action panel properties");
38 STRNCPY_UTF8(pt->idname, "ACTION_PT_key_properties");
39 STRNCPY_UTF8(pt->label, N_("Active Keyframe"));
41 pt->draw = action_anim_panel_key_properties;
42 pt->poll = action_anim_panel_poll;
43 BLI_addtail(&art->paneltypes, pt);
44
45 pt = MEM_new_zeroed<PanelType>("spacetype action panel modifiers");
46 STRNCPY_UTF8(pt->idname, "ACTION_PT_modifiers");
47 STRNCPY_UTF8(pt->label, N_("Modifiers"));
49 pt->draw = action_anim_panel_modifiers;
50 pt->poll = action_anim_panel_poll;
51 BLI_addtail(&art->paneltypes, pt);
52#endif
53}
54
55} // namespace blender
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
BMesh Iterators.
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void action_buttons_register(ARegionType *)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition listbase.cc:118
char translation_context[BKE_ST_MAXNAME]
void(*) draw(const bContext *C, Panel *panel)
bool(*) poll(const bContext *C, PanelType *pt)
char idname[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
#define N_(msgid)