Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

xlurette_glade_interface.ml 27.6 KB
Newer Older
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
(* THIS IS A GENERATED FILE : DO NOT EDIT ! *)

class top_xlurette callbacks =
let tooltips = GData.tooltips () in
let accel_group = GtkData.AccelGroup.create () in
let xlurette = GWindow.window
~wm_name: "Xlurette"
~position:`NONE
~kind:`TOPLEVEL
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
~border_width:2
()
in

let _ = xlurette#add_accel_group accel_group in
let notebook1 = GPack.notebook
~tab_pos:`TOP
~tab_border:2
~show_border:true
~scrollable:false
~popup:false
~packing:xlurette#add
()
in
let _ = GtkBase.Widget.set_can_focus notebook1#as_widget true in
let run_panel = GPack.paned
 `VERTICAL~handle_size:18
~border_width:3
()
in
let vpaned2 = GPack.paned
 `VERTICAL~handle_size:10
~packing:(run_panel#add )
()
in
let frame1 = GBin.frame
~packing:(vpaned2#add )
~label_xalign:0.
~shadow_type:`ETCHED_IN
()
in
let table2 = GPack.table
46
~rows:5
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
~columns:3
~row_spacings:0
~col_spacings:0
~homogeneous:false
~packing:frame1#add
()
in
let sut_name = GEdit.entry
~packing:(table2#attach ~left:1
~top:0
~right:2
~bottom:1
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~max_length:0
~visibility:true
~editable:true
()
in
let _ = GtkBase.Widget.set_can_focus sut_name#as_widget true in
let _ = tooltips#set_tip ~text:"Enter the name of the file of the system under test" sut_name#coerce in
let env_name = GEdit.entry
~packing:(table2#attach ~left:1
~top:1
~right:2
~bottom:2
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~max_length:0
~visibility:true
~editable:true
()
in
let _ = GtkBase.Widget.set_can_focus env_name#as_widget true in
89
let _ = tooltips#set_tip ~text:"Enterthe enviroment file names (eventually separated by `x' in you want to perform the automata product)    e.g., tram.ima x door.ima user.ima" env_name#coerce in
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
let oracle_name = GEdit.entry
~packing:(table2#attach ~left:1
~top:2
~right:2
~bottom:3
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~max_length:0
~visibility:true
~editable:true
()
in
let _ = GtkBase.Widget.set_can_focus oracle_name#as_widget true in
let _ = tooltips#set_tip ~text:"Enter the name of the oracle file name" oracle_name#coerce in
let browse_ima = GButton.button
~packing:(table2#attach ~left:2
~top:1
~right:3
~bottom:2
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~label: "Browse"
~border_width:3
()
in
let _ = GtkBase.Widget.set_can_focus browse_ima#as_widget true in
let _ = tooltips#set_tip ~text:"Browse an environment" browse_ima#coerce in
let browse_sut = GButton.button
~packing:(table2#attach ~left:2
~top:0
~right:3
~bottom:1
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~label: "Browse"
~border_width:2
()
in
let _ = GtkBase.Widget.set_can_focus browse_sut#as_widget true in
let _ = tooltips#set_tip ~text:"Browse a file to test" browse_sut#coerce in
let browse_oracle = GButton.button
~packing:(table2#attach ~left:2
~top:2
~right:3
~bottom:3
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~label: "Browse"
~border_width:3
()
in
let _ = GtkBase.Widget.set_can_focus browse_oracle#as_widget true in
let _ = tooltips#set_tip ~text:"Browse an oracle" browse_oracle#coerce in
let show_env_button = GButton.button
~packing:(table2#attach ~left:0
~top:1
~right:1
~bottom:2
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~label: "Environment"
()
in
let _ = GtkBase.Widget.set_can_focus show_env_button#as_widget true in
let _ = tooltips#set_tip ~text:"Show the automata corresponding to the current environment" show_env_button#coerce in
let oracle_label = GMisc.label
~text: "Oracle"
~packing:(table2#attach ~left:0
~top:2
~right:1
~bottom:3
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`NONE
)
~xalign:0.
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let sut_label = GMisc.label
~text: "System Under Test   "
~packing:(table2#attach ~left:0
~top:0
~right:1
~bottom:1
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let label17 = GMisc.label
~text: "Progress bar"
~packing:(table2#attach ~left:0
~top:4
~right:1
~bottom:5
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`NONE
)
~xalign:0.
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let label18 = GMisc.label
~packing:(table2#attach ~left:0
~top:3
~right:1
~bottom:4
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
250
251
252
253
254
let progressbar = GRange.progress_bar
~adjustment:(GData.adjustment~value:0.
~lower:0.
~upper:100.
 ())
255
~packing:(table2#attach ~left:1
256
~top:4
257
~right:2
258
~bottom:5
259
260
261
262
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
263
~fill:`BOTH
264
)
265
266
267
268
269
270
~text_xalign:0.5
~text_yalign:0.5
~bar_style:`CONTINUOUS
~activity_mode:false
~show_text:false
~format_string: "%P %%"
271
272
()
in
273
274
275
let _ = GtkBase.Widget.set_can_focus progressbar#as_widget true in
let _ = GtkBase.Widget.grab_focus progressbar#as_widget in
let _ = progressbar#set_orientation `LEFT_TO_RIGHT in
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
let step_number_label = GMisc.label
~packing:(table2#attach ~left:2
~top:4
~right:3
~bottom:5
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let scrolledwindow2 = GBin.scrolled_window
295
296
~hpolicy:`AUTOMATIC
~vpolicy:`AUTOMATIC
297
298
299
300
301
302
~packing:(vpaned2#add )
()
in
let output_window = GEdit.text
~packing:scrolledwindow2#add
~height:500
303
~width:166
304
305
306
307
308
309
310
311
~editable:false
()
in

 let _ = output_window#insert_text ~pos:0 "" in
let _ = GtkBase.Widget.set_can_focus output_window#as_widget true in
let hbox1 = GPack.hbox
~spacing:4
312
~homogeneous:false
313
314
315
~packing:(run_panel#add )
()
in
316
let toolbar4 = GButton.toolbar
317
~packing:(hbox1#pack ~padding:0
318
319
~fill:false
~expand:false
320
)
321
322
323
324
325
326
327
328
329
330
331
332
333
~orientation:`HORIZONTAL
~button_relief:`HALF
~tooltips:true
~space_size:3
~border_width:1
~space_style:`LINE
()
in
let _ = GtkBase.Widget.set_can_focus toolbar4#as_widget true in
let _ = GtkBase.Widget.grab_focus toolbar4#as_widget in
let button17 = GButton.button
~packing:toolbar4#add
~label: "Run"
334
335
336
337
338
~border_width:4
~height:100
~width:150
()
in
339
340
341
342
let _ = tooltips#set_tip ~text:"Start the testing process" button17#coerce in
let button18 = GButton.button
~packing:toolbar4#add
~label: "Sim2chro"
343
344
345
346
347
~border_width:4
~height:100
~width:150
()
in
348
349
350
351
let _ = tooltips#set_tip ~text:"Call sim2chro with the lastly generated data" button18#coerce in
let button19 = GButton.button
~packing:toolbar4#add
~label: "Save session"
352
353
354
355
356
~border_width:4
~height:100
~width:150
()
in
357
358
359
360
let _ = tooltips#set_tip ~text:"Save session" button19#coerce in
let button20 = GButton.button
~packing:toolbar4#add
~label: "Quit"
361
362
363
364
365
~border_width:4
~height:100
~width:150
()
in
366
let _ = tooltips#set_tip ~text:"Quit xlurette" button20#coerce in
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
let label9 = GMisc.label
~text: "Run "
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let option_panel = GPack.vbox
~spacing:0
~homogeneous:false
()
in
let vbox8 = GPack.vbox
~spacing:31
~homogeneous:false
~packing:(option_panel#pack ~padding:0
~fill:true
~expand:true
)
()
in
let table6 = GPack.table
~rows:5
~columns:3
~row_spacings:10
~col_spacings:0
~border_width:4
~homogeneous:false
~packing:(vbox8#pack ~padding:0
~fill:true
~expand:false
)
()
in
let test_length_label = GMisc.label
~text: "Test length"
~packing:(table6#attach ~left:0
~top:0
~right:1
~bottom:1
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let test_length = GEdit.spin_button
~adjustment:(GData.adjustment~value:50.
~lower:1.
~upper:1000000.
~step_incr:1.
~page_incr:10.
~page_size:10.
 ())
~packing:(table6#attach ~left:1
~top:0
~right:2
~bottom:1
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~rate:1.
~digits:0
~update_policy:`ALWAYS
~numeric:true
~wrap:false
~snap_to_ticks:false
()
in
let _ = GtkBase.Widget.set_can_focus test_length#as_widget true in
let _ = tooltips#set_tip ~text:"Number of step to be done" test_length#coerce in
let formula_nb_label = GMisc.label
~text: "Formula number"
~packing:(table6#attach ~left:0
~top:1
~right:1
~bottom:2
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:true
()
in
let draw_nb_label = GMisc.label
~text: "Draw number"
~packing:(table6#attach ~left:0
~top:2
~right:1
~bottom:3
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let rif_file_label = GMisc.label
~text: "Output file"
~packing:(table6#attach ~left:0
~top:3
~right:1
~bottom:4
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let formula_nb = GEdit.spin_button
~adjustment:(GData.adjustment~value:100.
~lower:1.
~upper:1000.
~step_incr:1.
~page_incr:10.
~page_size:10.
 ())
~packing:(table6#attach ~left:1
~top:1
~right:2
~bottom:2
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~rate:1.
~digits:0
~update_policy:`ALWAYS
~numeric:true
~wrap:false
~snap_to_ticks:false
()
in
let _ = GtkBase.Widget.set_can_focus formula_nb#as_widget true in
let _ = tooltips#set_tip ~text:"Number of formula to be drawn at each step" formula_nb#coerce in
let draw_nb = GEdit.spin_button
~adjustment:(GData.adjustment~value:1.
~lower:1.
~upper:10000.
~step_incr:1.
~page_incr:10.
~page_size:10.
 ())
~packing:(table6#attach ~left:1
~top:2
~right:2
~bottom:3
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~rate:1.
~digits:0
~update_policy:`ALWAYS
~numeric:true
~wrap:false
~snap_to_ticks:false
()
in
let _ = GtkBase.Widget.set_can_focus draw_nb#as_widget true in
let _ = tooltips#set_tip ~text:"Number of draw to be done for each formula" draw_nb#coerce in
let rif_file = GEdit.entry
~packing:(table6#attach ~left:1
~top:3
~right:2
~bottom:4
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~text: "lurette.rif"
~max_length:0
~visibility:true
~editable:true
()
in
let _ = GtkBase.Widget.set_can_focus rif_file#as_widget true in
let _ = tooltips#set_tip ~text:"Name of file the test results is put in" rif_file#coerce in
let display_rif_file = GButton.button
~packing:(table6#attach ~left:2
~top:3
~right:3
~bottom:4
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~label: " Show it "
~border_width:4
()
in
let _ = GtkBase.Widget.set_can_focus display_rif_file#as_widget true in
let save_session_label = GMisc.label
~text: "saved session     	"
~packing:(table6#attach ~left:0
~top:4
~right:1
~bottom:5
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let saved_session_file = GEdit.entry
~packing:(table6#attach ~left:1
~top:4
~right:2
~bottom:5
~xpadding:0
~ypadding:0
~expand:`X
~shrink:`NONE
~fill:`X
)
~text: "lurette.tgz"
~max_length:0
~visibility:true
~editable:true
()
in
let _ = GtkBase.Widget.set_can_focus saved_session_file#as_widget true in
let _ = tooltips#set_tip ~text:"Name of the file the current session is saved under" saved_session_file#coerce in
let button2 = GButton.button
~packing:(table6#attach ~left:2
~top:4
~right:3
~bottom:5
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~label: "  Save session   "
~border_width:4
()
in
let _ = GtkBase.Widget.set_can_focus button2#as_widget true in
let _ = tooltips#set_tip ~text:"Save the current session" button2#coerce in
let vbox9 = GPack.vbox
~spacing:10
~homogeneous:false
~packing:(vbox8#pack ~padding:0
~fill:false
~expand:false
)
()
in
let hbox9 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(vbox9#pack ~padding:0
~fill:true
~expand:true
)
()
in
let label16 = GMisc.label
~text: "Seed        "
~packing:(hbox9#pack ~padding:0
~fill:true
~expand:false
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let radiobutton_random_seed = GButton.radio_button
~packing:(hbox9#pack ~padding:0
~fill:false
~expand:false
)
~label: "Random"
~draw_indicator:true
~active:true
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_random_seed#as_widget true in
let _ = tooltips#set_tip ~text:"The seed (that initializes the random engine) is set randomly" radiobutton_random_seed#coerce in
let radiobutton15 = GButton.radio_button
~group:radiobutton_random_seed#group
~packing:(hbox9#pack ~padding:0
~fill:false
~expand:false
)
~label: "Manual"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton15#as_widget true in
let _ = tooltips#set_tip ~text:"Manually initialize the random engine" radiobutton15#coerce in
let user_seed = GEdit.spin_button
~adjustment:(GData.adjustment~value:1013220000.
~lower:0.
~upper:1073740000.
~step_incr:1.
~page_incr:10.
~page_size:10.
 ())
~packing:(hbox9#pack ~padding:0
~fill:true
~expand:true
)
~rate:1.
~digits:0
~update_policy:`ALWAYS
~numeric:true
~wrap:false
~snap_to_ticks:false
()
in
let _ = GtkBase.Widget.set_can_focus user_seed#as_widget true in
let _ = tooltips#set_tip ~text:"The seed used if the Manual button is selected" user_seed#coerce in
let hbox2 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(vbox9#pack ~padding:0
~fill:true
~expand:false
)
()
in
let label11 = GMisc.label
~text: "Run lurette step by step  "
~packing:(hbox2#pack ~padding:0
~fill:true
~expand:false
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let hbox10 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(hbox2#pack ~padding:0
~fill:true
~expand:true
)
()
in
let radiobutton_step_yes = GButton.radio_button
~packing:(hbox10#pack ~padding:0
~fill:true
~expand:false
)
~label: "Yes"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_step_yes#as_widget true in
let radiobutton_step_no = GButton.radio_button
~group:radiobutton_step_yes#group
~packing:(hbox10#pack ~padding:0
~fill:false
~expand:false
)
~label: "No"
~draw_indicator:true
~active:true
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_step_no#as_widget true in
let hbox3 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(vbox9#pack ~padding:0
~fill:false
~expand:false
)
()
in
let draw_mode_label = GMisc.label
~text: "Draw mode"
~packing:(hbox3#pack ~padding:0
~fill:false
~expand:false
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let radiobutton_inside = GButton.radio_button
~packing:(hbox3#pack ~padding:6
~fill:false
~expand:false
)
~label: "Inside"
~draw_indicator:true
~active:true
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_inside#as_widget true in
let _ = tooltips#set_tip ~text:"Draw inside the polyhedra of solutions" radiobutton_inside#coerce in
let radiobutton_edges = GButton.radio_button
~group:radiobutton_inside#group
~packing:(hbox3#pack ~padding:0
~fill:false
~expand:false
)
~label: " Edges"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_edges#as_widget true in
let _ = tooltips#set_tip ~text:"Draw among the edges of the polyhedra of solutions" radiobutton_edges#coerce in
let radiobutton_verteces = GButton.radio_button
~group:radiobutton_inside#group
~packing:(hbox3#pack ~padding:0
~fill:false
~expand:false
)
~label: "Verteces"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_verteces#as_widget true in
let _ = tooltips#set_tip ~text:"Draw among the verteces of the polyhedra of solutions" radiobutton_verteces#coerce in
let hbox4 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(vbox9#pack ~padding:0
~fill:true
~expand:true
)
()
in
let call_sim2chro_label = GMisc.label
~text: "Call sim2chro when lurette resumes  "
~packing:(hbox4#pack ~padding:0
~fill:false
~expand:false
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let radiobutton_call_sim2chro_yes = GButton.radio_button
~packing:(hbox4#pack ~padding:0
~fill:false
~expand:false
)
~label: "Yes"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_call_sim2chro_yes#as_widget true in
let radiobutton_call_sim2chro_no = GButton.radio_button
~group:radiobutton_call_sim2chro_yes#group
~packing:(hbox4#pack ~padding:0
~fill:false
~expand:false
)
~label: "No"
~draw_indicator:true
~active:true
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_call_sim2chro_no#as_widget true in
let hbox5 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(vbox9#pack ~padding:0
~fill:true
~expand:true
)
()
in
let display_local_label = GMisc.label
~text: "Display local var within sim2chro  "
~packing:(hbox5#pack ~padding:0
~fill:false
~expand:false
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let radiobutton_display_local_yes = GButton.radio_button
~packing:(hbox5#pack ~padding:0
~fill:false
~expand:false
)
~label: "Yes"
~draw_indicator:true
~active:true
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_display_local_yes#as_widget true in
let radiobutton_display_local_no = GButton.radio_button
~group:radiobutton_display_local_yes#group
~packing:(hbox5#pack ~padding:0
~fill:false
~expand:false
)
~label: "No"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_display_local_no#as_widget true in
let hbox6 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(vbox9#pack ~padding:0
~fill:true
~expand:true
)
()
in
let label15 = GMisc.label
~text: "Verbose mode "
~packing:(hbox6#pack ~padding:0
~fill:false
~expand:false
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let radiobutton_verbose_on = GButton.radio_button
~packing:(hbox6#pack ~padding:0
~fill:false
~expand:false
)
~label: "On"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_verbose_on#as_widget true in
let radiobutton_verbose_off = GButton.radio_button
~group:radiobutton_verbose_on#group
~packing:(hbox6#pack ~padding:0
~fill:false
~expand:false
)
~label: "Off"
~draw_indicator:true
~active:true
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_verbose_off#as_widget true in
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
let toolbar3 = GButton.toolbar
~packing:(vbox9#pack ~padding:0
~fill:false
~expand:false
)
~orientation:`HORIZONTAL
~button_relief:`HALF
~tooltips:true
~space_size:3
~border_width:1
~space_style:`LINE
()
in
let _ = GtkBase.Widget.set_can_focus toolbar3#as_widget true in
let _ = GtkBase.Widget.grab_focus toolbar3#as_widget in
let button13 = GButton.button
~packing:toolbar3#add
~label: "Run"
~border_width:4
~height:100
~width:150
()
in
let _ = tooltips#set_tip ~text:"Start the testing process" button13#coerce in
let button14 = GButton.button
~packing:toolbar3#add
~label: "Sim2chro"
~border_width:4
~height:100
~width:150
()
in
let _ = tooltips#set_tip ~text:"Call sim2chro with the lastly generated data" button14#coerce in
let button15 = GButton.button
~packing:toolbar3#add
~label: "Save session"
~border_width:4
~height:100
~width:150
()
in
let _ = tooltips#set_tip ~text:"Save session" button15#coerce in
let button16 = GButton.button
~packing:toolbar3#add
~label: "Quit"
~border_width:4
~height:100
~width:150
()
in
let _ = tooltips#set_tip ~text:"Quit xlurette" button16#coerce in
1031
1032
1033
1034
1035
1036
1037
1038
1039
let parameters = GMisc.label
~text: "Parameters"
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
1040
1041
1042
1043
1044
1045
1046
1047
let _ =  button16#connect#clicked
	~callback:callbacks#quit in
let _ =  button15#connect#clicked
	~callback:callbacks#save_session in
let _ =  button14#connect#clicked
	~callback:callbacks#call_sim2chro_clicked in
let _ =  button13#connect#clicked
	~callback:callbacks#run_lurette in
1048
1049
1050
1051
let _ =  button2#connect#clicked
	~callback:callbacks#save_session in
let _ =  display_rif_file#connect#clicked
	~callback:callbacks#display_rif_file_clicked in
1052
let _ =  button20#connect#clicked
1053
	~callback:callbacks#quit in
1054
let _ =  button19#connect#clicked
1055
	~callback:callbacks#save_session in
1056
let _ =  button18#connect#clicked
1057
	~callback:callbacks#call_sim2chro_clicked in
1058
let _ =  button17#connect#clicked
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
	~callback:callbacks#run_lurette in
let _ =  show_env_button#connect#clicked
	~callback:callbacks#show_env_button_clicked in
let _ =  browse_oracle#connect#clicked
	~callback:callbacks#browse_oracle_clicked in
let _ =  browse_sut#connect#clicked
	~callback:callbacks#browse_sut_clicked in
let _ =  browse_ima#connect#clicked
	~callback:callbacks#browse_env_clicked in
object(self)
method tooltips = tooltips
method xlurette = xlurette
method accel_group = accel_group
method notebook1 = notebook1
method run_panel = run_panel
method vpaned2 = vpaned2
method frame1 = frame1
method table2 = table2
method sut_name = sut_name
method env_name = env_name
method oracle_name = oracle_name
method browse_ima = browse_ima
method browse_sut = browse_sut
method browse_oracle = browse_oracle
method show_env_button = show_env_button
method oracle_label = oracle_label
method sut_label = sut_label
method label17 = label17
method label18 = label18
method progressbar = progressbar
1089
method step_number_label = step_number_label
1090
1091
1092
method scrolledwindow2 = scrolledwindow2
method output_window = output_window
method hbox1 = hbox1
1093
1094
1095
1096
1097
method toolbar4 = toolbar4
method button17 = button17
method button18 = button18
method button19 = button19
method button20 = button20
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
method label9 = label9
method option_panel = option_panel
method vbox8 = vbox8
method table6 = table6
method test_length_label = test_length_label
method test_length = test_length
method formula_nb_label = formula_nb_label
method draw_nb_label = draw_nb_label
method rif_file_label = rif_file_label
method formula_nb = formula_nb
method draw_nb = draw_nb
method rif_file = rif_file
method display_rif_file = display_rif_file
method save_session_label = save_session_label
method saved_session_file = saved_session_file
method button2 = button2
method vbox9 = vbox9
method hbox9 = hbox9
method label16 = label16
method radiobutton_random_seed = radiobutton_random_seed
method radiobutton15 = radiobutton15
method user_seed = user_seed
method hbox2 = hbox2
method label11 = label11
method hbox10 = hbox10
method radiobutton_step_yes = radiobutton_step_yes
method radiobutton_step_no = radiobutton_step_no
method hbox3 = hbox3
method draw_mode_label = draw_mode_label
method radiobutton_inside = radiobutton_inside
method radiobutton_edges = radiobutton_edges
method radiobutton_verteces = radiobutton_verteces
method hbox4 = hbox4
method call_sim2chro_label = call_sim2chro_label
method radiobutton_call_sim2chro_yes = radiobutton_call_sim2chro_yes
method radiobutton_call_sim2chro_no = radiobutton_call_sim2chro_no
method hbox5 = hbox5
method display_local_label = display_local_label
method radiobutton_display_local_yes = radiobutton_display_local_yes
method radiobutton_display_local_no = radiobutton_display_local_no
method hbox6 = hbox6
method label15 = label15
method radiobutton_verbose_on = radiobutton_verbose_on
method radiobutton_verbose_off = radiobutton_verbose_off
1142
1143
1144
1145
1146
method toolbar3 = toolbar3
method button13 = button13
method button14 = button14
method button15 = button15
method button16 = button16
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
method parameters = parameters
initializer callbacks#set_xlurette self;
notebook1#prepend_page 
~tab_label:parameters#coerce option_panel#coerce;
notebook1#prepend_page 
~tab_label:label9#coerce run_panel#coerce;
notebook1#goto_page 0;
end

class top_fileselection_sut callbacks =
let tooltips = GData.tooltips () in
let accel_group = GtkData.AccelGroup.create () in
let fileselection_sut = GWindow.file_selection
~wm_name: "Select system under test file name"
~position:`MOUSE
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
~border_width:10
~fileop_buttons:true
()
in
let ok_button1 = fileselection_sut#ok_button in
let _ = GtkBase.Widget.set_can_focus fileselection_sut#ok_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_sut#ok_button#as_widget true in
let cancel_button1 = fileselection_sut#cancel_button in
let _ = GtkBase.Widget.set_can_focus fileselection_sut#cancel_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_sut#cancel_button#as_widget true in
let _ =  fileselection_sut#cancel_button#connect#clicked
	~callback:callbacks#cancel_sut_clicked in
let _ =  fileselection_sut#ok_button#connect#clicked
	~callback:callbacks#ok_sut_clicked in
object(self)
method tooltips = tooltips
method fileselection_sut = fileselection_sut
method accel_group = accel_group
method ok_button1 = ok_button1
method cancel_button1 = cancel_button1
initializer callbacks#set_fileselection_sut self;
end

class top_fileselection_oracle callbacks =
let tooltips = GData.tooltips () in
let accel_group = GtkData.AccelGroup.create () in
let fileselection_oracle = GWindow.file_selection
~wm_name: "Select File"
~position:`MOUSE
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
~border_width:10
~fileop_buttons:true
()
in
let ok_oracle = fileselection_oracle#ok_button in
let _ = GtkBase.Widget.set_can_focus fileselection_oracle#ok_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_oracle#ok_button#as_widget true in
let cancel_button2 = fileselection_oracle#cancel_button in
let _ = GtkBase.Widget.set_can_focus fileselection_oracle#cancel_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_oracle#cancel_button#as_widget true in
let _ =  fileselection_oracle#cancel_button#connect#clicked
	~callback:callbacks#cancel_oracle_clicked in
let _ =  fileselection_oracle#ok_button#connect#clicked
	~callback:callbacks#ok_oracle_clicked in
object(self)
method tooltips = tooltips
method fileselection_oracle = fileselection_oracle
method accel_group = accel_group
method ok_oracle = ok_oracle
method cancel_button2 = cancel_button2
initializer callbacks#set_fileselection_oracle self;
end

class top_fileselection_env callbacks =
let tooltips = GData.tooltips () in
let accel_group = GtkData.AccelGroup.create () in
let fileselection_env = GWindow.file_selection
~wm_name: "Select File"
~position:`MOUSE
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
~border_width:10
~fileop_buttons:true
()
in
let ok_button3 = fileselection_env#ok_button in
let _ = GtkBase.Widget.set_can_focus fileselection_env#ok_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_env#ok_button#as_widget true in
let cancel_button3 = fileselection_env#cancel_button in
let _ = GtkBase.Widget.set_can_focus fileselection_env#cancel_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_env#cancel_button#as_widget true in
let _ =  fileselection_env#cancel_button#connect#clicked
	~callback:callbacks#cancel_env_clicked in
let _ =  fileselection_env#ok_button#connect#clicked
	~callback:callbacks#ok_env_clicked in
object(self)
method tooltips = tooltips
method fileselection_env = fileselection_env
method accel_group = accel_group
method ok_button3 = ok_button3
method cancel_button3 = cancel_button3
initializer callbacks#set_fileselection_env self;
end

class top_step_by_step_window callbacks =
let tooltips = GData.tooltips () in
let accel_group = GtkData.AccelGroup.create () in
let step_by_step_window = GWindow.window
~wm_name: "Step by step..."
~position:`MOUSE
~kind:`TOPLEVEL
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
()
in

let _ = step_by_step_window#add_accel_group accel_group in
let vbox12 = GPack.vbox
~spacing:0
~homogeneous:false
~packing:step_by_step_window#add
()
in
1276
let toolbar2 = GButton.toolbar
1277
~packing:(vbox12#pack ~padding:0
1278
1279
~fill:false
~expand:false
1280
)
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
~orientation:`VERTICAL
~button_relief:`NORMAL
~tooltips:true
~space_size:5
~border_width:3
~space_style:`EMPTY
()
in
let button9 = GButton.button
~packing:toolbar2#add
1291
1292
1293
~label: "Step"
~border_width:4
~height:100
1294
~width:150
1295
1296
()
in
1297
1298
1299
let button10 = GButton.button
~packing:toolbar2#add
~label: "Stop"
1300
1301
~border_width:4
~height:100
1302
~width:150
1303
1304
()
in
1305
1306
let button11 = GButton.button
~packing:toolbar2#add
1307
~label: "Close"
1308
1309
1310
~border_width:4
~height:100
~width:150
1311
1312
()
in
1313
let _ =  button11#connect#clicked
1314
	~callback:callbacks#close_step_button_clicked in
1315
let _ =  button10#connect#clicked
1316
	~callback:callbacks#stop in
1317
let _ =  button9#connect#clicked
1318
1319
1320
1321
1322
1323
	~callback:callbacks#step in
object(self)
method tooltips = tooltips
method step_by_step_window = step_by_step_window
method accel_group = accel_group
method vbox12 = vbox12
1324
1325
1326
1327
method toolbar2 = toolbar2
method button9 = button9
method button10 = button10
method button11 = button11
1328
1329
initializer callbacks#set_step_by_step_window self;
end