Hi again. Adam Davison wrote: > First of all you need to create a QScriptEngine and read in the > defined functions. You'll need a QScriptEngine that hangs around for > the whole time that Mixxx is running, see how I did this in script/ > for an example. Then you basically need to open whatever our global > function definitions file was going to be called and call .evaluate() > on the engine with the contents. Then you should have an engine with > everything defined in.
I took a look at scriptengine and qtscriptinterface but I'm completely lost as to where to add the code for the stuff you mention above. (Do I create a new class, or just instantiate QtScriptInterface or QScriptEngine? Where?) I'm pretty sure I understand _what_ needs to happen to make this all work (and it actually seems pretty simple conceptually,) but I don't have any clue _where_ the bits of code should go or the appropriate syntax, (let alone the correct way to do it to fit in with the rest of the code) so this is feeling nearly impossible with my lack of knowledge. I'm having a terrible time trying to understand the flow of events through the code, so I'm not able to figure out the best spots to put these things like I could with my last patch (which was just a functionality extension I could do by copying and changing existing code.) I'm afraid I'm going to need someone with experience to set up the framework at least, then I can flesh out the details to actually make it work. (For this I can usually find appropriate syntax examples from other pieces of code.) So is there anyone on the list that could help me out (that isn't swamped by end-of-semester work? ;) ) Thanks alot for your time and patience. Sincerely, Sean M. Pappalardo "D.J. Pegasus" <<--------------------------------------------------------------------------------->> This E-Mail message has been scanned for viruses and cleared by >>SmartMail<< from Smarter Technology, Inc. <<--------------------------------------------------------------------------------->> ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Mixxx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mixxx-devel
