X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.ml;h=f3b531fb285dee2bc6e60e46044fe1e5177acc12;hb=aac382f935bc72578119fa7ff9f53c3b649dd0dd;hp=5045f36d1aa5148bd3ec80c2f3c3a7fa4b46ed26;hpb=bc36fe01d5465d07ef76c445c83639e341f3eb2a;p=helm.git diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index 5045f36d1..f3b531fb2 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -254,30 +254,6 @@ class gui () = method newBrowserWin () = let win = new browserWin () in - win#whelpImage2#set_file "icons/whelp.png"; - win#whelpBarToggleButton#set_active false; - win#whelpBarBox#misc#hide (); - win#mathOrListNotebook#set_show_tabs false; - connect_toggle_button win#whelpBarToggleButton - (fun () -> - if win#whelpBarToggleButton#active then - win#whelpBarBox#misc#show () - else - win#whelpBarBox#misc#hide ()); - let queries = ["Locate";"Hint";"Match";"Elim";"Instance"] in - let combo,(combo_store,combo_column) = - GEdit.combo_box_text ~strings:queries () - in - combo#set_active 0; - win#comboVbox#add (combo :> GObj.widget); - let start_query () = - let query = String.lowercase (List.nth queries combo#active) in - let input = win#queryInputText#text in - let statement = "whelp " ^ query ^ " " ^ input ^ "." in - (MatitaScript.instance ())#advance ~statement () - in - ignore(win#queryInputText#connect#activate ~callback:start_query); - ignore(combo#connect#changed ~callback:start_query); win#check_widgets (); win