From f34bf8a0cd4f3437f03c1894e507e1b8c2125b9d Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 7 Nov 2006 14:25:58 +0000 Subject: 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. --- source/blender/src/toolbox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/src/toolbox.c') 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; -- cgit v1.2.3