X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2FmatitaMathView.mli;h=dd1e189557ba88cb7bdba3a0b063d9d091631823;hb=d9a1ff8259a7882caa0ffd27282838c00a34cab5;hp=ea0c077d842ef2c7ca9731df7f4d4395b79fb277;hpb=2c01ff6094173915e7023076ea48b5804dca7778;p=helm.git diff --git a/matita/matita/matitaMathView.mli b/matita/matita/matitaMathView.mli index ea0c077d8..dd1e18955 100644 --- a/matita/matita/matitaMathView.mli +++ b/matita/matita/matitaMathView.mli @@ -23,45 +23,18 @@ * http://helm.cs.unibo.it/ *) -(** {2 Constructors} *) - - (** meta constructor *) -type 'widget constructor = - ?hadjustment:GData.adjustment -> - ?vadjustment:GData.adjustment -> - ?font_size:int -> - ?log_verbosity:int -> - ?width:int -> - ?height:int -> - ?packing:(GObj.widget -> unit) -> - ?show:bool -> - unit -> - 'widget - -val clickableMathView: MatitaGuiTypes.clickableMathView constructor - -val cicMathView: MatitaGuiTypes.cicMathView constructor - -val sequentsViewer: - notebook:GPack.notebook -> - cicMathView:MatitaGuiTypes.cicMathView -> - unit -> - MatitaGuiTypes.sequentsViewer - -val cicBrowser: unit -> MatitaGuiTypes.cicBrowser - -(** {2 MathView wide functions} *) -(* TODO ZACK consider exporting here a single function which return a list of - * MatitaGuiTypes.clickableMathView and act on them externally ... *) - -val increase_font_size: unit -> unit -val decrease_font_size: unit -> unit -val reset_font_size: unit -> unit +(** {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 update_font_sizes: unit -> unit - (** {3 Clipboard & Selection handling} *) +(** {2 Rendering in a browser} *) +(** @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 + +(** {2 Clipboard & Selection handling} *) val has_selection: unit -> bool @@ -73,15 +46,3 @@ val empty_clipboard: unit -> unit (** empty the clipboard *) (** @raise Failure "empty clipboard" *) val paste_clipboard: MatitaGuiTypes.paste_kind -> string - -(** {2 Singleton instances} *) - -val cicMathView_instance: unit -> MatitaGuiTypes.cicMathView -val sequentsViewer_instance: unit -> MatitaGuiTypes.sequentsViewer - -val mathViewer: unit -> MatitaTypes.mathViewer - -(** {2 Initialization} *) - -val set_gui: MatitaGuiTypes.gui -> unit -