[Ignore "From:" line address designed to defeat bulk emailers that
scan news groups. See Sig at end]
iainm@cad.strath.ac.uk (Iain McKay) writes:
> After looking into my problem a bit more, I've came to the conclusion
> that the problem is that the programme I wish to port into Linux
> pop11 from unix pop11 uses OpenLook widgets.
> ...
> So, I now have some questions:
>
> Is there an OpenLook widget set been developed for the linux
> version of pop11? If so, where to I find more information about it.
> If not, does the Motif widget set which exists for the linux pop11
> allow me to do everything the OpenLook set did on unix?
Alas, I think Openlook is dead and will certainly not be portable.
Motif should enable you to do everything you could do in OL, though
maybe it won't look so nice (and Motif seems to lack pinnable
windows, alas.)
I am developing stuff based on the Pop-11 rc_graphic (Relative
Coordinates Graphic) package for producing various kinds of mouse
controllable pictures in a pop-11 graphic window, including buttons
of various kinds etc. It does not attempt to conform either to motif
or OL, but is very configurable and flexible, and should work on any
machine on which Pop-11 and its graphical widgets work, though I've
not tried it on Linux poplog. It makes heavy use of the objectclass
extension to pop-11 available in Poplog V15.0 and later.
I am still adding things (e.g. making it easy to use a new Ved or Xved
buffer as the interface for a program to get text input from the user,
instead of having to create a text field widget). I shall shortly
install the latest version in the poplog ftp directory at
Birmingham, but if you or anyone else wants to try it out soon I'll
make a tar file available on request. I guess it depends what you
need.
It supports creation of windows, moving them hiding or showing them,
adding pictures that can be moved under mouse or program control,
text fields, buttons of various kinds (e.g action buttons, buttons
to toggle a boolean variable, buttons to increment or decrement a
numerical variable), popup menus with a text field and a row of
answer buttons to choose from, etc.
Event types supported are mouse button up or down, drag, move, leave
or enter window, use of keyboard, use of modifier keys with mouse
buttons.
One of the demos illustrating most of that shows how to create a
painting easel, with a collection of coloured paint pots on
one side, a collection of brushes, to use, etc. (It would be nice to
extend it so as to store the picture produced for redisplay, but I
have not yet done that.)
Movable objects can have their movement constrained by functions you
define, so you can make a "slider", but it can be constrained to
move diagonally, on a circle, etc. not just horizontally or
vertically.
Anyone who doesn't like the collection of default styles should find
it easy to copy and edit the code to make buttons look different.
Objectclass makes it very easy to produce new sub-classes which
override the defaults, so everything is designed to be very
tailorable.
The program detects whether you are using a terminal like Suns
(where white = 0 and black = 1) or like DEC alphas (where it's the
other way round and also PCs running X I think) and automatically
decides whether to use xor or equiv for moving pictures (actually
it's a lot more complicated than that.)
I am not sure it works with 24bit colour screens.
Riccardo Poli has "ported" lib showtree, which previously used
graphic characters to display parse trees and the like in a VED
window. Instead it now draws them in a graphic window. It should not
be hard to replace the current nodes with my new buttons, so that
you can draw a tree then click on its nodes to do something. (Could
be a powerful teaching tool for instance.)
There's quite a lot of documentation, but I've not yet finished
documenting the buttons library.
I've not yet done anything about moving (portions of) images into an
rc_graphic window, but for programs that need to handle scaled
images in a pop-11 rc_graphic window, David Young's popvision
library available by ftp from the Sussex poplog site is excellent.
ftp://ftp.cogs.sussex.ac.uk/pub/poplog
Aaron
--
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs )
School of Computer Science, The University of Birmingham, B15 2TT, England
EMAIL A. Sloman @ cs. bham.ac.in uk(||| MAKE UNSOLICITED EMAIL ADVERTS ILLEGAL |||)
Phone: +44-121-414-4775 (Sec 3711) Fax: +44-121-414-4281
|