]> matita.cs.unibo.it Git - helm.git/commitdiff
attached auto
authorEnrico Tassi <enrico.tassi@inria.fr>
Mon, 2 May 2005 13:47:30 +0000 (13:47 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Mon, 2 May 2005 13:47:30 +0000 (13:47 +0000)
helm/matita/matita.glade
helm/matita/matitaEngine.ml
helm/matita/matitaGui.ml

index 47c9d9e9ebd11f59927d45d94fe2c5f9648ea427..2704d164d3b49f0ffe61d8bfa5a86886f84de5ef 100644 (file)
@@ -1044,7 +1044,7 @@ Copyright (C) 2005,
 
                  <child>
                    <widget class="GtkVBox" id="ToolBarVBox">
-                     <property name="width_request">102</property>
+                     <property name="width_request">109</property>
                      <property name="visible">True</property>
                      <property name="homogeneous">True</property>
                      <property name="spacing">0</property>
@@ -1213,7 +1213,7 @@ Copyright (C) 2005,
 
                              <child>
                                <widget class="GtkButton" id="elimTypeButton">
-                                 <property name="width_request">50</property>
+                                 <property name="width_request">55</property>
                                  <property name="visible">True</property>
                                  <property name="tooltip" translatable="yes">ElimType</property>
                                  <property name="can_focus">True</property>
@@ -1736,8 +1736,8 @@ Copyright (C) 2005,
                </widget>
                <packing>
                  <property name="padding">0</property>
-                 <property name="expand">False</property>
-                 <property name="fill">False</property>
+                 <property name="expand">True</property>
+                 <property name="fill">True</property>
                </packing>
              </child>
 
index f3ac49e16deb10355e3bdbad14c7f250c3931b33..59d1c7b79891464d51348e9136716dadd4fd5303 100644 (file)
@@ -43,7 +43,8 @@ let tactic_of_ast = function
       Tactics.elim_intros_simpl term
   | TacticAst.ElimType (_, term) -> Tactics.elim_type term
   | TacticAst.Replace (_, what, with_what) -> Tactics.replace ~what ~with_what
-(*   | TacticAst.Auto _ -> Tactics.auto_new ~dbd *)
+  | TacticAst.Auto (_,num) -> 
+      AutoTactic.auto_tac ~num ~dbd:(MatitaDb.instance ())
   | TacticAst.Change (_, what, with_what, _) -> Tactics.change ~what ~with_what
 (*
   (* TODO Zack a lot more of tactics to be implemented here ... *)
@@ -286,7 +287,7 @@ let disambiguate_tactic status = function
 *)
   | TacticAst.Intros (loc, num, names) ->
       status, TacticAst.Intros (loc, num, names)
-  | TacticAst.Auto loc -> status, TacticAst.Auto loc
+  | TacticAst.Auto (loc,num) -> status, TacticAst.Auto (loc,num)
   | TacticAst.Reflexivity loc -> status, TacticAst.Reflexivity loc
   | TacticAst.Assumption loc -> status, TacticAst.Assumption loc
   | TacticAst.Contradiction loc -> status, TacticAst.Contradiction loc
index 5a6377b3bb66d768d798a71abaea8386e6b30b3c..ec4d042ff38223eb61cd6151c84b7f19171c8d99 100644 (file)
@@ -144,7 +144,7 @@ class gui () =
         (tac_w_term (A.Transitivity (loc, hole)));
       connect_button tbar#assumptionButton (tac (A.Assumption loc));
       connect_button tbar#cutButton (tac_w_term (A.Cut (loc, hole)));
-      connect_button tbar#autoButton (tac (A.Auto loc));
+      connect_button tbar#autoButton (tac (A.Auto (loc,None)));
         (* quit *)
       self#setQuitCallback (fun () -> exit 0);
         (* log *)