Re: easy display system?

Carlo Capelli <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CABty9wwcWDpD6ezruR2hOroQp8Sdu-p3Dd1Z5jL5kn-Ahy9x5g@mail.gmail.com>
2013/7/17 Jan Wielemaker <[email protected]>

> On 07/17/2013 09:43 AM, Carlo Capelli wrote:
>
>> 2013/7/17 Carlo Capelli <[email protected]>
>>
>>
>>>
>>>
>>> 2013/7/17 Alan Baljeu <[email protected]>
>>>
>>>  basically view_term(Term) opens a window to show that term.
>>>>
>>>> I've never heard of prolog_ide(debug_monitor).  It might be useful as
>>>> well.
>>>>
>>>> I'm not sure yet what will be most useful.  I'd want a window dedicated
>>>> to one thing, and show a list of such things in there.
>>>>
>>>
>>>
>>> Alan, I think the simpler interface could be just multiple named
>>> consoles.
>>> I learned about them these days, attempting to complete the Qt console
>>> port (thanks to Jan, we are near to something working now),
>>> but if you can prototype under Windows (or you are incline to the
>>> bleeding
>>> edge, testing our efforts toward Qt portability layer) see plwin<
>>> http://www.swi-prolog.**org/pldoc/man?section=plwin<http://www.swi-prolog.org/pldoc/man?section=plwin>
>>> >**interface.
>>>
>>>
>>>  I forgot: fdqueens <https://github.com/CapelliC/**fdqueens<https://github.com/CapelliC/fdqueens>>
>> showcases a
>>
>> CLP(FD) mini application interface, reusing this
>> code<http://web.student.**tuwien.ac.at/~e0225855/queens/**queens.html<http://web.student.tuwien.ac.at/~e0225855/queens/queens.html>
>> >from
>>
>> Markus, thus showing attributed vars state change.
>> If you can think of some graphical interface specification, maybe I could
>> help.
>>
>
> Just curious: how easy would it be for the new console to allow
> applications to create a HTML5 app?

 For example, something that
> lets the user attach a new tab or window to the console.  Not
> sure how this would compare with opening a browser.  Technology
> wise though, being able to write HTML5 apps fits perfectly with
> the current directions in SWI-Prolog and allow us to reuse
> technology I want to develop anyway.  Think of a future graphical
> debugger running as HTML5, nice term visualization, etc.
>
> I'm thinking of something like
>
>         open_web_app(+Location, Options)
>
>
I would say the console has little role in this, apart introducing the Qt
dependency.
Since we have introduced win_... family, eventually I would prefer to
extend the family (something like win_web_console...)

Opening a WebKit browser it's matter of a couple of lines (we can start in
literally 10 lines :), but IMHO the interesting part would be about
seamless integration with current prolog stream IO.
In the past I ported (part of) an RDF/XPCE application to HTTP, and can't
say that programming a GUI it's really easy...
Maybe today things are better, thanks to Anne tutorial (sorry Annie, I
didn't tried it, because it come after I completed my task...).

Anyway, apart QtWebKit, also the current console has HTML capabilities.
Then exposing the DOM through reflection could be rewarding.
I've begun to follow this route for easy things like line wrapping, max
block count, fonts, colors....

bye Carlo

Where Location is a URL minus the scheme and authority (http://host[:port]
> and Options provides things such as opening
> as tab or window, etc.
>
>         Cheers --- Jan
>
>
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.