]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaMathView.mli
This commit simplifies the interfaces of the various Widget-related .mli
[helm.git] / matita / matita / matitaMathView.mli
index b1064ba77e54a3437fe42fad5dd92f22f75a129d..bc5d44920390f5abffe5c2d28b8108979e1babdc 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-(** {2 Constructors} *)
-
-  (** meta constructor *)
-type 'widget constructor =
- ?hadjustment:GData.adjustment ->
- ?vadjustment:GData.adjustment ->
- ?font_size:int ->
- ?log_verbosity:int ->
- ?auto_indent:bool ->
- ?highlight_current_line:bool ->
- ?indent_on_tab:bool ->
- ?indent_width:int ->
- ?insert_spaces_instead_of_tabs:bool ->
- ?right_margin_position:int ->
- ?show_line_marks:bool ->
- ?show_line_numbers:bool ->
- ?show_right_margin:bool ->
- ?smart_home_end:SourceView2Enums.source_smart_home_end_type ->
- ?tab_width:int ->
- ?editable:bool ->
- ?cursor_visible:bool ->
- ?justification:GtkEnums.justification ->
- ?wrap_mode:GtkEnums.wrap_mode ->
- ?accepts_tab:bool ->
- ?border_width: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
-
+(** {2 Instances} *)
 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 ... *)
+(** {2 Singleton instances} *)
+val sequentsViewer_instance:  unit -> MatitaGuiTypes.sequentsViewer
+val mathViewer:               unit -> MatitaTypes.mathViewer
+
+(** {2 Global changes} *)
 
 val increase_font_size:   unit -> unit
 val decrease_font_size:   unit -> unit
@@ -90,14 +52,6 @@ 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
-