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>
6 * This file is part of lablgtkmathview, the Ocaml binding for the
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.
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.
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
24 * For details, send a mail to the authors.
27 (** {1 Selection-enabled GtkMathView classes} *)
29 (** {2 Single-selection} *)
32 class single_selection_math_view_signals :
33 ([> `gtk | `mathview_gmetadom | `widget] as 'b) Gtk.obj ->
34 ((Gdome.element option -> unit) -> unit) ->
36 inherit GMathView.math_view_signals
37 method selection_changed : (Gdome.element_of_node option -> unit) -> unit
41 class single_selection_math_view :
42 Gtk_mathview.math_view Gtk.obj ->
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
51 (** single_selection_math_view constructor *)
52 val single_selection_math_view :
53 ?hadjustment:GData.adjustment ->
54 ?vadjustment:GData.adjustment ->
59 ?packing:(GObj.widget -> unit) ->
62 single_selection_math_view
64 (** {2 Multiple-selection} *)
66 (** main class, extends single_selection_math_view *)
67 class multi_selection_math_view :
68 Gtk_mathview.math_view Gtk.obj ->
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
77 (** multi_selection_math_view constructor *)
78 val multi_selection_math_view :
79 ?hadjustment:GData.adjustment ->
80 ?vadjustment:GData.adjustment ->
85 ?packing:(GObj.widget -> unit) ->
88 multi_selection_math_view