]> git.llucax.com Git - z.facultad/75.42/plaqui.git/commitdiff
Sigo con la docu que empezo Luca, y castellanice un poco los menues del constructor
authorNicolás Dimov <ndimov@gmail.com>
Mon, 1 Dec 2003 02:05:10 +0000 (02:05 +0000)
committerNicolás Dimov <ndimov@gmail.com>
Mon, 1 Dec 2003 02:05:10 +0000 (02:05 +0000)
14 files changed:
Constructor/dialogs/constructor.glade
Constructor/doc/barra_herramientas.png [new file with mode: 0644]
Constructor/doc/buscar.png [new file with mode: 0644]
Constructor/doc/clear.png [new file with mode: 0644]
Constructor/doc/delete.png [new file with mode: 0644]
Constructor/doc/general.png [new file with mode: 0644]
Constructor/doc/manual.lyx
Constructor/doc/new.png [new file with mode: 0644]
Constructor/doc/open.png [new file with mode: 0644]
Constructor/doc/principal.png [new file with mode: 0644]
Constructor/doc/quit.png [new file with mode: 0644]
Constructor/doc/save.png [new file with mode: 0644]
Constructor/src/conduct.cpp
Constructor/src/exclusa.cpp

index c5828861aebe622c658e7fafd8822eaaf855782b..a2df8ca53e09ae837683c2fa54745be542f2db52 100644 (file)
@@ -35,7 +35,7 @@
              <child>
                <widget class="GtkMenuItem" id="menuitem1">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">_File</property>
+                 <property name="label" translatable="yes">Archivo</property>
                  <property name="use_underline">True</property>
 
                  <child>
                      <child>
                        <widget class="GtkImageMenuItem" id="main_menu_new">
                          <property name="visible">True</property>
-                         <property name="label">gtk-new</property>
-                         <property name="use_stock">True</property>
-                         <signal name="activate" handler="on_new1_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+                         <property name="label" translatable="yes">Nuevo</property>
+                         <property name="use_underline">True</property>
+                         <signal name="activate" handler="on_main_menu_new_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+
+                         <child internal-child="image">
+                           <widget class="GtkImage" id="image20">
+                             <property name="visible">True</property>
+                             <property name="stock">gtk-new</property>
+                             <property name="icon_size">1</property>
+                             <property name="xalign">0.5</property>
+                             <property name="yalign">0.5</property>
+                             <property name="xpad">0</property>
+                             <property name="ypad">0</property>
+                           </widget>
+                         </child>
                        </widget>
                      </child>
 
                      <child>
                        <widget class="GtkImageMenuItem" id="main_menu_open">
                          <property name="visible">True</property>
-                         <property name="label">gtk-open</property>
-                         <property name="use_stock">True</property>
-                         <signal name="activate" handler="on_open1_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+                         <property name="label" translatable="yes">Abrir</property>
+                         <property name="use_underline">True</property>
+                         <signal name="activate" handler="on_main_menu_open_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+
+                         <child internal-child="image">
+                           <widget class="GtkImage" id="image21">
+                             <property name="visible">True</property>
+                             <property name="stock">gtk-open</property>
+                             <property name="icon_size">1</property>
+                             <property name="xalign">0.5</property>
+                             <property name="yalign">0.5</property>
+                             <property name="xpad">0</property>
+                             <property name="ypad">0</property>
+                           </widget>
+                         </child>
                        </widget>
                      </child>
 
                      <child>
                        <widget class="GtkImageMenuItem" id="main_menu_save">
                          <property name="visible">True</property>
-                         <property name="label">gtk-save</property>
-                         <property name="use_stock">True</property>
-                         <signal name="activate" handler="on_save1_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+                         <property name="label" translatable="yes">Guardar Como...</property>
+                         <property name="use_underline">True</property>
+                         <signal name="activate" handler="on_main_menu_save_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+
+                         <child internal-child="image">
+                           <widget class="GtkImage" id="image22">
+                             <property name="visible">True</property>
+                             <property name="stock">gtk-save-as</property>
+                             <property name="icon_size">1</property>
+                             <property name="xalign">0.5</property>
+                             <property name="yalign">0.5</property>
+                             <property name="xpad">0</property>
+                             <property name="ypad">0</property>
+                           </widget>
+                         </child>
                        </widget>
                      </child>
 
                      <child>
                        <widget class="GtkImageMenuItem" id="main_menu_quit">
                          <property name="visible">True</property>
