diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-14 01:47:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-14 01:54:34 +0300 |
commit | 9ea645862cfb967376bb7ae2c7f7ef8a5fe90637 (patch) | |
tree | e92d43256374dd47e068b84cbf4be917c19401f6 /source/blender/makesrna/intern/rna_userdef.c | |
parent | dfa3e0ae81c89d45a193ae3d52eaa2b56f6f243b (diff) |
Preferences: add option for header position
Sets the header position for newly created windows with few exceptions
(preferences is always bottom, file-selector is always top).
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 84ce946ce19..24e6424effd 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -3796,6 +3796,17 @@ static void rna_def_userdef_view(BlenderRNA *brna) "Otherwise menus, etc will always be top to bottom, left to right, " "no matter opening direction"); + static const EnumPropertyItem header_align_default_items[] = { + {0, "TOP", 0, "Top", ""}, + {USER_HEADER_BOTTOM, "BOTTOM", 0, "Bottom", ""}, + {0, NULL, 0, NULL, NULL} + }; + prop = RNA_def_property(srna, "header_align_default", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_items(prop, header_align_default_items); + RNA_def_property_enum_bitflag_sdna(prop, NULL, "uiflag"); + RNA_def_property_ui_text(prop, "Header Position", "Default header position for new space-types"); + RNA_def_property_update(prop, 0, "rna_userdef_update"); + prop = RNA_def_property(srna, "use_mouse_depth_navigate", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_DEPTH_NAVIGATE); RNA_def_property_ui_text(prop, "Auto Depth", |