diff options
author | 2012-05-05 23:51:09 +0000 | |
---|---|---|
committer | 2012-05-05 23:51:09 +0000 | |
commit | aba5307d448d60e46d469d81d253b96f9d3e35f6 (patch) | |
tree | 7d3481beae12d81ccf67147365201d1d985467e7 /ide/wg_ScriptView.mli | |
parent | 5802ce89dce64be3561a381dc58fb73c6ab07e95 (diff) |
Renamed Undo to conform to CoqIDE widget naming convention. In addition,
made various hack to handle GtkSourceView built-in undo/redo and made
method types and names more compliant with the one of Gtk.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15280 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide/wg_ScriptView.mli')
-rw-r--r-- | ide/wg_ScriptView.mli | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ide/wg_ScriptView.mli b/ide/wg_ScriptView.mli new file mode 100644 index 000000000..bc738257c --- /dev/null +++ b/ide/wg_ScriptView.mli @@ -0,0 +1,44 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *) +(* \VV/ **************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(************************************************************************) + +(* An undoable view class *) + +type source_view = [ Gtk.text_view | `sourceview ] Gtk.obj + +class script_view : source_view -> +object + inherit GSourceView2.source_view + method undo : unit -> bool + method redo : unit -> bool + method clear_undo : unit -> unit +end + +val script_view : + ?source_buffer:GSourceView2.source_buffer -> + ?draw_spaces:SourceView2Enums.source_draw_spaces_flags list -> + ?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 -> script_view |