I tried to build windows from an xml file, as the example provided. But there is some "strange things" happening :
-If you miss some attributes, clanlib crash instead of throwing an exception. Is it a "normal" behavior ?
-Required attributes are : id, anchor_tl anchor_br dist_tl_x dist_tl_y dist_br_x dist_br_y and geom. But the geom attribute introduce redundancy. I mean, if you do not use a layout, clanlib crash. If you use a layout, as soon as the window is updated, your components move at the right place (should need a "click" to the window in practice). It would be good to do one of those things : remove geom / enable not using layout.
As i can remember, if you do not set a layout, clanlib crash.
-Could you add something like
in the (tag == "lineedit") test in CL_GUIXMLLoaderVersion_1_0::load(CL_DomElement &element, CL_GUIComponent *parent) to enable updating the "set_password_mode" from the gui file [It would be good to be able to put a password field as a password field directly in the gui file instead of setting such things in the app src] ?
(I can make a patch if you want...)
-Could you add a field "dialog_title" in the XMLLoader to update window's title from the xml file? (Because use a resource file which is located far away from the gui definition isn't really a 'good' way to do it [although it works].
(I can make the update and give you a patch, if you wan't)
(Please excuse my poor english :/ )