-
Notifications
You must be signed in to change notification settings - Fork 0
/
Application.ewu.bak
2466 lines (2069 loc) · 66.5 KB
/
Application.ewu.bak
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
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
$version 11.00
$rect <80,410,250,450>
$output false
class SlidingTempo : Core::Group
{
$rect <500,10,700,50>
inherited property Bounds = <0,0,480,272>;
$rect <20,20,160,60>
object Views::Image background
{
preset Bounds = <0,0,480,272>;
preset Bitmap = Res::MetronomeBackground;
preset Opacity = 255;
}
$rect <20,20,160,60>
object Views::Rectangle TransparentBackg
{
preset Bounds = <0,0,480,272>;
preset Color = #FFFFFF92;
}
$rect <20,20,160,60>
object Views::Text Text
{
preset Bounds = <174,16,291,61>;
preset String = "TEMPO";
preset Font = Res::FontBodoniLarge;
preset Color = #2864FFFF;
}
$rect <20,20,160,60>
object Views::Line Line
{
preset Point2 = <360,65>;
preset Point1 = <122,65>;
preset Color = #04208BFF;
}
$rect <20,20,160,60>
object WidgetSet::ValueDisplay ValueDisplay
{
preset Bounds = <195,120,285,170>;
preset Outlet = ^Application::Device.Tempo;
preset Unit = "";
preset Precision = 0;
preset CurrentBias = 0.0;
preset Appearance = WidgetSet::ValueDisplay_Large;
}
$rect <20,20,160,60>
object WidgetSet::RotaryKnob RotaryKnob
{
preset Bounds = <154,65,314,225>;
preset Outlet = ^Application::Device.Tempo;
preset StepSize = 5;
preset MaxValue = 150;
preset MinValue = 30;
preset Appearance = Application::RotaryMinConfig;
}
$rect <20,20,160,60>
object WidgetSet::HorizontalSlider HorizontalSlider
{
preset Bounds = <140,215,340,265>;
preset Outlet = ^Application::Device.Tempo;
preset StepSize = 5;
preset MaxValue = 150;
preset MinValue = 30;
preset Appearance = Application::MyHorizontalSliderConfig;
}
}
$rect <80,370,250,410>
$output false
class SlidingBeat : Core::Group
{
$rect <510,0,710,40>
inherited property Bounds = <0,0,480,272>;
$rect <20,20,160,60>
object Views::Image background
{
preset Bounds = <0,0,480,272>;
preset Bitmap = Res::MetronomeBackground;
preset Opacity = 255;
}
$rect <20,20,160,60>
object Views::Rectangle TransparentBackg
{
preset Bounds = <0,0,480,272>;
preset Color = #FFFFFF92;
}
$rect <20,20,160,60>
object Views::Text Text
{
preset Bounds = <190,24,290,54>;
preset String = "BEAT";
preset Font = Res::FontBodoniLarge;
preset Color = #2864FFFF;
}
$rect <20,20,160,60>
object Views::Line Line
{
preset Point2 = <360,65>;
preset Point1 = <122,65>;
preset Color = #04208BFF;
}
$rect <20,20,160,60>
object WidgetSet::ValueDisplay ValueDisplay
{
preset Layout = Core::Layout[AlignToLeft, AlignToTop];
preset Bounds = <230,126,290,158>;
preset Outlet = ^Application::Device.Beat;
preset Unit = "";
preset Precision = 0;
preset Appearance = WidgetSet::ValueDisplay_Medium;
}
$rect <20,20,160,60>
object WidgetSet::RotaryKnob RotaryKnob
{
preset Bounds = <190,63,350,223>;
preset Outlet = ^Application::Device.Beat;
preset MaxValue = 8;
preset MinValue = 2;
preset Appearance = Application::RotaryMinConfig;
}
$rect <20,20,160,60>
object WidgetSet::VerticalSlider VerticalSlider
{
preset Bounds = <97,74,147,243>;
preset Outlet = ^Application::Device.Beat;
preset MaxValue = 8;
preset MinValue = 2;
preset Appearance = Application::MyVerticalSliderConfig;
}
}
$rect <80,330,250,370>
$output false
class SlidingMain : Core::Group
{
$rect <500,10,700,50>
inherited property Bounds = <0,0,480,272>;
$rect <20,20,160,60>
object Views::Image background
{
preset Bounds = <0,0,480,272>;
preset Bitmap = Res::MetronomeBackground;
preset Opacity = 250;
}
$rect <20,20,160,60>
object Views::Rectangle TransparentBackg
{
preset Bounds = <0,0,480,272>;
preset Color = #FFFFFF92;
}
$rect <20,20,160,60>
object WidgetSet::PushButton StartStop
{
preset Bounds = <205,86,275,156>;
preset Visible = true;
preset OnActivate = onStartPress;
preset Icon = Res::PlayIcon;
preset Label = "Caption";
preset Appearance = Application::PushButtonConfig;
}
$rect <20,20,160,60>
object WidgetSet::ValueDisplay TempoValue
{
preset Bounds = <11,97,128,129>;
preset Outlet = ^Application::Device.Tempo;
preset Unit = "";
preset Precision = 0;
preset Appearance = WidgetSet::ValueDisplay_Medium;
}
$rect <20,20,160,60>
object WidgetSet::ValueDisplay BeatValue
{
preset Bounds = <291,97,413,129>;
preset Outlet = ^Application::Device.Beat;
preset Unit = "";
preset Precision = 0;
preset Appearance = WidgetSet::ValueDisplay_Medium;
}
$rect <20,20,160,60>
object WidgetSet::RotaryKnob TempoRotaryKnob
{
preset Bounds = <7,25,167,185>;
preset Appearance = Application::RotaryMaxConfig;
}
$rect <20,20,160,60>
object WidgetSet::RotaryKnob BeatRotaryKnob
{
preset Bounds = <311,24,471,184>;
preset Appearance = Application::RotaryMinConfig;
}
$rect <30,370,230,410>
slot onStartPress
{
trace "Metronome Start";
Application::Device.Running = ! Application::Device.Running;
StartStop.Icon = Application::Device.Running ? Res::StopIcon : Res::PlayIcon;
}
$rect <20,20,160,60>
object Views::Text BeatTxt
{
preset Bounds = <36,207,154,237>;
preset ColorBL = #3A61D4FF;
preset String = "TEMPO";
preset Font = Res::FontBodoniLarge;
preset Color = #3A61D4FF;
preset Visible = true;
}
$rect <20,20,160,60>
object Views::Text TempoTxt
{
preset Bounds = <342,207,442,237>;
preset String = "BEAT";
preset Font = Res::FontBodoniLarge;
preset Color = #3A61D4FF;
preset Visible = true;
}
// Touch screen events
note group Note
{
attr Bounds = <10,310,260,510>;
}
}
// GUI components
note group Note
{
attr Bounds = <0,0,500,490>;
}
$rect <530,340,760,380>
$output false
class DeviceClass : Templates::DeviceClass
{
$rect <0,40,200,80>
inherited method Done()
{
// The following section is intended to perform de-initialization-related operations
// in the underlying device or middleware. Consequently, the section is taken in
// account only when generating code (not during prototyping).
$if !$prototyper
var object thisObject = this;
/*
TO DO:
The following native statement is intended to enclose code to communicate with
your device API. The variable 'thisObject' contains a pointer to the actually
de-initialized Application::DeviceClass object. Use the 'thisObject' pointer to
e.g. de-register the object from the middleware if you have registered it
beforehand.
*/
native ( thisObject )
{
/*
TO DO:
Depending on your application case you call functions of the underlying
middleware (or access the device directly) in order to perform the necessary
de-initialization steps. For example, you invoke some 'C' function:
YourDevice_DeInitialize();
IMPORTANT:
----------
The variable 'thisObject' represents the actually de-initialized instance of the
Application::DeviceClass. If you have stored this object at the initialization
time (in the 'Init' method) in some global C variable or registered it by the
middleware, it is important to perform now the opposite operation. Set the
global variable to NULL or de-register 'thisObject' object from the middleware.
*/
}
$endif
}
$rect <0,0,200,40>
inherited method Init()
{
// The following section is intended to perform initialization-related operations
// in the underlying device or middleware. Consequently, the section is taken in
// account only when generating code (not during prototyping).
$if !$prototyper
var object thisObject = this;
/*
TO DO:
The following native statement is intended to enclose code to communicate with
your device API. The variable 'thisObject' contains a pointer to the actually
initialized Application::DeviceClass object. Use the 'thisObject' pointer to
e.g. register the object by the middleware as receiver of events, etc.
*/
native ( thisObject )
{
/*
TO DO:
Depending on your application case you call functions of the underlying
middleware (or access the device directly) in order to perform the necessary
initialization steps. For example, you invoke some 'C' function:
YourDevice_Initialize();
The variable 'thisObject' represents the actually initialized instance of the
Application::DeviceClass. You can store this variable e.g. in the middleware
and use it whenever the middleware needs to notify the GUI application about
some state alternation or events. In this manner, the middleware will be able
to invoke methods of the interface device object.
For example, you can store 'thisObject' in some global C variable:
// Declaration of the global C variable
XObject theDeviceObject;
// Store the instance in the global variable
theDeviceObject = thisObject;
Later use the global variable e.g. to provide the GUI application with events:
ApplicationDeviceClass__TriggerSomeEvent( theDeviceObject );
IMPORTANT:
----------
If you store 'thisObject' for later use, don't forget to implement the opposite
operation in the method 'Done'. Concrete, 'Done' should set the global variable
again to the value NULL.
*/
}
$endif
}
$rect <200,90,400,130>
property bool Running;
$rect <600,90,800,130>
onget Running
{
// Per default return the value stored already in the property.
return pure Running;
/*
TO DO:
If the property should return the value stored in the underlying device
or in the middleware, remove the above 'return' statement and instead do
following:
Declare a local variable to receive the value from the underlying device.
The type of the variable has to correspond to the data type of the property.
For example in case of an 'int32' property:
var int32 result;
Implement a native statement to access the value and to store it in the
variable 'result'. Then return the value. For example:
$if !$prototyper
native ( result )
{
result = YourDevice_GetSomeValue();
}
$endif
return result;
*/
}
$rect <400,90,600,130>
onset Running
{
// The property doesn't change -> nothing to do.
if ( pure Running == value )
return;
// Remember the new value in the internal memory of the property.
pure Running = value;
// For target code generation you will use your specific device API
// to change the affected value.
$if !$prototyper
native ( value )
{
/*
TO DO:
You can call a function of your own device API or you simply
modify a variable existing in your middleware to reflect the
new value:
YourDevice_SetSomeValue( value );
or
YourDevice_SomeVariable = value;
*/
}
$endif
// Notify all associated property observers.
notifyobservers ^Running;
}
// This method is intended to be called by the device to notify the GUI application \
// about an alternation of its setting or state value.
$rect <0,90,200,130>
$output true
method void UpdateRunning( arg bool aNewValue )
{
// Only if the reported value does differ from the one stored currently in the property.
if ( aNewValue != pure Running )
{
// Remember the new value in the internal memory of the property.
pure Running = aNewValue;
// Notify all associated property observers.
notifyobservers ^Running;
}
}
$rect <200,130,400,170>
property int32 Beat;
$rect <600,130,800,170>
onget Beat
{
// Per default return the value stored already in the property.
return pure Beat;
/*
TO DO:
If the property should return the value stored in the underlying device
or in the middleware, remove the above 'return' statement and instead do
following:
Declare a local variable to receive the value from the underlying device.
The type of the variable has to correspond to the data type of the property.
For example in case of an 'int32' property:
var int32 result;
Implement a native statement to access the value and to store it in the
variable 'result'. Then return the value. For example:
$if !$prototyper
native ( result )
{
result = YourDevice_GetSomeValue();
}
$endif
return result;
*/
}
$rect <400,130,600,170>
onset Beat
{
// The property doesn't change -> nothing to do.
if ( pure Beat == value )
return;
// Remember the new value in the internal memory of the property.
pure Beat = value;
// For target code generation you will use your specific device API
// to change the affected value.
$if !$prototyper
native ( value )
{
/*
TO DO:
You can call a function of your own device API or you simply
modify a variable existing in your middleware to reflect the
new value:
YourDevice_SetSomeValue( value );
or
YourDevice_SomeVariable = value;
*/
}
$endif
// Notify all associated property observers.
notifyobservers ^Beat;
}
// This method is intended to be called by the device to notify the GUI application \
// about an alternation of its setting or state value.
$rect <0,130,200,170>
$output true
method void UpdateBeat( arg int32 aNewValue )
{
// Only if the reported value does differ from the one stored currently in the property.
if ( aNewValue != pure Beat )
{
// Remember the new value in the internal memory of the property.
pure Beat = aNewValue;
// Notify all associated property observers.
notifyobservers ^Beat;
}
}
$rect <200,170,400,210>
property int32 Tempo;
$rect <600,170,800,210>
onget Tempo
{
// Per default return the value stored already in the property.
return pure Tempo;
/*
TO DO:
If the property should return the value stored in the underlying device
or in the middleware, remove the above 'return' statement and instead do
following:
Declare a local variable to receive the value from the underlying device.
The type of the variable has to correspond to the data type of the property.
For example in case of an 'int32' property:
var int32 result;
Implement a native statement to access the value and to store it in the
variable 'result'. Then return the value. For example:
$if !$prototyper
native ( result )
{
result = YourDevice_GetSomeValue();
}
$endif
return result;
*/
}
$rect <400,170,600,210>
onset Tempo
{
// The property doesn't change -> nothing to do.
if ( pure Tempo == value )
return;
// Remember the new value in the internal memory of the property.
pure Tempo = value;
// For target code generation you will use your specific device API
// to change the affected value.
$if !$prototyper
native ( value )
{
/*
TO DO:
You can call a function of your own device API or you simply
modify a variable existing in your middleware to reflect the
new value:
YourDevice_SetSomeValue( value );
or
YourDevice_SomeVariable = value;
*/
}
$endif
// Notify all associated property observers.
notifyobservers ^Tempo;
}
// This method is intended to be called by the device to notify the GUI application \
// about an alternation of its setting or state value.
$rect <0,170,200,210>
$output true
method void UpdateTempo( arg int32 aNewValue )
{
// Only if the reported value does differ from the one stored currently in the property.
if ( aNewValue != pure Tempo )
{
// Remember the new value in the internal memory of the property.
pure Tempo = aNewValue;
// Notify all associated property observers.
notifyobservers ^Tempo;
}
}
$rect <200,220,400,260>
property int32 GUIStyle;
$rect <600,220,800,260>
onget GUIStyle
{
// Per default return the value stored already in the property.
return pure GUIStyle;
/*
TO DO:
If the property should return the value stored in the underlying device
or in the middleware, remove the above 'return' statement and instead do
following:
Declare a local variable to receive the value from the underlying device.
The type of the variable has to correspond to the data type of the property.
For example in case of an 'int32' property:
var int32 result;
Implement a native statement to access the value and to store it in the
variable 'result'. Then return the value. For example:
$if !$prototyper
native ( result )
{
result = YourDevice_GetSomeValue();
}
$endif
return result;
*/
}
$rect <400,220,600,260>
onset GUIStyle
{
// The property doesn't change -> nothing to do.
if ( pure GUIStyle == value )
return;
// Remember the new value in the internal memory of the property.
pure GUIStyle = value;
// For target code generation you will use your specific device API
// to change the affected value.
$if !$prototyper
native ( value )
{
/*
TO DO:
You can call a function of your own device API or you simply
modify a variable existing in your middleware to reflect the
new value:
YourDevice_SetSomeValue( value );
or
YourDevice_SomeVariable = value;
*/
}
$endif
// Notify all associated property observers.
notifyobservers ^GUIStyle;
}
}
$rect <530,440,760,480>
autoobject Application::DeviceClass Device;
$rect <530,390,760,430>
$variant $prototyper
vclass DeviceClassForPrototype : Application::DeviceClass
{
$rect <20,110,220,150>
inherited onset Running
{
super(value);
if(value)
trace "Started." ;
else
trace "Stop." ;
}
$rect <10,10,160,50>
inherited onset Beat
{
super(value);
trace "Beat set to " , value;
}
$rect <0,60,160,100>
inherited onset Tempo
{
super(value);
trace "Tempo set ", value;
}
}
// Device
note group Note2
{
attr Bounds = <510,300,800,490>;
}
$rect <830,140,1090,180>
$output false
autoobject WidgetSet::HorizontalSliderConfig MyHorizontalSliderConfig
{
preset ThumbTintActive = #4A4EFFFF;
preset ThumbTintDefault = #141547FF;
preset ThumbActive = Res::ThumbIcon;
preset ThumbDefault = Res::ThumbIcon;
preset TrackRightTintActive = #B8B5E7E1;
preset TrackRightTintDefault = #B8B5E7FF;
preset TrackRightActive = Res::TrackHorizontal;
preset TrackRightDefault = Res::TrackHorizontal;
preset TrackLeftTintActive = #4A4EFFFF;
preset TrackLeftTintDefault = #141547FF;
preset TrackLeftActive = Res::TrackHorizontal;
preset TrackLeftDefault = Res::TrackHorizontal;
}
$rect <830,180,1090,220>
$output false
autoobject WidgetSet::VerticalSliderConfig MyVerticalSliderConfig
{
preset ThumbTintActive = #4A4EFFFF;
preset ThumbTintDefault = #141547FF;
preset ThumbActive = Res::ThumbIcon;
preset ThumbDefault = Res::ThumbIcon;
preset TrackAboveTintActive = #BCBDFFB3;
preset TrackAboveTintDefault = #BCBDFFFF;
preset TrackAboveActive = Res::TrackVertical;
preset TrackAboveDefault = Res::TrackVertical;
preset TrackBelowTintActive = #4A4EFFFF;
preset TrackBelowTintDefault = #141547FF;
preset TrackBelowActive = Res::TrackVertical;
preset TrackBelowDefault = Res::TrackVertical;
}
$rect <830,50,1090,90>
$output false
autoobject WidgetSet::RotaryKnobConfig RotaryMaxConfig
{
preset TrackRightColorActive = #141547FF;
preset TrackRightColorDefault = #141547FF;
preset CoverTintActive = #2B2D9AFF;
preset CoverTintFocused = #141547FF;
preset CoverTintDisabled = #141547FF;
preset CoverTintDefault = #141547FF;
preset ThumbMaxAngle = 2;
preset ThumbMinAngle = 270;
preset ThumbPivot = <80,80>;
preset ThumbTintActive = #3B3DD2FF;
preset ThumbTintDefault = #3B3DD2FF;
preset ThumbActive = Res::RotaryThumbMax;
preset ThumbFocused = Res::RotaryThumbMax;
preset ThumbDefault = Res::RotaryThumbMax;
preset ScaleTintActive = #2B2D9AFF;
preset ScaleTintFocused = #4D8DFFFF;
preset ScaleTintDisabled = #141547FF;
preset ScaleTintDefault = #141547FF;
preset ScaleActive = Res::RotaryBackground;
preset ScaleFocused = Res::RotaryBackground;
preset ScaleDisabled = Res::RotaryBackground;
preset ScaleDefault = Res::RotaryBackground;
preset WidgetMaxSize = <160,160>;
preset WidgetMinSize = <160,160>;
}
$rect <830,90,1090,130>
$output false
autoobject WidgetSet::RotaryKnobConfig RotaryMinConfig
{
preset TrackRightColorActive = #8C81FFFF;
preset TrackRightColorFocused = #8C81FFFF;
preset TrackRightColorDisabled = #8C81FFFF;
preset TrackRightColorDefault = #8C81FFFF;
preset TrackLeftColorActive = #2B2D9AFF;
preset TrackLeftColorFocused = #2B2D9AFF;
preset TrackLeftColorDisabled = #2B2D9AFF;
preset TrackLeftColorDefault = #2B2D9AFF;
preset CoverTintActive = #2B2D9AFF;
preset CoverTintFocused = #141547FF;
preset CoverTintDisabled = #141547FF;
preset CoverTintDefault = #141547FF;
preset ThumbMaxAngle = 90;
preset ThumbMinAngle = 358;
preset ThumbPivot = <0,80>;
preset ThumbTintActive = #2B2D9AFF;
preset ThumbTintFocused = #2B2D9AFF;
preset ThumbTintDisabled = #2B2D9AFF;
preset ThumbTintDefault = #2B2D9AFF;
preset ThumbActive = Res::RotaryThumbMin;
preset ThumbFocused = Res::RotaryThumbMin;
preset ThumbDefault = Res::RotaryThumbMin;
preset ScaleTintActive = #2B2D9AFF;
preset ScaleTintFocused = #141547FF;
preset ScaleTintDisabled = #141547FF;
preset ScaleTintDefault = #141547FF;
preset ScaleActive = Res::RotaryBackground;
preset ScaleFocused = Res::RotaryBackground;
preset ScaleDisabled = Res::RotaryBackground;
preset ScaleDefault = Res::RotaryBackground;
preset WidgetMaxSize = <160,160>;
preset WidgetMinSize = <160,160>;
}
// This object contains configuration information for a push button widget.
$rect <841,229,1080,269>
$output false
autoobject WidgetSet::PushButtonConfig PushButtonConfig
{
preset IconTintActive = #616365FF;
preset IconTintFocused = #292A2BFF;
preset IconTintDisabled = #292A2BFF;
preset IconTintDefault = #292A2BFF;
preset FaceLayout = Core::Layout[AlignToBottom, AlignToLeft, AlignToRight, AlignToTop];
preset FaceTintActive = #1E1E1EFF;
preset FaceTintFocused = #363636FF;
preset FaceTintDisabled = #363636FF;
preset FaceTintDefault = #363636FF;
preset FaceFrameActive = 1;
preset FaceFrameFocused = 0;
preset FaceFrameDefault = 0;
preset FaceActive = Res::ButtonFace;
preset FaceFocused = null;
preset FaceDisabled = null;
preset FaceDefault = Res::ButtonFace;
}
$rect <840,269,1080,309>
$output false
autoobject WidgetSet::PushButtonConfig NavigationButton
{
preset LabelColorActive = #2860FFFF;
preset LabelColorDefault = #1840A3FF;
preset IconTintActive = #000000FF;
preset IconTintFocused = #FFFFFFFF;
preset IconTintDisabled = #FFFFFFFF;
preset IconTintDefault = #000000FF;
preset LabelFont = Res::FontBodoniMedium;
preset FaceTintActive = #E0F5FFFF;
preset FaceTintDisabled = #FFFFFFFF;
preset FaceTintDefault = #E1E6FFFF;
preset FaceActive = Res::NavigationButtonFace;
preset FaceDefault = Res::NavigationButtonFace;
}
$rect <50,110,250,150>
$output false
class OnePageMetronom : Core::Group
{
$rect <250,290,450,330>
inherited property Bounds = <0,0,480,272>;
$rect <20,20,160,60>
object Views::Image Background
{
preset Bounds = <0,0,482,272>;
preset Bitmap = Res::MetronomeBackground;
}
$rect <20,20,160,60>
object Views::Rectangle TransparentBackg
{
preset Bounds = <0,0,480,272>;
preset Color = #FFFFFF92;
}
$rect <20,20,160,60>
object WidgetSet::ValueDisplay TempoValue
{
preset Bounds = <63,74,144,138>;
preset Outlet = ^Application::Device.Tempo;
preset Unit = "";
preset Precision = 0;
preset Appearance = Application::ValueDisplay_Medium;
}
$rect <20,20,160,60>
object WidgetSet::ValueDisplay BeatValue
{
preset Bounds = <346,74,416,138>;
preset Outlet = ^Application::Device.Beat;
preset Unit = "";
preset Precision = 0;
preset Appearance = Application::ValueDisplay_Medium;
}
$rect <20,20,160,60>
object WidgetSet::PushButton PushButton
{
preset Bounds = <205,86,275,156>;
preset Visible = true;
preset OnRelease = onTogleStartStop;
preset OnActivate = null;
preset Icon = Res::PlayIcon;
preset Label = "Caption";
preset Appearance = Application::PushButtonConfig;
}
$rect <20,20,160,60>
object WidgetSet::RotaryKnob TempoRotary
{
preset Bounds = <23,25,183,185>;
preset Outlet = ^Application::Device.Tempo;
preset StepSize = 5;
preset MaxValue = 150;
preset MinValue = 30;
preset Appearance = Application::RotaryMaxConfig;
}
$rect <20,20,160,60>
object WidgetSet::RotaryKnob BeatRotary
{
preset Bounds = <301,26,461,186>;
preset Outlet = ^Application::Device.Beat;
preset MaxValue = 8;
preset MinValue = 2;
preset Appearance = Application::RotaryMinConfig;
}
$rect <20,340,220,380>
slot onTogleStartStop
{
Application::Device.Running = ! Application::Device.Running;
PushButton.Icon = Application::Device.Running ? Res::StopIcon : Res::PlayIcon;
}
$rect <20,20,160,60>
object Views::Text BeatTxt
{
preset Bounds = <36,207,154,237>;
preset ColorBL = #3A61D4FF;
preset String = "TEMPO";
preset Font = Res::FontBodoniLarge;
preset Color = #3A61D4FF;
}
$rect <20,20,160,60>
object Views::Text TempoTxt
{
preset Bounds = <342,207,442,237>;
preset String = "BEAT";
preset Font = Res::FontBodoniLarge;
preset Color = #3A61D4FF;
}