X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fmatita%2FmatitaGui.mli;h=39657c58723cb6e091fbb2497b3033656ab0a521;hb=ac813b7e251e4bac1a8a16befa628203775771ca;hp=848f52bf680c1e465daf48b7f05d06777c67dbca;hpb=481992ea591bf53cba758a96e7d42e9cdce7e129;p=helm.git diff --git a/helm/matita/matitaGui.mli b/helm/matita/matitaGui.mli index 848f52bf6..39657c587 100644 --- a/helm/matita/matitaGui.mli +++ b/helm/matita/matitaGui.mli @@ -23,29 +23,28 @@ * 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 setQuitCallback : (unit -> unit) -> unit + method setPhraseCallback : (string -> MatitaTypes.command_outcome) -> 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 *) @@ -55,5 +54,20 @@ 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 *) +val instance: unit -> gui +