-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSignatures App custom colors.mtd
630 lines (629 loc) · 29 KB
/
Signatures App custom colors.mtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
<?xml version="1.0" encoding="UTF-8"?>
<MobileTogetherDesign versionClient="51" versionServer="51" deploymentPath_so="/public/Signatures App" deploymentDescription_so="60519 13:57 -- This app collects and records signatures in a file stored on your MobileTogether Server and lets users review them on the mobile device. The app demonstrates how to resize and standardize signature colors for review even if they were captured on a different platform." deploymentGlobalResourceConfig_so="Default">
<DesignRoot id="6">
<style workflowIcon="sign.png"/>
<children>
<DesignPage id="7" name="Signatures App">
<children>
<DesignLabel id="339">
<style align="center" margin="4px" multiLine="1" name="Label1" text="Signature Demo App" textSize="large" weight="1"/>
</DesignLabel>
<DesignLabel id="340">
<style margin="4px" multiLine="1" name="Label2" text_x="'This app collects and records signatures in a file stored on your MobileTogether Server and lets users review them on the mobile device. The app demonstrates how to resize and standardize signature colors for review even if they were captured on a different platform.
Try it for yourself!'" textSize="large"/>
</DesignLabel>
<DesignButton id="1">
<style align="center" backgroundColor="#D7D7DB" margin="20px" name="Capture Button" text="Capture New Signature" textColor="blue" textSize="large" weight="1"/>
<controlActions id="8">
<children>
<DesignActionGotoSubpage id="593" showLoadSubpageMsg="0" showCloseSubpageMsg="0" pageRef="19"/>
</children>
</controlActions>
</DesignButton>
<DesignButton id="4">
<style align="center" backgroundColor="#D7D7DB" margin="20px" name="Review Button" text="View Signatures" textColor="blue" textSize="large" weight="1"/>
<controlActions id="5">
<children>
<DesignActionGotoSubpage id="247" showLoadSubpageMsg="0" showCloseSubpageMsg="0" pageRef="138"/>
</children>
</controlActions>
</DesignButton>
</children>
<onPageLoadActions id="16">
<children>
<DesignActionGroupRef id="334" groupRef="115"/>
<DesignActionGroupRef id="497" groupRef="498"/>
</children>
</onPageLoadActions>
<xmlRoots>
<PageXMLRootRef id="229" refXMLRoot="102"/>
</xmlRoots>
</DesignPage>
<DesignPage id="19" subPage="1" name="Capture Signature">
<children>
<DesignLabel id="394">
<style marginBottom="4px" marginTop="4px" name="Label1" text="Sign here:" textSize="large" weight="1"/>
</DesignLabel>
<DesignSignatureField id="86" pageXML="105">
<style align="center" backgroundColor_x="$PERSISTENT/Root/canvas_color" name="Signature Field1" textColor_x="$PERSISTENT/Root/ink_color"/>
<ImgFileSettings id="87" imgSrcType="base64"/>
</DesignSignatureField>
<DesignTable id="390">
<style name="Table1" visible_x="string-length( $PERSISTENT/Root/temp_signature ) > 0"/>
<children>
<DesignTableCol id="391"/>
<DesignTableCol id="392"/>
<DesignTableRow id="393">
<children>
<DesignButton id="381">
<style align="center" backgroundColor="#D7D7DB" margin="10px" multiLine="1" name="Save Button" text="Save Signature" textColor="blue" textSize="large" weight="1"/>
<controlActions id="382">
<children>
<DesignActionGroupRef id="592" groupRef="130"/>
<DesignActionGroupRef id="589" groupRef="100"/>
<DesignActionReturnFromSubpage id="590"/>
</children>
</controlActions>
</DesignButton>
<DesignButton id="88">
<style align="center" backgroundColor="#D7D7DB" margin="10px" multiLine="1" name="Reject Button" text="Clear Signature" textColor="blue" textSize="large" weight="1"/>
<controlActions id="89">
<children>
<DesignActionGroupRef id="110" groupRef="100"/>
</children>
</controlActions>
</DesignButton>
</children>
</DesignTableRow>
</children>
</DesignTable>
<DesignButton id="653">
<style align="center" backgroundColor="#D7D7DB" margin="20px" name="Customize Colors Button" text="Customize Colors" textColor="blue" textSize="large" visible_x="string-length( $PERSISTENT/Root/temp_signature ) = 0" weight="1"/>
<controlActions id="654">
<children>
<DesignActionGotoSubpage id="657" showLoadSubpageMsg="0" showCloseSubpageMsg="0" pageRef="546"/>
</children>
</controlActions>
</DesignButton>
</children>
<onPageLoadActions id="23">
<children>
<DesignActionGroupRef id="275" groupRef="100"/>
<DesignActionGroupRef id="335" groupRef="333"/>
</children>
</onPageLoadActions>
<onBackButtonActions id="25">
<children>
<DesignActionGroupRef id="113" groupRef="100"/>
<DesignActionReturnFromSubpage id="114"/>
</children>
</onBackButtonActions>
<xmlRoots>
<PageXMLRootRef id="99" refXMLRoot="102"/>
</xmlRoots>
</DesignPage>
<DesignPage id="138" subPage="1" name="Review Signatures">
<children>
<DesignLabel id="352">
<style marginBottom="4px" marginLeft="2px" multiLine="1" name="Label14" text="Colors for this Device:" textSize="large" weight="1"/>
</DesignLabel>
<DesignSignatureField id="399" pageXML="105">
<style align="center" enabled="0" imageAntiAliasing="0" name="Signature Field 2" width="fill_parent"/>
<ImgFileSettings id="401" imgSrcType="base64"/>
</DesignSignatureField>
<DesignButton id="406">
<style align="center" backgroundColor="#D7D7DB" margin="20px" name="Next Button" text="Next Signature" textColor="blue" textSize="large" visible_x="$PERSISTENT/Root/current_review > 1" weight="1"/>
<controlActions id="407">
<children>
<DesignActionGroupRef id="410" groupRef="100"/>
<DesignActionUpdateNode id="411" updAt="$PERSISTENT/Root/current_review" resOf="$PERSISTENT/Root/current_review - 1"/>
<DesignActionUpdateNode id="412" updAt="$PERSISTENT/Root/temp_signature" resOf="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ]/signature"/>
<DesignActionCondition id="413" condition="$PERSISTENT/Root/current_review > 0">
<children>
<DesignActionConditionTrue id="414">
<children>
<DesignActionGroupRef id="415" groupRef="294"/>
</children>
</DesignActionConditionTrue>
</children>
</DesignActionCondition>
</children>
</controlActions>
</DesignButton>
<DesignLabel id="416">
<style align="center" marginTop="20px" name="Label9" text_x="'No more signatures on file.'" textColor="red" textSize="large" underline="0" visible_x="( count($XML1/collection/example) = 0 ) or ( $PERSISTENT/Root/current_review = 1 )" weight="1"/>
<controlActions id="417">
<children>
<DesignActionGroupRef id="420" groupRef="100"/>
<DesignActionReturnFromSubpage id="421"/>
</children>
</controlActions>
</DesignLabel>
<DesignLabel id="422">
<style marginBottom="4px" marginLeft="2px" marginTop="4px" multiLine="1" name="Label15" text="Signature as Captured:" textSize="large" visible_x="( $PERSISTENT/Root/current_review > 0 )" weight="1"/>
</DesignLabel>
<DesignTable id="165">
<style name="Table1" visible_x="( $PERSISTENT/Root/current_review > 0 )"/>
<children>
<DesignTableCol id="166"/>
<DesignTableCol id="167"/>
<DesignTableRow id="168">
<children>
<DesignLabel id="169">
<style marginBottom="2px" name="Label1" text="Platform"/>
</DesignLabel>
<DesignLabel id="159">
<style align="center" marginBottom="2px" name="Label5" text_x="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ]/device_platform"/>
</DesignLabel>
</children>
</DesignTableRow>
<DesignTableRow id="176">
<children>
<DesignLabel id="177">
<style marginBottom="2px" name="Label2" text="Orientation"/>
</DesignLabel>
<DesignLabel id="160">
<style align="center" marginBottom="2px" name="Label6" text_x="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ] /current_orientation"/>
</DesignLabel>
</children>
</DesignTableRow>
<DesignTableRow id="184">
<children>
<DesignLabel id="185">
<style marginBottom="2px" name="Label3" text="Device X dimension"/>
</DesignLabel>
<DesignLabel id="161">
<style align="center" marginBottom="2px" name="Label7" text_x="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ] /device_X_dimension"/>
</DesignLabel>
</children>
</DesignTableRow>
<DesignTableRow id="192">
<children>
<DesignLabel id="193">
<style marginBottom="2px" name="Label4" text="Device Y dimension"/>
</DesignLabel>
<DesignLabel id="162">
<style align="center" marginBottom="2px" name="Label8" text_x="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ]/device_Y_dimension"/>
</DesignLabel>
</children>
</DesignTableRow>
<DesignTableRow id="280">
<children>
<DesignLabel id="281">
<style marginBottom="2px" name="Label10" text="Background Color"/>
</DesignLabel>
<DesignLabel id="299">
<style align="center" marginBottom="2px" name="Label12" text_x="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ]/captured_block_color"/>
</DesignLabel>
</children>
</DesignTableRow>
<DesignTableRow id="286">
<children>
<DesignLabel id="287">
<style marginBottom="2px" name="Label11" text="Foreground Color"/>
</DesignLabel>
<DesignLabel id="300">
<style align="center" marginBottom="2px" name="Label13" text_x="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ]/captured_signature_color"/>
</DesignLabel>
</children>
</DesignTableRow>
<DesignTableRow id="652">
<children>
<DesignLabel id="648">
<style marginBottom="2px" name="Label16" text="Capture Date"/>
</DesignLabel>
<DesignLabel id="650">
<style align="center" dtFormat="[M]-[D]-[Y]" marginBottom="2px" name="Label17" text_x="$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review ) ]/capture_date"/>
</DesignLabel>
</children>
</DesignTableRow>
</children>
</DesignTable>
<DesignVSpace id="425">
<style name="Space1"/>
</DesignVSpace>
<DesignSignatureField id="355" pageXML="363">
<style align="center" enabled="0" imageAntiAliasing="0" name="Signature Field 3" visible_x="( $PERSISTENT/Root/current_review > 0 )" width="fill_parent"/>
<ImgFileSettings id="357" imgSrcType="base64"/>
</DesignSignatureField>
</children>
<onPageLoadActions id="178">
<children>
<DesignActionLoadSaveFile id="376" needsServer="1" xmlRootRef="102">
<FileSettings so="1" id="377" url="signatures_file.xml" deployable_so="658" createDirs="0"/>
</DesignActionLoadSaveFile>
<DesignActionGroupRef id="613" groupRef="238"/>
<DesignActionUpdateNode id="611" updAt="$PERSISTENT/Root/current_review" resOf="$PERSISTENT/Root/signatures_count"/>
<DesignActionUpdateNode id="612" updAt="$PERSISTENT/Root/temp_signature,
$PERSISTENT/Root/raw_signature_for_display" resOf="$XML1/collection/example[last()]/signature"/>
<DesignActionGroupRef id="580" groupRef="498"/>
<DesignActionGroupRef id="315" groupRef="294"/>
</children>
</onPageLoadActions>
<onBackButtonActions id="149">
<children>
<DesignActionGroupRef id="150" groupRef="100"/>
<DesignActionCondition id="645" condition="$PERSISTENT/Root/Custom_F_choice = 'default'">
<children>
<DesignActionConditionTrue id="646">
<children>
<DesignActionUpdateNode id="629" updAt="$PERSISTENT/Root/ink_color" resOf="$PERSISTENT/Root/device_signature_color"/>
</children>
</DesignActionConditionTrue>
<DesignActionConditionFalse id="647">
<children>
<DesignActionUpdateNode id="630" updAt="$PERSISTENT/Root/ink_color" resOf="$PERSISTENT/Root/Custom_F_choice"/>
</children>
</DesignActionConditionFalse>
</children>
</DesignActionCondition>
<DesignActionCondition id="640" condition="$PERSISTENT/Root/Custom_B_choice = 'default'">
<children>
<DesignActionConditionTrue id="641">
<children>
<DesignActionUpdateNode id="642" updAt="$PERSISTENT/Root/canvas_color" resOf="$PERSISTENT/Root/device_block_color"/>
</children>
</DesignActionConditionTrue>
<DesignActionConditionFalse id="643">
<children>
<DesignActionUpdateNode id="644" updAt="$PERSISTENT/Root/canvas_color" resOf="$PERSISTENT/Root/Custom_B_choice"/>
</children>
</DesignActionConditionFalse>
</children>
</DesignActionCondition>
<DesignActionReturnFromSubpage id="635"/>
</children>
</onBackButtonActions>
<xmlRoots>
<PageXMLRootRef id="142" refXMLRoot="102"/>
</xmlRoots>
</DesignPage>
<DesignPage id="546" subPage="1" name="Customize Colors">
<children>
<DesignLabel id="605">
<style margin="4px" marginBottom="8px" multiLine="1" name="Label4" text="Choose colors for new captured signatures:"/>
</DesignLabel>
<DesignTable id="512">
<style name="Table1"/>
<children>
<DesignTableCol id="513">
<style colWidth="40%"/>
</DesignTableCol>
<DesignTableCol id="514"/>
<DesignTableCol id="515">
<style colWidth="40%"/>
</DesignTableCol>
<DesignTableRow id="573">
<children>
<DesignLabel id="567">
<style align="center" name="Label1" text="Canvas" weight="1"/>
</DesignLabel>
<DesignTableCellEmpty id="575"/>
<DesignLabel id="571">
<style align="center" name="Label2" text="Ink" weight="1"/>
</DesignLabel>
</children>
</DesignTableRow>
<DesignTableRow id="516">
<children>
<DesignCombo id="517" pageXML="430" comboEntryVisValues="1">
<style align="center" marginBottom="6px" marginTop="6px" multiLine="1" name="Combo Box1"/>
<controlActions id="518">
<children>
<DesignActionCondition id="519" condition="$PERSISTENT/Root/Custom_B_choice = 'default'">
<children>
<DesignActionConditionTrue id="520">
<children>
<DesignActionUpdateNode id="521" updAt="$PERSISTENT/Root/canvas_color" resOf="$PERSISTENT/Root/device_block_color"/>
</children>
</DesignActionConditionTrue>
<DesignActionConditionFalse id="522">
<children>
<DesignActionUpdateNode id="523" updAt="$PERSISTENT/Root/canvas_color" resOf="$PERSISTENT/Root/Custom_B_choice"/>
</children>
</DesignActionConditionFalse>
</children>
</DesignActionCondition>
</children>
</controlActions>
<comboEntry desc="Default" value="default"/>
<comboEntry desc="Blue" value="#0000FF"/>
<comboEntry desc="Green" value="#009900"/>
<comboEntry desc="Yellow" value="#FFFF00"/>
<comboEntry desc="Orange" value="#FF9900"/>
<comboEntry desc="Red" value="#FF0000"/>
<comboEntry desc="Purple" value="#990099"/>
<comboEntry desc="White" value="#FFFFFF"/>
<comboEntry desc="Black" value="#000000"/>
<comboEntry desc="Gray" value="#9C9C9C"/>
</DesignCombo>
<DesignTableCellEmpty id="528"/>
<DesignCombo id="529" pageXML="447" comboEntryVisValues="1">
<style align="center" marginBottom="6px" marginTop="6px" multiLine="1" name="Combo Box2"/>
<controlActions id="530">
<children>
<DesignActionCondition id="531" condition="$PERSISTENT/Root/Custom_F_choice = 'default'">
<children>
<DesignActionConditionTrue id="532">
<children>
<DesignActionUpdateNode id="533" updAt="$PERSISTENT/Root/ink_color" resOf="$PERSISTENT/Root/device_signature_color"/>
</children>
</DesignActionConditionTrue>
<DesignActionConditionFalse id="534">
<children>
<DesignActionUpdateNode id="535" updAt="$PERSISTENT/Root/ink_color" resOf="$PERSISTENT/Root/Custom_F_choice"/>
</children>
</DesignActionConditionFalse>
</children>
</DesignActionCondition>
</children>
</controlActions>
<comboEntry desc="Default" value="default"/>
<comboEntry desc="Blue" value="#0000FF"/>
<comboEntry desc="Green" value="#009900"/>
<comboEntry desc="Yellow" value="#FFFF00"/>
<comboEntry desc="Orange" value="#FF9900"/>
<comboEntry desc="Red" value="#FF0000"/>
<comboEntry desc="Purple" value="#990099"/>
<comboEntry desc="White" value="#FFFFFF"/>
<comboEntry desc="Black" value="#000000"/>
<comboEntry desc="Gray" value="#9C9C9C"/>
</DesignCombo>
</children>
</DesignTableRow>
<DesignTableRow id="540">
<children>
<DesignHLine id="541">
<style lcLineWidth="50px" lineColor_x="if
( $PERSISTENT/Root/Custom_B_choice = 'default' )
then
$PERSISTENT/Root/device_block_color
else
$PERSISTENT/Root/Custom_B_choice" marginBottom="6px" marginTop="6px" name="Horizontal Line1"/>
</DesignHLine>
<DesignTableCellEmpty id="543"/>
<DesignHLine id="544">
<style lcLineWidth="50px" lineColor_x="if
( $PERSISTENT/Root/Custom_F_choice = 'default' )
then
$PERSISTENT/Root/device_signature_color
else
$PERSISTENT/Root/Custom_F_choice" marginBottom="6px" marginTop="6px" name="Horizontal Line2"/>
</DesignHLine>
</children>
</DesignTableRow>
</children>
</DesignTable>
</children>
<onBackButtonActions id="554">
<children>
<DesignActionCondition id="602" condition="$PERSISTENT/Root/canvas_color =
$PERSISTENT/Root/ink_color">
<children>
<DesignActionConditionTrue id="603">
<children>
<DesignActionMessageBox id="600" msgBoxTitle="'Colors match'" msgBoxMsg="'Please choose different a color for Ink or Canvas'">
<children>
<DesignActionMessageBoxButton id="601"/>
</children>
</DesignActionMessageBox>
</children>
</DesignActionConditionTrue>
<DesignActionConditionFalse id="604">
<children>
<DesignActionReturnFromSubpage id="599"/>
</children>
</DesignActionConditionFalse>
</children>
</DesignActionCondition>
</children>
</onBackButtonActions>
</DesignPage>
</children>
</DesignRoot>
<ActionGroupRoot id="30">
<children>
<DesignActionGroup id="115" name="Get Device Info">
<children>
<DesignActionUpdateNode id="196" updAt="$PERSISTENT/Root/device_platform" resOf="if ( $MT_Android ) then 'Android'
else if ( $MT_iOS ) then 'iOS'
else if ($MT_WindowsPhone) then 'Windows Phone'
else if ($MT_Windows) then 'Windows App'
else if ( $MT_Browser ) then 'Web Browser'
else 'Unknown'"/>
<DesignActionUpdateNode id="117" updAt="$PERSISTENT/Root/device_X_dimension" resOf="$MT_CanvasX"/>
<DesignActionUpdateNode id="118" updAt="$PERSISTENT/Root/device_Y_dimension" resOf="$MT_CanvasY"/>
<DesignActionUpdateNode id="617" updAt="$PERSISTENT/Root/device_block_color,
$PERSISTENT/Root/canvas_color" resOf="mt-invert-color( $MT_PageBackgroundColor )"/>
<DesignActionUpdateNode id="618" updAt="$PERSISTENT/Root/device_signature_color,
$PERSISTENT/Root/ink_color" resOf="$MT_PageBackgroundColor"/>
<DesignActionUpdateNode id="619" updAt="$PERSISTENT/Root/Custom_B_choice,
$PERSISTENT/Root/Custom_F_choice" resOf="'default'"/>
</children>
</DesignActionGroup>
<DesignActionGroup id="333" name="Get Page Info">
<children>
<DesignActionUpdateNode id="330" updAt="$PERSISTENT/Root/current_orientation" resOf="if ($MT_Portrait) then 'Portrait' else 'Landscape'"/>
</children>
</DesignActionGroup>
<DesignActionGroup id="100" name="Erase Signature">
<children>
<DesignActionUpdateNode id="270" updAt="$PERSISTENT/Root/temp_signature,
$PERSISTENT/Root/raw_signature_for_display,
$PERSISTENT/Root/current_orientation" resOf="''"/>
</children>
</DesignActionGroup>
<DesignActionGroup id="130" name="Save Signature">
<children>
<DesignActionUpdateNode id="378" updAt="$PERSISTENT/Root/current_orientation" resOf="if ($MT_Portrait) then 'Portrait' else 'Landscape'"/>
<DesignActionLoadSaveFile id="379" needsServer="1" xmlRootRef="102">
<FileSettings so="1" id="380" url="signatures_file.xml" deployable_so="658" createDirs="0"/>
</DesignActionLoadSaveFile>
<DesignActionAppendNode id="131" appAt="$XML1/collection" resOf="<example>
<signature>{ data($PERSISTENT/Root/temp_signature) }</signature>
{ $PERSISTENT/Root/device_platform }
{ $PERSISTENT/Root/current_orientation }
{ $PERSISTENT/Root/device_X_dimension }
{ $PERSISTENT/Root/device_Y_dimension }
<captured_signature_color>{ data($PERSISTENT/Root/ink_color) }</captured_signature_color>
<captured_block_color>{ data($PERSISTENT/Root/canvas_color) }</captured_block_color>
<capture_date>{ current-date-no-TZ() }</capture_date>
</example>"/>
<DesignActionLoadSaveFile id="226" needsServer="1" xmlRootRef="102" load="0">
<FileSettings so="1" id="227" url="signatures_file.xml"/>
</DesignActionLoadSaveFile>
</children>
</DesignActionGroup>
<DesignActionGroup id="238" name="Get Signature Count">
<children>
<DesignActionUpdateNode id="239" updAt="$PERSISTENT/Root/signatures_count" resOf="count($XML1/collection/example)"/>
</children>
</DesignActionGroup>
<DesignActionGroup id="294" name="Set Review Colors">
<children>
<DesignActionCondition id="368" condition="$PERSISTENT/Root/current_review > 0">
<children>
<DesignActionConditionTrue id="369">
<children>
<DesignActionCondition id="373" condition="($XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review)]/captured_signature_color != $PERSISTENT/Root/device_signature_color
or
$XML1/collection/example[ xs:integer( $PERSISTENT/Root/current_review)]/captured_block_color != $PERSISTENT/Root/device_block_color )">
<children>
<DesignActionConditionTrue id="374">
<children>
<DesignActionUpdateNode id="371" updAt="$PERSISTENT/Root/temp_signature" resOf="mt-change-image-colors(
( ReviewExample()/signature ),
(
ReviewExample()/captured_signature_color ,
ReviewExample()/captured_block_color
) ,
(
$PERSISTENT/Root/device_signature_color,
$PERSISTENT/Root/device_block_color
),
$PERSISTENT/Root/quality_factor )"/>
</children>
</DesignActionConditionTrue>
</children>
</DesignActionCondition>
<DesignActionUpdateNode id="367" updAt="$PERSISTENT/Root/raw_signature_for_display" resOf="ReviewExample()/signature"/>
</children>
</DesignActionConditionTrue>
</children>
</DesignActionCondition>
</children>
</DesignActionGroup>
<DesignActionGroup id="498" name="Set Colors to default">
<children>
<DesignActionUpdateNode id="499" updAt="$PERSISTENT/Root/device_block_color,
$PERSISTENT/Root/canvas_color" resOf="mt-invert-color( $MT_PageBackgroundColor )"/>
<DesignActionUpdateNode id="500" updAt="$PERSISTENT/Root/device_signature_color,
$PERSISTENT/Root/ink_color" resOf="$MT_PageBackgroundColor"/>
</children>
</DesignActionGroup>
</children>
</ActionGroupRoot>
<XPathFunctionsRoot id="207">
<children>
<DesignXPathFunction id="405" xpath="declare function ReviewExample()
{
$XML1/collection/example[ number ($PERSISTENT/Root/current_review) ]
}"/>
</children>
</XPathFunctionsRoot>
<PageXMLNamespaceRoot id="37">
<children>
<PageXMLNamespace id="38" defNS="1"/>
</children>
</PageXMLNamespaceRoot>
<PageXMLPersistentRoot id="39" name="PERSISTENT">
<children>
<PageXMLElement id="40" name="Root">
<children>
<PageXMLElement id="106" name="device_platform" mustExist="1"/>
<PageXMLElement id="108" name="device_X_dimension" mustExist="1"/>
<PageXMLElement id="109" name="device_Y_dimension" mustExist="1"/>
<PageXMLElement id="308" name="device_signature_color" mustExist="1"/>
<PageXMLElement id="309" name="device_block_color" mustExist="1"/>
<PageXMLElement id="107" name="current_orientation" mustExist="1"/>
<PageXMLElement id="105" name="temp_signature" mustExist="1" default="''"/>
<PageXMLElement id="363" name="raw_signature_for_display" mustExist="1"/>
<PageXMLElement id="240" name="signatures_count" mustExist="1" default="1"/>
<PageXMLElement id="241" name="current_review" mustExist="1" default="1"/>
<PageXMLElement id="404" name="quality_factor" mustExist="1" default="100"/>
<PageXMLElement id="426" name="canvas_color" mustExist="1" default="#9C9C9C"/>
<PageXMLElement id="427" name="ink_color" mustExist="1" default="#000000"/>
<PageXMLElement id="430" name="Custom_B_choice" mustExist="1" default="default"/>
<PageXMLElement id="447" name="Custom_F_choice" mustExist="1" default="default"/>
</children>
</PageXMLElement>
</children>
</PageXMLPersistentRoot>
<PageXMLRoots id="36">
<children>
<PageXMLRootXML id="102" name="XML1" hasUrl="1">
<children>
<PageXMLElement id="120" name="collection"/>
</children>
<DefaultFile so="1" id="189" url="signatures_file.xml" deployable_so="658" createDirs="0"/>
</PageXMLRootXML>
</children>
</PageXMLRoots>
<WorkflowRoot id="33">
<children>
<WorkflowPageRef id="34" page="7"/>
</children>
</WorkflowRoot>
<GlobalVariables id="41">
<children>
<GlobalVariable id="42" sysVar="MT_Android" idxIcon_so="0"/>
<GlobalVariable id="43" sysVar="MT_iOS" idxIcon_so="1"/>
<GlobalVariable id="44" sysVar="MT_Browser" idxIcon_so="2"/>
<GlobalVariable id="45" sysVar="MT_iPad" idxIcon_so="3"/>
<GlobalVariable id="46" sysVar="MT_Windows" idxIcon_so="6"/>
<GlobalVariable id="47" sysVar="MT_WindowsPhone" idxIcon_so="7"/>
<GlobalVariable id="48" sysVar="MT_DeviceWidth"/>
<GlobalVariable id="49" sysVar="MT_DeviceHeight"/>
<GlobalVariable id="50" sysVar="MT_DPIX"/>
<GlobalVariable id="51" sysVar="MT_DPIY"/>
<GlobalVariable id="52" sysVar="MT_Landscape" idxIcon_so="4"/>
<GlobalVariable id="53" sysVar="MT_Portrait" idxIcon_so="5"/>
<GlobalVariable id="54" sysVar="MT_CanvasX"/>
<GlobalVariable id="55" sysVar="MT_CanvasY"/>
<GlobalVariable id="56" sysVar="MT_ClientLanguage"/>
<GlobalVariable id="57" sysVar="MT_TelephonyAvailable" idxIcon_so="20"/>
<GlobalVariable id="58" sysVar="MT_SMSAvailable" idxIcon_so="21"/>
<GlobalVariable id="59" sysVar="MT_ButtonTextColor"/>
<GlobalVariable id="60" sysVar="MT_ButtonBackgroundColor"/>
<GlobalVariable id="61" sysVar="MT_EditFieldTextColor"/>
<GlobalVariable id="62" sysVar="MT_EditFieldBackgroundColor"/>
<GlobalVariable id="63" sysVar="MT_LabelTextColor"/>
<GlobalVariable id="64" sysVar="MT_LabelBackgroundColor"/>
<GlobalVariable id="65" sysVar="MT_PageBackgroundColor"/>
<GlobalVariable id="66" sysVar="MT_FirstPageLoad"/>
<GlobalVariable id="67" sysVar="MT_TargetNode"/>
<GlobalVariable id="68" sysVar="MT_ControlKind"/>
<GlobalVariable id="69" sysVar="MT_ControlName"/>
<GlobalVariable id="70" sysVar="MT_ControlNode"/>
<GlobalVariable id="71" sysVar="MT_PageName"/>
<GlobalVariable id="72" sysVar="MT_UserName"/>
<GlobalVariable id="73" sysVar="MT_UserRoles"/>
<GlobalVariable id="74" sysVar="MT_ControlValue"/>
<GlobalVariable id="75" sysVar="MT_ControlValueBeforeChange"/>
<GlobalVariable id="76" sysVar="MT_SimulationMode"/>
<GlobalVariable id="77" sysVar="MT_DBExecute_Result"/>
<GlobalVariable id="78" sysVar="MT_CameraAvailable"/>
<GlobalVariable id="79" sysVar="MT_GeolocationAvailable"/>
<GlobalVariable id="80" sysVar="MT_InputParameters"/>
<GlobalVariable id="81" sysVar="MT_HTTPExecute_Result"/>
<GlobalVariable id="82" sysVar="MT_ServerConnectionErrorLocation"/>
<GlobalVariable id="242" sysVar="MT_IsAppStoreApp"/>
</children>
</GlobalVariables>
<DeployableFiles so="1" id="194">
<children>
<DeployableFile id="658"/>
</children>
</DeployableFiles>
<CustomerAppSettings so="1" id="32"/>
</MobileTogetherDesign>