Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

PlanetKDE, point me in some direction, please!

I have been try­ing to fig­ure out how to use lib­smoke from kde­bind­ings for a few hours.

So far, I have been un­able to find any kind of doc­u­men­ta­tion what­so­ev­er.

If any­one knows of some­thing (short of read­ing the ru­by bind­ings, for in­stance ;-) I would be thrilled.

Ad­den­dum: I just found on google that there is a whole lan­guage with Qt bind­ings I had nev­er heard of!

http://www.­clif­ford.at/s­pl/

Roberto Alsina / 2006-04-04 04:42:

That makes it much clearer, thanks Richard!

Richard Dale / 2006-04-04 04:42:

Hi Roberto



Some attempts have been made to explain how the Smoke lib works on the kde-bindings list. So that's the best place for info. Search for old emails mentioning smoke on that list, and post questions about what you're trying to do there.



The first thing to do is to find out how to look up a method call id - you form a 'munged method name' from the types of the arguments. Then call FindMethod() with the classname and munged name.



Secondly you need to know how to marshall arguments from the scripting language to C++ ones on the 'Smoke::Stack'. In QtRuby there is a C++ class called 'MethodCall' where that happens, in conjuction with the marshalling methods in the 'handlers.cpp' source file. But it's quite hard to explain without reference to the code in an existing project.


Contents © 2000-2024 Roberto Alsina