gconfig.mli 3.52 KB
Newer Older
MARCHE Claude's avatar
MARCHE Claude committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
(**************************************************************************)
(*                                                                        *)
(*  Copyright (C) 2010-                                                   *)
(*    François Bobot                                                     *)
(*    Jean-Christophe Filliâtre                                          *)
(*    Claude Marché                                                      *)
(*    Andrei Paskevich                                                    *)
(*                                                                        *)
(*  This software is free software; you can redistribute it and/or        *)
(*  modify it under the terms of the GNU Library General Public           *)
(*  License version 2.1, with the special exception on linking            *)
(*  described in file LICENSE.                                            *)
(*                                                                        *)
(*  This software is distributed in the hope that it will be useful,      *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                  *)
(*                                                                        *)
(**************************************************************************)
MARCHE Claude's avatar
MARCHE Claude committed
19

MARCHE Claude's avatar
MARCHE Claude committed
20 21 22 23 24 25 26
open Why

type prover_data =
    { prover_id : string;
      prover_name : string;
      prover_version : string;
      command : string;
27
      driver_name : string;
MARCHE Claude's avatar
MARCHE Claude committed
28
      driver : Driver.driver;
29
      mutable editor : string;
MARCHE Claude's avatar
MARCHE Claude committed
30
    }
MARCHE Claude's avatar
MARCHE Claude committed
31

32
type t =
MARCHE Claude's avatar
MARCHE Claude committed
33 34 35
    { mutable window_width : int;
      mutable window_height : int;
      mutable tree_width : int;
36
      mutable task_height : int;
37
      mutable time_limit : int;
38
      mutable mem_limit : int;
MARCHE Claude's avatar
MARCHE Claude committed
39
      mutable verbose : int;
40
      mutable max_running_processes : int;
41
      mutable provers : prover_data Util.Mstr.t;
42
      mutable default_editor : string;
MARCHE Claude's avatar
MARCHE Claude committed
43
      mutable show_labels : bool;
MARCHE Claude's avatar
MARCHE Claude committed
44
      mutable env : Why.Env.env;
45
      mutable config : Whyconf.config;
MARCHE Claude's avatar
MARCHE Claude committed
46 47
    }

48
val get_prover_data : Why.Env.env -> string ->
49
  Why.Whyconf.config_prover ->
50
  prover_data Why.Util.Mstr.t -> prover_data Why.Util.Mstr.t
MARCHE Claude's avatar
MARCHE Claude committed
51

52
val save_config : unit -> unit
MARCHE Claude's avatar
MARCHE Claude committed
53

54
val config : t
55 56

val get_main : unit -> Whyconf.main
MARCHE Claude's avatar
MARCHE Claude committed
57

MARCHE Claude's avatar
MARCHE Claude committed
58 59 60 61 62 63 64 65 66 67 68
(***************)
(* boomy icons *)
(***************)

val image_yes : GdkPixbuf.pixbuf ref

(* tree object icons *)
val image_directory : GdkPixbuf.pixbuf ref
val image_file : GdkPixbuf.pixbuf ref
val image_prover : GdkPixbuf.pixbuf ref
val image_transf : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
69
val image_editor : GdkPixbuf.pixbuf ref
70
val image_replay : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
merge  
MARCHE Claude committed
71
val image_remove : GdkPixbuf.pixbuf ref
72
val image_cleaning : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
73 74 75 76 77

(* status icons *)
val image_scheduled : GdkPixbuf.pixbuf ref
val image_running : GdkPixbuf.pixbuf ref
val image_valid : GdkPixbuf.pixbuf ref
78
val image_invalid : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
79 80 81
val image_timeout : GdkPixbuf.pixbuf ref
val image_unknown : GdkPixbuf.pixbuf ref
val image_failure : GdkPixbuf.pixbuf ref
82
val image_valid_obs : GdkPixbuf.pixbuf ref
83
val image_invalid_obs : GdkPixbuf.pixbuf ref
84 85 86
val image_timeout_obs : GdkPixbuf.pixbuf ref
val image_unknown_obs : GdkPixbuf.pixbuf ref
val image_failure_obs : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
87 88 89 90 91 92 93

(*************************)
(* miscellaneous dialogs *)
(*************************)

val show_legend_window : unit -> unit
val show_about_window : unit -> unit
94
val preferences : t -> unit
MARCHE Claude's avatar
MARCHE Claude committed
95

96
val run_auto_detection : t -> unit
MARCHE Claude's avatar
MARCHE Claude committed
97

MARCHE Claude's avatar
MARCHE Claude committed
98
(*
99
Local Variables:
MARCHE Claude's avatar
MARCHE Claude committed
100
compile-command: "unset LANG; make -C ../.. bin/whyide.opt"
101
End:
MARCHE Claude's avatar
MARCHE Claude committed
102
*)