Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: oBFusCATed on March 20, 2009, 01:12:14 pm

Title: Find file in projects tree
Post by: oBFusCATed on March 20, 2009, 01:12:14 pm
Hello,
I've added a feature to the code::blocks project page/tab in the management pane:
I've added a text control, so the user can enter a text and when he/she hit enter the file that matches the text is selected and shown in the tree below.
When enter is hit again, the next file is selected and shown.

I'll add the patch later, so you can see it and can tell me if I've done something bad or there are improvements that can be made.

I want to make one improvement:
I want to add to the text control some auto-completion capabilities. I want to have a drop-down list with all the files that match what the user have typed.
How can I do that? I've seen that in wx 2.9 there is an auto-completion features added to the combo and the text ctrl, but how to do it with wx 2.8?

Best regards
Title: Re: Find file in projects tree
Post by: Jenna on March 20, 2009, 02:21:48 pm
A similar feature exists: try the "ALT+G"-shortcut.
Title: Re: Find file in projects tree
Post by: lexis on April 01, 2009, 02:45:43 pm
Alt+G opens a tab with the file found. It is different from expanding tree in project manager and highlighting the file name there. It is wanted feature for me!
Title: Re: Find file in projects tree
Post by: oBFusCATed on May 11, 2009, 02:15:13 pm
After finding the ALT + G feature I've decided that my patch is useless...

I can provide it if you are still interested, but the tree expansion should be done in the alt+g dialog (by adding a checkbox or something similar)

Best regards,
Teodor
Title: Re: Find file in projects tree
Post by: lexis on May 12, 2009, 03:58:37 pm
After finding the ALT + G feature I've decided that my patch is useless...

I can provide it if you are still interested, but the tree expansion should be done in the alt+g dialog (by adding a checkbox or something similar)

Best regards,
Teodor

Teodor, would you please post it here or send it to me by mail: tikhvinsky*at*mail.ru
I'll try to work with it.

Thank you.
Title: Re: Find file in projects tree
Post by: oBFusCATed on May 13, 2009, 09:23:51 pm
Here is the patch

[attachment deleted by admin]