]> matita.cs.unibo.it Git - helm.git/blob - DEVEL/lablgtkmathview/0.7.8-2/gMathViewAux.mli
tagging
[helm.git] / DEVEL / lablgtkmathview / 0.7.8-2 / gMathViewAux.mli
1 (* Copyright (C) 2000-2005,
2  *    Luca Padovani           <lpadovan@cs.unibo.it>
3  *    Claudio Sacerdoti Coen  <sacerdot@cs.unibo.it>
4  *    Stefano Zacchiroli      <zacchiro@cs.unibo.it>
5  *
6  * This file is part of lablgtkmathview, the Ocaml binding for the
7  * GtkMathView widget.
8  * 
9  * lablgtkmathview is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of the
12  * License, or (at your option) any later version.
13  *
14  * lablgtkmathview is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with lablgtkmathview; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22  * 02111-1307, USA.
23  * 
24  * For details, send a mail to the authors.
25  *)
26
27 (** {1 Selection-enabled GtkMathView classes} *)
28
29 (** {2 Single-selection} *)
30
31 (** signals *)
32 class single_selection_math_view_signals :
33   ([> `gtk | `mathview_gmetadom | `widget] as 'b) Gtk.obj ->
34   ((Gdome.element option -> unit) -> unit) ->
35   object
36     inherit GMathView.math_view_signals
37     method selection_changed : (Gdome.element_of_node option -> unit) -> unit
38   end
39
40 (** main class *)
41 class single_selection_math_view :
42   Gtk_mathview.math_view Gtk.obj ->
43   object
44     inherit GMathView.math_view_skel
45     method connect : single_selection_math_view_signals
46     method get_selection : Gdome.element option
47     method set_selection : Gdome.element option -> unit
48     method action_toggle : Gdome.element -> bool
49   end
50
51 (** single_selection_math_view constructor *)
52 val single_selection_math_view :
53   ?hadjustment:GData.adjustment ->
54   ?vadjustment:GData.adjustment ->
55   ?font_size:int ->
56   ?log_verbosity:int ->
57   ?width:int ->
58   ?height:int ->
59   ?packing:(GObj.widget -> unit) ->
60   ?show:bool ->
61   unit ->
62     single_selection_math_view
63
64 (** {2 Multiple-selection} *)
65
66 (** main class, extends single_selection_math_view *)
67 class multi_selection_math_view :
68   Gtk_mathview.math_view Gtk.obj ->
69   object
70     inherit single_selection_math_view
71     method remove_selection : Gdome.element -> unit
72     method remove_selections : unit
73     method add_selection : Gdome.element -> unit
74     method get_selections : Gdome.element list
75   end
76
77 (** multi_selection_math_view constructor *)
78 val multi_selection_math_view :
79   ?hadjustment:GData.adjustment ->
80   ?vadjustment:GData.adjustment ->
81   ?font_size:int ->
82   ?log_verbosity:int ->
83   ?width:int ->
84   ?height:int ->
85   ?packing:(GObj.widget -> unit) ->
86   ?show:bool ->
87   unit ->
88     multi_selection_math_view
89