Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

gconfig.mli 4.27 KB
Newer Older
Andrei Paskevich's avatar
Andrei Paskevich committed
1 2 3
(********************************************************************)
(*                                                                  *)
(*  The Why3 Verification Platform   /   The Why3 Development Team  *)
Andrei Paskevich's avatar
Andrei Paskevich committed
4
(*  Copyright 2010-2016   --   INRIA - CNRS - Paris-Sud University  *)
Andrei Paskevich's avatar
Andrei Paskevich committed
5 6 7 8
(*                                                                  *)
(*  This software is distributed under the terms of the GNU Lesser  *)
(*  General Public License version 2.1, with the special exception  *)
(*  on linking described in file LICENSE.                           *)
9
(*                                                                  *)
Andrei Paskevich's avatar
Andrei Paskevich committed
10
(********************************************************************)
MARCHE Claude's avatar
MARCHE Claude committed
11

12
open Why3
13

14
type t =
MARCHE Claude's avatar
MARCHE Claude committed
15 16 17
    { mutable window_width : int;
      mutable window_height : int;
      mutable tree_width : int;
18
      mutable font_size : int;
19
      mutable current_tab : int;
MARCHE Claude's avatar
MARCHE Claude committed
20
      mutable verbose : int;
21
      mutable default_prover : string;
22
      mutable default_editor : string;
23
      mutable intro_premises : bool;
MARCHE Claude's avatar
MARCHE Claude committed
24
      mutable show_labels : bool;
25
      mutable show_locs : bool;
MARCHE Claude's avatar
MARCHE Claude committed
26
      mutable show_time_limit : bool;
MARCHE Claude's avatar
MARCHE Claude committed
27
      mutable max_boxes : int;
28
      mutable saving_policy : int;
Andrei Paskevich's avatar
minor  
Andrei Paskevich committed
29
      mutable premise_color : string;
30
      mutable neg_premise_color : string;
Andrei Paskevich's avatar
minor  
Andrei Paskevich committed
31
      mutable goal_color : string;
32
      mutable error_color : string;
MARCHE Claude's avatar
MARCHE Claude committed
33
      mutable iconset : string;
34
      mutable env : Why3.Env.env;
35
      mutable config : Whyconf.config;
36
      original_config : Whyconf.config;
37
      (* mutable altern_provers : prover option Mprover.t; *)
38
      (* mutable replace_prover : conf_replace_prover; *)
39
      mutable hidden_provers : string list;
40 41 42
      mutable session_time_limit : int;
      mutable session_mem_limit : int;
      mutable session_nb_processes : int;
43
      mutable session_cntexample : bool;
MARCHE Claude's avatar
MARCHE Claude committed
44 45
    }

46 47
val load_config : Whyconf.config -> Whyconf.config -> Why3.Env.env -> unit
(** [load_config config original_config env] creates and saves IDE config *)
48

49 50
val init : unit -> unit

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

53 54 55
val config : unit -> t
(** [config ()] raise [invalid_arg "configuration not yet loaded"]
    if load_config is not called *)
56 57

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

59 60 61 62
val incr_font_size : int -> int
(** [incr_font_size n] increments current font size by [n] (can be negative)
    and returns the new size *)

MARCHE Claude's avatar
MARCHE Claude committed
63 64 65 66 67
(*****************)
(* images, icons *)
(*****************)

val why_icon : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
68 69 70 71 72

val image_yes : GdkPixbuf.pixbuf ref

(* tree object icons *)
val image_file : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
73 74
val image_theory : GdkPixbuf.pixbuf ref
val image_goal : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
75 76
val image_prover : GdkPixbuf.pixbuf ref
val image_transf : GdkPixbuf.pixbuf ref
François Bobot's avatar
François Bobot committed
77
val image_metas  : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
78
val image_editor : GdkPixbuf.pixbuf ref
79
val image_replay : GdkPixbuf.pixbuf ref
80
val image_cancel : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
81
val image_reload : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
merge  
MARCHE Claude committed
82
val image_remove : GdkPixbuf.pixbuf ref
83
val image_cleaning : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
84 85

(* status icons *)
MARCHE Claude's avatar
MARCHE Claude committed
86
val image_undone : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
87 88 89
val image_scheduled : GdkPixbuf.pixbuf ref
val image_running : GdkPixbuf.pixbuf ref
val image_valid : GdkPixbuf.pixbuf ref
90
val image_invalid : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
91
val image_timeout : GdkPixbuf.pixbuf ref
92
val image_outofmemory : GdkPixbuf.pixbuf ref
93
val image_steplimitexceeded : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
94 95
val image_unknown : GdkPixbuf.pixbuf ref
val image_failure : GdkPixbuf.pixbuf ref
96
val image_valid_obs : GdkPixbuf.pixbuf ref
97
val image_invalid_obs : GdkPixbuf.pixbuf ref
98
val image_timeout_obs : GdkPixbuf.pixbuf ref
99
val image_outofmemory_obs : GdkPixbuf.pixbuf ref
100
val image_steplimitexceeded_obs : GdkPixbuf.pixbuf ref
101 102
val image_unknown_obs : GdkPixbuf.pixbuf ref
val image_failure_obs : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
103 104 105 106 107 108 109

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

val show_legend_window : unit -> unit
val show_about_window : unit -> unit
110
val preferences : t -> unit
111 112 113 114 115

val uninstalled_prover :
  t -> 'key Session.env_session -> Whyconf.prover -> Whyconf.prover_upgrade_policy

(*
116 117
val unknown_prover :
  t -> 'key Session.env_session -> Whyconf.prover -> Whyconf.prover option
118
*)
MARCHE Claude's avatar
MARCHE Claude committed
119

120
(* obsolete dialog
121 122
val replace_prover :
  t -> 'key Session.proof_attempt -> 'key Session.proof_attempt -> bool
123
*)
MARCHE Claude's avatar
MARCHE Claude committed
124 125


MARCHE Claude's avatar
MARCHE Claude committed
126
(*
127
Local Variables:
128
compile-command: "unset LANG; make -C ../.. bin/why3ide.byte"
129
End:
MARCHE Claude's avatar
MARCHE Claude committed
130
*)