]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaMisc.mli
Use of standard OCaml syntax
[helm.git] / matita / matita / matitaMisc.mli
index eec60932d69a0db08a5083c95543fcfa59c73d38..07a327cc90a2cf0c3c44eb81aedc054f70eb7240 100644 (file)
@@ -35,7 +35,8 @@ val is_proof_object: string -> bool
   * it *)
 val append_phrase_sep: string -> string
 
-val normalize_dir: string -> string (** add trailing "/" if missing *)
+  (** add trailing "/" if missing *)
+val normalize_dir: string -> string
 val strip_suffix: suffix:string -> string -> string
 
   (** @return tl tail of a list starting at a given element
@@ -50,8 +51,12 @@ type 'a memento
 class type ['a] history =
   object ('b)
     method add : 'a -> unit
-    method next : 'a        (** @raise History_failure *)
-    method previous : 'a    (** @raise History_failure *)
+
+     (** @raise History_failure *)
+    method next : 'a
+
+     (** @raise History_failure *)
+    method previous : 'a
     method load: 'a memento -> unit
     method save: 'a memento
     method is_begin: bool 
@@ -74,8 +79,20 @@ val singleton: (unit -> 'a) -> (unit -> 'a)
   (** given the base name of an image, returns its full path *)
 val image_path: string -> string
 
-  (** 2>/dev/null, HLog = (fun _ -> ()) *)
-val shutup: unit -> unit
-
   (** outputs the preamble of a generated .ma file *)
 val out_preamble: out_channel -> unit
+
+val left_button: int
+val right_button: int
+
+(** {2 Global changes} *)
+
+val observe_font_size: (int -> unit) -> unit
+val get_current_font_size: unit -> int
+val increase_font_size: unit -> unit
+val decrease_font_size: unit -> unit
+val reset_font_size: unit -> unit
+
+(** CSC: these functions should completely disappear (bad design) *)
+val set_gui: MatitaGuiTypes.gui -> unit
+val get_gui: unit -> MatitaGuiTypes.gui