]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaMathView.mli
Porting to ocaml 5
[helm.git] / matita / matita / matitaMathView.mli
index bc5d44920390f5abffe5c2d28b8108979e1babdc..567f67d42059798224ec7b63673e4f604b04b6fe 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-(** {2 Instances} *)
-val cicBrowser: unit -> MatitaGuiTypes.cicBrowser
-
-(** {2 Singleton instances} *)
-val sequentsViewer_instance:  unit -> MatitaGuiTypes.sequentsViewer
-val mathViewer:               unit -> MatitaTypes.mathViewer
+(** {2 To be called just once} *)
+val sequentsViewer_instance: GPack.notebook -> MatitaGuiTypes.sequentsViewer
 
 (** {2 Global changes} *)
+val refresh_all_browsers: unit -> unit  (** act on all cicBrowsers *)
 
-val increase_font_size:   unit -> unit
-val decrease_font_size:   unit -> unit
-val reset_font_size:      unit -> unit
+(** {2 Rendering in a browser} *)
 
-val refresh_all_browsers: unit -> unit  (** act on all cicBrowsers *)
-val update_font_sizes:    unit -> unit
+(** @param reuse if set reused last opened cic browser otherwise 
+*  opens a new one. default is false *)
+val cicBrowser: ?reuse:bool -> MatitaTypes.mathViewer_entry option -> unit
 
-  (** {3 Clipboard & Selection handling} *)
+(** {2 Clipboard & Selection handling} *)
 
 val has_selection: unit -> bool
 
@@ -47,11 +43,8 @@ val has_selection: unit -> bool
    * @raise Failure "no selection" *)
 val copy_selection: unit -> unit
 val has_clipboard: unit -> bool (** clipboard is not empty *)
+
 val empty_clipboard: unit -> unit (** empty the clipboard *)
 
   (** @raise Failure "empty clipboard" *)
 val paste_clipboard: MatitaGuiTypes.paste_kind -> string
-
-(** {2 Initialization} *)
-
-val set_gui: MatitaGuiTypes.gui -> unit