Thread: Coding a gui.. it's fun xD
hi everyone,
not sure if i'm allowed post here; it's got absolutely nothing ubuntu, couldn't find other place wasn't full of adds discuss this. so, yeah, if it's in wrong places/shouldn't here, feel free delete or tell me can delete (assuming forum allows me too).
anyway, i'm writing gui library in c++. is, started yesterday xd layout , style of gui going in file, , i'm designing syntax files. it's going html-like, think, different file determining style, css.
ok. admit it. i'm copying html , css.
i'm aiming create of gui programming done through these files, instead of being done through c++. haven't decided how yet, of "stuff" program going done through c++ or interpreted language, python if can working.
anyway, topic. here's how have syntax now:
it's (type: id [name:value ...] /) , id optional - if want access widget have supply id, or might able like: root.interchangeable interchangeable widget (which container displays 1 of it's children.)code:(boxlayout: root orientation:"vertical") (interchangeable: top_panel default:"view" ) (gridlayout: view) (/gridlayout) (button text="helloooooo" /) (/interchangeable) (boxlayout: bottom_panel size_hint_y:0.1) (button) text:"this nothing" on_press:say_hi() (/button) (text: the_folder) (/text) (boxlayout: bottom_panel_right) (options: current_page default:"viewbutton") (option: viewbutton text:"view" height:0.2 on_press: swap_top_to_view() /) (option: organisebutton text:"organise" on_press: swap_top_to_organise() /) (option: settingbutton text:"settings" on_press: swap_top_to_settings() /) (/options) (/boxlayout) (/boxlayout) (/boxlayout)
i'm going simplicity on power, that's not won't powerful when it's done.
anyway, think of syntax? reckon improved? i'm debating whether there should [name:value ..] section in (widget) bit, , i'm trying think of better way it. haven't come @ moment.
anyway, of basics in place , really, have left finish parser, implement css-bit , add more widgets.
edit: oh, , i'm calling tage, "totally awesome gui engine!". want create "totally awesome game engine!" , when i'll merge them
nice
don't have comment, hope luck
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Coding a gui.. it's fun xD
Ubuntu
Comments
Post a Comment