- Subject: Re: FL-Jed demo version
- From: Marko Mahnic <marko.mahnic@xxxxxxxx>
- Date: Mon, 16 May 2005 19:52:52 +0200
John E. Davis wrote:
I do not think it can be done but I have not tried it. Would you be
able to duplicate the FLTK enabled jed using an FLTK module? It is
really the same question. It would be great if this were possible.
I couldn't. I implemented FL-Jed in such a way that the JED display
actually became a FLTK widget. This way it has it's own handle() method
and it handles only the messages that are relevant to it. FLTK pumps
the messages whenever FL-Jed calls the wait() function from
sys_input_pending. FLTK decides if a message is relevant to the
widget and if it is, jed-widget's handle() is called and the
message is converted to a JED keysequence.
Xjed and wjed use the global message handler to process all messages.
I think that if you used import("slgtk") (or slfltk) you would have
to call the event handler for GTK to process the messages, but meanwhile
xjed would not recieve any messages until the toolkit's main loop would
end.
If you linked xjed to FLTK and used the global event hadler, how
could you tell which messages are relevant to JED and which are not?
I think the best way is to make JED a widget for the selected toolkit
and let the toolkit decide.
Up to now I have used mostly C++ OO toolkits (mostly MFC) and I
tend to think in objects. That is one of the reasons I chose
FLTK over GTK.
To port FL-Jed to Linux I would basically have to write
sys_input_pending. I will probably use the one used by linux
and adapt the behaviour. One thing I might have problems with
are the subprocesses, since I didn't use them much in the past.
FLTK has support for subprocesses. It uses select and callbacks
to communicate with them, but I do not know what that means.
How is that different from JED? Should I try to use that or
would it be better to use jprocess.c (this will be easier).
I still do not see the difference in functionality between
FL-Jed on linux and xjed.
Could FL-Jed eventually become xjed with the FLTK widget set?
At compile time (.configure) if you selected --toolkit-plain then
xterm.c would be used, but if you selected --toolkit-fltk then
the files form /fljed subdirectory would be used.
Marko
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]