> I do not know Lua so please, forgive me if I missed something, but how
would be the code binded to the GUI?

As you can see the app is described by  exampleApp.lua , while
guiConstructor.lua is responsible for binding to the toolkit .

>For example, how would the source code change if, for example, on clicking
the button a new window with "Hi!" text is supposed to appear?

Since lua has first-class functions ( they are treated as variables) adding
some behavior to widgets its as easy as assigning a function to a variable
( for that case the variable name would be onClick). Anyway, I'll upload an
updated exampleApp which will contain an example for that.

> Is the exampleApp.lua only GUI description and the code resides someplace
else?

guiLang should be able of doing anything itself up to the point where
applications could be written using that only, of course , whether only
guilang or some other low-level together with guilang is used is up to the
developer.

> The code of the application itself looks pretty simple and readable. But
one more question comes to my mind. HelenOS runs on several platforms and
their display resolution differs a lot. Some of them do not provide a
graphical (pixel-oriented) output at all. Thus, specifying width of any
control in pixels may not be the best solution. At least, not for all
architectures. Do you plan some kind of switchable layouts depending on the
resolution or other ways to tackle this?

I'm planning two features to tackle that. First,  there will be the
possibility to add sufixes for differentiating layouts (e.g: myApp-pc.lua
myApp-tablet.lua myApp-tv.lua). Second, there will be variables for
indicating OS and platform so developers should be able to select the code
to be included by themselves.
I don't know anything about those non-graphical environments, so if you can
point me to some resource where I can learn about them maybe I would be
able to add them in the designs in a better manner.

> Btw, I looked at your Lua branch and you do not need to add the setjmp
for amd64 as there is a generic implementation in mainline since rev. 2041.

OK, I've merged mainline into my branch.BTW, how I am supposed to link a
library?

Merry christmas, Sergio.
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to