Re: QT Console
Carlo Capelli <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CABty9wwG-+Awb3yXSc0EophZyXjtoWFY3_MWhHW0aNrAq9wf_A@mail.gmail.com> |
2013/7/8 Karissa Soo <[email protected]> > Hey everyone! Hi Karissa > Earlier I was explaining to Anne Ogborn about how I was > working on writing smart tab completion for the swipl-win window > (specifically the swipl-win window...for some reason many people tend to > overlook the fact that I am only writing completion for the graphical > console) and she informed me that Carlo was leading the switch over to > using QT. > I am concerned and would like to know if someone can supply me with the > name of the SWIPL library I'm using the C interface ( or better, C++, just #include <SWI-cpp.h> ) to host the runtime, i.e. swipl.so on Unix or swipl.dll on Windows, in a Qt text editor. The tricky part, that I had some hard time to get working, is about leaving IO unchanged and getting threads attached to Qt from Prolog side ( it's working now, kind of ). Now I'm working on the swipl-win interface, controlled from a Prolog script. The editor, debugger, etc keep running on XPCE. > or whatever that is being used to interface to > the QT libraries. (I had really wanted the tab completion to be a module > (contained in tabber.pl) that users could just load whenever, rather than > something that required a lot of configuration... About completion, I think Jan will publish a PL_... C interface that will give more sensible hints, by means of inner access to REPL context. To be true, also the already available (but I don't know how to properly access it) tab completion is far smarter than my code, that simply caches the result of this: ?- setof(P,M^A^(current_predicate(M:P/A), \+sub_atom(P,0,1,_,$)), L). > and I don't want to write > everything based off XPCE, Working on XPCE seem reasonable to me. I'd like to try to reuse XPCE interfaces in Qt. Could we meet in between ? > and finish just in time to watch the Big Switch. > This week ( I hope :) I'll upload to github the alpha release of swipl-win interface, to evaluate deployment feasibility. Since Qt is evolving, it's kind of experimental work. > :) > Thanks! > bye -- Carlo -------------- next part -------------- > HTML attachment scrubbed and removed > _______________________________________________ > SWI-Prolog mailing list > [email protected] > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog > -------------- next part -------------- HTML attachment scrubbed and removed