From 1f8b5912ffd4f00985d932456186ce9e0808c186 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 21 Mar 2005 14:20:04 +0000 Subject: More transform widget goodies; - added 'ghosting' for while using translate/scaling widget - added 'pie chart' ghost to denote angle while using rotate widget - added settings to tweak widget in User menu (InfoWindow) "View & Control" - Size: total widget size as percentage of window size - Handle: as percentage of widget radius - Hotspot: for clicking handles, in pixels - Fized Size: option to make Widget size independent of window size Not sure if all of these are useful to keep, but makes for good testing in this stage. Also: made #define to use new transform to be set TRUE by default now. :) --- source/blender/src/space.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/blender/src/space.c') diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 4a8a1b298d1..892a21aa6cd 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -2533,6 +2533,24 @@ void drawinfospace(ScrArea *sa, void *spacedata) "The number of lines scrolled at a time with the mouse wheel"); + uiDefBut(block, LABEL,0,"3D Transform Widget:", + (xpos+(2*edgsp)+(5*mpref)+(5*midsp)),y6label,mpref,buth, + 0, 0, 0, 0, 0, ""); + uiBlockBeginAlign(block); + uiDefButS(block, NUM, B_REDRCURW3D, "Size:", + (xpos+edgsp+(5*mpref)+(6*midsp)),y5,(mpref/2),buth, + &(U.tw_size), 2, 40, 0, 0, "Size of widget as percentage of window size"); + uiDefButS(block, NUM, B_REDRCURW3D, "Handle:", + (xpos+edgsp+(5*mpref)+(6*midsp)+(mpref/2)),y5,(mpref/2),buth, + &(U.tw_handlesize), 2, 40, 0, 0, "Size of widget handles as percentage of widget radius"); + uiDefButS(block, NUM, B_REDRCURW3D, "Hotspot:", + (xpos+edgsp+(5*mpref)+(6*midsp)),y4,(mpref/2),buth, + &(U.tw_hotspot), 4, 40, 0, 0, "Hotspot in pixels for clicking widget handles"); + uiDefButBitS(block, TOG, U_TW_ABSOLUTE, B_REDRCURW3D, "Fixed Size", + (xpos+edgsp+(5*mpref)+(6*midsp)+(mpref/2)),y4,(mpref/2),buth, + &(U.tw_flag), 2, 40, 0, 0, "Size of widget based on fixed window size (1000 pixels)"); + uiBlockEndAlign(block); + } else if (U.userpref == 1) { /* edit methods */ -- cgit v1.2.3