Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-11-13 21:56:55 +0300
committerHans Goudey <h.goudey@me.com>2020-11-13 21:57:20 +0300
commit9d28353b525ecfbcca1501be72e4276dfb2bbc2a (patch)
tree533876e87d98d0800ad3e55eb3e637492fc66de5 /source/blender/blenkernel/BKE_screen.h
parent4c193f731e31664eae335f7f093699b7a6dfac42 (diff)
Cleanup: Make panel type flag names more clear
The overlap with the `Panel` flags that start with "PNL" was quite confusing because wasn't clear which enum a flag was from. The new names are a bit longer, but the clarity is worth it.
Diffstat (limited to 'source/blender/blenkernel/BKE_screen.h')
-rw-r--r--source/blender/blenkernel/BKE_screen.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h
index 81669fd6878..8e370ed27c5 100644
--- a/source/blender/blenkernel/BKE_screen.h
+++ b/source/blender/blenkernel/BKE_screen.h
@@ -280,15 +280,15 @@ typedef struct PanelType {
/* #PanelType.flag */
enum {
- PNL_DEFAULT_CLOSED = (1 << 0),
- PNL_NO_HEADER = (1 << 1),
+ PANEL_TYPE_DEFAULT_CLOSED = (1 << 0),
+ PANEL_TYPE_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),
+ PANEL_TYPE_HEADER_EXPAND = (1 << 2),
+ PANEL_TYPE_LAYOUT_VERT_BAR = (1 << 3),
/** This panel type represents data external to the UI. */
- PNL_INSTANCED = (1 << 4),
+ PANEL_TYPE_INSTANCED = (1 << 4),
/** Draw panel like a box widget. */
- PNL_DRAW_BOX = (1 << 6),
+ PANEL_TYPE_DRAW_BOX = (1 << 6),
};
/* uilist types */