X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.mli;h=39657c58723cb6e091fbb2497b3033656ab0a521;hb=a4f6e8b443d8a676bd2bfbf7f29369e070298aa0;hp=a185aaf740fbee8315deaa62eacdb110b0fec76e;hpb=1d431843f49b3658593c8cc918b53a43479a6486;p=helm.git diff --git a/helm/matita/matitaGui.mli b/helm/matita/matitaGui.mli index a185aaf74..39657c587 100644 --- a/helm/matita/matitaGui.mli +++ b/helm/matita/matitaGui.mli @@ -23,21 +23,13 @@ * http://helm.cs.unibo.it/ *) -(* -class type stringListModel = - object - method clear: unit -> unit - method append: string -> unit - end -*) - (** @param fname name of the Glade file describing the GUI *) class gui : string -> object method setQuitCallback : (unit -> unit) -> unit - method setPhraseCallback : (string -> unit) -> unit + method setPhraseCallback : (string -> MatitaTypes.command_outcome) -> unit (** {2 Access to lower-level GTK widgets} *) @@ -62,8 +54,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 *)