X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.ml;h=04d52cd9e3555a0cdb7c2a1eeec498644d7fdbaa;hb=7deafec4fd4b2eebf4d4061f21ee5c47bd15b062;hp=f8f252b524f3e3e697b6ae12f339bde0cbb1bd54;hpb=d0991ea0c7c83c100b2d223644cb2f11a8554fa1;p=helm.git diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index f8f252b52..04d52cd9e 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -35,15 +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 browser = new browserWin ~file () in let keyBindingBoxes = (* event boxes which should receive global key events *) - [ toolbar#toolBarEventBox; proof#proofWinEventBox; main#mainWinEventBox; - check#checkWinEventBox; script#scriptWinEventBox; main#consoleEventBox; - browser#browserWinEventBox - ] + [ toolbar#toolBarEventBox; main#mainWinEventBox; + script#scriptWinEventBox; main#consoleEventBox ] in let console = MatitaConsole.console ~evbox:main#consoleEventBox @@ -65,16 +60,17 @@ 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 browser ]); + [ c about; c fileSel; c main; c toolbar; c script ]); (* key bindings *) List.iter (* global key bindings *) (fun (key, callback) -> self#addKeyBinding key callback) +(* [ GdkKeysyms._F3, toggle_win ~check:main#showProofMenuItem proof#proofWin; GdkKeysyms._F4, toggle_win ~check:main#showCheckMenuItem check#checkWin; - GdkKeysyms._F5, +*) + [ GdkKeysyms._F5, toggle_win ~check:main#showScriptMenuItem script#scriptWin; GdkKeysyms._x, (fun () -> console#toggle ()); ]; @@ -105,8 +101,10 @@ class gui file = (* script *) (* menus *) toggle_visibility toolbar#toolBarWin main#showToolBarMenuItem; +(* toggle_visibility proof#proofWin main#showProofMenuItem; toggle_visibility check#checkWin main#showCheckMenuItem; +*) toggle_visibility script#scriptWin main#showScriptMenuItem; List.iter (fun w -> w#misc#set_sensitive false) [ main#saveMenuItem; main#saveAsMenuItem ]; @@ -114,23 +112,24 @@ class gui file = ignore (main#showConsoleMenuItem#connect#activate console#toggle); (* main *) connect_button main#hideConsoleButton console#hide; -(* (* console *) console#echo_message (sprintf "\tMatita version %s\n" BuildTimeConf.version); console#echo_prompt (); 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 + method newBrowserWin () = + let win = new browserWin ~file () in + win#check_widgets (); + win + method newUriDialog () = let dialog = new uriChoiceDialog ~file () in dialog#check_widgets ();