X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.mli;h=acc244aa942ab0f729ed28131b9d1890c37ecc8c;hb=353d488657a8c919140bcc4b6951296cc058e964;hp=60ab37a65660b26dce1108785b09ec43c5f0c015;hpb=56415e42c04f40e9c8f7cfc59a3a3d87c3d373f7;p=helm.git diff --git a/helm/matita/matitaGui.mli b/helm/matita/matitaGui.mli index 60ab37a65..acc244aa9 100644 --- a/helm/matita/matitaGui.mli +++ b/helm/matita/matitaGui.mli @@ -23,28 +23,20 @@ * 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} *) + (** {2 Access to singleton instances of lower-level GTK widgets} *) method about : MatitaGeneratedGui.aboutWin 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} *) @@ -55,10 +47,26 @@ class gui : * methods below create a new window on each invocation. You should * remember to destroy windows after use *) + method newBrowserWin: unit -> MatitaGeneratedGui.browserWin method newUriDialog: unit -> MatitaGeneratedGui.uriChoiceDialog method newInterpDialog: unit -> MatitaGeneratedGui.interpChoiceDialog 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 *) +val instance: unit -> gui +