-                         <property name="label">gtk-quit</property>
-                         <property name="use_stock">True</property>
-                         <signal name="activate" handler="on_quit1_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+                         <property name="label" translatable="yes">Salir</property>
+                         <property name="use_underline">True</property>
+                         <signal name="activate" handler="on_main_menu_quit_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+
+                         <child internal-child="image">
+                           <widget class="GtkImage" id="image23">
+                             <property name="visible">True</property>
+                             <property name="stock">gtk-quit</property>
+                             <property name="icon_size">1</property>
+                             <property name="xalign">0.5</property>
+                             <property name="yalign">0.5</property>
+                             <property name="xpad">0</property>
+                             <property name="ypad">0</property>
+                           </widget>
+                         </child>
                        </widget>
                      </child>
                    </widget>
              <child>
                <widget class="GtkMenuItem" id="menuitem2">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">_Edit</property>
+                 <property name="label" translatable="yes">Edición</property>
                  <property name="use_underline">True</property>
 
                  <child>
                      <child>
                        <widget class="GtkImageMenuItem" id="edit_menu_del">
                          <property name="visible">True</property>
-                         <property name="label">gtk-delete</property>
-                         <property name="use_stock">True</property>
-                         <signal name="activate" handler="on_delete1_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+                         <property name="label" translatable="yes">Borrar</property>
+                         <property name="use_underline">True</property>
+                         <signal name="activate" handler="on_edit_menu_del_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
+
+                         <child internal-child="image">
+                           <widget class="GtkImage" id="image24">
+                             <property name="visible">True</property>
+                             <property name="stock">gtk-delete</property>
+                             <property name="icon_size">1</property>
+                             <property name="xalign">0.5</property>
+                             <property name="yalign">0.5</property>
+                             <property name="xpad">0</property>
+                             <property name="ypad">0</property>
+                           </widget>
+                         </child>
                        </widget>
                      </child>
 
                      <child>
                        <widget class="GtkImageMenuItem" id="edit_menu_delete_all">
                          <property name="visible">True</property>
-                         <property name="label" translatable="yes">Delete All</property>
+                         <property name="label" translatable="yes">Borrar Todo</property>
                          <property name="use_underline">True</property>
                          <signal name="activate" handler="on_delete_all_activate" last_modification_time="Fri, 21 Nov 2003 16:34:12 GMT"/>
 
                          <child internal-child="image">
-                           <widget class="GtkImage" id="image18">
+                           <widget class="GtkImage" id="image25">
                              <property name="visible">True</property>
                              <property name="stock">gtk-clear</property>
                              <property name="icon_size">1</property>
              <child>
                <widget class="GtkMenuItem" id="menuitem4">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">_Help</property>
+                 <property name="label" translatable="yes">Ayuda</property>
                  <property name="use_underline">True</property>
 
                  <child>
                      <child>
                        <widget class="GtkMenuItem" id="about1">
                          <property name="visible">True</property>
-                         <property name="label" translatable="yes">_About</property>
+                         <property name="label" translatable="yes">Acerca de...</property>
                          <property name="use_underline">True</property>
                          <signal name="activate" handler="on_about1_activate" last_modification_time="Tue, 14 Oct 2003 11:17:30 GMT"/>
                        </widget>
            <widget class="GtkButton" id="btn_find">
              <property name="visible">True</property>
              <property name="can_focus">True</property>
-             <property name="label">gtk-find</property>
-             <property name="use_stock">True</property>
              <property name="relief">GTK_RELIEF_NORMAL</property>
+
+             <child>
+               <widget class="GtkAlignment" id="alignment9">
+                 <property name="visible">True</property>
+                 <property name="xalign">0.5</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xscale">0</property>
+                 <property name="yscale">0</property>
+
+                 <child>
+                   <widget class="GtkHBox" id="hbox11">
+                     <property name="visible">True</property>
+                     <property name="homogeneous">False</property>
+                     <property name="spacing">2</property>
+
+                     <child>
+                       <widget class="GtkImage" id="image19">
+                         <property name="visible">True</property>
+                         <property name="stock">gtk-find</property>
+                         <property name="icon_size">4</property>
+                         <property name="xalign">0.5</property>
+                         <property name="yalign">0.5</property>
+                         <property name="xpad">0</property>
+                         <property name="ypad">0</property>
+                       </widget>
+                       <packing>
+                         <property name="padding">0</property>
+                         <property name="expand">False</property>
+                         <property name="fill">False</property>
+                       </packing>
+                     </child>
+
+                     <child>
+                       <widget class="GtkLabel" id="label27">
+                         <property name="visible">True</property>
+                         <property name="label" translatable="yes">Buscar</property>
+                         <property name="use_underline">True</property>
+                         <property name="use_markup">False</property>
+                         <property name="justify">GTK_JUSTIFY_LEFT</property>
+                         <property name="wrap">False</property>
+                         <property name="selectable">False</property>
+                         <property name="xalign">0.5</property>
+                         <property name="yalign">0.5</property>
+                         <property name="xpad">0</property>
+                         <property name="ypad">0</property>
+                       </widget>
+                       <packing>
+                         <property name="padding">0</property>
+                         <property name="expand">False</property>
+                         <property name="fill">False</property>
+                       </packing>
+                     </child>
+                   </widget>
+                 </child>
+               </widget>
+             </child>
            </widget>
            <packing>
              <property name="padding">0</property>
