X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.ml;h=017f3955512668b579b8834c2f7a938e359b4b38;hb=cc465115cdeea9819f43a5ad219b07c4f928c43a;hp=7161aa9e845c990c34e8cc30eb5b1a9d7a8d464b;hpb=b5d69130dd83587b5fb9cbb39251aaa8df8c456e;p=helm.git diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index 7161aa9e8..017f39555 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -49,7 +49,6 @@ class gui file = let toolbar = new toolBarWin ~file () in let main = new mainWin ~file () in let about = new aboutWin ~file () in - let dialog = new genericDialog ~file () in let fileSel = new fileSelectionWin ~file () in let proof = new proofWin ~file () in let keyBindingBoxes = (* event boxes which should receive global key events *) @@ -60,7 +59,7 @@ class gui file = (* glade's check widgets *) List.iter (fun w -> w#check_widgets ()) (let c w = (w :> unit>) in - [ c about; c dialog; c fileSel; c main; c proof; c toolbar ]); + [ c about; c fileSel; c main; c proof; c toolbar ]); (* show/hide commands *) toggle_visibility toolbar#toolBarWin main#showToolBarMenuItem; toggle_visibility proof#proofWin main#showProofMenuItem; @@ -85,7 +84,6 @@ class gui file = method toolbar = toolbar method main = main method about = about - method dialog = dialog method fileSel = fileSel method proof = proof @@ -99,6 +97,16 @@ class gui file = dialog#check_widgets (); dialog + method newConfirmationDialog () = + let dialog = new confirmationDialog ~file () in + dialog#check_widgets (); + dialog + + method newTextDialog () = + let dialog = new textDialog ~file () in + dialog#check_widgets (); + dialog + method private addKeyBinding key callback = List.iter (fun evbox -> add_key_binding key callback evbox) keyBindingBoxes