[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51135] trunk/blender: patch [#32791] Spelling mistakes corrected.
Campbell Barton
ideasman42 at gmail.com
Sun Oct 7 05:26:38 CEST 2012
Revision: 51135
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51135
Author: campbellbarton
Date: 2012-10-07 03:26:30 +0000 (Sun, 07 Oct 2012)
Log Message:
-----------
patch [#32791] Spelling mistakes corrected.
from Sunny Gogoi (darkowlzz)
Modified Paths:
--------------
trunk/blender/doc/guides/interface_API.txt
trunk/blender/source/blender/editors/interface/interface_layout.c
Modified: trunk/blender/doc/guides/interface_API.txt
===================================================================
--- trunk/blender/doc/guides/interface_API.txt 2012-10-07 01:42:58 UTC (rev 51134)
+++ trunk/blender/doc/guides/interface_API.txt 2012-10-07 03:26:30 UTC (rev 51135)
@@ -50,7 +50,7 @@
- It works with only OpenGL calls, for the full 100%. This means that it has some quirks
built-in to work with all OS's and OpenGL versions. Especially frontbuffer drawing is
a continuous point of attention. Buttons can be drawn with any window matrix. However,
- errors can still occor when buttons are created in windows with non-standard glViewports.
+ errors can still occur when buttons are created in windows with non-standard glViewports.
- The code was written to replace the old 1.8 button system, but under high pressure. Quite
some button methods from the old system were copied for that reason.
@@ -95,7 +95,7 @@
All GUI elements are collected in uiBlocks, which in turn are linked together in a list that's
part of a Blender Area-window.
- uiBlock *block= uiNewBlock(&curarea->uiblocks, "stuff", UI_EMBOSSX, UI_HELV, curarea->win);
+ uiBlock *block = uiNewBlock(&curarea->uiblocks, "stuff", UI_EMBOSSX, UI_HELV, curarea->win);
The next code example makes a new block, and puts it in the list of blocks of the current active
Area:
@@ -221,7 +221,7 @@
void uiAutoBlock(uiBlock *block, float minx, float miny, float sizex, float sizey, UI_BLOCK_ROWS)
Sets the buttons in this block to automatically align, and fit within boundaries.
- Internally it allows multiple collums or rows as well. Only 'row order' has been implemented.
+ Internally it allows multiple colums or rows as well. Only 'row order' has been implemented.
The uiDefBut definitions don't need coordinates as input here, but instead:
- first value (x1) to indicate row number
- width and height values (if filled in) will be used to define a relative width/height.
@@ -346,7 +346,7 @@
without returnvalues, the first item gets value 0 (incl. title!)
Example: "Do something %t| turn left %2| turn right %1| nothing %0"
-11. COL
+11. COLOR
A special button that only visualizes a RGB value
In 'retval' you can put a code, which is used to identify for sliders if it needs
redraws while using the sliders. Check button '5'.
@@ -363,7 +363,7 @@
float min, float max, float a1, float a2, char *tip)
Same syntax and types available as previous uiDefBut, but now with an icon code
- instead of a name. THe icons are numbered in resources.c
+ instead of a name. The icons are numbered in resources.c
uiBut *uiDefIconTextButF(uiBlock *block, int type, int retval, int icon, char *str,
short x1, short y1, short x2, short y2, float *poin,
@@ -397,9 +397,9 @@
static uiBlock *info_file_importmenu(void *arg_unused)
{
uiBlock *block;
- short yco= 0, xco = 20;
+ short yco = 0, xco = 20;
- block= uiNewBlock(&curarea->uiblocks, "importmenu", UI_EMBOSSW, UI_HELV, G.curscreen->mainwin);
+ block = uiNewBlock(&curarea->uiblocks, "importmenu", UI_EMBOSSW, UI_HELV, G.curscreen->mainwin);
uiBlockSetXOfs(block, -40); // offset to parent button
/* flags are defines */
@@ -409,7 +409,7 @@
uiDefButS(block, TOG|BIT|2, 0, "Two Sided", xco, yco-=20, 75, 19, &U.vrmlflag, 0.0, 0.0, 0, 0, "");
uiBlockSetDirection(block, UI_RIGHT);
- uiTextBoundsBlock(block, 50); // checks for fontsize
+ uiTextBoundsBlock(block, 50); /* checks for fontsize */
return block;
}
Modified: trunk/blender/source/blender/editors/interface/interface_layout.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_layout.c 2012-10-07 01:42:58 UTC (rev 51134)
+++ trunk/blender/source/blender/editors/interface/interface_layout.c 2012-10-07 03:26:30 UTC (rev 51135)
@@ -835,8 +835,9 @@
bt = block->buttons.last;
bt->flag = UI_TEXT_LEFT;
}
- else /* XXX bug here, collums draw bottom item badly */
+ else { /* XXX bug here, colums draw bottom item badly */
uiItemS(column);
+ }
}
}
More information about the Bf-blender-cvs
mailing list