gconfig.mli 4.58 KB
Newer Older
Andrei Paskevich's avatar
Andrei Paskevich committed
1 2 3
(********************************************************************)
(*                                                                  *)
(*  The Why3 Verification Platform   /   The Why3 Development Team  *)
Guillaume Melquiond's avatar
Guillaume Melquiond committed
4
(*  Copyright 2010-2018   --   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 task_height : int;
19
      mutable font_size : int;
20
      mutable current_tab : int;
MARCHE Claude's avatar
MARCHE Claude committed
21
      mutable verbose : int;
22
      mutable show_full_context : bool;
23
      mutable show_attributes : bool;
Mário Pereira's avatar
Mário Pereira committed
24
      mutable show_coercions : 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 allow_source_editing : bool;
29
      mutable saving_policy : int;
Andrei Paskevich's avatar
minor  
Andrei Paskevich committed
30
      mutable premise_color : string;
31
      mutable neg_premise_color : string;
Andrei Paskevich's avatar
minor  
Andrei Paskevich committed
32
      mutable goal_color : string;
33
      mutable error_color : string;
34
      mutable error_color_bg : string;
35
      mutable error_line_color : string;
MARCHE Claude's avatar
MARCHE Claude committed
36
      mutable iconset : string;
37
      mutable config : Whyconf.config;
38
      original_config : Whyconf.config;
39
      (* mutable altern_provers : prover option Mprover.t; *)
40
      (* mutable replace_prover : conf_replace_prover; *)
41
      mutable hidden_provers : string list;
42 43 44
      mutable session_time_limit : int;
      mutable session_mem_limit : int;
      mutable session_nb_processes : int;
MARCHE Claude's avatar
MARCHE Claude committed
45 46
    }

Clément Fumex's avatar
Clément Fumex committed
47 48
val load_config : Whyconf.config -> Whyconf.config -> unit
(** [load_config config original_config] creates and saves IDE config *)
49

50 51
val init : unit -> unit

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

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

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

MARCHE Claude's avatar
MARCHE Claude committed
60 61 62 63 64 65
(*******************)
(*   font size     *)
(*******************)

val add_modifiable_sans_font_view : GObj.misc_ops -> unit
val add_modifiable_mono_font_view : GObj.misc_ops -> unit
Clément Fumex's avatar
Clément Fumex committed
66 67 68
val enlarge_fonts : unit -> unit
val reduce_fonts : unit -> unit
val set_fonts : unit -> unit
69

MARCHE Claude's avatar
MARCHE Claude committed
70 71 72 73 74
(*****************)
(* images, icons *)
(*****************)

val why_icon : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
75 76 77 78 79

val image_yes : GdkPixbuf.pixbuf ref

(* tree object icons *)
val image_file : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
80 81
val image_theory : GdkPixbuf.pixbuf ref
val image_goal : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
82 83
val image_prover : GdkPixbuf.pixbuf ref
val image_transf : GdkPixbuf.pixbuf ref
François Bobot's avatar
François Bobot committed
84
val image_metas  : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
85
val image_editor : GdkPixbuf.pixbuf ref
86
val image_replay : GdkPixbuf.pixbuf ref
87
val image_cancel : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
88
val image_reload : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
merge  
MARCHE Claude committed
89
val image_remove : GdkPixbuf.pixbuf ref
90
val image_cleaning : GdkPixbuf.pixbuf ref
MARCHE Claude's avatar
MARCHE Claude committed
91 92

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

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

115 116 117
val show_legend_window : parent:#GWindow.window_skel -> unit -> unit
val show_about_window : parent:#GWindow.window_skel -> unit -> unit
val preferences : parent:#GWindow.window_skel -> t -> unit
118

119
val uninstalled_prover_dialog :
120
  parent:#GWindow.window_skel ->
121
  callback: (Whyconf.prover -> Whyconf.prover_upgrade_policy -> unit) ->
122 123
  t -> Whyconf.prover -> unit

124 125

(*
126 127
val unknown_prover :
  t -> 'key Session.env_session -> Whyconf.prover -> Whyconf.prover option
128
*)
MARCHE Claude's avatar
MARCHE Claude committed
129

130
(* obsolete dialog
131 132
val replace_prover :
  t -> 'key Session.proof_attempt -> 'key Session.proof_attempt -> bool
133
*)
MARCHE Claude's avatar
MARCHE Claude committed
134 135


MARCHE Claude's avatar
MARCHE Claude committed
136
(*
137
Local Variables:
138
compile-command: "unset LANG; make -C ../.. bin/why3ide.byte"
139
End:
MARCHE Claude's avatar
MARCHE Claude committed
140
*)