find function called in wxEventHandler::Connect

Post here any ideas/problems/suggestions you have regarding CodeLite's CScope plugin
evstevemd
CodeLite Guru
Posts: 329
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

find function called in wxEventHandler::Connect

Post by evstevemd » Mon Feb 14, 2011 4:42 pm

Is there a way to find a function as called in Connet()/Bind()?
CodeLite 12.x
CodeLite is awesome, I just Love it!

User avatar
eranif
CodeLite Plugin
Posts: 5812
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: find function called in wxEventHandler::Connect

Post by eranif » Mon Feb 14, 2011 5:44 pm

I am not sure I understand it.

Please provide an example

Eran
Make sure you have read the HOW TO POST thread

evstevemd
CodeLite Guru
Posts: 329
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: find function called in wxEventHandler::Connect

Post by evstevemd » Mon Feb 14, 2011 7:12 pm

I mean where event handlers are called!
If you find any other function like Foo::Baa(int x) it is easily found where it is being called.
But I cannot find something like Foo::Baz(wxCommandEvent& e). But I know it is being called somewhere like this

Code: Select all

Connect(wxID_XXX, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Foo::Baz), NULL, this);
But in CScope it returns nothing showing that the function is not called anywhere! Do I misunderstand CScope? :shock:
CodeLite 12.x
CodeLite is awesome, I just Love it!

User avatar
eranif
CodeLite Plugin
Posts: 5812
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: find function called in wxEventHandler::Connect

Post by eranif » Mon Feb 14, 2011 11:30 pm

evstevemd wrote: Do I misunderstand CScope? :shock:
cscope is a great tool, but not when it comes to C++...

Have you tried:
Right click on the word 'Connect' and then 'Search | Find references' ?

If this fails, you can always use the 'Find in files'

Eran
Make sure you have read the HOW TO POST thread

Post Reply