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:
authorTon Roosendaal <ton@blender.org>2005-03-21 17:20:04 +0300
committerTon Roosendaal <ton@blender.org>2005-03-21 17:20:04 +0300
commit1f8b5912ffd4f00985d932456186ce9e0808c186 (patch)
treebaf891fb6c85dcbeddb904cde03bffaa3cdab32b /source/blender/src/space.c
parent62147bba3030ed79dd37a7d7f63d031ff263570e (diff)
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. :)
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r--source/blender/src/space.c18
1 files changed, 18 insertions, 0 deletions
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 */