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>2006-11-07 17:25:58 +0300
committerTon Roosendaal <ton@blender.org>2006-11-07 17:25:58 +0300
commitf34bf8a0cd4f3437f03c1894e507e1b8c2125b9d (patch)
treec2aa098efe8fd9bf6433dca36ae3c5708fedfeb9 /source/blender/src/toolbox.c
parent008d6987d0d2b0b2d3bc44c649b769c2d32d6f59 (diff)
Patch #4980, by Joshua Leung (aligorith)
This enables finding data in the Outliner. Usage: Fkey (partial strings), CTRL+Fkey (partial strings, case sensitive). SHIFT+Fkey to repeat a search, this cycles around. Extra changes: - button popups to enter strings now starts activated. - outliner either shows for Armature the Bones, or Posechannels or Editbones, depending the mode. Was needed to make searches meaningful. Although Joshua did very good work on the key functions, there were a couple of issues in his code, and problems in Outliner code, that didn't make it all work nicely. So, this is quite a revised patch. :) Full review log can be found in the patch tracker.
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r--source/blender/src/toolbox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c
index df01e6e7346..70e5012b9c6 100644
--- a/source/blender/src/toolbox.c
+++ b/source/blender/src/toolbox.c
@@ -306,11 +306,12 @@ short sbutton(char *var, float min, float max, char *str)
x1=mval[0]-150;
y1=mval[1]-20;
- uiDefButC(block, TEX, 0, str, x1+5,y1+10,125,20, var,(float)min,(float)max, 0, 0, "");
+ uiDefButC(block, TEX, 2, str, x1+5,y1+10,125,20, var,(float)min,(float)max, 0, 0, "");
uiDefBut(block, BUT, 1, "OK", x1+136,y1+10,25,20, NULL, 0, 0, 0, 0, "");
uiBoundsBlock(block, 5);
-
+
+ mainqenter_ext(BUT_ACTIVATE, 2, 0); /* note, button id '2' is asking for errors some day! */
ret= uiDoBlocks(&listb, 0);
if(ret==UI_RETURN_OK) return 1;