diff --git a/Constructor/doc/barra_herramientas.png b/Constructor/doc/barra_herramientas.png
new file mode 100644 (file)
index 0000000..ee5389d
Binary files /dev/null and b/Constructor/doc/barra_herramientas.png differ
diff --git a/Constructor/doc/buscar.png b/Constructor/doc/buscar.png
new file mode 100644 (file)
index 0000000..0c648de
Binary files /dev/null and b/Constructor/doc/buscar.png differ
diff --git a/Constructor/doc/clear.png b/Constructor/doc/clear.png
new file mode 100644 (file)
index 0000000..5767edb
Binary files /dev/null and b/Constructor/doc/clear.png differ
diff --git a/Constructor/doc/delete.png b/Constructor/doc/delete.png
new file mode 100644 (file)
index 0000000..6cdf364
Binary files /dev/null and b/Constructor/doc/delete.png differ
diff --git a/Constructor/doc/general.png b/Constructor/doc/general.png
new file mode 100644 (file)
index 0000000..65b3701
Binary files /dev/null and b/Constructor/doc/general.png differ
index dd16a61c0670811fc21c1a5459c6aaafb5ecd280..676d1a3a76e98e6ceb6ca794dec7534266295bc5 100644 (file)
@@ -104,7 +104,7 @@ Ventana principal de PlaQui Constructor
 
 
 \begin_inset Graphics
-       filename /home/luca/facultad/75.42/2003-2/final/Constructor/doc/manual_ventana_principal.png
+       filename /home/nico/plaqui/Constructor/doc/principal.png
        lyxscale 50
        width 14.7cm
        keepAspectRatio
@@ -141,17 +141,41 @@ En este men
  del programa.
 \layout Description
 
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/new.png
+
+\end_inset 
+
 Nuevo Empieza a construir una planta nueva.
  La planta con la que estaba trabajando actualmente será descartada.
 \layout Description
 
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/open.png
+
+\end_inset 
+
 Abrir Abre una planta nueva.
  La planta con la que estaba trabajando actualmente será descartada.
 \layout Description
 
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/save.png
+
+\end_inset 
+
 Guardar Guarda la planta actual.
 \layout Description
 
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/quit.png
+
+\end_inset 
+
 Salir Sale del programa.
  La planta con la que estaba trabajando actualmente será descartada.
 \layout Paragraph
@@ -167,9 +191,21 @@ En este men
  de la planta.
 \layout Description
 
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/delete.png
+
+\end_inset 
+
 Borrar Borra el elemento seleccionado actualmente.
 \layout Description
 
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/clear.png
+
+\end_inset 
+
 Borrar\SpecialChar ~
 Todo Borra todos los elementos de la planta.
  Es equivalente a 
@@ -196,22 +232,66 @@ Acerca Obtiene informaci
 Barra de herramientas.
 \layout Standard
 
+
+\begin_inset External ChessDiagram,"",""
+
+\end_inset 
+
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/barra_herramientas.png
+
+\end_inset 
+
+
+\layout Standard
+
 En la barra de herramientas se encuentra debajo de la 
 \family sans 
 Barra de menú
 \family default 
  y está dividida en dos.
- En la parte superior se encuentran íconos para ejecutar los comandos (de
la barra de menú) más comunes del programa, como empezar una planta nueva,
+ En la parte superior se encuentran íconos para ejecutar los comandos (del
menú principal) más comunes del programa, como empezar una planta nueva,
  guardar la planta actual y abrir una planta existente.
 \layout Standard
 
 En la parte inferior se encuentran herramientas adicionales útiles a la
  hora de trabajar con la planta.
