[Bf-blender-cvs] CVS commit: blender/source/blender/include BIF_toolbox.h blendef.h interface.h blender/source/blender/makesdna DNA_userdef_types.h blender/source/blender/src editnla.c headerbuttons.c interface.c space.c toolbox.c usiblender.c

Ton Roosendaal ton at blender.org
Sat Nov 19 16:16:34 CET 2005


ton (Ton Roosendaal) 2005/11/19 16:16:34 CET

  Modified files:
    blender/source/blender/include BIF_toolbox.h blendef.h 
                                   interface.h 
    blender/source/blender/makesdna DNA_userdef_types.h 
    blender/source/blender/src editnla.c headerbuttons.c 
                               interface.c space.c toolbox.c 
                               usiblender.c 
  
  Log:
  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
  
  Revision  Changes    Path
  1.15      +2 -1      blender/source/blender/include/BIF_toolbox.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/include/BIF_toolbox.h.diff?r1=1.14&r2=1.15&cvsroot=bf-blender>
  1.48      +2 -2      blender/source/blender/include/blendef.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/include/blendef.h.diff?r1=1.47&r2=1.48&cvsroot=bf-blender>
  1.26      +7 -6      blender/source/blender/include/interface.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/include/interface.h.diff?r1=1.25&r2=1.26&cvsroot=bf-blender>
  1.50      +2 -2      blender/source/blender/makesdna/DNA_userdef_types.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/makesdna/DNA_userdef_types.h.diff?r1=1.49&r2=1.50&cvsroot=bf-blender>
  1.57      +1 -5      blender/source/blender/src/editnla.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editnla.c.diff?r1=1.56&r2=1.57&cvsroot=bf-blender>
  1.120     +5 -1      blender/source/blender/src/headerbuttons.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/headerbuttons.c.diff?r1=1.119&r2=1.120&cvsroot=bf-blender>
  1.213     +96 -53    blender/source/blender/src/interface.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/interface.c.diff?r1=1.212&r2=1.213&cvsroot=bf-blender>
  1.317     +5 -1      blender/source/blender/src/space.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/space.c.diff?r1=1.316&r2=1.317&cvsroot=bf-blender>
  1.117     +222 -63   blender/source/blender/src/toolbox.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/toolbox.c.diff?r1=1.116&r2=1.117&cvsroot=bf-blender>
  1.94      +3 -1      blender/source/blender/src/usiblender.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/usiblender.c.diff?r1=1.93&r2=1.94&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list