]> git.llucax.com Git - z.facultad/75.10/miklolife.git/commitdiff
* Limpieza en Main.cs de codigo de prueba viejo
authorRicardo Markiewicz <gazer.arg@gmail.com>
Sun, 26 Jun 2005 00:16:37 +0000 (00:16 +0000)
committerRicardo Markiewicz <gazer.arg@gmail.com>
Sun, 26 Jun 2005 00:16:37 +0000 (00:16 +0000)
 * Saco los botones del toolbar y agrego Menu Afiliaciones con
 los items implementados.

demo/glade/main.glade
demo/src/Main.cs

index b908c74e48e53214ea7e5d68d47b5c71eaecea77..b59b9324d7a87393e3c834d019d0a99dcf93977a 100644 (file)
              </child>
            </widget>
          </child>
+
+         <child>
+           <widget class="GtkMenuItem" id="afiliaciones1">
+             <property name="visible">True</property>
+             <property name="label" translatable="yes">Afiliaciones</property>
+             <property name="use_underline">True</property>
+
+             <child>
+               <widget class="GtkMenu" id="afiliaciones1_menu">
+
+                 <child>
+                   <widget class="GtkMenuItem" id="ingresar_solicitud1">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">Ingresar Solicitud</property>
+                     <property name="use_underline">True</property>
+                     <signal name="activate" handler="OnIngresarSolicitud" last_modification_time="Sun, 26 Jun 2005 00:09:38 GMT"/>
+                   </widget>
+                 </child>
+
+                 <child>
+                   <widget class="GtkMenuItem" id="emitir_hoja_de_ruta1">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">Emitir Hoja de Ruta</property>
+                     <property name="use_underline">True</property>
+                     <signal name="activate" handler="OnEmitirHojaDeRuta" last_modification_time="Sun, 26 Jun 2005 00:09:38 GMT"/>
+                   </widget>
+                 </child>
+
+                 <child>
+                   <widget class="GtkMenuItem" id="registrar_visitas1">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">Registrar Visitas</property>
+                     <property name="use_underline">True</property>
+                     <signal name="activate" handler="OnRegistrarVisitas" last_modification_time="Sun, 26 Jun 2005 00:09:38 GMT"/>
+                   </widget>
+                 </child>
+               </widget>
+             </child>
+           </widget>
+         </child>
        </widget>
        <packing>
          <property name="padding">0</property>
          </child>
 
          <child>
-           <widget class="GtkToolButton" id="ConsultarAfiliado">
+           <widget class="GtkSeparatorToolItem" id="separatortoolitem1">
              <property name="visible">True</property>
-             <property name="label" translatable="yes">Ingresar
-Solicitud</property>
-             <property name="use_underline">True</property>
-             <property name="stock_id">gtk-open</property>
+             <property name="draw">False</property>
              <property name="visible_horizontal">True</property>
              <property name="visible_vertical">True</property>
-             <property name="is_important">False</property>
-             <signal name="clicked" handler="OnConsultarAfiliado" last_modification_time="Thu, 09 Jun 2005 04:51:58 GMT"/>
            </widget>
            <packing>
-             <property name="expand">False</property>
-             <property name="homogeneous">True</property>
-           </packing>
-         </child>
-
-         <child>
-           <widget class="GtkToolButton" id="toolbutton4">
-             <property name="visible">True</property>
-             <property name="label" translatable="yes">Emitir Hoja
-  de Ruta</property>
-             <property name="use_underline">True</property>
-             <property name="stock_id">gtk-open</property>
-             <property name="visible_horizontal">True</property>
-             <property name="visible_vertical">True</property>
-             <property name="is_important">False</property>
-             <signal name="clicked" handler="OnEmitirHojaDeRuta" last_modification_time="Tue, 14 Jun 2005 04:18:14 GMT"/>
-           </widget>
-           <packing>
-             <property name="expand">False</property>
-             <property name="homogeneous">True</property>
-           </packing>
-         </child>
-
-         <child>
-           <widget class="GtkToolButton" id="toolbutton5">
-             <property name="visible">True</property>
-             <property name="label" translatable="yes">Registrar
-  Visitas</property>
-             <property name="use_underline">True</property>
-             <property name="stock_id">gtk-open</property>
-             <property name="visible_horizontal">True</property>
-             <property name="visible_vertical">True</property>
-             <property name="is_important">False</property>
-             <signal name="clicked" handler="OnRegistrarVisitas" last_modification_time="Thu, 16 Jun 2005 02:29:25 GMT"/>
-           </widget>
-           <packing>
-             <property name="expand">False</property>
-             <property name="homogeneous">True</property>
+             <property name="expand">True</property>
+             <property name="homogeneous">False</property>
            </packing>
          </child>
 
index 65f949820341f4498b54764e76299f0d8043973c..e1073f7e0eb3f0281d15ed9648fe4c5138e914c3 100644 (file)
@@ -74,7 +74,7 @@ public class App
                Application.Quit ();
        }
 
-       public void OnConsultarAfiliado (object o, EventArgs args)
+       public void OnIngresarSolicitud(object o, EventArgs args)
        {
                VIngresarSolicitud v = new VIngresarSolicitud ();
                v.Run ();
@@ -94,25 +94,5 @@ public class App
                VRegistrarVisitas v = new VRegistrarVisitas ();
                v.Run ();
        }
-
-       public void OnConsultarAfiliadoClose (object o, EventArgs args)
-       {
-               wConsultarAfiliado.Destroy ();
-       }
-
-       public void OnVerAfiliado (object o, EventArgs args)
-       {
-       }
-       
-       public void OnBuscarAfiliado (object o, EventArgs args)
-       {
-               Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
-               TreeView lista = (TreeView)xmla.GetWidget ("lista");
-               TreeStore store = (TreeStore)lista.Model;
-               foreach (Afiliado a in lst) {
-                       if (a.Codigo == Int32.Parse (codigo.Text))
-                               store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);
-               }
-       }
 }