Hello,
I'd like to initiate last call discussion on UI syntax.
Wiki is here:https://phab.enlightenment.org/w/ui_builders_format/
If you have any objections or ideas, please share.
Also some notes:
As I understood from previous discussion, most like 4-spaced indentation.
But maybe we shouldn't stick with exact number? Think of case like this:
window
layout
part["part1"]: box(id = "box1")
button(text="button")
part["long_part_name"]: table(id = "table2")
pack[0, 0, 1, 1]: image(file = "logo.png")
part["short_name"]: table(id = "table2")
Should user be able to align text like this?
window
layout
part["part1"]: box(id = "box1")
button(text="button")
part["long_part_name"]: table(id = "table1")
pack[0, 0, 1, 1]: image(file = "logo.png")
part["short_name"]: table(id = "table2")
pack[0, 1, 1, 1]: image(file =
"logo2.png")
---
Snippets:
As I said before snippets should be customizable, so user could check
properties, add callbacks., etc.
Thus updated suggested format is:
box(id="mybox")
button(id="but1")
image(id="img1")
window
layout
part["a"]: snippet.mybox (id="mybox1")
but1(text = "text", img1.file = "logo.png")
on("clicked", "func_name")
img1(file = "logo.png")
---
Should all files(paths) be defined as resources, so generator will be
able to generate paths properly?
resources
images
"bg":"images/background.png"
"logo":"images/logo.png"
edje
"edje_res":["path/layout.edj", "path/layout.edc"]
window
layout(file=res("edje_res"))
part["a"]: button(icon = res("logo"))
Yakov.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel