]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaGui.mli
debian: rebuilt against ocaml 3.08.2
[helm.git] / helm / matita / matitaGui.mli
index f7845f2e5c080f2781b2e1e1f69f2d246d91b7e2..90cb814a14607406fbe16c6d82fa50bdcfa0ad6d 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 setQuitCallback    : (unit -> unit) -> unit
+    method setPhraseCallback  : (string -> MatitaTypes.command_outcome) -> unit
 
-      (** {2 Access to low-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} *)
+
+    method console:       MatitaTypes.console
+
       (** {2 Dialogs instantiation}
        * 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 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
 
   end
 
+  (** singleton instance of the gui *)
+val instance: unit -> gui
+