xlurette_glade_interface.ml 32 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
~columns:3
~row_spacings:0
~col_spacings:0
~homogeneous:false
~packing:frame1#add
()
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
71
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
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
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
163 164 165 166 167
let progressbar = GRange.progress_bar
~adjustment:(GData.adjustment~value:0.
~lower:0.
~upper:100.
 ())
168
~packing:(table2#attach ~left:1
169
~top:4
170
~right:2
171
~bottom:5
172 173 174 175
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
176
~fill:`BOTH
177
)
178 179 180 181
~text_xalign:0.5
~text_yalign:0.5
~bar_style:`CONTINUOUS
~activity_mode:false
182
~show_text:true
183
~format_string: "%P %%"
184 185
()
in
186 187 188
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
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
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
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
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
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
let hbox13 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(table2#attach ~left:1
~top:0
~right:2
~bottom:1
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`BOTH
)
()
in
let sut_name = GEdit.entry
~packing:(hbox13#pack ~padding:0
~fill:true
~expand:true
)
~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:"Name of the file of the system under test (MANDATORY)" sut_name#coerce in
let sut_node = GEdit.entry
~packing:(hbox13#pack ~padding:0
~fill:true
~expand:true
)
~max_length:0
~visibility:true
~editable:true
()
in
let _ = GtkBase.Widget.set_can_focus sut_node#as_widget true in
let _ = tooltips#set_tip ~text:"Main node name" sut_node#coerce in
let hbox14 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(table2#attach ~left:1
~top:2
~right:2
~bottom:3
~xpadding:0
~ypadding:0
~expand:`NONE
~shrink:`NONE
~fill:`BOTH
)
()
in
let oracle_name = GEdit.entry
~packing:(hbox14#pack ~padding:0
~fill:true
~expand:true
)
~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:"Name of the oracle file (MANDATORY)" oracle_name#coerce in
let oracle_node = GEdit.entry
~packing:(hbox14#pack ~padding:0
~fill:true
~expand:true
)
~max_length:0
~visibility:true
~editable:true
()
in
let _ = GtkBase.Widget.set_can_focus oracle_node#as_widget true in
let _ = tooltips#set_tip ~text:"Oracle main node name" oracle_node#coerce in
368
let scrolledwindow2 = GBin.scrolled_window
369 370
~hpolicy:`AUTOMATIC
~vpolicy:`AUTOMATIC
371 372 373 374 375
~packing:(vpaned2#add )
()
in
let output_window = GEdit.text
~packing:scrolledwindow2#add
376
~height:300
377 378 379 380 381 382
~editable:false
()
in

 let _ = output_window#insert_text ~pos:0 "" in
let _ = GtkBase.Widget.set_can_focus output_window#as_widget true in
383 384
let _ = GtkBase.Widget.set_can_default output_window#as_widget true in
let _ = GtkBase.Widget.grab_default output_window#as_widget in
385 386
let hbox1 = GPack.hbox
~spacing:4
387
~homogeneous:true
388 389 390
~packing:(run_panel#add )
()
in
391
let toolbar4 = GButton.toolbar
392 393 394
~packing:(hbox1#pack ~padding:5
~fill:true
~expand:true
395
)
396
~orientation:`HORIZONTAL
397
~button_relief:`NORMAL
398
~tooltips:true
399 400
~space_size:20
~border_width:6
401 402 403 404 405
~space_style:`LINE
()
in
let _ = GtkBase.Widget.set_can_focus toolbar4#as_widget true in
let _ = GtkBase.Widget.grab_focus toolbar4#as_widget in
406
let button17 = toolbar4#insert_button 
407
~text: "                 "
408
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/run.xpm" ()) ())#coerce
409 410
()
in
411
let _ = tooltips#set_tip ~text:"Start the testing process" button17#coerce in
412
let button18 = toolbar4#insert_button 
413
~text: "           "
414
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/chrono.xpm" ()) ())#coerce
415 416
()
in
417
let _ = tooltips#set_tip ~text:"Call sim2chro with the lastly generated data" button18#coerce in
418
let button19 = toolbar4#insert_button 
419
~text: "               "
420
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/save.xpm" ()) ())#coerce
421 422
()
in
423
let _ = tooltips#set_tip ~text:"Save current parameters" button19#coerce in
424
let button20 = toolbar4#insert_button 
425
~text: "                    "
426 427 428 429 430 431
~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: "                    "
432
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/close.xpm" ()) ())#coerce
433 434
()
in
435
let _ = tooltips#set_tip ~text:"Quit xlurette" button36#coerce in
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
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
520
~text: "Transition thickness"
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538
~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
539
~text: "Formula thickness"
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
~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
577
~adjustment:(GData.adjustment~value:1.
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
~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
749
let radiobutton_user_seed = GButton.radio_button
750 751 752 753 754 755 756 757 758 759
~group:radiobutton_random_seed#group
~packing:(hbox9#pack ~padding:0
~fill:false
~expand:false
)
~label: "Manual"
~draw_indicator:true
~active:false
()
in
760 761
let _ = GtkBase.Widget.set_can_focus radiobutton_user_seed#as_widget true in
let _ = tooltips#set_tip ~text:"Manually initialize the random engine" radiobutton_user_seed#coerce in
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
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
884
let _ = tooltips#set_tip ~text:"Draw inside the convex hull of solutions, but a little bit more often among the edges " radiobutton_edges#coerce in
885
let radiobutton_vertices = GButton.radio_button
886 887 888 889 890
~group:radiobutton_inside#group
~packing:(hbox3#pack ~padding:0
~fill:false
~expand:false
)
891
~label: "Vertices"
892 893 894 895
~draw_indicator:true
~active:false
()
in
896 897
let _ = GtkBase.Widget.set_can_focus radiobutton_vertices#as_widget true in
let _ = tooltips#set_tip ~text:"Draw among the vertices of the polyhedra of solutions" radiobutton_vertices#coerce in
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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016
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
1017
~active:false
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028
()
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
1029
~active:true
1030 1031 1032
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_verbose_off#as_widget true in
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078
let hbox12 = GPack.hbox
~spacing:0
~homogeneous:false
~packing:(vbox9#pack ~padding:0
~fill:false
~expand:false
)
()
in
let label21 = GMisc.label
~text: "Use the progress bar   "
~packing:(hbox12#pack ~padding:0
~fill:false
~expand:false
)
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
let radiobutton_show_step_on = GButton.radio_button
~packing:(hbox12#pack ~padding:0
~fill:false
~expand:false
)
~label: "yes"
~draw_indicator:true
~active:true
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_show_step_on#as_widget true in
let _ = tooltips#set_tip ~text:"Migth slow down the execution a smidgin" radiobutton_show_step_on#coerce in
let radiobutton_show_step_off = GButton.radio_button
~group:radiobutton_show_step_on#group
~packing:(hbox12#pack ~padding:0
~fill:false
~expand:false
)
~label: "No"
~draw_indicator:true
~active:false
()
in
let _ = GtkBase.Widget.set_can_focus radiobutton_show_step_off#as_widget true in
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093
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
1094
let button14 = toolbar3#insert_button 
1095
~text: "                 "
1096
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/chrono.xpm" ()) ())#coerce
1097 1098 1099
()
in
let _ = tooltips#set_tip ~text:"Call sim2chro with the lastly generated data" button14#coerce in
1100
let button15 = toolbar3#insert_button 
1101
~text: "              "
1102
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/save.xpm" ()) ())#coerce
1103 1104
()
in
1105
let _ = tooltips#set_tip ~text:"Save current parameters" button15#coerce in
1106
let button16 = toolbar3#insert_button 
1107
~text: "              "
1108
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/close.xpm" ()) ())#coerce
1109 1110 1111
()
in
let _ = tooltips#set_tip ~text:"Quit xlurette" button16#coerce in
1112 1113 1114 1115 1116 1117 1118 1119 1120
let parameters = GMisc.label
~text: "Parameters"
~xalign:0.5
~yalign:0.5
~xpad:0
~ypad:0
~line_wrap:false
()
in
1121 1122 1123
let _ =  button16#connect#clicked
	~callback:callbacks#quit in
let _ =  button15#connect#clicked
1124
	~callback:callbacks#save_parameters in
1125 1126
let _ =  button14#connect#clicked
	~callback:callbacks#call_sim2chro_clicked in
1127 1128
let _ =  button2#connect#clicked
	~callback:callbacks#save_session in
1129
let _ =  button36#connect#clicked
1130
	~callback:callbacks#quit in
1131 1132
let _ =  button20#connect#clicked
	~callback:callbacks#stop_run in
1133
let _ =  button19#connect#clicked
1134
	~callback:callbacks#save_parameters in
1135
let _ =  button18#connect#clicked
1136
	~callback:callbacks#call_sim2chro_clicked in
1137
let _ =  button17#connect#clicked
1138
	~callback:callbacks#run_lurette in
1139 1140 1141 1142
let _ =  oracle_name#connect#changed
	~callback:callbacks#on_oracle_name_changed in
let _ =  sut_name#connect#changed
	~callback:callbacks#on_sut_name_changed in
1143
let _ =  button33#connect#clicked
1144
	~callback:callbacks#browse_oracle_clicked in
1145
let _ =  button32#connect#clicked
1146
	~callback:callbacks#browse_sut_clicked in
1147 1148 1149
let _ =  button30#connect#clicked
	~callback:callbacks#add_env_clicked in
let _ =  button29#connect#clicked
1150
	~callback:callbacks#browse_env_clicked in
1151 1152
let _ =  show_env_button#connect#clicked
	~callback:callbacks#show_env_button_clicked in
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
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 env_name = env_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
1169
method step_number_label = step_number_label
1170 1171 1172 1173 1174 1175 1176 1177
method hbox11 = hbox11
method toolbar5 = toolbar5
method button29 = button29
method button30 = button30
method toolbar6 = toolbar6
method button32 = button32
method toolbar7 = toolbar7
method button33 = button33
1178 1179 1180 1181 1182 1183
method hbox13 = hbox13
method sut_name = sut_name
method sut_node = sut_node
method hbox14 = hbox14
method oracle_name = oracle_name
method oracle_node = oracle_node
1184 1185 1186
method scrolledwindow2 = scrolledwindow2
method output_window = output_window
method hbox1 = hbox1
1187 1188 1189 1190 1191
method toolbar4 = toolbar4
method button17 = button17
method button18 = button18
method button19 = button19
method button20 = button20
1192
method button36 = button36
1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
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
1212
method radiobutton_user_seed = radiobutton_user_seed
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222
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
1223
method radiobutton_vertices = radiobutton_vertices
1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235
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
1236 1237 1238 1239
method hbox12 = hbox12
method label21 = label21
method radiobutton_show_step_on = radiobutton_show_step_on
method radiobutton_show_step_off = radiobutton_show_step_off
1240 1241 1242 1243
method toolbar3 = toolbar3
method button14 = button14
method button15 = button15
method button16 = button16
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263
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
1264
~fileop_buttons:false
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296
()
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
1297
~fileop_buttons:false
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322
()
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
1323
~wm_name: "Select a new environement file"
1324 1325 1326 1327 1328 1329
~position:`MOUSE
~modal:false
~allow_shrink:false
~allow_grow:true
~auto_shrink:false
~border_width:10
1330
~fileop_buttons:false
1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372
()
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
1373
let toolbar2 = GButton.toolbar
1374
~packing:(vbox12#pack ~padding:0
1375 1376
~fill:false
~expand:false
1377
)
1378 1379 1380 1381 1382 1383 1384 1385
~orientation:`VERTICAL
~button_relief:`NORMAL
~tooltips:true
~space_size:5
~border_width:3
~space_style:`EMPTY
()
in
1386 1387 1388
let button9 = toolbar2#insert_button 
~text: "Step"
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/step.xpm" ()) ())#coerce
1389 1390
()
in
1391 1392 1393
let _ = tooltips#set_tip ~text:"Run one step" button9#coerce in
let button10 = toolbar2#insert_button 
~text: "Stop"
1394
~icon:(GMisc.pixmap (GDraw.pixmap_from_xpm ~file:"pixmaps/halt.xpm" ()) ())#coerce
1395 1396
()
in
1397
let _ = tooltips#set_tip ~text:"Stop the current execution and close the window" button10#coerce in
1398
let _ =  button10#connect#clicked
1399
	~callback:callbacks#stop in
1400
let _ =  button9#connect#clicked
1401 1402 1403 1404 1405 1406
	~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
1407 1408 1409
method toolbar2 = toolbar2
method button9 = button9
method button10 = button10
1410 1411
initializer callbacks#set_step_by_step_window self;
end
1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444

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