<macro name="test_macro" version="1.0"> <window name="mainwindow" caption="This is the mainwindow" width="800" height="600" layout="vbox"> <include name="patient"/> <frame name="data_frame" layout="hbox"> <label caption="Some field"/> <lineedit name="lineedit1" regexp="[0-9]+"/> </frame> <frame name="bottom_frame" layout="hbox"> <spacer /> <button caption="Close window" action="abort"/> <button caption="Commit changes" action="commit"/> </frame> </window> </macro>