@@ -13,8 +13,7 from modelProperties import treeModel | |||||
13 | from viewer.ui_unitprocess import Ui_UnitProcess |
|
13 | from viewer.ui_unitprocess import Ui_UnitProcess | |
14 | from viewer.ui_window import Ui_window |
|
14 | from viewer.ui_window import Ui_window | |
15 | from viewer.ui_mainwindow import Ui_MainWindow |
|
15 | from viewer.ui_mainwindow import Ui_MainWindow | |
16 | from viewer.ui_workspace import Ui_Workspace |
|
16 | ||
17 | from viewer.ui_initwindow import Ui_InitWindow |
|
|||
18 |
|
17 | |||
19 | from controller import Project,ReadUnitConf,ProcUnitConf,OperationConf,ParameterConf |
|
18 | from controller import Project,ReadUnitConf,ProcUnitConf,OperationConf,ParameterConf | |
20 | import os |
|
19 | import os | |
@@ -63,6 +62,7 class MainWindow(QMainWindow, Ui_MainWindow): | |||||
63 | self.configProject=None |
|
62 | self.configProject=None | |
64 | self.configUP=None |
|
63 | self.configUP=None | |
65 |
|
64 | |||
|
65 | ||||
66 | self.controllerObj=None |
|
66 | self.controllerObj=None | |
67 | self.readUnitConfObj=None |
|
67 | self.readUnitConfObj=None | |
68 | self.procUnitConfObj0=None |
|
68 | self.procUnitConfObj0=None | |
@@ -582,14 +582,22 class MainWindow(QMainWindow, Ui_MainWindow): | |||||
582 |
|
582 | |||
583 | def addProject(self): |
|
583 | def addProject(self): | |
584 | self.tabWidgetProject.setEnabled(True) |
|
584 | self.tabWidgetProject.setEnabled(True) | |
|
585 | print "En este nivel se debe crear el proyecto,id,nombre,desc" | |||
|
586 | #+++++Creacion del Objeto Controller-XML++++++++++# | |||
|
587 | ||||
585 | self.idp += 1 |
|
588 | self.idp += 1 | |
586 | self.projectObj = Project() |
|
589 | self.projectObj = Project() | |
587 |
|
590 | self.description="Think" | ||
588 | id=int(self.idp) |
|
591 | id=int(self.idp) | |
589 | name=str(self.nameProjectTxt.text()) |
|
592 | name=str(self.nameProjectTxt.text()) | |
590 | desc=str(self.description) |
|
593 | desc=str(self.description) | |
591 |
|
594 | |||
592 | self.projectObj.setup(id = id, name=name, description=desc) |
|
595 | self.projectObj.setup(id = id, name=name, description=desc) | |
|
596 | self.__projObjDict[id] = self.projectObj | |||
|
597 | self.parentItem = self.model.invisibleRootItem() | |||
|
598 | self.__arbolDict[id] = QtGui.QStandardItem(QtCore.QString(name+" %0").arg(self.idp)) | |||
|
599 | self.parentItem.appendRow(self.__arbolDict[self.projectObj.id]) | |||
|
600 | self.parentItem=self.__arbolDict[id] | |||
593 |
|
601 | |||
594 | #self.configProject=Window(self) |
|
602 | #self.configProject=Window(self) | |
595 | #self.configProject.closed.connect(self.show) |
|
603 | #self.configProject.closed.connect(self.show) | |
@@ -598,6 +606,25 class MainWindow(QMainWindow, Ui_MainWindow): | |||||
598 | # self.configProject.saveButton.clicked.connect(self.reciveParameters) |
|
606 | # self.configProject.saveButton.clicked.connect(self.reciveParameters) | |
599 | #self.configProject.closed.connect(self.createProject) |
|
607 | #self.configProject.closed.connect(self.createProject) | |
600 |
|
608 | |||
|
609 | ||||
|
610 | ||||
|
611 | ||||
|
612 | ||||
|
613 | ||||
|
614 | ||||
|
615 | ||||
|
616 | #+++++++++++++++++++LISTA DE PROYECTO++++++++++++++++++++++++++++# | |||
|
617 | ||||
|
618 | ||||
|
619 | # self.parentItem=self.projectObj.arbol | |||
|
620 | # self.loadProjects() | |||
|
621 | ||||
|
622 | print "Porfavor ingrese los parámetros de configuracion del Proyecto" | |||
|
623 | ||||
|
624 | ||||
|
625 | ||||
|
626 | ||||
|
627 | ||||
601 | def reciveParameters(self): |
|
628 | def reciveParameters(self): | |
602 | self.namep,self.description =self.configProject.almacena() |
|
629 | self.namep,self.description =self.configProject.almacena() | |
603 |
|
630 |
General Comments 0
You need to be logged in to leave comments.
Login now