Cleanup: Move BKE_blender_user_menu.h to full Cpp BKE_blender_user_menu.hh.
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
/** \file
|
||||
* \ingroup bke
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct ListBase;
|
||||
struct bUserMenu;
|
||||
struct bUserMenuItem;
|
||||
|
||||
struct bUserMenu *BKE_blender_user_menu_find(struct ListBase *lb,
|
||||
char space_type,
|
||||
const char *context);
|
||||
struct bUserMenu *BKE_blender_user_menu_ensure(struct ListBase *lb,
|
||||
char space_type,
|
||||
const char *context);
|
||||
|
||||
struct bUserMenuItem *BKE_blender_user_menu_item_add(struct ListBase *lb, int type);
|
||||
void BKE_blender_user_menu_item_free(struct bUserMenuItem *umi);
|
||||
void BKE_blender_user_menu_item_free_list(struct ListBase *lb);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
20
source/blender/blenkernel/BKE_blender_user_menu.hh
Normal file
20
source/blender/blenkernel/BKE_blender_user_menu.hh
Normal file
@@ -0,0 +1,20 @@
|
||||
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
/** \file
|
||||
* \ingroup bke
|
||||
*/
|
||||
|
||||
struct ListBase;
|
||||
struct bUserMenu;
|
||||
struct bUserMenuItem;
|
||||
|
||||
bUserMenu *BKE_blender_user_menu_find(ListBase *lb, char space_type, const char *context);
|
||||
bUserMenu *BKE_blender_user_menu_ensure(ListBase *lb, char space_type, const char *context);
|
||||
|
||||
bUserMenuItem *BKE_blender_user_menu_item_add(ListBase *lb, int type);
|
||||
void BKE_blender_user_menu_item_free(bUserMenuItem *umi);
|
||||
void BKE_blender_user_menu_item_free_list(ListBase *lb);
|
||||
@@ -341,7 +341,7 @@ set(SRC
|
||||
BKE_blender.h
|
||||
BKE_blender_copybuffer.h
|
||||
BKE_blender_undo.h
|
||||
BKE_blender_user_menu.h
|
||||
BKE_blender_user_menu.hh
|
||||
BKE_blender_version.h
|
||||
BKE_blendfile.hh
|
||||
BKE_blendfile_link_append.hh
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "BKE_addon.h"
|
||||
#include "BKE_blender.h" /* own include */
|
||||
#include "BKE_blender_user_menu.h"
|
||||
#include "BKE_blender_user_menu.hh"
|
||||
#include "BKE_blender_version.h" /* own include */
|
||||
#include "BKE_blendfile.hh"
|
||||
#include "BKE_brush.hh"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "BKE_blender_user_menu.h"
|
||||
#include "BKE_blender_user_menu.hh"
|
||||
#include "BKE_idprop.h"
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "BLT_translation.h"
|
||||
|
||||
#include "BKE_blender_user_menu.h"
|
||||
#include "BKE_blender_user_menu.hh"
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_idprop.h"
|
||||
#include "BKE_screen.hh"
|
||||
|
||||
Reference in New Issue
Block a user