@@ -13,8 +13,7 from modelProperties import treeModel | |||
|
13 | 13 | from viewer.ui_unitprocess import Ui_UnitProcess |
|
14 | 14 | from viewer.ui_window import Ui_window |
|
15 | 15 | from viewer.ui_mainwindow import Ui_MainWindow |
|
16 | from viewer.ui_workspace import Ui_Workspace | |
|
17 | from viewer.ui_initwindow import Ui_InitWindow | |
|
16 | ||
|
18 | 17 | |
|
19 | 18 | from controller import Project,ReadUnitConf,ProcUnitConf,OperationConf,ParameterConf |
|
20 | 19 | import os |
@@ -63,6 +62,7 class MainWindow(QMainWindow, Ui_MainWindow): | |||
|
63 | 62 | self.configProject=None |
|
64 | 63 | self.configUP=None |
|
65 | 64 | |
|
65 | ||
|
66 | 66 | self.controllerObj=None |
|
67 | 67 | self.readUnitConfObj=None |
|
68 | 68 | self.procUnitConfObj0=None |
@@ -582,14 +582,22 class MainWindow(QMainWindow, Ui_MainWindow): | |||
|
582 | 582 | |
|
583 | 583 | def addProject(self): |
|
584 | 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 | 588 | self.idp += 1 |
|
586 | 589 | self.projectObj = Project() |
|
587 | ||
|
590 | self.description="Think" | |
|
588 | 591 | id=int(self.idp) |
|
589 | 592 | name=str(self.nameProjectTxt.text()) |
|
590 | 593 | desc=str(self.description) |
|
591 | 594 | |
|
592 | 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 | 602 | #self.configProject=Window(self) |
|
595 | 603 | #self.configProject.closed.connect(self.show) |
@@ -598,6 +606,25 class MainWindow(QMainWindow, Ui_MainWindow): | |||
|
598 | 606 | # self.configProject.saveButton.clicked.connect(self.reciveParameters) |
|
599 | 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 | 628 | def reciveParameters(self): |
|
602 | 629 | self.namep,self.description =self.configProject.almacena() |
|
603 | 630 |
General Comments 0
You need to be logged in to leave comments.
Login now