]> Creatis software - creaMiniTools.git/blob - appli/template_creaPatientsSystem/scripts/Comments.bbs
#3421 template_creaPatientsSystem
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / Comments.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/Comments.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include std
12 include wx
13 include creaMiniTools
14
15 author "Author ??"
16 description "Description ??"
17 category "<VOID>"
18
19 new std:ConcatStrings Box15
20
21 new std:ConcatStrings Box07
22   set Box07.In2 "/Comment-Informatic.txt"
23
24 new wx:LayoutTab Box31
25   set Box31.WinHeight "500"
26   set Box31.WinTitle "Comments.bbs"
27
28 new wx:LayoutLine Box32
29
30 new wx:InputText Box33
31   set Box33.Title "Informatic Comment"
32
33 new wx:CommandButton Box34
34   set Box34.Label "Save and Exit"
35
36 new std:ReadLinesString Box11
37
38 new std:ReplaceString Box18
39   set Box18.Replace "/"
40   set Box18.Search "\"
41
42 new std:StringWriter Box20
43
44 new std:Exit Box21
45
46 new wx:LayoutCenter Box25
47
48 new wx:LayoutLine Box26
49
50 new std:ConcatStrings Box27
51   set Box27.In1 "Patient:"
52   set Box27.In2 "/results/"
53
54 new std:ConcatStrings Box17
55   set Box17.In1 "/<CORE>/davila/00300_Filter/Test_01/<PATIENT>/Condition_01"
56
57 new std:ConcatStrings Box19
58
59 new std:ConcatStrings Box22
60
61 new std:ReplaceCleanString Box23
62   set Box23.Search "<CORE>"
63
64 new std:ReplaceCleanString Box28
65   set Box28.Search "<PATIENT>"
66
67 new std:ConcatStrings Box29
68   set Box29.In2 "/Comment-Scientific.txt"
69
70 new wx:InputText Box30
71   set Box30.Title "Scientific Comment"
72
73 new std:ReadLinesString Box35
74
75 new std:ReplaceString Box36
76   set Box36.Replace "/"
77   set Box36.Search "\"
78
79 new std:StringWriter Box37
80
81 new std:ConcatStrings Box38
82   set Box38.In2 "/Comment-General.txt"
83
84 new wx:InputText Box39
85   set Box39.Title "General Comment"
86
87 new std:ReadLinesString Box40
88
89 new std:ReplaceString Box41
90   set Box41.Replace "/"
91   set Box41.Search "\"
92
93 new std:StringWriter Box42
94
95 new creaMiniTools:WriteStatePatientSystem Box43
96   set Box43.State "Finish"
97
98 new std:ConcatStrings Box44
99
100 new std:ConcatStrings Box45
101   set Box45.In2 "/Step_Comment.txt"
102
103 new std:MultipleInputs Box46
104
105
106 connect Box32.Widget Box31.Widget1
107
108 connect Box11.Out Box33.In
109
110 connect Box07.Out Box18.In
111
112 connect Box18.Out Box11.FileName
113
114 connect Box18.Out Box20.FileName
115
116 connect Box33.Out Box20.In0
117
118 connect Box34.Widget Box26.Widget1
119
120 connect Box26.Widget Box25.Widget2
121
122
123 connect Box15.Out Box27.In1
124
125 connect Box27.Out Box32.WinTitle
126
127
128
129 connect Box17.Out Box23.In
130
131 connect Box22.Out Box23.Replace
132
133 connect Box23.Out Box28.In
134
135 connect Box27.Out Box07.In1
136
137 connect Box19.Out Box28.Replace
138
139 connect Box28.Out Box27.In3
140
141 connect Box35.Out Box30.In
142
143 connect Box29.Out Box36.In
144
145 connect Box36.Out Box35.FileName
146
147 connect Box36.Out Box37.FileName
148
149 connect Box30.Out Box37.In0
150
151 connect Box40.Out Box39.In
152
153 connect Box38.Out Box41.In
154
155 connect Box41.Out Box40.FileName
156
157 connect Box41.Out Box42.FileName
158
159 connect Box39.Out Box42.In0
160
161 connect Box27.Out Box29.In1
162
163 connect Box27.Out Box38.In1
164
165 connect Box25.Widget Box32.Widget8
166
167 connect Box39.Widget Box32.Widget2
168
169 connect Box30.Widget Box32.Widget4
170
171 connect Box33.Widget Box32.Widget6
172
173
174 connect Box44.Out Box43.User
175
176 connect Box27.Out Box45.In1
177
178 connect Box45.Out Box43.Filename
179
180 connect Box42.BoxChange Box46.In1
181
182 connect Box37.BoxChange Box46.In2
183
184 connect Box20.BoxChange Box46.In3
185
186 connect Box43.boxChange Box46.In4
187
188 connect Box34.BoxChange Box46.BoxExecute
189
190 connect Box21.BoxChange Box46.In9
191
192
193
194 # Complex input ports
195 input BaseDir Box15.In1 " "
196 input PatientID Box19.In1 " "
197 input CoreID Box22.In1 " "
198 input creaUser Box44.In1 " "
199 exec Box31