From: klaas.holwerda <kho...@xs...> - 2005-12-22 17:03:02
|
Hi John, Thanks for the quick responses (always). John Labenski wrote: >This would be a good idea. I can make a very small demo, maybe just a >single little class, like a subclassed button. > > > I would be really glad with that. If i understand you well, running a lua script from within the application would display this button. And if possible, when pressing the button a function in C++ calls a second lua script. What i am special interested in is how to call lua script from C++ objects, and how to interface information back to lua. I understand this is based on ConnectEvent(), and the event is bringing the C++ info to the lua function. In the end i want to have a2dCanvasObject draw itself using a luascript. And this will have its own eventhandler class and customevents and id's. So i need to understand the mechanism, and how i can use it. Anyway a sample explaining how to write your own bindings and how to use them in an application is i think very welcome. >I hope this helps, > Sure, it looks i am on the right track. > >ps. I think I am very close to being done. I have removed the >wxLuaInterpreter class and replaced it completely with the wxLuaState >class in my own copy of the sources. > But when i grep i still see wxLuaInterpreter. I am not yet at the level of understanding those changes. I saw wxLuaState all around, it seems you now use a class for the luastate. Would it be possible you write a small introduction on how this all works, and add it to the docs dir? I am now trying to search the mailing list for this information, but this is not so easy. What is your opinion on using Doxygen for documenting the code. Doxygen always helps be to understand the structure of code, because it makes it so easy to browse to almost anything right away. > The result of this seems to be >that it's fairly straightforward to understand the inner workings now. > > :-) I am sure you are making things much easier. Still a small help on where to start, like the most important classes and how they interact would be cool. Sorry for asking so much, i would prefer to help you instead, but first i need to understand :-( Thanks, Klaas |