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 29.8 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
(* 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
30
 `VERTICAL~handle_size:10
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
~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:"Enter the 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
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
107
let _ = tooltips#set_tip ~text:"Enter the name of the oracle file" oracle_name#coerce in
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
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
199
200
201
202
203
let progressbar = GRange.progress_bar
~adjustment:(GData.adjustment~value:0.
~lower:0.
~upper:100.
 ())
204
~packing:(table2#attach ~left:1
205
~top:4
206
~right:2
207
~bottom:5
208
209
210
211
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
212
~fill:`BOTH
213
)
214
215
216
217
~text_xalign:0.5
~text_yalign:0.5
~bar_style:`CONTINUOUS
~activity_mode:false
218
~show_text:true
219
~format_string: "%P %%"
220
221
()
in
222
223
224
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
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
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
let hbox11 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(table2#attach ~left:2
~top:1
~right:3
~bottom:2
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`BOTH
)
()
in
let toolbar5 = GButton.toolbar
~packing:(hbox11#pack ~padding:0
~fill:false
~expand:false
)
~orientation:`HORIZONTAL
~button_relief:`NORMAL
~tooltips:true
~space_size:5
~space_style:`EMPTY
()
in
let button29 = toolbar5#insert_button 
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/open.xpm" ()) ())#coerce
()
in
let _ = tooltips#set_tip ~text:"Browse for an environment file" button29#coerce in
let button30 = toolbar5#insert_button 
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/open_plus.xpm" ()) ())#coerce
()
in
let _ = tooltips#set_tip ~text:"Browse to add an environment to the curent one(s)" button30#coerce in
let toolbar6 = GButton.toolbar
~packing:(table2#attach ~left:2
~top:0
~right:3
~bottom:1
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~orientation:`HORIZONTAL
~button_relief:`NORMAL
~tooltips:true
~space_size:5
~space_style:`EMPTY
()
in
let button32 = toolbar6#insert_button 
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/open.xpm" ()) ())#coerce
()
in
let _ = tooltips#set_tip ~text:"Browse for a reactive program file to test" button32#coerce in
let toolbar7 = GButton.toolbar
~packing:(table2#attach ~left:2
~top:2
~right:3
~bottom:3
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`X
)
~orientation:`HORIZONTAL
~button_relief:`NORMAL
~tooltips:true
~space_size:5
~space_style:`EMPTY
()
in
let button33 = toolbar7#insert_button 
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/open.xpm" ()) ())#coerce
()
in
let _ = tooltips#set_tip ~text:"Browse for an oracle" button33#coerce in
326
let scrolledwindow2 = GBin.scrolled_window
327
328
~hpolicy:`AUTOMATIC
~vpolicy:`AUTOMATIC
329
330
331
332
333
~packing:(vpaned2#add )
()
in
let output_window = GEdit.text
~packing:scrolledwindow2#add
334
~height:300
335
336
337
338
339
340
~editable:false
()
in

 let _ = output_window#insert_text ~pos:0 "" in
let _ = GtkBase.Widget.set_can_focus output_window#as_widget true in
341
342
let _ = GtkBase.Widget.set_can_default output_window#as_widget true in
let _ = GtkBase.Widget.grab_default output_window#as_widget in
343
344
let hbox1 = GPack.hbox
~spacing:4
345
~homogeneous:true
346
347
348
~packing:(run_panel#add )
()
in
349
let toolbar4 = GButton.toolbar
350
351
352
~packing:(hbox1#pack ~padding:5
~fill:true
~expand:true
353
)
354
~orientation:`HORIZONTAL
355
~button_relief:`NORMAL
356
~tooltips:true
357
358
~space_size:20
~border_width:6
359
360
361
362
363
~space_style:`LINE
()
in
let _ = GtkBase.Widget.set_can_focus toolbar4#as_widget true in
let _ = GtkBase.Widget.grab_focus toolbar4#as_widget in
364
let button17 = toolbar4#insert_button 
365
~text: "                 "
366
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/run.xpm" ()) ())#coerce
367
368
()
in
369
let _ = tooltips#set_tip ~text:"Start the testing process" button17#coerce in
370
let button18 = toolbar4#insert_button 
371
~text: "           "
372
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/chrono.xpm" ()) ())#coerce
373
374
()
in
375
let _ = tooltips#set_tip ~text:"Call sim2chro with the lastly generated data" button18#coerce in
376
let button19 = toolbar4#insert_button 
377
~text: "               "
378
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/save.xpm" ()) ())#coerce
379
380
()
in
381
let _ = tooltips#set_tip ~text:"Save session" button19#coerce in
382
let button20 = toolbar4#insert_button 
383
~text: "                    "
384
385
386
387
388
389
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/halt.xpm" ()) ())#coerce
()
in
let _ = tooltips#set_tip ~text:"Stop the current run" button20#coerce in
let button36 = toolbar4#insert_button 
~text: "                    "
390
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/close.xpm" ()) ())#coerce
391
392
()
in
393
let _ = tooltips#set_tip ~text:"Quit xlurette" button36#coerce in
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
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
478
~text: "Transition thickness"
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
~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
497
~text: "Formula thickness"
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
~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
535
~adjustment:(GData.adjustment~value:1.
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
~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 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
)
849
~label: "Vertices"
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
~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
975
~active:true
976
977
978
979
980
981
982
983
984
985
986
()
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
987
~active:false
988
989
990
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_verbose_off#as_widget true in
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
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
1006
let button14 = toolbar3#insert_button 
1007
~text: "                 "
1008
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/chrono.xpm" ()) ())#coerce
1009
1010
1011
()
in
let _ = tooltips#set_tip ~text:"Call sim2chro with the lastly generated data" button14#coerce in
1012
let button15 = toolbar3#insert_button 
1013
~text: "              "
1014
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/save.xpm" ()) ())#coerce
1015
1016
1017
()
in
let _ = tooltips#set_tip ~text:"Save session" button15#coerce in
1018
let button16 = toolbar3#insert_button 
1019
~text: "              "
1020
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/close.xpm" ()) ())#coerce
1021
1022
1023
()
in
let _ = tooltips#set_tip ~text:"Quit xlurette" button16#coerce in
1024
1025
1026
1027
1028
1029
1030
1031
1032
let parameters = GMisc.label
~text: "Parameters"
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
1033
1034
1035
1036
1037
1038
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
1039
1040
let _ =  button2#connect#clicked
	~callback:callbacks#save_session in
1041
let _ =  button36#connect#clicked
1042
	~callback:callbacks#quit in
1043
1044
let _ =  button20#connect#clicked
	~callback:callbacks#stop_run in
1045
let _ =  button19#connect#clicked
1046
	~callback:callbacks#save_session in
1047
let _ =  button18#connect#clicked
1048
	~callback:callbacks#call_sim2chro_clicked in
1049
let _ =  button17#connect#clicked
1050
	~callback:callbacks#run_lurette in
1051
let _ =  button33#connect#clicked
1052
	~callback:callbacks#browse_oracle_clicked in
1053
let _ =  button32#connect#clicked
1054
	~callback:callbacks#browse_sut_clicked in
1055
1056
1057
let _ =  button30#connect#clicked
	~callback:callbacks#add_env_clicked in
let _ =  button29#connect#clicked
1058
	~callback:callbacks#browse_env_clicked in
1059
1060
let _ =  show_env_button#connect#clicked
	~callback:callbacks#show_env_button_clicked in
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
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 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
1079
method step_number_label = step_number_label
1080
1081
1082
1083
1084
1085
1086
1087
method hbox11 = hbox11
method toolbar5 = toolbar5
method button29 = button29
method button30 = button30
method toolbar6 = toolbar6
method button32 = button32
method toolbar7 = toolbar7
method button33 = button33
1088
1089
1090
method scrolledwindow2 = scrolledwindow2
method output_window = output_window
method hbox1 = hbox1
1091
1092
1093
1094
1095
method toolbar4 = toolbar4
method button17 = button17
method button18 = button18
method button19 = button19
method button20 = button20
1096
method button36 = button36
1097
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
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 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
1140
1141
1142
1143
method toolbar3 = toolbar3
method button14 = button14
method button15 = button15
method button16 = button16
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
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
1164
~fileop_buttons:false
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
()
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
1197
~fileop_buttons:false
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
()
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
1223
~wm_name: "Select a new environement file"
1224
1225
1226
1227
1228
1229
~position:`MOUSE
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
~border_width:10
1230
~fileop_buttons:false
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
()
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
1273
let toolbar2 = GButton.toolbar
1274
~packing:(vbox12#pack ~padding:0
1275
1276
~fill:false
~expand:false
1277
)
1278
1279
1280
1281
1282
1283
1284
1285
~orientation:`VERTICAL
~button_relief:`NORMAL
~tooltips:true
~space_size:5
~border_width:3
~space_style:`EMPTY
()
in
1286
1287
1288
let button9 = toolbar2#insert_button 
~text: "Step"
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/step.xpm" ()) ())#coerce
1289
1290
()
in
1291
1292
1293
1294
let _ = tooltips#set_tip ~text:"Run one step" button9#coerce in
let button10 = toolbar2#insert_button 
~text: "Stop"
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/close.xpm" ()) ())#coerce
1295
1296
()
in
1297
let _ = tooltips#set_tip ~text:"Stop the current execution and close the window" button10#coerce in
1298
let _ =  button10#connect#clicked
1299
	~callback:callbacks#stop in
1300
let _ =  button9#connect#clicked
1301
1302
1303
1304
1305
1306
	~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
1307
1308
1309
method toolbar2 = toolbar2
method button9 = button9
method button10 = button10
1310
1311
initializer callbacks#set_step_by_step_window self;
end
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344

class top_fileselection_add_env callbacks =
let tooltips = GData.tooltips () in
let accel_group = GtkData.AccelGroup.create () in
let fileselection_add_env = GWindow.file_selection
~wm_name: "Add a new environment"
~position:`MOUSE
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
~border_width:10
~fileop_buttons:true
()
in
let button25 = fileselection_add_env#ok_button in
let _ = GtkBase.Widget.set_can_focus fileselection_add_env#ok_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_add_env#ok_button#as_widget true in
let button26 = fileselection_add_env#cancel_button in
let _ = GtkBase.Widget.set_can_focus fileselection_add_env#cancel_button#as_widget true in
let _ = GtkBase.Widget.set_can_default fileselection_add_env#cancel_button#as_widget true in
let _ =  fileselection_add_env#cancel_button#connect#clicked
	~callback:callbacks#cancel_add_env_clicked in
let _ =  fileselection_add_env#ok_button#connect#clicked
	~callback:callbacks#ok_add_env_clicked in
object(self)
method tooltips = tooltips
method fileselection_add_env = fileselection_add_env
method accel_group = accel_group
method button25 = button25
method button26 = button26
initializer callbacks#set_fileselection_add_env self;
end