[opencoffee-devel] Fwd: Mini Parche Workstations |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opencoffee-devel Archives
]
- To: opencoffee-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [opencoffee-devel] Fwd: Mini Parche Workstations
- From: "Jose Arcangel Salazar Delgado" <arcangel.salazar@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Oct 2007 17:35:57 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=GxuhRDm3Smm6TawVTSflr1EwCMxDoAHPx49m/m+/b4A=; b=GYrnXwgheO1ijRdZrvOcLv1gxj7uXRK8E6yQGD54OX6HCA5Aqxq1cWZDBgLy2KaL7kX1aOMxoa6piWOmNLMAra/QwuuzIlSfBU63bJwBUD+gV7RNO4EywzuXXRgbb34TyF7z+Ure0nSDU/YWzAo5qhUYRLI9M1P73r5f4+HMcQc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Ozxwk8yOIGUcTESuQpSH0s75pMaKSPsmGKC5Uf6iJJZ6hLpTCH+Lw7Mf0/ccGC5qqwuR1uwdHduH8ztSMbtv5NUiNO4eoNZc2Nvepc/TIjmlcihsp1EjpOjSvA8AI4o5YcZhY8b1VlQYKSjD78sSbW9Z4p4eT7lmK6sBAsopJCE=
hola compañeros.
Aquí va otro mini parche. En este se corrige el comportamiento del tab
de las workstations. Ahora puede albergar hasta 3 workstation por
fila. También se agregaron comentarios.
Se aplica con:
patch -p5 < patch.diff
Copiando el archivo en el trunk.
Saludos.
Index: /home/arcangel/workspace/opencoffee/opencoffee-server/core/workstations/workstationsTab.py
===================================================================
--- /home/arcangel/workspace/opencoffee/opencoffee-server/core/workstations/workstationsTab.py (revision 330)
+++ /home/arcangel/workspace/opencoffee/opencoffee-server/core/workstations/workstationsTab.py (working copy)
@@ -31,12 +31,13 @@
class WorkstationsTab(QtGui.QWidget):
def __init__(self,parent = None):
QWidget.__init__(self, parent)
-
+
+ #Se crea el gridLayout donde se van a contener a las
+ #workstations y se asigna como widget principal tel tab.
self.gbox= QGridLayout()
self.setLayout(self.gbox)
- self.spacer = QSpacerItem(3, 3, QtGui.QSizePolicy.Minimum)
-
+ #creacion de las workstations predeterminadas.
self.w1 = WorkstationTemplate()
self.w2 = WorkstationTemplate()
self.w3 = WorkstationTemplate()
@@ -44,12 +45,14 @@
self.w5 = WorkstationTemplate()
self.w6 = WorkstationTemplate()
+ #Se agregan las workstations al gridLayout. Se utilizan
+ #las coordenadas X,Y de donde se quieren agregar.
self.gbox.addWidget(self.w1,0,0)
self.gbox.addWidget(self.w2,0,1)
- self.gbox.addWidget(self.w3,2,0)
- self.gbox.addWidget(self.w4,2,1)
- self.gbox.addWidget(self.w5,3,0)
- self.gbox.addWidget(self.w6,3,1)
+ self.gbox.addWidget(self.w3,0,2)
+ self.gbox.addWidget(self.w4,1,0)
+ self.gbox.addWidget(self.w5,1,1)
+ self.gbox.addWidget(self.w6,1,2)
## Se define la clase de ui_workstations.py