Skip to content

Commit afacac3

Browse files
author
Heckmann
committed
Window Caption added if missing and spaces set to 4 where found
1 parent 3272c84 commit afacac3

File tree

19 files changed

+1287
-1240
lines changed

19 files changed

+1287
-1240
lines changed

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/guidesign.md

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,14 @@ Interface {
9999
internalName = Arithmetic2.output0
100100
}
101101
}
102-
Parameters {
103-
104-
}
102+
Parameters {}
105103
}
106104
107105
Window MyWindowName {
108-
title = MyWindowTitle
109-
110-
Box MyBox {
106+
Category {
107+
title = MyWindowTitle
111108
109+
Box MyBox {}
112110
}
113111
}
114112
```
@@ -136,13 +134,14 @@ Window MyWindowName {
136134
title = MyWindowTitle
137135
w = 100
138136
h = 50
139-
140-
Vertical {
141-
Box MyBox {
142-
title = "Title of my Box"
143-
}
144-
Label MyLabel {
137+
Category {
138+
Vertical {
139+
Box MyBox {
140+
title = "Title of my Box"
141+
}
142+
Label MyLabel {
145143
title = "This is a label below the box"
144+
}
146145
}
147146
}
148147
}
@@ -157,13 +156,14 @@ Window MyWindowName {
157156
title = MyWindowTitle
158157
w = 100
159158
h = 50
160-
161-
Horizontal {
162-
Box MyBox {
163-
title = "Title of my Box"
164-
}
165-
Label MyLabel {
166-
title = "This is a label beside the box"
159+
Category {
160+
Horizontal {
161+
Box MyBox {
162+
title = "Title of my Box"
163+
}
164+
Label MyLabel {
165+
title = "This is a label beside the box"
166+
}
167167
}
168168
}
169169
}
@@ -209,8 +209,10 @@ Changes of the properties of this field can be done in the curled brackets using
209209
Window MyWindowName {
210210
title = MyWindowTitle
211211
212-
Field Convolution.predefKernel {
213-
title = Kernel
212+
Category {
213+
Field Convolution.predefKernel {
214+
title = Kernel
215+
}
214216
}
215217
}
216218
```
@@ -243,7 +245,9 @@ Interface {
243245
244246
Window MyWindowName {
245247
title = MyWindowTitle
246-
Field kernel {}
248+
Category {
249+
Field kernel {}
250+
}
247251
}
248252
```
249253
{{</highlight>}}
@@ -259,8 +263,10 @@ Window MyWindowName {
259263
title = MyWindowTitle
260264
wakeupCommand = myWindowCommand
261265
262-
Button MyButton {
263-
command = myButtonAction
266+
Category {
267+
Button MyButton {
268+
command = myButtonAction
269+
}
264270
}
265271
}
266272
```

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/itemmodelview.md

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ We first define the input for the image.
5050
{{< highlight filename="MyItemModelView.script" >}}
5151
```Stan
5252
Interface {
53-
Inputs {
54-
Field inImage { type = Image }
55-
}
56-
Outputs {}
57-
Parameters {}
53+
Inputs {
54+
Field inImage { type = Image }
55+
}
56+
Outputs {}
57+
Parameters {}
5858
}
5959
```
6060
{{</highlight>}}
@@ -78,21 +78,21 @@ All of them have to be defined as a *Field* in the *Parameters* section of the s
7878
{{< highlight filename="MyItemModelView.script" >}}
7979
```Stan
8080
Interface {
81-
Inputs {
82-
Field inImage { type = Image }
83-
}
84-
Outputs {}
85-
Parameters {
86-
Field id { type = Int }
87-
Field patientName { type = String }
88-
Field patientBirthdate { type = String }
89-
Field studyDescription { type = String }
90-
Field studyDate { type = String }
91-
Field modality { type = String }
92-
Field seriesDescription { type = String }
93-
Field seriesDate { type = String }
94-
Field sopInstanceUID { type = String }
95-
}
81+
Inputs {
82+
Field inImage { type = Image }
83+
}
84+
Outputs {}
85+
Parameters {
86+
Field id { type = Int }
87+
Field patientName { type = String }
88+
Field patientBirthdate { type = String }
89+
Field studyDescription { type = String }
90+
Field studyDate { type = String }
91+
Field modality { type = String }
92+
Field seriesDescription { type = String }
93+
Field seriesDate { type = String }
94+
Field sopInstanceUID { type = String }
95+
}
9696
}
9797
```
9898
{{</highlight>}}
@@ -107,23 +107,23 @@ We can now add the *ItemModelView* to our panel and define the columns of the vi
107107
{{< highlight filename="MyItemModelView.script" >}}
108108
```Stan
109109
Window {
110-
Category {
111-
Vertical {
112-
ItemModelView myItemModel {
113-
name = itemModelView
114-
idAttribute = id
115-
Column id {}
116-
Column patientName {}
117-
Column patientBirthdate {}
118-
Column studyDescription {}
119-
Column studyDate {}
120-
Column modality {}
121-
Column seriesDescription {}
122-
Column seriesDate {}
123-
Column sopInstanceUID {}
124-
}
110+
Category {
111+
Vertical {
112+
ItemModelView myItemModel {
113+
name = itemModelView
114+
idAttribute = id
115+
Column id {}
116+
Column patientName {}
117+
Column patientBirthdate {}
118+
Column studyDescription {}
119+
Column studyDate {}
120+
Column modality {}
121+
Column seriesDescription {}
122+
Column seriesDate {}
123+
Column sopInstanceUID {}
124+
}
125+
}
125126
}
126-
}
127127
}
128128
```
129129
{{</highlight>}}
@@ -150,11 +150,11 @@ We want to get the necessary information from the defined input image *inImage*.
150150
{{< highlight filename="MyItemModelView.script" >}}
151151
```Stan
152152
Commands {
153-
source = $(LOCAL)/MyItemModelView.py
153+
source = $(LOCAL)/MyItemModelView.py
154154
155-
FieldListener inImage {
156-
command = imageChanged
157-
}
155+
FieldListener inImage {
156+
command = imageChanged
157+
}
158158
}
159159
```
160160
{{</highlight>}}
@@ -259,23 +259,24 @@ You can see that the above Python code uses a field *selection* that contains th
259259
{{< highlight filename="MyItemModelView.script" >}}
260260
```Stan
261261
Interface {
262-
...
263-
Parameters {
264-
...
265-
Field selection { type = String }
266262
...
267-
}
263+
Parameters {
264+
...
265+
Field selection { type = String }
266+
...
267+
}
268268
}
269+
269270
Window {
270-
Category {
271-
Vertical {
272-
ItemModelView myItemModel {
273-
...
274-
selectionField = selection
275-
...
276-
}
271+
Category {
272+
Vertical {
273+
ItemModelView myItemModel {
274+
...
275+
selectionField = selection
276+
...
277+
}
278+
}
277279
}
278-
}
279280
}
280281
```
281282
{{</highlight>}}
@@ -368,11 +369,11 @@ We can now add options to interact with the *ItemModelView*. Open the *.script*
368369
{{< highlight filename="MyItemModelView.script" >}}
369370
```Stan
370371
Commands {
371-
...
372-
FieldListener selection {
373-
command = itemClicked
374-
}
375-
...
372+
...
373+
FieldListener selection {
374+
command = itemClicked
375+
}
376+
...
376377
}
377378
```
378379
{{</highlight>}}

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/pythonscripting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Open the *.script* file and add a *Commands* section defining the name of the Py
8787
{{< highlight filename="IsoCSOs.script" >}}
8888
```Stan
8989
Commands {
90-
source = $(LOCAL)/mytest.py
90+
source = $(LOCAL)/mytest.py
9191
}
9292
```
9393
{{</highlight>}}

0 commit comments

Comments
 (0)