-\layout Comment
+\layout Standard
+
+
+\series bold 
+Verificar Conexionado 
+\series default 
+Verifica que todos los elementos estén conectados, y formen un circuito
+ de manera que pudierda fluir un líquido.
+\layout Standard
+
+
+\series bold 
+Lista
+\series default 
+ Ubicada en la segunda posición de la barra, indica cuál fué el último elemento
+ seleccionado mediante un click del mouse, y almacena todos los nombres
+ de los elementos que fueron seleccionados.
+\layout Standard
+
+
+\series bold 
+Buscar
+\series default 
+ Marca con un recuadro negro el elemento seleccionado (el que aparece en
+ la lista).
+\layout Standard
+
+
+\begin_inset Graphics
+       filename /home/nico/plaqui/Constructor/doc/buscar.png
+
+\end_inset 
+
 
-Describir mínimamente para qué sirve cada uno de los elementos como en la
- parte de arriba.
 \layout Subsubsection
 
 Barra de elementos de planta.
@@ -283,9 +363,14 @@ En vez de poner
 \layout Subsection
 
 Guardar un archivo de planta.
-\layout Comment
+\layout Standard
 
-Idem anterior.
+De manera similar a la carga o apertura de una planta, se puede guardar
+ o salvar la misma.
+ Para esto también hay dos formas distintas: 
+\family sans 
+Archivo\SpecialChar \menuseparator
+Salvar 
 \layout Subsection
 
 Empezar una planta nueva.
diff --git a/Constructor/doc/new.png b/Constructor/doc/new.png
new file mode 100644 (file)
index 0000000..6dcb420
Binary files /dev/null and b/Constructor/doc/new.png differ
diff --git a/Constructor/doc/open.png b/Constructor/doc/open.png
new file mode 100644 (file)
index 0000000..5faf40d
Binary files /dev/null and b/Constructor/doc/open.png differ
diff --git a/Constructor/doc/principal.png b/Constructor/doc/principal.png
new file mode 100644 (file)
index 0000000..6e07d85
Binary files /dev/null and b/Constructor/doc/principal.png differ
diff --git a/Constructor/doc/quit.png b/Constructor/doc/quit.png
new file mode 100644 (file)
index 0000000..337b3c0
Binary files /dev/null and b/Constructor/doc/quit.png differ
diff --git a/Constructor/doc/save.png b/Constructor/doc/save.png
new file mode 100644 (file)
index 0000000..4811f66
Binary files /dev/null and b/Constructor/doc/save.png differ
index f58d6c032f47a5af33d991b2586f01a56dec6e83..70782c5b559d48a3c59102ca82faf69d2cea56cb 100644 (file)
@@ -152,7 +152,7 @@ ConnectorType Conduct::get_connector_type(int _a, int _b)
        CItem *_item;
        switch (imgActual) {
                case 0:
-                       if ( (_a <= x+image->get_width()-10 )&&(_a >= x + 10) && (_b <= y+10) &&(_b > 0 ) ){  //arriba
+                       if ( (_a <= x+image->get_width()-10 )&&(_a >= x + 10) && (_b <= y+10) &&(_b > y ) ){  //arriba
                                if ( is_connected ) return connect_vec[0].type;                 
                                connect_vec[1].type = is_other_connection_area(get_position_x()+16, get_position_y()+get_image()->get_height() +5, &_item); //pregunto que hay abajo
                                switch ( connect_vec[1].type ) {
@@ -191,7 +191,7 @@ ConnectorType Conduct::get_connector_type(int _a, int _b)
                        }
                break;
                case 1: 
-                       if ((_a <= x+10 )&&(_a > 0) && (_b <= y+image->get_height()-10) &&(_b >= y+10 )){ //izquierda
+                       if ((_a <= x+10 )&&(_a > x) && (_b <= y+image->get_height()-10) &&(_b >= y+10 )){ //izquierda
                                if ( is_connected ) return connect_vec[0].type;                 
                                connect_vec[1].type = is_other_connection_area(get_position_x()+get_image()->get_width()+5, get_position_y()+16, &_item);//pregunto por la derecha
                                switch ( connect_vec[1].type ) {
index eb296d6b612bafe28ba64a2fa417aa665c9a9a77..fda8a88b7e73b314aea9ea5ac376bb2461b47268 100644 (file)
@@ -188,9 +188,7 @@ bool Exclusa::check_connection()
        }
        if ( aux1 != UNDEF && aux2 != UNDEF ) {
                if (!is_connected) {
-                       //aux = connect_vec[0].type; 
-                       // Aca van invertidos los tipos de entrada/salida
-                       connect_vec[0].type = aux2; //connect_vec[1].type;
+                       connect_vec[0].type = aux2; 
                        connect_vec[1].type = aux1;
                }
                connect_vec[0].id_dest = _item0->get_id();