Commits

Asdrúbal Iván Suárez Rivera committed 132a9dd

Actualizada GUI, solo faltaría programar los eventos

  • Participants
  • Parent commits ddfa94f

Comments (0)

Files changed (3)

src/arbol_prioridad/frontend/ArbolGUI.py

 '''
 
 #from PySide.QtCore import QA
-from PySide.QtGui import *
+from PySide.QtGui import QApplication, QMainWindow
 from ui_pantalla import Ui_CVentanaPrincipal
 import sys
 

src/arbol_prioridad/frontend/pantalla.ui

 <ui version="4.0">
  <class>CVentanaPrincipal</class>
  <widget class="QMainWindow" name="CVentanaPrincipal">
-  <property name="enabled">
-   <bool>true</bool>
-  </property>
-  <property name="sizePolicy">
-   <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-    <horstretch>0</horstretch>
-    <verstretch>0</verstretch>
-   </sizepolicy>
-  </property>
-  <property name="cursor">
-   <cursorShape>PointingHandCursor</cursorShape>
-  </property>
-  <property name="mouseTracking">
-   <bool>false</bool>
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>870</width>
+    <height>645</height>
+   </rect>
   </property>
   <property name="windowTitle">
-   <string>Applet</string>
-  </property>
-  <property name="autoFillBackground">
-   <bool>false</bool>
-  </property>
-  <property name="tabShape">
-   <enum>QTabWidget::Rounded</enum>
+   <string>Applet Arboles de Búsqueda</string>
   </property>
   <widget class="QWidget" name="centralwidget">
-   <widget class="QWidget" name="layoutWidget">
+   <widget class="QTabWidget" name="tab_principal">
     <property name="geometry">
      <rect>
-      <x>30</x>
-      <y>10</y>
-      <width>211</width>
-      <height>186</height>
+      <x>0</x>
+      <y>0</y>
+      <width>861</width>
+      <height>251</height>
      </rect>
     </property>
-    <layout class="QFormLayout" name="formLayout">
-     <property name="fieldGrowthPolicy">
-      <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
-     </property>
-     <item row="0" column="0">
-      <widget class="QLabel" name="titulo">
-       <property name="text">
-        <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+    <property name="tabPosition">
+     <enum>QTabWidget::South</enum>
+    </property>
+    <property name="currentIndex">
+     <number>2</number>
+    </property>
+    <widget class="QWidget" name="tab_ins">
+     <attribute name="title">
+      <string>Insertar Puntos</string>
+     </attribute>
+     <widget class="QWidget" name="">
+      <property name="geometry">
+       <rect>
+        <x>40</x>
+        <y>30</y>
+        <width>122</width>
+        <height>162</height>
+       </rect>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout_2">
+       <item>
+        <layout class="QVBoxLayout" name="verticalLayout">
+         <item>
+          <widget class="QLabel" name="label">
+           <property name="text">
+            <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
 p, li { white-space: pre-wrap; }
 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Arboles Binarios&lt;/span&gt;&lt;/p&gt;
-&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt; con Prioridad&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="0">
-      <layout class="QVBoxLayout" name="verticalLayout">
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:600;&quot;&gt;Coordenadas&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="verticalSpacer">
+           <property name="orientation">
+            <enum>Qt::Vertical</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>20</width>
+             <height>40</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <layout class="QFormLayout" name="formLayout">
+           <item row="0" column="0">
+            <widget class="QLabel" name="label_2">
+             <property name="text">
+              <string>X</string>
+             </property>
+            </widget>
+           </item>
+           <item row="0" column="1">
+            <widget class="QSpinBox" name="spinBox">
+             <property name="maximum">
+              <number>5000</number>
+             </property>
+            </widget>
+           </item>
+           <item row="2" column="1">
+            <widget class="QSpinBox" name="spinBox_2">
+             <property name="maximum">
+              <number>5000</number>
+             </property>
+            </widget>
+           </item>
+           <item row="2" column="0">
+            <widget class="QLabel" name="label_3">
+             <property name="text">
+              <string>Y</string>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </item>
+        </layout>
+       </item>
        <item>
-        <widget class="QPushButton" name="boton_crear">
+        <widget class="QPushButton" name="boton_anadir_pto">
          <property name="text">
-          <string>Crear Arbol</string>
+          <string>Añadir Punto</string>
          </property>
         </widget>
        </item>
+      </layout>
+     </widget>
+     <widget class="QWidget" name="">
+      <property name="geometry">
+       <rect>
+        <x>470</x>
+        <y>110</y>
+        <width>223</width>
+        <height>58</height>
+       </rect>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout_3">
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout">
+         <item>
+          <widget class="QLabel" name="label_4">
+           <property name="text">
+            <string>Generar</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QSpinBox" name="spinBox_3"/>
+         </item>
+         <item>
+          <widget class="QLabel" name="label_5">
+           <property name="text">
+            <string>puntos aleatorios</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </item>
        <item>
-        <widget class="QPushButton" name="boton_insert">
+        <layout class="QHBoxLayout" name="horizontalLayout_2">
+         <item>
+          <spacer name="horizontalSpacer">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <widget class="QPushButton" name="pushButton">
+           <property name="text">
+            <string>Aceptar</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </widget>
+    </widget>
+    <widget class="QWidget" name="tab_busc">
+     <attribute name="title">
+      <string>Buscar puntos en rectángulo</string>
+     </attribute>
+     <widget class="QWidget" name="">
+      <property name="geometry">
+       <rect>
+        <x>180</x>
+        <y>20</y>
+        <width>501</width>
+        <height>150</height>
+       </rect>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout_7">
+       <item>
+        <widget class="QLabel" name="label_12">
          <property name="text">
-          <string>Insertar Punto</string>
+          <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Rectángulo&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QPushButton" name="boton_menor_coor">
+        <layout class="QVBoxLayout" name="verticalLayout_6">
+         <item>
+          <layout class="QHBoxLayout" name="horizontalLayout_3">
+           <item>
+            <layout class="QVBoxLayout" name="verticalLayout_4">
+             <item>
+              <widget class="QLabel" name="label_10">
+               <property name="text">
+                <string>Punto 1</string>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <layout class="QFormLayout" name="formLayout_2">
+               <item row="0" column="0">
+                <widget class="QLabel" name="label_6">
+                 <property name="text">
+                  <string>X</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="1">
+                <widget class="QSpinBox" name="x_pto1">
+                 <property name="maximum">
+                  <number>5000</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="2" column="1">
+                <widget class="QSpinBox" name="y_pto1">
+                 <property name="maximum">
+                  <number>5000</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="2" column="0">
+                <widget class="QLabel" name="label_7">
+                 <property name="text">
+                  <string>Y</string>
+                 </property>
+                </widget>
+               </item>
+              </layout>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <spacer name="horizontalSpacer_2">
+             <property name="orientation">
+              <enum>Qt::Horizontal</enum>
+             </property>
+             <property name="sizeHint" stdset="0">
+              <size>
+               <width>40</width>
+               <height>20</height>
+              </size>
+             </property>
+            </spacer>
+           </item>
+           <item>
+            <layout class="QVBoxLayout" name="verticalLayout_5">
+             <item>
+              <widget class="QLabel" name="label_11">
+               <property name="text">
+                <string>Punto 2</string>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <layout class="QFormLayout" name="formLayout_3">
+               <item row="0" column="0">
+                <widget class="QLabel" name="label_8">
+                 <property name="text">
+                  <string>X</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="1">
+                <widget class="QSpinBox" name="x_pto2">
+                 <property name="maximum">
+                  <number>5000</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="2" column="1">
+                <widget class="QSpinBox" name="y_pto2">
+                 <property name="maximum">
+                  <number>5000</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="2" column="0">
+                <widget class="QLabel" name="label_9">
+                 <property name="text">
+                  <string>Y</string>
+                 </property>
+                </widget>
+               </item>
+              </layout>
+             </item>
+            </layout>
+           </item>
+          </layout>
+         </item>
+         <item>
+          <layout class="QHBoxLayout" name="horizontalLayout_4">
+           <item>
+            <widget class="QPushButton" name="pushButton_2">
+             <property name="text">
+              <string>Puntos con la menor coordenada X</string>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <spacer name="horizontalSpacer_3">
+             <property name="orientation">
+              <enum>Qt::Horizontal</enum>
+             </property>
+             <property name="sizeHint" stdset="0">
+              <size>
+               <width>40</width>
+               <height>20</height>
+              </size>
+             </property>
+            </spacer>
+           </item>
+           <item>
+            <widget class="QPushButton" name="pushButton_3">
+             <property name="text">
+              <string>Puntos con la mayor coordenada Y</string>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </widget>
+    </widget>
+    <widget class="QWidget" name="tab_inter">
+     <attribute name="title">
+      <string>Enumerar puntos en Intersección</string>
+     </attribute>
+     <widget class="QWidget" name="">
+      <property name="geometry">
+       <rect>
+        <x>560</x>
+        <y>10</y>
+        <width>211</width>
+        <height>171</height>
+       </rect>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout_16">
+       <item>
+        <widget class="QCommandLinkButton" name="commandLinkButton">
          <property name="text">
-          <string>Punto con Menor Coordenada X</string>
+          <string>Puntos en la Intersección</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QPushButton" name="boton_mayor_coor">
-         <property name="text">
-          <string>Punto con Mayor Coordenada Y</string>
+        <widget class="QTextBrowser" name="textBrowser"/>
+       </item>
+      </layout>
+     </widget>
+     <widget class="QWidget" name="">
+      <property name="geometry">
+       <rect>
+        <x>10</x>
+        <y>10</y>
+        <width>471</width>
+        <height>171</height>
+       </rect>
+      </property>
+      <layout class="QHBoxLayout" name="horizontalLayout_9">
+       <item>
+        <layout class="QVBoxLayout" name="verticalLayout_8">
+         <item>
+          <widget class="QLabel" name="label_13">
+           <property name="text">
+            <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Rectángulo 1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <layout class="QVBoxLayout" name="verticalLayout_9">
+           <item>
+            <layout class="QHBoxLayout" name="horizontalLayout_5">
+             <item>
+              <layout class="QVBoxLayout" name="verticalLayout_10">
+               <item>
+                <widget class="QLabel" name="label_14">
+                 <property name="text">
+                  <string>Punto 1</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <layout class="QFormLayout" name="formLayout_4">
+                 <item row="0" column="0">
+                  <widget class="QLabel" name="label_15">
+                   <property name="text">
+                    <string>X</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="0" column="1">
+                  <widget class="QSpinBox" name="x_pto1_2">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="1">
+                  <widget class="QSpinBox" name="y_pto1_2">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="0">
+                  <widget class="QLabel" name="label_16">
+                   <property name="text">
+                    <string>Y</string>
+                   </property>
+                  </widget>
+                 </item>
+                </layout>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <spacer name="horizontalSpacer_4">
+               <property name="orientation">
+                <enum>Qt::Horizontal</enum>
+               </property>
+               <property name="sizeHint" stdset="0">
+                <size>
+                 <width>40</width>
+                 <height>20</height>
+                </size>
+               </property>
+              </spacer>
+             </item>
+             <item>
+              <layout class="QVBoxLayout" name="verticalLayout_11">
+               <item>
+                <widget class="QLabel" name="label_17">
+                 <property name="text">
+                  <string>Punto 2</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <layout class="QFormLayout" name="formLayout_5">
+                 <item row="0" column="0">
+                  <widget class="QLabel" name="label_18">
+                   <property name="text">
+                    <string>X</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="0" column="1">
+                  <widget class="QSpinBox" name="x_pto2_2">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="1">
+                  <widget class="QSpinBox" name="y_pto2_2">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="0">
+                  <widget class="QLabel" name="label_19">
+                   <property name="text">
+                    <string>Y</string>
+                   </property>
+                  </widget>
+                 </item>
+                </layout>
+               </item>
+              </layout>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <layout class="QHBoxLayout" name="horizontalLayout_6"/>
+           </item>
+          </layout>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <spacer name="horizontalSpacer_6">
+         <property name="orientation">
+          <enum>Qt::Horizontal</enum>
          </property>
-        </widget>
+         <property name="sizeHint" stdset="0">
+          <size>
+           <width>40</width>
+           <height>20</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+       <item>
+        <layout class="QVBoxLayout" name="verticalLayout_12">
+         <item>
+          <widget class="QLabel" name="label_20">
+           <property name="text">
+            <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Rectángulo 2&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <layout class="QVBoxLayout" name="verticalLayout_13">
+           <item>
+            <layout class="QHBoxLayout" name="horizontalLayout_7">
+             <item>
+              <layout class="QVBoxLayout" name="verticalLayout_14">
+               <item>
+                <widget class="QLabel" name="label_21">
+                 <property name="text">
+                  <string>Punto 1</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <layout class="QFormLayout" name="formLayout_6">
+                 <item row="0" column="0">
+                  <widget class="QLabel" name="label_22">
+                   <property name="text">
+                    <string>X</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="0" column="1">
+                  <widget class="QSpinBox" name="x_pto1_3">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="1">
+                  <widget class="QSpinBox" name="y_pto1_3">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="0">
+                  <widget class="QLabel" name="label_23">
+                   <property name="text">
+                    <string>Y</string>
+                   </property>
+                  </widget>
+                 </item>
+                </layout>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <spacer name="horizontalSpacer_5">
+               <property name="orientation">
+                <enum>Qt::Horizontal</enum>
+               </property>
+               <property name="sizeHint" stdset="0">
+                <size>
+                 <width>40</width>
+                 <height>20</height>
+                </size>
+               </property>
+              </spacer>
+             </item>
+             <item>
+              <layout class="QVBoxLayout" name="verticalLayout_15">
+               <item>
+                <widget class="QLabel" name="label_24">
+                 <property name="text">
+                  <string>Punto 2</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <layout class="QFormLayout" name="formLayout_7">
+                 <item row="0" column="0">
+                  <widget class="QLabel" name="label_25">
+                   <property name="text">
+                    <string>X</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="0" column="1">
+                  <widget class="QSpinBox" name="x_pto2_3">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="1">
+                  <widget class="QSpinBox" name="y_pto2_3">
+                   <property name="maximum">
+                    <number>5000</number>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="0">
+                  <widget class="QLabel" name="label_26">
+                   <property name="text">
+                    <string>Y</string>
+                   </property>
+                  </widget>
+                 </item>
+                </layout>
+               </item>
+              </layout>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <layout class="QHBoxLayout" name="horizontalLayout_8"/>
+           </item>
+          </layout>
+         </item>
+        </layout>
        </item>
       </layout>
-     </item>
-    </layout>
+     </widget>
+    </widget>
+   </widget>
+   <widget class="QCommandLinkButton" name="boton_borrar_arbol">
+    <property name="geometry">
+     <rect>
+      <x>20</x>
+      <y>380</y>
+      <width>131</width>
+      <height>41</height>
+     </rect>
+    </property>
+    <property name="text">
+     <string>Borrar Árbol</string>
+    </property>
+   </widget>
+   <widget class="QGraphicsView" name="vista_puntos">
+    <property name="geometry">
+     <rect>
+      <x>180</x>
+      <y>260</y>
+      <width>631</width>
+      <height>321</height>
+     </rect>
+    </property>
    </widget>
   </widget>
   <widget class="QMenuBar" name="menubar">
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>264</width>
+     <width>870</width>
      <height>20</height>
     </rect>
    </property>

src/arbol_prioridad/frontend/ui_pantalla.py

 
 # Form implementation generated from reading ui file 'pantalla.ui'
 #
-# Created: Fri Mar 23 00:08:58 2012
+# Created: Wed Mar 28 00:08:29 2012
 #      by: pyside-uic 0.2.11 running on PySide 1.1.0
 #
 # WARNING! All changes made in this file will be lost!
 class Ui_CVentanaPrincipal(object):
     def setupUi(self, CVentanaPrincipal):
         CVentanaPrincipal.setObjectName("CVentanaPrincipal")
-        CVentanaPrincipal.setEnabled(True)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(CVentanaPrincipal.sizePolicy().hasHeightForWidth())
-        CVentanaPrincipal.setSizePolicy(sizePolicy)
-        CVentanaPrincipal.setCursor(QtCore.Qt.PointingHandCursor)
-        CVentanaPrincipal.setMouseTracking(False)
-        CVentanaPrincipal.setAutoFillBackground(False)
-        CVentanaPrincipal.setTabShape(QtGui.QTabWidget.Rounded)
+        CVentanaPrincipal.resize(870, 645)
         self.centralwidget = QtGui.QWidget(CVentanaPrincipal)
         self.centralwidget.setObjectName("centralwidget")
-        self.layoutWidget = QtGui.QWidget(self.centralwidget)
-        self.layoutWidget.setGeometry(QtCore.QRect(30, 10, 211, 186))
-        self.layoutWidget.setObjectName("layoutWidget")
-        self.formLayout = QtGui.QFormLayout(self.layoutWidget)
-        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
-        self.formLayout.setContentsMargins(0, 0, 0, 0)
-        self.formLayout.setObjectName("formLayout")
-        self.titulo = QtGui.QLabel(self.layoutWidget)
-        self.titulo.setObjectName("titulo")
-        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.titulo)
+        self.tab_principal = QtGui.QTabWidget(self.centralwidget)
+        self.tab_principal.setGeometry(QtCore.QRect(0, 0, 861, 251))
+        self.tab_principal.setTabPosition(QtGui.QTabWidget.South)
+        self.tab_principal.setObjectName("tab_principal")
+        self.tab_ins = QtGui.QWidget()
+        self.tab_ins.setObjectName("tab_ins")
+        self.widget = QtGui.QWidget(self.tab_ins)
+        self.widget.setGeometry(QtCore.QRect(40, 30, 122, 162))
+        self.widget.setObjectName("widget")
+        self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget)
+        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
+        self.verticalLayout_2.setObjectName("verticalLayout_2")
         self.verticalLayout = QtGui.QVBoxLayout()
         self.verticalLayout.setObjectName("verticalLayout")
-        self.boton_crear = QtGui.QPushButton(self.layoutWidget)
-        self.boton_crear.setObjectName("boton_crear")
-        self.verticalLayout.addWidget(self.boton_crear)
-        self.boton_insert = QtGui.QPushButton(self.layoutWidget)
-        self.boton_insert.setObjectName("boton_insert")
-        self.verticalLayout.addWidget(self.boton_insert)
-        self.boton_menor_coor = QtGui.QPushButton(self.layoutWidget)
-        self.boton_menor_coor.setObjectName("boton_menor_coor")
-        self.verticalLayout.addWidget(self.boton_menor_coor)
-        self.boton_mayor_coor = QtGui.QPushButton(self.layoutWidget)
-        self.boton_mayor_coor.setObjectName("boton_mayor_coor")
-        self.verticalLayout.addWidget(self.boton_mayor_coor)
-        self.formLayout.setLayout(1, QtGui.QFormLayout.LabelRole, self.verticalLayout)
+        self.label = QtGui.QLabel(self.widget)
+        self.label.setObjectName("label")
+        self.verticalLayout.addWidget(self.label)
+        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
+        self.verticalLayout.addItem(spacerItem)
+        self.formLayout = QtGui.QFormLayout()
+        self.formLayout.setObjectName("formLayout")
+        self.label_2 = QtGui.QLabel(self.widget)
+        self.label_2.setObjectName("label_2")
+        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
+        self.spinBox = QtGui.QSpinBox(self.widget)
+        self.spinBox.setMaximum(5000)
+        self.spinBox.setObjectName("spinBox")
+        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.spinBox)
+        self.spinBox_2 = QtGui.QSpinBox(self.widget)
+        self.spinBox_2.setMaximum(5000)
+        self.spinBox_2.setObjectName("spinBox_2")
+        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.spinBox_2)
+        self.label_3 = QtGui.QLabel(self.widget)
+        self.label_3.setObjectName("label_3")
+        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
+        self.verticalLayout.addLayout(self.formLayout)
+        self.verticalLayout_2.addLayout(self.verticalLayout)
+        self.boton_anadir_pto = QtGui.QPushButton(self.widget)
+        self.boton_anadir_pto.setObjectName("boton_anadir_pto")
+        self.verticalLayout_2.addWidget(self.boton_anadir_pto)
+        self.widget1 = QtGui.QWidget(self.tab_ins)
+        self.widget1.setGeometry(QtCore.QRect(470, 110, 223, 58))
+        self.widget1.setObjectName("widget1")
+        self.verticalLayout_3 = QtGui.QVBoxLayout(self.widget1)
+        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
+        self.verticalLayout_3.setObjectName("verticalLayout_3")
+        self.horizontalLayout = QtGui.QHBoxLayout()
+        self.horizontalLayout.setObjectName("horizontalLayout")
+        self.label_4 = QtGui.QLabel(self.widget1)
+        self.label_4.setObjectName("label_4")
+        self.horizontalLayout.addWidget(self.label_4)
+        self.spinBox_3 = QtGui.QSpinBox(self.widget1)
+        self.spinBox_3.setObjectName("spinBox_3")
+        self.horizontalLayout.addWidget(self.spinBox_3)
+        self.label_5 = QtGui.QLabel(self.widget1)
+        self.label_5.setObjectName("label_5")
+        self.horizontalLayout.addWidget(self.label_5)
+        self.verticalLayout_3.addLayout(self.horizontalLayout)
+        self.horizontalLayout_2 = QtGui.QHBoxLayout()
+        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
+        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.horizontalLayout_2.addItem(spacerItem1)
+        self.pushButton = QtGui.QPushButton(self.widget1)
+        self.pushButton.setObjectName("pushButton")
+        self.horizontalLayout_2.addWidget(self.pushButton)
+        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
+        self.tab_principal.addTab(self.tab_ins, "")
+        self.tab_busc = QtGui.QWidget()
+        self.tab_busc.setObjectName("tab_busc")
+        self.widget2 = QtGui.QWidget(self.tab_busc)
+        self.widget2.setGeometry(QtCore.QRect(180, 20, 501, 150))
+        self.widget2.setObjectName("widget2")
+        self.verticalLayout_7 = QtGui.QVBoxLayout(self.widget2)
+        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
+        self.verticalLayout_7.setObjectName("verticalLayout_7")
+        self.label_12 = QtGui.QLabel(self.widget2)
+        self.label_12.setObjectName("label_12")
+        self.verticalLayout_7.addWidget(self.label_12)
+        self.verticalLayout_6 = QtGui.QVBoxLayout()
+        self.verticalLayout_6.setObjectName("verticalLayout_6")
+        self.horizontalLayout_3 = QtGui.QHBoxLayout()
+        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+        self.verticalLayout_4 = QtGui.QVBoxLayout()
+        self.verticalLayout_4.setObjectName("verticalLayout_4")
+        self.label_10 = QtGui.QLabel(self.widget2)
+        self.label_10.setObjectName("label_10")
+        self.verticalLayout_4.addWidget(self.label_10)
+        self.formLayout_2 = QtGui.QFormLayout()
+        self.formLayout_2.setObjectName("formLayout_2")
+        self.label_6 = QtGui.QLabel(self.widget2)
+        self.label_6.setObjectName("label_6")
+        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_6)
+        self.x_pto1 = QtGui.QSpinBox(self.widget2)
+        self.x_pto1.setMaximum(5000)
+        self.x_pto1.setObjectName("x_pto1")
+        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.x_pto1)
+        self.y_pto1 = QtGui.QSpinBox(self.widget2)
+        self.y_pto1.setMaximum(5000)
+        self.y_pto1.setObjectName("y_pto1")
+        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.y_pto1)
+        self.label_7 = QtGui.QLabel(self.widget2)
+        self.label_7.setObjectName("label_7")
+        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_7)
+        self.verticalLayout_4.addLayout(self.formLayout_2)
+        self.horizontalLayout_3.addLayout(self.verticalLayout_4)
+        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.horizontalLayout_3.addItem(spacerItem2)
+        self.verticalLayout_5 = QtGui.QVBoxLayout()
+        self.verticalLayout_5.setObjectName("verticalLayout_5")
+        self.label_11 = QtGui.QLabel(self.widget2)
+        self.label_11.setObjectName("label_11")
+        self.verticalLayout_5.addWidget(self.label_11)
+        self.formLayout_3 = QtGui.QFormLayout()
+        self.formLayout_3.setObjectName("formLayout_3")
+        self.label_8 = QtGui.QLabel(self.widget2)
+        self.label_8.setObjectName("label_8")
+        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_8)
+        self.x_pto2 = QtGui.QSpinBox(self.widget2)
+        self.x_pto2.setMaximum(5000)
+        self.x_pto2.setObjectName("x_pto2")
+        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.x_pto2)
+        self.y_pto2 = QtGui.QSpinBox(self.widget2)
+        self.y_pto2.setMaximum(5000)
+        self.y_pto2.setObjectName("y_pto2")
+        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.y_pto2)
+        self.label_9 = QtGui.QLabel(self.widget2)
+        self.label_9.setObjectName("label_9")
+        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_9)
+        self.verticalLayout_5.addLayout(self.formLayout_3)
+        self.horizontalLayout_3.addLayout(self.verticalLayout_5)
+        self.verticalLayout_6.addLayout(self.horizontalLayout_3)
+        self.horizontalLayout_4 = QtGui.QHBoxLayout()
+        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
+        self.pushButton_2 = QtGui.QPushButton(self.widget2)
+        self.pushButton_2.setObjectName("pushButton_2")
+        self.horizontalLayout_4.addWidget(self.pushButton_2)
+        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.horizontalLayout_4.addItem(spacerItem3)
+        self.pushButton_3 = QtGui.QPushButton(self.widget2)
+        self.pushButton_3.setObjectName("pushButton_3")
+        self.horizontalLayout_4.addWidget(self.pushButton_3)
+        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
+        self.verticalLayout_7.addLayout(self.verticalLayout_6)
+        self.tab_principal.addTab(self.tab_busc, "")
+        self.tab_inter = QtGui.QWidget()
+        self.tab_inter.setObjectName("tab_inter")
+        self.widget3 = QtGui.QWidget(self.tab_inter)
+        self.widget3.setGeometry(QtCore.QRect(560, 10, 211, 171))
+        self.widget3.setObjectName("widget3")
+        self.verticalLayout_16 = QtGui.QVBoxLayout(self.widget3)
+        self.verticalLayout_16.setContentsMargins(0, 0, 0, 0)
+        self.verticalLayout_16.setObjectName("verticalLayout_16")
+        self.commandLinkButton = QtGui.QCommandLinkButton(self.widget3)
+        self.commandLinkButton.setObjectName("commandLinkButton")
+        self.verticalLayout_16.addWidget(self.commandLinkButton)
+        self.textBrowser = QtGui.QTextBrowser(self.widget3)
+        self.textBrowser.setObjectName("textBrowser")
+        self.verticalLayout_16.addWidget(self.textBrowser)
+        self.widget4 = QtGui.QWidget(self.tab_inter)
+        self.widget4.setGeometry(QtCore.QRect(10, 10, 471, 171))
+        self.widget4.setObjectName("widget4")
+        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.widget4)
+        self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0)
+        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
+        self.verticalLayout_8 = QtGui.QVBoxLayout()
+        self.verticalLayout_8.setObjectName("verticalLayout_8")
+        self.label_13 = QtGui.QLabel(self.widget4)
+        self.label_13.setObjectName("label_13")
+        self.verticalLayout_8.addWidget(self.label_13)
+        self.verticalLayout_9 = QtGui.QVBoxLayout()
+        self.verticalLayout_9.setObjectName("verticalLayout_9")
+        self.horizontalLayout_5 = QtGui.QHBoxLayout()
+        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
+        self.verticalLayout_10 = QtGui.QVBoxLayout()
+        self.verticalLayout_10.setObjectName("verticalLayout_10")
+        self.label_14 = QtGui.QLabel(self.widget4)
+        self.label_14.setObjectName("label_14")
+        self.verticalLayout_10.addWidget(self.label_14)
+        self.formLayout_4 = QtGui.QFormLayout()
+        self.formLayout_4.setObjectName("formLayout_4")
+        self.label_15 = QtGui.QLabel(self.widget4)
+        self.label_15.setObjectName("label_15")
+        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_15)
+        self.x_pto1_2 = QtGui.QSpinBox(self.widget4)
+        self.x_pto1_2.setMaximum(5000)
+        self.x_pto1_2.setObjectName("x_pto1_2")
+        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.x_pto1_2)
+        self.y_pto1_2 = QtGui.QSpinBox(self.widget4)
+        self.y_pto1_2.setMaximum(5000)
+        self.y_pto1_2.setObjectName("y_pto1_2")
+        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.y_pto1_2)
+        self.label_16 = QtGui.QLabel(self.widget4)
+        self.label_16.setObjectName("label_16")
+        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_16)
+        self.verticalLayout_10.addLayout(self.formLayout_4)
+        self.horizontalLayout_5.addLayout(self.verticalLayout_10)
+        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.horizontalLayout_5.addItem(spacerItem4)
+        self.verticalLayout_11 = QtGui.QVBoxLayout()
+        self.verticalLayout_11.setObjectName("verticalLayout_11")
+        self.label_17 = QtGui.QLabel(self.widget4)
+        self.label_17.setObjectName("label_17")
+        self.verticalLayout_11.addWidget(self.label_17)
+        self.formLayout_5 = QtGui.QFormLayout()
+        self.formLayout_5.setObjectName("formLayout_5")
+        self.label_18 = QtGui.QLabel(self.widget4)
+        self.label_18.setObjectName("label_18")
+        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_18)
+        self.x_pto2_2 = QtGui.QSpinBox(self.widget4)
+        self.x_pto2_2.setMaximum(5000)
+        self.x_pto2_2.setObjectName("x_pto2_2")
+        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.x_pto2_2)
+        self.y_pto2_2 = QtGui.QSpinBox(self.widget4)
+        self.y_pto2_2.setMaximum(5000)
+        self.y_pto2_2.setObjectName("y_pto2_2")
+        self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.y_pto2_2)
+        self.label_19 = QtGui.QLabel(self.widget4)
+        self.label_19.setObjectName("label_19")
+        self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_19)
+        self.verticalLayout_11.addLayout(self.formLayout_5)
+        self.horizontalLayout_5.addLayout(self.verticalLayout_11)
+        self.verticalLayout_9.addLayout(self.horizontalLayout_5)
+        self.horizontalLayout_6 = QtGui.QHBoxLayout()
+        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
+        self.verticalLayout_9.addLayout(self.horizontalLayout_6)
+        self.verticalLayout_8.addLayout(self.verticalLayout_9)
+        self.horizontalLayout_9.addLayout(self.verticalLayout_8)
+        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.horizontalLayout_9.addItem(spacerItem5)
+        self.verticalLayout_12 = QtGui.QVBoxLayout()
+        self.verticalLayout_12.setObjectName("verticalLayout_12")
+        self.label_20 = QtGui.QLabel(self.widget4)
+        self.label_20.setObjectName("label_20")
+        self.verticalLayout_12.addWidget(self.label_20)
+        self.verticalLayout_13 = QtGui.QVBoxLayout()
+        self.verticalLayout_13.setObjectName("verticalLayout_13")
+        self.horizontalLayout_7 = QtGui.QHBoxLayout()
+        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
+        self.verticalLayout_14 = QtGui.QVBoxLayout()
+        self.verticalLayout_14.setObjectName("verticalLayout_14")
+        self.label_21 = QtGui.QLabel(self.widget4)
+        self.label_21.setObjectName("label_21")
+        self.verticalLayout_14.addWidget(self.label_21)
+        self.formLayout_6 = QtGui.QFormLayout()
+        self.formLayout_6.setObjectName("formLayout_6")
+        self.label_22 = QtGui.QLabel(self.widget4)
+        self.label_22.setObjectName("label_22")
+        self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_22)
+        self.x_pto1_3 = QtGui.QSpinBox(self.widget4)
+        self.x_pto1_3.setMaximum(5000)
+        self.x_pto1_3.setObjectName("x_pto1_3")
+        self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole, self.x_pto1_3)
+        self.y_pto1_3 = QtGui.QSpinBox(self.widget4)
+        self.y_pto1_3.setMaximum(5000)
+        self.y_pto1_3.setObjectName("y_pto1_3")
+        self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole, self.y_pto1_3)
+        self.label_23 = QtGui.QLabel(self.widget4)
+        self.label_23.setObjectName("label_23")
+        self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_23)
+        self.verticalLayout_14.addLayout(self.formLayout_6)
+        self.horizontalLayout_7.addLayout(self.verticalLayout_14)
+        spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+        self.horizontalLayout_7.addItem(spacerItem6)
+        self.verticalLayout_15 = QtGui.QVBoxLayout()
+        self.verticalLayout_15.setObjectName("verticalLayout_15")
+        self.label_24 = QtGui.QLabel(self.widget4)
+        self.label_24.setObjectName("label_24")
+        self.verticalLayout_15.addWidget(self.label_24)
+        self.formLayout_7 = QtGui.QFormLayout()
+        self.formLayout_7.setObjectName("formLayout_7")
+        self.label_25 = QtGui.QLabel(self.widget4)
+        self.label_25.setObjectName("label_25")
+        self.formLayout_7.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_25)
+        self.x_pto2_3 = QtGui.QSpinBox(self.widget4)
+        self.x_pto2_3.setMaximum(5000)
+        self.x_pto2_3.setObjectName("x_pto2_3")
+        self.formLayout_7.setWidget(0, QtGui.QFormLayout.FieldRole, self.x_pto2_3)
+        self.y_pto2_3 = QtGui.QSpinBox(self.widget4)
+        self.y_pto2_3.setMaximum(5000)
+        self.y_pto2_3.setObjectName("y_pto2_3")
+        self.formLayout_7.setWidget(2, QtGui.QFormLayout.FieldRole, self.y_pto2_3)
+        self.label_26 = QtGui.QLabel(self.widget4)
+        self.label_26.setObjectName("label_26")
+        self.formLayout_7.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_26)
+        self.verticalLayout_15.addLayout(self.formLayout_7)
+        self.horizontalLayout_7.addLayout(self.verticalLayout_15)
+        self.verticalLayout_13.addLayout(self.horizontalLayout_7)
+        self.horizontalLayout_8 = QtGui.QHBoxLayout()
+        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
+        self.verticalLayout_13.addLayout(self.horizontalLayout_8)
+        self.verticalLayout_12.addLayout(self.verticalLayout_13)
+        self.horizontalLayout_9.addLayout(self.verticalLayout_12)
+        self.tab_principal.addTab(self.tab_inter, "")
+        self.boton_borrar_arbol = QtGui.QCommandLinkButton(self.centralwidget)
+        self.boton_borrar_arbol.setGeometry(QtCore.QRect(20, 380, 131, 41))
+        self.boton_borrar_arbol.setObjectName("boton_borrar_arbol")
+        self.vista_puntos = QtGui.QGraphicsView(self.centralwidget)
+        self.vista_puntos.setGeometry(QtCore.QRect(180, 260, 631, 321))
+        self.vista_puntos.setObjectName("vista_puntos")
         CVentanaPrincipal.setCentralWidget(self.centralwidget)
         self.menubar = QtGui.QMenuBar(CVentanaPrincipal)
-        self.menubar.setGeometry(QtCore.QRect(0, 0, 264, 20))
+        self.menubar.setGeometry(QtCore.QRect(0, 0, 870, 20))
         self.menubar.setObjectName("menubar")
         CVentanaPrincipal.setMenuBar(self.menubar)
         self.statusbar = QtGui.QStatusBar(CVentanaPrincipal)
         CVentanaPrincipal.setStatusBar(self.statusbar)
 
         self.retranslateUi(CVentanaPrincipal)
+        self.tab_principal.setCurrentIndex(2)
         QtCore.QMetaObject.connectSlotsByName(CVentanaPrincipal)
 
     def retranslateUi(self, CVentanaPrincipal):
-        CVentanaPrincipal.setWindowTitle(QtGui.QApplication.translate("CVentanaPrincipal", "Applet", None, QtGui.QApplication.UnicodeUTF8))
-        self.titulo.setText(QtGui.QApplication.translate("CVentanaPrincipal", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
+        CVentanaPrincipal.setWindowTitle(QtGui.QApplication.translate("CVentanaPrincipal", "Applet Arboles de Búsqueda", None, QtGui.QApplication.UnicodeUTF8))
+        self.label.setText(QtGui.QApplication.translate("CVentanaPrincipal", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
+"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
+"p, li { white-space: pre-wrap; }\n"
+"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
+"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600;\">Coordenadas</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_2.setText(QtGui.QApplication.translate("CVentanaPrincipal", "X", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_3.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.boton_anadir_pto.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Añadir Punto", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_4.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Generar", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_5.setText(QtGui.QApplication.translate("CVentanaPrincipal", "puntos aleatorios", None, QtGui.QApplication.UnicodeUTF8))
+        self.pushButton.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Aceptar", None, QtGui.QApplication.UnicodeUTF8))
+        self.tab_principal.setTabText(self.tab_principal.indexOf(self.tab_ins), QtGui.QApplication.translate("CVentanaPrincipal", "Insertar Puntos", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_12.setText(QtGui.QApplication.translate("CVentanaPrincipal", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
+"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
+"p, li { white-space: pre-wrap; }\n"
+"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
+"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; font-weight:600;\">Rectángulo</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_10.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto 1", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_6.setText(QtGui.QApplication.translate("CVentanaPrincipal", "X", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_7.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_11.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto 2", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_8.setText(QtGui.QApplication.translate("CVentanaPrincipal", "X", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_9.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.pushButton_2.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Puntos con la menor coordenada X", None, QtGui.QApplication.UnicodeUTF8))
+        self.pushButton_3.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Puntos con la mayor coordenada Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.tab_principal.setTabText(self.tab_principal.indexOf(self.tab_busc), QtGui.QApplication.translate("CVentanaPrincipal", "Buscar puntos en rectángulo", None, QtGui.QApplication.UnicodeUTF8))
+        self.commandLinkButton.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Puntos en la Intersección", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_13.setText(QtGui.QApplication.translate("CVentanaPrincipal", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
+"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
+"p, li { white-space: pre-wrap; }\n"
+"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
+"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; font-weight:600;\">Rectángulo 1</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_14.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto 1", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_15.setText(QtGui.QApplication.translate("CVentanaPrincipal", "X", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_16.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_17.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto 2", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_18.setText(QtGui.QApplication.translate("CVentanaPrincipal", "X", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_19.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_20.setText(QtGui.QApplication.translate("CVentanaPrincipal", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
 "p, li { white-space: pre-wrap; }\n"
 "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
-"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; font-weight:600;\">Arboles Binarios</span></p>\n"
-"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; font-weight:600;\"> con Prioridad</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
-        self.boton_crear.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Crear Arbol", None, QtGui.QApplication.UnicodeUTF8))
-        self.boton_insert.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Insertar Punto", None, QtGui.QApplication.UnicodeUTF8))
-        self.boton_menor_coor.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto con Menor Coordenada X", None, QtGui.QApplication.UnicodeUTF8))
-        self.boton_mayor_coor.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto con Mayor Coordenada Y", None, QtGui.QApplication.UnicodeUTF8))
+"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:16pt; font-weight:600;\">Rectángulo 2</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_21.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto 1", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_22.setText(QtGui.QApplication.translate("CVentanaPrincipal", "X", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_23.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_24.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Punto 2", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_25.setText(QtGui.QApplication.translate("CVentanaPrincipal", "X", None, QtGui.QApplication.UnicodeUTF8))
+        self.label_26.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Y", None, QtGui.QApplication.UnicodeUTF8))
+        self.tab_principal.setTabText(self.tab_principal.indexOf(self.tab_inter), QtGui.QApplication.translate("CVentanaPrincipal", "Enumerar puntos en Intersección", None, QtGui.QApplication.UnicodeUTF8))
+        self.boton_borrar_arbol.setText(QtGui.QApplication.translate("CVentanaPrincipal", "Borrar Árbol", None, QtGui.QApplication.UnicodeUTF8))