]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaMathView.mli
refactored gui handling code so that MatitaMathView is linked before MatitaGui
[helm.git] / helm / matita / matitaMathView.mli
index 6e43d130bb90889f3384335a01e3fcd9f853815a..bee32796ebaa0457c46f1b2a58ef64e5199f3a77 100644 (file)
@@ -1,4 +1,4 @@
-(* Copyright (C) 2004, HELM Team.
+(* Copyright (C) 2004-2005, HELM Team.
  * 
  * This file is part of HELM, an Hypertextual, Electronic
  * Library of Mathematics, developed at the Computer Science
  * http://helm.cs.unibo.it/
  *)
 
-val proof_viewer :
+(** {2 Constructors} *)
+
+  (** meta constructor *)
+type 'widget constructor =
   ?hadjustment:GData.adjustment ->
   ?vadjustment:GData.adjustment ->
   ?font_size:int ->
@@ -33,17 +36,37 @@ val proof_viewer :
   ?packing:(GObj.widget -> unit) ->
   ?show:bool ->
   unit ->
-    MatitaTypes.proof_viewer
+    'widget
 
-val sequent_viewer :
-  ?hadjustment:GData.adjustment ->
-  ?vadjustment:GData.adjustment ->
-  ?font_size:int ->
-  ?log_verbosity:int ->
-  ?width:int ->
-  ?height:int ->
-  ?packing:(GObj.widget -> unit) ->
-  ?show:bool ->
+val clickableMathView:  MatitaGuiTypes.clickableMathView constructor
+
+val sequentViewer:      MatitaGuiTypes.sequentViewer constructor
+
+val sequentsViewer:
+  notebook:GPack.notebook ->
+  sequentViewer:MatitaGuiTypes.sequentViewer ->
   unit ->
-    MatitaTypes.sequent_viewer
+    MatitaGuiTypes.sequentsViewer
+
+val cicBrowser: unit -> MatitaGuiTypes.cicBrowser
+
+(** {2 Mathview wide functions} *)
+
+val increase_font_size:   unit -> unit
+val decrease_font_size:   unit -> unit
+val reset_font_size:      unit -> unit
+
+val refresh_all_browsers: unit -> unit  (** act on all cicBrowsers *)
+val update_font_sizes:    unit -> unit
+
+(** {2 Singleton instances} *)
+
+val sequentViewer_instance:   unit -> MatitaGuiTypes.sequentViewer
+val sequentsViewer_instance:  unit -> MatitaGuiTypes.sequentsViewer
+
+val mathViewer:               unit -> MatitaTypes.mathViewer
+
+(** {2 Initialization} *)
+
+val set_gui: MatitaGuiTypes.gui -> unit