Blender Git Loki
Git Commits -> Revision ca32000
Revision ca32000 by Ton Roosendaal (master) November 19, 2005, 15:16 (GMT) |
Patch #3365, Toolbox from Tuhopuu Patch prvovided by Guillermo, code was - afaik - from Rob Haarsma. This changes the toolbox (space menu) to have the first level aligned vertically. Works much easier that way, and since the items open either left or right, it doesn't flip order of the contents for it either. To allow people to test (and to compare) it's a user menu setting (in View & Controls, "Plain menus"). I've turned this on by default though, since I propose to not have it a user setting. User setting can be removed later. Fixed two bugs in patch: - if saved in user settings, first time usage of this toolbox opened in wrong location - Button for "plain menus" was writing a short in an int (causing this new menu not to work for big endian systems) As a bonus I've added the long wanted hotkey support for opening and closing sublevels of pulldowns with arrow keys! I didn't add the commenting out of correcting pulldown menu order, which is based on location of the originating button in the UI. This uncommenting didn't solve anything, since button definitions itself can be flipped too. (Example: the data brose menus in top bar need to be corrected). I can imagine the order flipping is sometimes annoying, but it still has reasons to be there; - the most important / most used items are always closest to the mouse. (like opening properties panel, or "Add new" for material. - it follows muscle memory and 'locus of attention' (mouse position). - menus are configured to open to the top for bottom headers, and to the bottom for top headers. We can expect the UI is configured consistantly for headers, so in general the menus will appear consistant as well. Where menu flipping fails is especially for alphabetic listings, like in the menu button of fileselect. However, that one should be configured to open by default to the bottom, so ordering is consistant as well. If people like to check this themselves; uncomment the lines in the top of the function uiBlockFlipOrder() in src/interface.c |
Commit Details:
Full Hash: ca320003f4c6129c559d2d8f1628b74e8d7a5066
SVN Revision: 5836
Parent Commit: 555a3d0
Lines Changed: +335, -125
10 Modified Paths:
/source/blender/include/BIF_toolbox.h (+1, -0) (Diff)
/source/blender/include/blendef.h (+1, -1) (Diff)
/source/blender/include/interface.h (+6, -5) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+1, -1) (Diff)
/source/blender/src/editnla.c (+0, -4) (Diff)
/source/blender/src/headerbuttons.c (+4, -0) (Diff)
/source/blender/src/interface.c (+95, -52) (Diff)
/source/blender/src/space.c (+4, -0) (Diff)
/source/blender/src/toolbox.c (+221, -62) (Diff)
/source/blender/src/usiblender.c (+2, -0) (Diff)
/source/blender/include/blendef.h (+1, -1) (Diff)
/source/blender/include/interface.h (+6, -5) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+1, -1) (Diff)
/source/blender/src/editnla.c (+0, -4) (Diff)
/source/blender/src/headerbuttons.c (+4, -0) (Diff)
/source/blender/src/interface.c (+95, -52) (Diff)
/source/blender/src/space.c (+4, -0) (Diff)
/source/blender/src/toolbox.c (+221, -62) (Diff)
/source/blender/src/usiblender.c (+2, -0) (Diff)