]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaGui.mli
snapshot, notably:
[helm.git] / helm / matita / matitaGui.mli
index 425406a587be653562f23428817ec2f850be7db0..39657c58723cb6e091fbb2497b3033656ab0a521 100644 (file)
  * 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} *)
 
@@ -46,6 +38,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 +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 *)