X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaMathView.mli;h=bee32796ebaa0457c46f1b2a58ef64e5199f3a77;hb=7bbce6bc163892cfd99cfcda65db42001b86789f;hp=3816a4b02ee1cabfd9099a3f0d1846bc44f00bd1;hpb=cfd919846d9e9c437a017f67ea1993eff7ea8ee9;p=helm.git diff --git a/helm/matita/matitaMathView.mli b/helm/matita/matitaMathView.mli index 3816a4b02..bee32796e 100644 --- a/helm/matita/matitaMathView.mli +++ b/helm/matita/matitaMathView.mli @@ -23,51 +23,6 @@ * http://helm.cs.unibo.it/ *) - (** multi selection gtkMathView which handle mactions and hyperlinks. Mactions - * are handled internally. Hyperlinks are handled by calling an user provided - * callback *) -class type clickableMathView = - object - inherit GMathViewAux.multi_selection_math_view - - (** set hyperlink callback. None disable hyperlink handling *) - method set_href_callback: (string -> unit) option -> unit - - method string_of_selected_terms: string - - method update_font_size: unit - end - -class type sequentViewer = - object - inherit clickableMathView - -(* |+* @return the list of selected terms. Selections which are not terms are - * ignored +| - method get_selected_terms: Cic.term list - - |+* @return the list of selected hypothese. Selections which are not - * hypotheses are ignored +| - method get_selected_hypotheses: Cic.hypothesis list *) - - (** load a sequent and render it into parent widget *) - method load_sequent: Cic.metasenv -> int -> unit - end - -class type sequentsViewer = - object - method reset: unit - method load_sequents: ProofEngineTypes.status -> unit - method goto_sequent: int -> unit (* to be called _after_ load_sequents *) - end - -class type cicBrowser = -object - method load: MatitaTypes.mathViewer_entry -> unit - (* method loadList: string list -> MatitaTypes.mathViewer_entry -> unit *) - method loadInput: string -> unit -end - (** {2 Constructors} *) (** meta constructor *) @@ -83,31 +38,35 @@ type 'widget constructor = unit -> 'widget -val clickableMathView: clickableMathView constructor +val clickableMathView: MatitaGuiTypes.clickableMathView constructor -val sequentViewer: sequentViewer constructor +val sequentViewer: MatitaGuiTypes.sequentViewer constructor val sequentsViewer: notebook:GPack.notebook -> - sequentViewer:sequentViewer -> + sequentViewer:MatitaGuiTypes.sequentViewer -> unit -> - sequentsViewer + MatitaGuiTypes.sequentsViewer -val cicBrowser: unit -> cicBrowser +val cicBrowser: unit -> MatitaGuiTypes.cicBrowser -(** mathview wide functions *) +(** {2 Mathview wide functions} *) -val increase_font_size: unit -> unit -val decrease_font_size: unit -> unit -val reset_font_size: unit -> unit +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 +val update_font_sizes: unit -> unit + +(** {2 Singleton instances} *) + +val sequentViewer_instance: unit -> MatitaGuiTypes.sequentViewer +val sequentsViewer_instance: unit -> MatitaGuiTypes.sequentsViewer -(** {2 singleton instances} *) +val mathViewer: unit -> MatitaTypes.mathViewer -val sequentViewer_instance: unit -> sequentViewer -val sequentsViewer_instance: unit -> sequentsViewer +(** {2 Initialization} *) -val mathViewer: unit -> MatitaTypes.mathViewer +val set_gui: MatitaGuiTypes.gui -> unit