1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/Comments.bbs
4 # ----------------------------------
7 # ----------------------
15 description "Description ??"
18 new std:ConcatStrings Box15
20 new std:ConcatStrings Box07
21 set Box07.In2 "/Comment-Informatic.txt"
23 new wx:LayoutTab Box31
24 set Box31.WinHeight "500"
25 set Box31.WinTitle "Comments.bbs"
27 new wx:LayoutLine Box32
29 new wx:InputText Box33
30 set Box33.Title "Informatic Comment"
32 new wx:CommandButton Box34
33 set Box34.Label "Save"
35 new std:ReadLinesString Box11
37 new std:ReplaceString Box18
41 new std:StringWriter Box20
45 new wx:CommandButton Box24
46 set Box24.Label "Exit"
48 new wx:LayoutCenter Box25
50 new wx:LayoutLine Box26
52 new std:ConcatStrings Box27
53 set Box27.In1 "Patient:"
54 set Box27.In2 "/results/"
56 new std:ConcatStrings Box17
57 set Box17.In1 "/<CORE>/davila/00300_Filter/Test_01/<PATIENT>/Condition_01"
59 new std:ConcatStrings Box19
61 new std:ConcatStrings Box22
63 new std:ReplaceCleanString Box23
64 set Box23.Search "<CORE>"
66 new std:ReplaceCleanString Box28
67 set Box28.Search "<PATIENT>"
69 new std:ConcatStrings Box29
70 set Box29.In2 "/Comment-Scientific.txt"
72 new wx:InputText Box30
73 set Box30.Title "Scientific Comment"
75 new std:ReadLinesString Box35
77 new std:ReplaceString Box36
81 new std:StringWriter Box37
83 new std:ConcatStrings Box38
84 set Box38.In2 "/Comment-General.txt"
86 new wx:InputText Box39
87 set Box39.Title "General Comment"
89 new std:ReadLinesString Box40
91 new std:ReplaceString Box41
95 new std:StringWriter Box42
98 connect Box32.Widget Box31.Widget1
100 connect Box11.Out Box33.In
102 connect Box07.Out Box18.In
104 connect Box18.Out Box11.FileName
106 connect Box18.Out Box20.FileName
108 connect Box34.BoxChange Box20.BoxExecute
110 connect Box33.Out Box20.In0
112 connect Box24.BoxChange Box21.BoxExecute
114 connect Box24.Widget Box26.Widget2
116 connect Box34.Widget Box26.Widget1
118 connect Box26.Widget Box25.Widget2
121 connect Box15.Out Box27.In1
123 connect Box27.Out Box32.WinTitle
127 connect Box17.Out Box23.In
129 connect Box22.Out Box23.Replace
131 connect Box23.Out Box28.In
133 connect Box27.Out Box07.In1
135 connect Box19.Out Box28.Replace
137 connect Box28.Out Box27.In3
139 connect Box35.Out Box30.In
141 connect Box29.Out Box36.In
143 connect Box36.Out Box35.FileName
145 connect Box36.Out Box37.FileName
147 connect Box30.Out Box37.In0
149 connect Box40.Out Box39.In
151 connect Box38.Out Box41.In
153 connect Box41.Out Box40.FileName
155 connect Box41.Out Box42.FileName
157 connect Box39.Out Box42.In0
159 connect Box27.Out Box29.In1
161 connect Box27.Out Box38.In1
163 connect Box25.Widget Box32.Widget8
165 connect Box39.Widget Box32.Widget2
167 connect Box30.Widget Box32.Widget4
169 connect Box33.Widget Box32.Widget6
171 connect Box34.BoxChange Box37.BoxExecute
173 connect Box34.BoxChange Box42.BoxExecute
177 # Complex input ports
178 input BaseDir Box15.In1 " "
179 input PatientID Box19.In1 " "
180 input CoreID Box22.In1 " "