X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.ml;h=c1bdfcc77f0d46fc5a4b7e0c20d42a901761ba3c;hb=eb5345bc1314ca8bf8b9ea2293dbe0aa496b2d69;hp=fef22143ad2c759aa9204950782a7456116018f6;hpb=ef9ec8cb57d15426a96fe40d056eb07804753bb9;p=helm.git diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index fef22143a..c1bdfcc77 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -35,12 +35,10 @@ class gui file = let main = new mainWin ~file () in let about = new aboutWin ~file () in let fileSel = new fileSelectionWin ~file () in - let proof = new proofWin ~file () in - let check = new checkWin ~file () in let script = new scriptWin ~file () in let keyBindingBoxes = (* event boxes which should receive global key events *) - [ toolbar#toolBarEventBox; proof#proofWinEventBox; main#mainWinEventBox; - check#checkWinEventBox; script#scriptWinEventBox; main#consoleEventBox ] + [ toolbar#toolBarEventBox; main#mainWinEventBox; + script#scriptWinEventBox; main#consoleEventBox ] in let console = MatitaConsole.console ~evbox:main#consoleEventBox @@ -62,7 +60,7 @@ class gui file = (* glade's check widgets *) List.iter (fun w -> w#check_widgets ()) (let c w = (w :> unit>) in - [ c about; c fileSel; c main; c proof; c toolbar; c check; c script ]); + [ c about; c fileSel; c main; c toolbar; c script ]); (* key bindings *) List.iter (* global key bindings *) (fun (key, callback) -> self#addKeyBinding key callback) @@ -121,11 +119,9 @@ class gui file = console#misc#grab_focus (); method about = about - method check = check method console = console method fileSel = fileSel method main = main - method proof = proof method script = script method toolbar = toolbar @@ -199,7 +195,6 @@ class gui file = end -let instance = - let gui = lazy (new gui (Helm_registry.get "matita.glade_file")) in - fun () -> Lazy.force gui +let gui () = new gui (Helm_registry.get "matita.glade_file") +let instance = singleton gui