Author Topic: Find file in projects tree  (Read 6499 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Find file in projects tree
« 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Find file in projects tree
« Reply #1 on: March 20, 2009, 02:21:48 pm »
A similar feature exists: try the "ALT+G"-shortcut.

Offline lexis

  • Multiple posting newcomer
  • *
  • Posts: 36
Re: Find file in projects tree
« Reply #2 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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Find file in projects tree
« Reply #3 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline lexis

  • Multiple posting newcomer
  • *
  • Posts: 36
Re: Find file in projects tree
« Reply #4 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Find file in projects tree
« Reply #5 on: May 13, 2009, 09:23:51 pm »
Here is the patch

[attachment deleted by admin]
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]