Blender V5.0
spreadsheet_panels.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "BLI_listbase.h"
6#include "BLI_string_utf8.h"
7
8#include "BKE_screen.hh"
9
10#include "BLT_translation.hh"
11
13#include "spreadsheet_intern.hh"
14
16
18{
19 PanelType *panel_type = MEM_callocN<PanelType>(__func__);
20 STRNCPY_UTF8(panel_type->idname, "SPREADSHEET_PT_data_set");
21 STRNCPY_UTF8(panel_type->label, N_("Data Set"));
23 panel_type->flag = PANEL_TYPE_NO_HEADER;
25 BLI_addtail(&region_type.paneltypes, panel_type);
26}
27
28} // namespace blender::ed::spreadsheet
@ PANEL_TYPE_NO_HEADER
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 * MEM_callocN(size_t len, const char *str)
Definition mallocn.cc:118
void spreadsheet_data_set_panel_draw(const bContext *C, Panel *panel)
void spreadsheet_data_set_region_panels_register(ARegionType &region_type)
ListBase paneltypes
void(* draw)(const bContext *C, Panel *panel)
char idname[BKE_ST_MAXNAME]
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
#define N_(msgid)