X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.mli;h=dfb93cd1880248fd8df732a2a395edc950b8055e;hb=a785a3526d4dcbb6c5810ed4fb943132c9ff2d45;hp=425406a587be653562f23428817ec2f850be7db0;hpb=fd96ce8e13f4f9adbeef2d9feb32f94dfcfaadad;p=helm.git diff --git a/helm/matita/matitaGui.mli b/helm/matita/matitaGui.mli index 425406a58..dfb93cd18 100644 --- a/helm/matita/matitaGui.mli +++ b/helm/matita/matitaGui.mli @@ -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} *) @@ -46,6 +46,7 @@ class gui : method fileSel : MatitaGeneratedGui.fileSelectionWin method main : MatitaGeneratedGui.mainWin method proof : MatitaGeneratedGui.proofWin + method script: MatitaGeneratedGui.scriptWin method toolbar : MatitaGeneratedGui.toolBarWin (** {2 Access to GUI useful components} *) @@ -61,6 +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 *)