X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.mli;h=d3dc10a1dc873b6f9d82070e3564b164321d0dc6;hb=275727242ccdce9df01af65f3bfb2d65283fa197;hp=f7845f2e5c080f2781b2e1e1f69f2d246d91b7e2;hpb=cc465115cdeea9819f43a5ad219b07c4f928c43a;p=helm.git diff --git a/helm/matita/matitaGui.mli b/helm/matita/matitaGui.mli index f7845f2e5..d3dc10a1d 100644 --- a/helm/matita/matitaGui.mli +++ b/helm/matita/matitaGui.mli @@ -36,16 +36,23 @@ class gui : string -> object - method setQuitCallback : (unit -> unit) -> unit + method setQuitCallback : (unit -> unit) -> unit + method setPhraseCallback : (string -> unit) -> unit - (** {2 Access to low-level GTK widgets} *) + (** {2 Access to lower-level GTK widgets} *) method about : MatitaGeneratedGui.aboutWin + method check : MatitaGeneratedGui.checkWin 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} *) + + method console: MatitaConsole.console + (** {2 Dialogs instantiation} * methods below create a new window on each invocation. You should * remember to destroy windows after use *) @@ -53,7 +60,22 @@ class gui : method newUriDialog: unit -> MatitaGeneratedGui.uriChoiceDialog method newInterpDialog: unit -> MatitaGeneratedGui.interpChoiceDialog method newConfirmationDialog: unit -> MatitaGeneratedGui.confirmationDialog - method newTextDialog: unit -> MatitaGeneratedGui.textDialog + 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 *) +val instance: unit -> gui +