X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2FgTopLevel%2FtermViewer.mli;fp=helm%2FgTopLevel%2FtermViewer.mli;h=0000000000000000000000000000000000000000;hp=5a510503577f63c4084c3cad64947d2d30c5da6f;hb=3ef089a4c58fbe429dd539af6215991ecbe11ee2;hpb=1c7fb836e2af4f2f3d18afd0396701f2094265ff diff --git a/helm/gTopLevel/termViewer.mli b/helm/gTopLevel/termViewer.mli deleted file mode 100644 index 5a5105035..000000000 --- a/helm/gTopLevel/termViewer.mli +++ /dev/null @@ -1,102 +0,0 @@ -(* Copyright (C) 2000-2002, HELM Team. - * - * This file is part of HELM, an Hypertextual, Electronic - * Library of Mathematics, developed at the Computer Science - * Department, University of Bologna, Italy. - * - * HELM is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * HELM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with HELM; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. - * - * For details, see the HELM World-Wide-Web page, - * http://cs.unibo.it/helm/. - *) - -(******************************************************************************) -(* *) -(* PROJECT HELM *) -(* *) -(* Claudio Sacerdoti Coen *) -(* 29/01/2003 *) -(* *) -(* *) -(******************************************************************************) - -(** A widget to render sequents **) - -val use_stylesheets: bool ref;; (* false performs the transformations in OCaml*) - -class sequent_viewer : - Gtk_mathview.math_view Gtk.obj -> - object - inherit GMathViewAux.multi_selection_math_view - - (* returns the list of selected terms *) - (* selections which are not terms are ignored *) - method get_selected_terms : Cic.term list - - (* returns the list of selected hypotheses *) - (* selections which are not hypotheses are ignored *) - method get_selected_hypotheses : Cic.hypothesis list - - method load_sequent : Cic.metasenv -> Cic.conjecture -> unit - end - -val sequent_viewer : - ?adjustmenth:GData.adjustment -> - ?adjustmentv:GData.adjustment -> - ?font_size:int -> - ?font_manager:[ `font_manager_gtk | `font_manager_t1] -> - ?border_width:int -> - ?width:int -> - ?height:int -> - ?packing:(GObj.widget -> unit) -> - ?show:bool -> - unit -> sequent_viewer - -(** A widget to render proofs **) - -class proof_viewer : - Gtk_mathview.math_view Gtk.obj -> - object - inherit GMathViewAux.single_selection_math_view - - (* the new current sequent becomes the one obtained *) - (* perforating the proof where the selection is *) - method make_sequent_of_selected_term : unit - - (* the new current sequent becomes the one obtained *) - (* focusing the proof on the selected metavariable *) - method focus_sequent_of_selected_term : unit - - (* load_proof also returns the annotated cic term and the *) - (* ids_to_inner_types and ids_to_inner_sorts maps. *) - method load_proof : - UriManager.uri -> Cic.obj -> - Cic.annobj * (Cic.id, Cic2acic.anntypes) Hashtbl.t * - (Cic.id, string) Hashtbl.t - - end - -val proof_viewer : - ?adjustmenth:GData.adjustment -> - ?adjustmentv:GData.adjustment -> - ?font_size:int -> - ?font_manager:[ `font_manager_gtk | `font_manager_t1] -> - ?border_width:int -> - ?width:int -> - ?height:int -> - ?packing:(GObj.widget -> unit) -> - ?show:bool -> - unit -> proof_viewer