summaryrefslogtreecommitdiff
path: root/server/xml/example.xml
diff options
context:
space:
mode:
authordeva <deva>2007-09-24 12:47:16 +0000
committerdeva <deva>2007-09-24 12:47:16 +0000
commita3cb015e6b69821062306981924a43a5487f3b5d (patch)
treefcacf4cab2bf2d188775b11f2f53fbf5a9235d7a /server/xml/example.xml
parent574f7c69a0cb7d3af3e20d740e6202d2faaf2718 (diff)
Server now parses XML and handles include.
Diffstat (limited to 'server/xml/example.xml')
-rw-r--r--server/xml/example.xml56
1 files changed, 30 insertions, 26 deletions
diff --git a/server/xml/example.xml b/server/xml/example.xml
index 3e31f56..60068ca 100644
--- a/server/xml/example.xml
+++ b/server/xml/example.xml
@@ -1,27 +1,31 @@
- <macro name="fundus" version="1.0">
- <window name="mainwindow"
- caption="Fundus"
- width="800"
- height="600"
- layout="vbox">
- <include name="patient"/>
- <frame name="spl_frame" caption="Spl:" layout="vbox">
- <textedit name="spl_note" value="På begge sider alderssvarende forhold. Der er let katarakt, som dog ikke er operationskrævende."/>
+<?xml version="1.0" encoding="UTF-8"?>
+<macro name="fundus" version="1.0">
+ <window name="mainwindow"
+ caption="Fundus"
+ width="500"
+ height="500"
+ layout="vbox">
+ <include name="patient"/>
+ <frame name="spl_frame" caption="Spl:" layout="vbox">
+ <textedit name="spl_note" regexp=".*" value="På begge sider alderssvarende forhold. Der er let katarakt, som dog ikke er operationskrævende."/>
+ </frame>
+ <frame name="linse_frame" caption="Linse:" layout="vbox">
+ <lineedit name="linse" regexp="[0-9]{5}" value="90-D linse"/>
+ <textedit name="linse_note" regexp=".*" value="Der findes centrale atrofiske forandringer."/>
+ </frame>
+ <frame name="swelling_frame" layout="hbox">
+ <label name="swelling" caption="Der findes central hævelse med:"/>
+ <frame name="swelling_radios" layout="vbox">
+ <radiobuttons name="radio" layout="vbox">
+ <item caption="Randblødning" value="rand"/>
+ <item caption="Exsudater" value="exsudater"/>
+ <item caption="Blahblah" value="blabla"/>
+ </radiobuttons>
</frame>
- <frame name="linse_frame" caption="Linse:" layout="vbox">
- <lineedit name="linse" caption="90-D linse"/>
- <textedit name="linse_note" value="Der findes centrale atrofiske forandringer."/>
- </frame>
- <frame name="swelling_frame" layout="hbox">
- <label name="swelling" caption="Der findes central hævelse med:"/>
- <frame name="swelling_radios" layout="vbox"/>
- <radiobutton name="radio1" caption="Randblødning"/>
- <radiobutton name="radio2" caption="Exsudater"/>
- </frame>
- </frame>
- <frame name="buttons" layout="hbox">
- <button name="cancel" caption="Annuller"/>
- <button name="commit" caption="Godkend"/>
- </frame>
- </window>
- </macro>
+ </frame>
+ <frame name="buttons" layout="hbox">
+ <button name="cancel" caption="Annuller" action="cancel"/>
+ <button name="commit" caption="Godkend" action="commit"/>
+ </frame>
+ </window>
+</macro>