]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaGui.mli
Bug in the management of substitutions into auto corrected.
[helm.git] / helm / matita / matitaGui.mli
index a185aaf740fbee8315deaa62eacdb110b0fec76e..dfb93cd1880248fd8df732a2a395edc950b8055e 100644 (file)
@@ -37,7 +37,7 @@ class gui :
   object
 
     method setQuitCallback    : (unit -> unit) -> unit
-    method setPhraseCallback  : (string -> unit) -> unit
+    method setPhraseCallback  : (string -> bool) -> unit
 
       (** {2 Access to lower-level GTK widgets} *)
 
@@ -62,8 +62,18 @@ class gui :
     method newConfirmationDialog: unit -> MatitaGeneratedGui.confirmationDialog
     method newEmptyDialog:        unit -> MatitaGeneratedGui.emptyDialog
 
+      (** {2 Utility methods} *)
+
+      (** ask the used to choose a file with the file chooser *)
     method chooseFile: unit -> string option
 
+      (** prompt the user for a (multiline) text entry *)
+    method askText: ?title:string -> ?msg:string -> unit -> string option
+
+      (** lock script text view from the beginning to the given offset (in UTF-8
+      * characters) *)
+    method lockScript: int -> unit
+
   end
 
   (** singleton instance of the gui *)