Cleanup: Move PanelType flag from DNA to BKE header

Since this flag isn't saved in files and PanelType itself is defined in
BKE, the flag makes more sense there.
This commit is contained in:
Hans Goudey 2020-11-13 13:15:41 -05:00
parent e9b955b99c
commit 4c193f731e
3 changed files with 14 additions and 13 deletions

View File

@ -278,6 +278,19 @@ typedef struct PanelType {
ExtensionRNA rna_ext;
} PanelType;
/* #PanelType.flag */
enum {
PNL_DEFAULT_CLOSED = (1 << 0),
PNL_NO_HEADER = (1 << 1),
/** Makes buttons in the header shrink/stretch to fill full layout width. */
PNL_LAYOUT_HEADER_EXPAND = (1 << 2),
PNL_LAYOUT_VERT_BAR = (1 << 3),
/** This panel type represents data external to the UI. */
PNL_INSTANCED = (1 << 4),
/** Draw panel like a box widget. */
PNL_DRAW_BOX = (1 << 6),
};
/* uilist types */
/* Draw an item in the uiList */

View File

@ -571,19 +571,6 @@ enum {
PNL_INSTANCED_LIST_ORDER_CHANGED = (1 << 7),
};
/* paneltype flag */
enum {
PNL_DEFAULT_CLOSED = (1 << 0),
PNL_NO_HEADER = (1 << 1),
/** Makes buttons in the header shrink/stretch to fill full layout width. */
PNL_LAYOUT_HEADER_EXPAND = (1 << 2),
PNL_LAYOUT_VERT_BAR = (1 << 3),
/** This panel type represents data external to the UI. */
PNL_INSTANCED = (1 << 4),
/** Draw panel like a box widget. */
PNL_DRAW_BOX = (1 << 6),
};
/* Fallback panel category (only for old scripts which need updating) */
#define PNL_CATEGORY_FALLBACK "Misc"

View File

@ -26,6 +26,7 @@
#include "BLT_translation.h"
#include "BKE_idprop.h"
#include "BKE_screen.h"
#include "BLI_listbase.h"