Page 2 of 2

Re: Browsing wxWidgets source code

Posted: Wed Jun 16, 2010 6:49 am
by eranif
Nosferax wrote:I don't really know -where- it's supposed to be located...
that explains why it does not work for you
Nosferax wrote:I did find something that looks to be it in ./CodeLite/tags_option_data.cpp, but there is no line containing the PyAPI thing.
Its not hard coded...

The 'token replacement table' is edited by the GUI, you can edit it from (the menu bar):
'Settings -> Tags Settings -> Advanced'

and then select the 'Tokens' sub page.

At the bottom of that list, add this entry:

Code: Select all

re:PyAPI_FUNC\(([0-9a-zA-Z_\*:&]*)\)=\1
And retag your workspace (full)

Eran

Re: Browsing wxWidgets source code

Posted: Wed Jun 16, 2010 6:30 pm
by Nosferax
Oh, yes. Now that makes more sense :D

But still, it didn't work...

Completion shows PyObject_CallFunction and PyObject_CallMethod, but not the variants ending in ObjArgs...

So, what I've done so far :

- Get the revision in which you added regexpression support for tokens (4080)
- Added the token to the list :
re:PyAPI_FUNC\(([0-9a-zA-Z_\*:&]*)\)=\1
- Retagged my workspace (full)

Now I have no idea what is the problem. Sorry for the trouble :P

Nox

Re: Browsing wxWidgets source code

Posted: Wed Jun 16, 2010 8:41 pm
by eranif
Completion shows PyObject_CallFunction and PyObject_CallMethod, but not the variants ending in ObjArgs...
Can you explain it with details?

Also:
- Make sure you also replace codelite_indexer (should be done automatically for you if you are using 'make install')
- Change the regex into (I added a space)

Code: Select all

re:PyAPI_FUNC\(([0-9a-zA-Z_\*:& ]*)\)=\1
- Make sure that your code is including the relevant files (e.g. abstract.h)

Also, please paste here the output of the 'Trace' tab once the re-tag is done
Eran

Re: Browsing wxWidgets source code

Posted: Wed Jun 16, 2010 9:04 pm
by Nosferax
Okay, adding the space did the trick.

I got it now, thanks!

Nox

Re: Browsing wxWidgets source code

Posted: Thu Jun 17, 2010 8:43 pm
by eranif
I added a wiki page on this subject:

http://codelite.org/LiteEditor/MacrosHandling101

You can also find this page from the main documentation page of codelite (search 'macros'):

http://codelite.org/LiteEditor/Documentation

Eran