diff --git a/schainpy/gui/testSignalChainGUI.py b/schainpy/gui/testSignalChainGUI.py index ef7e935..b0a4948 100644 --- a/schainpy/gui/testSignalChainGUI.py +++ b/schainpy/gui/testSignalChainGUI.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -#from PyQt4 import QtCore, QtGui +#from PyQt4 import QtCore, QtGuis from PyQt4.QtGui import QApplication #from PyQt4.QtCore import pyqtSignature #from Controller.workspace import Workspace @@ -9,12 +9,13 @@ from PyQt4.QtGui import QApplication #from Controller.initwindow import InitWindow #from Controller.window import window from viewcontroller.mainwindow import MainWindow -#import time +#from viewcontroller.mainwindow2 import UnitProcess def main(): import sys app = QApplication(sys.argv) #wnd=InitWindow() + # wnd=UnitProcess() wnd=MainWindow() #wnd=Workspace() wnd.show() diff --git a/schainpy/gui/viewcontroller/controller.py b/schainpy/gui/viewcontroller/controller.py new file mode 100644 index 0000000..0ab44d1 --- /dev/null +++ b/schainpy/gui/viewcontroller/controller.py @@ -0,0 +1,739 @@ +''' +Created on September , 2012 +@author: +''' +from xml.etree.ElementTree import Element, SubElement, ElementTree +from xml.etree import ElementTree as ET +from xml.dom import minidom + +#import sys +#import datetime +#from model.jrodataIO import * +#from model.jroprocessing import * +#from model.jroplot import * + +def prettify(elem): + """Return a pretty-printed XML string for the Element. + """ + rough_string = ET.tostring(elem, 'utf-8') + reparsed = minidom.parseString(rough_string) + return reparsed.toprettyxml(indent=" ") + +class ParameterConf(): + + id = None + name = None + value = None + format = None + + ELEMENTNAME = 'Parameter' + + def __init__(self): + + self.format = 'str' + + def getElementName(self): + + return self.ELEMENTNAME + + def getValue(self): + + value = self.value + + if self.format == 'list': + strList = value.split(',') + return strList + + if self.format == 'intlist': + strList = value.split(',') + intList = [int(x) for x in strList] + return intList + + if self.format == 'floatlist': + strList = value.split(',') + floatList = [float(x) for x in strList] + return floatList + + if self.format == 'date': + strList = value.split('/') + intList = [int(x) for x in strList] + date = datetime.date(intList[0], intList[1], intList[2]) + return date + + if self.format == 'time': + strList = value.split(':') + intList = [int(x) for x in strList] + time = datetime.time(intList[0], intList[1], intList[2]) + return time + + if self.format == 'bool': + value = int(value) + + if self.format == 'pairslist': + """ + Example: + value = (0,1),(1,2) + """ + + value = value.replace('(', '') + value = value.replace(')', '') + + strList = value.split(',') + intList = [int(item) for item in strList] + pairList = [] + for i in range(len(intList)/2): + pairList.append((intList[i*2], intList[i*2 + 1])) + + return pairList + + func = eval(self.format) + + return func(value) + + def setup(self, id, name, value, format='str'): + + self.id = id + self.name = name + self.value = str(value) + self.format = format + + def makeXml(self, opElement): + + parmElement = SubElement(opElement, self.ELEMENTNAME) + parmElement.set('id', str(self.id)) + parmElement.set('name', self.name) + parmElement.set('value', self.value) + parmElement.set('format', self.format) + + def readXml(self, parmElement): + + self.id = parmElement.get('id') + self.name = parmElement.get('name') + self.value = parmElement.get('value') + self.format = parmElement.get('format') + + def printattr(self): + + print "Parameter[%s]: name = %s, value = %s, format = %s" %(self.id, self.name, self.value, self.format) + +class OperationConf(): + + id = None + name = None + priority = None + type = None + + parmConfObjList = [] + + ELEMENTNAME = 'Operation' + + def __init__(self): + + id = 0 + name = None + priority = None + type = 'self' + + + def __getNewId(self): + + return int(self.id)*10 + len(self.parmConfObjList) + 1 + + def getElementName(self): + + return self.ELEMENTNAME + + def getParameterObjList(self): + + return self.parmConfObjList + + def setup(self, id, name, priority, type): + + self.id = id + self.name = name + self.type = type + self.priority = priority + + self.parmConfObjList = [] + + def addParameter(self, name, value, format='str'): + + id = self.__getNewId() + + parmConfObj = ParameterConf() + parmConfObj.setup(id, name, value, format) + + self.parmConfObjList.append(parmConfObj) + + return parmConfObj + + def makeXml(self, upElement): + + opElement = SubElement(upElement, self.ELEMENTNAME) + opElement.set('id', str(self.id)) + opElement.set('name', self.name) + opElement.set('type', self.type) + opElement.set('priority', str(self.priority)) + + for parmConfObj in self.parmConfObjList: + parmConfObj.makeXml(opElement) + + def readXml(self, opElement): + + self.id = opElement.get('id') + self.name = opElement.get('name') + self.type = opElement.get('type') + self.priority = opElement.get('priority') + + self.parmConfObjList = [] + + parmElementList = opElement.getiterator(ParameterConf().getElementName()) + + for parmElement in parmElementList: + parmConfObj = ParameterConf() + parmConfObj.readXml(parmElement) + self.parmConfObjList.append(parmConfObj) + + def printattr(self): + + print "%s[%s]: name = %s, type = %s, priority = %s" %(self.ELEMENTNAME, + self.id, + self.name, + self.type, + self.priority) + + for parmConfObj in self.parmConfObjList: + parmConfObj.printattr() + + def createObject(self): + + if self.type == 'self': + raise ValueError, "This operation type cannot be created" + + if self.type == 'other': + className = eval(self.name) + opObj = className() + + return opObj + +class ProcUnitConf(): + + id = None + name = None + datatype = None + inputId = None + arbol=None + + opConfObjList = [] + + procUnitObj = None + opObjList = [] + + ELEMENTNAME = 'ProcUnit' + + def __init__(self): + + self.id = None + self.datatype = None + self.name = None + self.inputId = None + self.arbol=None + + self.opConfObjList = [] + + self.procUnitObj = None + self.opObjDict = {} + + def __getPriority(self): + + return len(self.opConfObjList)+1 + + def __getNewId(self): + + return int(self.id)*10 + len(self.opConfObjList) + 1 + + def getElementName(self): + + return self.ELEMENTNAME + + def getId(self): + + return str(self.id) + + def getInputId(self): + + return str(self.inputId) + + def getOperationObjList(self): + + return self.opConfObjList + + def getProcUnitObj(self): + + return self.procUnitObj + + def setup(self, id, name, datatype, inputId): + + self.id = id + self.name = name + self.datatype = datatype + self.inputId = inputId + + self.opConfObjList = [] + + self.addOperation(name='init', optype='self') + + def addParameter(self, **kwargs): + + opObj = self.opConfObjList[0] + + opObj.addParameter(**kwargs) + + return opObj + + def addOperation(self, name, optype='self'): + + id = self.__getNewId() + priority = self.__getPriority() + + opConfObj = OperationConf() + opConfObj.setup(id, name=name, priority=priority, type=optype) + + self.opConfObjList.append(opConfObj) + + return opConfObj + + def makeXml(self, procUnitElement): + + upElement = SubElement(procUnitElement, self.ELEMENTNAME) + upElement.set('id', str(self.id)) + upElement.set('name', self.name) + upElement.set('datatype', self.datatype) + upElement.set('inputId', str(self.inputId)) + + for opConfObj in self.opConfObjList: + opConfObj.makeXml(upElement) + + def readXml(self, upElement): + + self.id = upElement.get('id') + self.name = upElement.get('name') + self.datatype = upElement.get('datatype') + self.inputId = upElement.get('inputId') + + self.opConfObjList = [] + + opElementList = upElement.getiterator(OperationConf().getElementName()) + + for opElement in opElementList: + opConfObj = OperationConf() + opConfObj.readXml(opElement) + self.opConfObjList.append(opConfObj) + + def printattr(self): + + print "%s[%s]: name = %s, datatype = %s, inputId = %s" %(self.ELEMENTNAME, + self.id, + self.name, + self.datatype, + self.inputId) + + for opConfObj in self.opConfObjList: + opConfObj.printattr() + + def createObjects(self): + + className = eval(self.name) + procUnitObj = className() + + for opConfObj in self.opConfObjList: + + if opConfObj.type == 'self': + continue + + opObj = opConfObj.createObject() + + self.opObjDict[opConfObj.id] = opObj + procUnitObj.addOperation(opObj, opConfObj.id) + + self.procUnitObj = procUnitObj + + return procUnitObj + + def run(self): + + finalSts = False + + for opConfObj in self.opConfObjList: + + kwargs = {} + for parmConfObj in opConfObj.getParameterObjList(): + kwargs[parmConfObj.name] = parmConfObj.getValue() + + #print "\tRunning the '%s' operation with %s" %(opConfObj.name, opConfObj.id) + sts = self.procUnitObj.call(opConfObj, **kwargs) + finalSts = finalSts or sts + + return finalSts + +class ReadUnitConf(ProcUnitConf): + + path = None + startDate = None + endDate = None + startTime = None + endTime = None + + ELEMENTNAME = 'ReadUnit' + + def __init__(self): + + self.id = None + self.datatype = None + self.name = None + self.inputId = 0 + + self.opConfObjList = [] + self.opObjList = [] + + def getElementName(self): + + return self.ELEMENTNAME + + def setup(self, id, name, datatype, path, startDate, endDate, startTime, endTime, **kwargs): + + self.id = id + self.name = name + self.datatype = datatype + + self.path = path + self.startDate = startDate + self.endDate = endDate + self.startTime = startTime + self.endTime = endTime + + self.addRunOperation(**kwargs) + + def addRunOperation(self, **kwargs): + + opObj = self.addOperation(name = 'run', optype = 'self') + + opObj.addParameter(name='path' , value=self.path, format='str') + opObj.addParameter(name='startDate' , value=self.startDate, format='date') + opObj.addParameter(name='endDate' , value=self.endDate, format='date') + opObj.addParameter(name='startTime' , value=self.startTime, format='time') + opObj.addParameter(name='endTime' , value=self.endTime, format='time') + + for key, value in kwargs.items(): + opObj.addParameter(name=key, value=value, format=type(value).__name__) + + return opObj + + +class Project(): + + id = None + name = None + description = None + arbol=None +# readUnitConfObjList = None + procUnitConfObjDict = None + + ELEMENTNAME = 'Project' + + def __init__(self): + + self.id = None + self.name = None + self.description = None + self.arbol=None +# self.readUnitConfObjList = [] + self.procUnitConfObjDict = {} + + def __getNewId(self): + + id = int(self.id)*10 + len(self.procUnitConfObjDict) + 1 + + return str(id) + + def getElementName(self): + + return self.ELEMENTNAME + + def setup(self, id, name, description): + + self.id = id + self.name = name + self.description = description + + def addReadUnit(self, datatype, path, startDate='', endDate='', startTime='', endTime='', **kwargs): + + id = self.__getNewId() + name = '%sReader' %(datatype) + + readUnitConfObj = ReadUnitConf() + readUnitConfObj.setup(id, name, datatype, path, startDate, endDate, startTime, endTime, **kwargs) + + self.procUnitConfObjDict[readUnitConfObj.getId()] = readUnitConfObj + + return readUnitConfObj + + def addProcUnit(self, datatype, inputId): + + id = self.__getNewId() + name = '%sProc' %(datatype) + + procUnitConfObj = ProcUnitConf() + procUnitConfObj.setup(id, name, datatype, inputId) + + self.procUnitConfObjDict[procUnitConfObj.getId()] = procUnitConfObj + + return procUnitConfObj + + def makeXml(self): + + projectElement = Element('Project') + projectElement.set('id', str(self.id)) + projectElement.set('name', self.name) + projectElement.set('description', self.description) + +# for readUnitConfObj in self.readUnitConfObjList: +# readUnitConfObj.makeXml(projectElement) + + for procUnitConfObj in self.procUnitConfObjDict.values(): + procUnitConfObj.makeXml(projectElement) + + self.projectElement = projectElement + + def writeXml(self, filename): + + self.makeXml() + + print prettify(self.projectElement) + + ElementTree(self.projectElement).write(filename, method='xml') + + def readXml(self, filename): + + #tree = ET.parse(filename) + self.projectElement = None +# self.readUnitConfObjList = [] + self.procUnitConfObjDict = {} + + self.projectElement = ElementTree().parse(filename) + + self.project = self.projectElement.tag + + self.id = self.projectElement.get('id') + self.name = self.projectElement.get('name') + self.description = self.projectElement.get('description') + + readUnitElementList = self.projectElement.getiterator(ReadUnitConf().getElementName()) + + for readUnitElement in readUnitElementList: + readUnitConfObj = ReadUnitConf() + readUnitConfObj.readXml(readUnitElement) + + self.procUnitConfObjDict[readUnitConfObj.getId()] = readUnitConfObj + + procUnitElementList = self.projectElement.getiterator(ProcUnitConf().getElementName()) + + for procUnitElement in procUnitElementList: + procUnitConfObj = ProcUnitConf() + procUnitConfObj.readXml(procUnitElement) + + self.procUnitConfObjDict[procUnitConfObj.getId()] = procUnitConfObj + + def printattr(self): + + print "Project[%s]: name = %s, description = %s" %(self.id, + self.name, + self.description) + +# for readUnitConfObj in self.readUnitConfObjList: +# readUnitConfObj.printattr() + + for procUnitConfObj in self.procUnitConfObjDict.values(): + procUnitConfObj.printattr() + + def createObjects(self): + +# for readUnitConfObj in self.readUnitConfObjList: +# readUnitConfObj.createObjects() + + for procUnitConfObj in self.procUnitConfObjDict.values(): + procUnitConfObj.createObjects() + + def __connect(self, objIN, obj): + + obj.setInput(objIN.getOutput()) + + def connectObjects(self): + + for puConfObj in self.procUnitConfObjDict.values(): + + inputId = puConfObj.getInputId() + + if int(inputId) == 0: + continue + + puConfINObj = self.procUnitConfObjDict[inputId] + + puObj = puConfObj.getProcUnitObj() + puINObj = puConfINObj.getProcUnitObj() + + self.__connect(puINObj, puObj) + + def run(self): + +# for readUnitConfObj in self.readUnitConfObjList: +# readUnitConfObj.run() + + while(True): + + finalSts = False + + for procUnitConfObj in self.procUnitConfObjDict.values(): + #print "Running the '%s' process with %s" %(procUnitConfObj.name, procUnitConfObj.id) + sts = procUnitConfObj.run() + finalSts = finalSts or sts + + #If every process unit finished so end process + if not(finalSts): + print "Every process units have finished" + break + +if __name__ == '__main__': + + desc = "Segundo Test" + filename = "schain.xml" + + controllerObj = Project() + + controllerObj.setup(id = '191', name='test01', description=desc) + + readUnitConfObj = controllerObj.addReadUnit(datatype='Voltage', + path='data/rawdata/', + startDate='2011/01/01', + endDate='2012/12/31', + startTime='00:00:00', + endTime='23:59:59', + online=1, + walk=1) + +# opObj00 = readUnitConfObj.addOperation(name='printInfo') + + procUnitConfObj0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId()) + + opObj10 = procUnitConfObj0.addOperation(name='selectChannels') + opObj10.addParameter(name='channelList', value='3,4,5', format='intlist') + + opObj10 = procUnitConfObj0.addOperation(name='selectHeights') + opObj10.addParameter(name='minHei', value='90', format='float') + opObj10.addParameter(name='maxHei', value='180', format='float') + + opObj12 = procUnitConfObj0.addOperation(name='CohInt', optype='other') + opObj12.addParameter(name='n', value='10', format='int') + + procUnitConfObj1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj0.getId()) + procUnitConfObj1.addParameter(name='nFFTPoints', value='32', format='int') +# procUnitConfObj1.addParameter(name='pairList', value='(0,1),(0,2),(1,2)', format='') + + + opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='other') + opObj11.addParameter(name='idfigure', value='1', format='int') + opObj11.addParameter(name='wintitle', value='SpectraPlot0', format='str') + opObj11.addParameter(name='zmin', value='40', format='int') + opObj11.addParameter(name='zmax', value='90', format='int') + opObj11.addParameter(name='showprofile', value='1', format='int') + +# opObj11 = procUnitConfObj1.addOperation(name='CrossSpectraPlot', optype='other') +# opObj11.addParameter(name='idfigure', value='2', format='int') +# opObj11.addParameter(name='wintitle', value='CrossSpectraPlot', format='str') +# opObj11.addParameter(name='zmin', value='40', format='int') +# opObj11.addParameter(name='zmax', value='90', format='int') + + +# procUnitConfObj2 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitConfObj0.getId()) +# +# opObj12 = procUnitConfObj2.addOperation(name='CohInt', optype='other') +# opObj12.addParameter(name='n', value='2', format='int') +# opObj12.addParameter(name='overlapping', value='1', format='int') +# +# procUnitConfObj3 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj2.getId()) +# procUnitConfObj3.addParameter(name='nFFTPoints', value='32', format='int') +# +# opObj11 = procUnitConfObj3.addOperation(name='SpectraPlot', optype='other') +# opObj11.addParameter(name='idfigure', value='2', format='int') +# opObj11.addParameter(name='wintitle', value='SpectraPlot1', format='str') +# opObj11.addParameter(name='zmin', value='40', format='int') +# opObj11.addParameter(name='zmax', value='90', format='int') +# opObj11.addParameter(name='showprofile', value='1', format='int') + +# opObj11 = procUnitConfObj1.addOperation(name='RTIPlot', optype='other') +# opObj11.addParameter(name='idfigure', value='10', format='int') +# opObj11.addParameter(name='wintitle', value='RTI', format='str') +## opObj11.addParameter(name='xmin', value='21', format='float') +## opObj11.addParameter(name='xmax', value='22', format='float') +# opObj11.addParameter(name='zmin', value='40', format='int') +# opObj11.addParameter(name='zmax', value='90', format='int') +# opObj11.addParameter(name='showprofile', value='1', format='int') +# opObj11.addParameter(name='timerange', value=str(60), format='int') + +# opObj10 = procUnitConfObj1.addOperation(name='selectChannels') +# opObj10.addParameter(name='channelList', value='0,2,4,6', format='intlist') +# +# opObj12 = procUnitConfObj1.addOperation(name='IncohInt', optype='other') +# opObj12.addParameter(name='n', value='2', format='int') +# +# opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='other') +# opObj11.addParameter(name='idfigure', value='2', format='int') +# opObj11.addParameter(name='wintitle', value='SpectraPlot10', format='str') +# opObj11.addParameter(name='zmin', value='70', format='int') +# opObj11.addParameter(name='zmax', value='90', format='int') +# +# opObj10 = procUnitConfObj1.addOperation(name='selectChannels') +# opObj10.addParameter(name='channelList', value='2,6', format='intlist') +# +# opObj12 = procUnitConfObj1.addOperation(name='IncohInt', optype='other') +# opObj12.addParameter(name='n', value='2', format='int') +# +# opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='other') +# opObj11.addParameter(name='idfigure', value='3', format='int') +# opObj11.addParameter(name='wintitle', value='SpectraPlot10', format='str') +# opObj11.addParameter(name='zmin', value='70', format='int') +# opObj11.addParameter(name='zmax', value='90', format='int') + + +# opObj12 = procUnitConfObj1.addOperation(name='decoder') +# opObj12.addParameter(name='ncode', value='2', format='int') +# opObj12.addParameter(name='nbauds', value='8', format='int') +# opObj12.addParameter(name='code0', value='001110011', format='int') +# opObj12.addParameter(name='code1', value='001110011', format='int') + + + +# procUnitConfObj2 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj1.getId()) +# +# opObj21 = procUnitConfObj2.addOperation(name='IncohInt', optype='other') +# opObj21.addParameter(name='n', value='2', format='int') +# +# opObj11 = procUnitConfObj2.addOperation(name='SpectraPlot', optype='other') +# opObj11.addParameter(name='idfigure', value='4', format='int') +# opObj11.addParameter(name='wintitle', value='SpectraPlot OBJ 2', format='str') +# opObj11.addParameter(name='zmin', value='70', format='int') +# opObj11.addParameter(name='zmax', value='90', format='int') + + print "Escribiendo el archivo XML" + + controllerObj.writeXml(filename) + + print "Leyendo el archivo XML" + controllerObj.readXml(filename) + #controllerObj.printattr() + + controllerObj.createObjects() + controllerObj.connectObjects() + controllerObj.run() + + \ No newline at end of file diff --git a/schainpy/gui/viewcontroller/mainwindow.py b/schainpy/gui/viewcontroller/mainwindow.py index ac84e9e..dcc943e 100644 --- a/schainpy/gui/viewcontroller/mainwindow.py +++ b/schainpy/gui/viewcontroller/mainwindow.py @@ -1,28 +1,22 @@ # -*- coding: utf-8 -*- """ Module implementing MainWindow. -#+ ######################INTERFAZ DE USUARIO V1.1################## +#+++++++++++++++++++++INTERFAZ DE USUARIO V1.1++++++++++++++++++++++++# """ from PyQt4.QtGui import QMainWindow from PyQt4.QtCore import pyqtSignature from PyQt4.QtCore import pyqtSignal - from PyQt4 import QtCore from PyQt4 import QtGui - from timeconversions import Doy2Date - -from modelProperties import person_class -from modelProperties import TreeItem - - +from modelProperties import treeModel +from viewer.ui_unitprocess import Ui_UnitProcess from viewer.ui_window import Ui_window from viewer.ui_mainwindow import Ui_MainWindow from viewer.ui_workspace import Ui_Workspace from viewer.ui_initwindow import Ui_InitWindow -from controller1 import Project,ReadBranch,ProcBranch,UP,UPSUB,UP2SUB,Operation,Parameter - +from controller import Project,ReadUnitConf,ProcUnitConf,OperationConf,ParameterConf import os HORIZONTAL_HEADERS = ("ITEM :"," DATOS : " ) @@ -30,397 +24,189 @@ HORIZONTAL_HEADERS = ("ITEM :"," DATOS : " ) HORIZONTAL = ("RAMA :",) class MainWindow(QMainWindow, Ui_MainWindow): + nop=None """ Class documentation goes here. #*##################VENTANA CUERPO DEL PROGRAMA#################### """ - closed=pyqtSignal() def __init__(self, parent = None): """ Constructor - 1-CARGA DE ARCHIVOS DE CONFIGURACION SI EXISTIERA.SI EXISTE EL ARCHIVO PROYECT.xml - 2- ESTABLECE CIERTOS PARAMETROS PARA PRUEBAS - 3- CARGA LAS VARIABLES DE LA CLASE CON LOS PARAMETROS SELECCIONADOS - 4-VALIDACION DE LA RUTA DE LOS DATOS Y DEL PROYECTO - 5-CARGA LOS DOYS ENCONTRADOS PARA SELECCIONAR EL RANGO - 6-CARGA UN PROYECTO - """ - - print "Inicio de Programa" + """ + print "Inicio de Programa Interfaz Gráfica" QMainWindow.__init__(self, parent) - self.setupUi(self) - QtGui.QToolTip.setFont(QtGui.QFont('SansSerif', 10)) - self.addoBtn.setToolTip('Add_Unit_Process') - self.addbBtn.setToolTip('Add_Branch') - self.addpBtn.setToolTip('Add_New_Project') - self.ventanaproject=0 - - self.var=0 - self.variableList=[] # Lista de DOYs - self.iniciodisplay=0 - self.year=0 - self.OpMode=0 - self.starTem=0 - self.endTem=0 -#*###################1######################## - if os.path.isfile("Proyect.xml"): - self.getParam() - self.textedit.append("Parameters were loaded from configuration file") -#*###################2######################## - else: - self.setParam() -#*###################3######################### - self.setVariables() -#*###################4######################### - self.statusDpath = self.existDir(self.dataPath) - #self.statusRpath = self.dir_exists(self.var_Rpath, self) -#*###################5 ######################## - self.loadYears() - self.loadDays() -#================================ + self.online=0 + self.datatype=0 + self.variableList=[] - self.model = QtGui.QStandardItemModel() - self.treeView.setModel(self.model) - self.treeView.clicked.connect(self.treefunction1) -#==========Project==========# - self.projectObjList= [] - self.ProjectObj=0 - self.Pro=0 - self.proObjList=[] - self.valuep=1 - self.namep=0 + self.proObjList=[] self.idp=0 - self.refresh=0 - self.countBperPObjList= [] -#===========Branch==========# - self.branchObjList=[] - self.BranchObj=0 - self.braObjList=[] - self.Bra=0 - self.idb=0 - self.nameb=0 - self.countVperBObjList= [] -#===========Voltage==========# - self.voltageObjList=[] - self.VoltageObj=0 - self.Vol=0 - self.volObjList=[] - self.idv=0 - self.namev=0 -#===========Spectra==========# - self.spectraObjList=[] - self.SpectraObj=0 - self.Spec=0 - self.specObjList=[] - self.ids=0 - self.names=0 -#===========Correlation==========# - self.correlationObjList=[] - self.CorrelationObj=0 - self.Cor=0 - self.corObjList=[] - self.idc=0 - self.namec=0 - self.datatype=0 + self.namep=0 + self.description=0 + self.namepTree=0 + self.valuep=0 + + self.upObjList= [] + self.upn=0 + self.upName=0 + self.upType=0 + self.uporProObjRecover=0 -#================= - #self.window=Window() - self.Workspace=Workspace() - #self.DataType=0 + self.readUnitConfObjList=[] -#*################### - - def treefunction1(self, index): - a= index.model().itemFromIndex(index).text() - print a - b=a[8:10] - self.valuep=b - c=a[0:7] - self.namep=c - -# def ventanaconfigura(self): -# ''' -# METODO QUE SE ENCARGA DE LLAMAR A LA CLASE -# VENTANA CONFIGURACION DE PROYECTO -# ''' -# self.Luna =Workspace(self) -# self.Luna.closed.connect(self.show) -# self.Luna.show() -# self.hide() - -# def closeEvent(self, event): -# self.closed.emit() -# event.accept() - - #+######################BARRA DE MENU################### - - # *####################MENU FILE ######################### - - @pyqtSignature("") - def on_actionabrirObj_triggered(self): - """ - Ubicado en la Barra de Menu, OPCION FILE, CARGA UN ARCHIVO DE CONFIGURACION ANTERIOR - """ - # TODO: not implemented yet - #raise NotImplementedError - - @pyqtSignature("") - def on_actioncrearObj_triggered(self): - """ - CREACION DE UN NUEVO EXPERIMENTO - """ - self.on_addpBtn_clicked() + self.operObjList=[] - @pyqtSignature("") - def on_actionguardarObj_triggered(self): - """ - GUARDAR EL ARCHIVO DE CONFIGURACION XML - """ - # TODO: not implemented yet - #raise NotImplementedError - self.SaveConfig() + self.configProject=None + self.configUP=None - @pyqtSignature("") - def on_actionCerrarObj_triggered(self): - """ - CERRAR LA APLICACION GUI - """ - self.close() + self.controllerObj=None + self.readUnitConfObj=None + self.procUnitConfObj0=None + self.opObj10=None + self.opObj12=None + + + self.setParam() -#*######################### MENU RUN ################## + + def getNumberofProject(self): +# for i in self.proObjList: +# print i + return self.proObjList +# for i in self.proObjList: +# print i + + def setParam(self): + self.dataPathTxt.setText('C:\\Users\\alex\\Documents\\ROJ\\ew_drifts') + + + def clickFunctiontree(self,index): + indexclick= index.model().itemFromIndex(index).text() + #print indexclick + NumofPro=indexclick[8:10] + self.valuep=NumofPro + #print self.valuep + NameofPro=indexclick[0:7] + self.namepTree=NameofPro + #print self.namepTree + @pyqtSignature("") - def on_actionStartObj_triggered(self): - """ - EMPEZAR EL PROCESAMIENTO. + def on_addpBtn_clicked(self): """ - # TODO: not implemented yet - #raise NotImplementedErr + ANADIR UN NUEVO PROYECTO + """ + print "En este nivel se abre el window" - @pyqtSignature("") - def on_actionPausaObj_triggered(self): - """ - PAUSAR LAS OPERACIONES - """ - # TODO: not implemented yet - # raise NotImplemente -#*###################MENU OPTIONS###################### - - @pyqtSignature("") - def on_actionconfigLogfileObj_triggered(self): + self.showWindow() + + def showWindow(self): + self.configProject=Window(self) + #self.configProject.closed.connect(self.show) + self.configProject.show() + #self.configProject.closed.connect(self.show) + self.configProject.saveButton.clicked.connect(self.reciveParameters) + self.configProject.closed.connect(self.createProject) + + def reciveParameters(self): + self.namep,self.description =self.configProject.almacena() + + def createProject(self): + + print "En este nivel se debe crear el proyecto,id,nombre,desc" + #+++++Creacion del Objeto Controller-XML++++++++++# + self.idp += 1 + self.controllerObj = Project() + id=int(self.idp) + name=str(self.namep) + desc=str(self.description) + self.parentItem=self.model.invisibleRootItem() + self.controllerObj.arbol=QtGui.QStandardItem(QtCore.QString("Project %0").arg(self.idp)) + self.controllerObj.setup(id = id, name=name, description=desc) + self.parentItem.appendRow(self.controllerObj.arbol) + self.proObjList.append(self.controllerObj)#+++++++++++++++++++LISTA DE PROYECTO++++++++++++++++++++++++++++# + self.parentItem=self.controllerObj.arbol + self.loadProjects() + + print "Porfavor ingrese los parámetros de configuracion del Proyecto" + + def loadProjects(self): + self.proConfCmbBox.clear() + for i in self.proObjList: + self.proConfCmbBox.addItem("Project"+str(i.id)) + + @pyqtSignature("int") + def on_dataTypeCmbBox_activated(self,index): + self.dataFormatTxt.setReadOnly(True) + if index==0: + self.datatype='Voltage' + elif index==1: + self.datatype='Spectra' + else : + self.datatype='' + self.dataFormatTxt.setReadOnly(False) + self.dataFormatTxt.setText(self.datatype) + + def existDir(self, var_dir): """ - Slot Documentation goes here + METODO PARA VERIFICAR SI LA RUTA EXISTE-VAR_DIR + VARIABLE DIRECCION """ - self.Luna = Workspace(self) - #print self.Luna.dirCmbBox.currentText() + if os.path.isdir(var_dir): + return True + else: + self.textEdit.append("Incorrect path:" + str(var_dir)) + return False - @pyqtSignature("") - def on_actionconfigserverObj_triggered(self): + def loadDays(self): """ - CONFIGURACION DE SERVIDOR. + METODO PARA CARGAR LOS DIAS """ - # TODO: not implemented yet - #raise NotImplementedError + self.variableList=[] + self.starDateCmbBox.clear() + self.endDateCmbBox.clear() -#*################# MENU HELPS########################## - - @pyqtSignature("") - def on_actionAboutObj_triggered(self): - """ - Slot documentation goes here. - """ - # TODO: not implemented yet - #raise NotImplementedError + Dirlist = os.listdir(self.dataPath) + Dirlist.sort() - @pyqtSignature("") - def on_actionPrfObj_triggered(self): - """ - Slot documentation goes here. - """ - # TODO: not implemented yet - #raise NotImplementedError - -#+################################################## - - @pyqtSignature("") - def on_actionOpenObj_triggered(self): - """ - Slot documentation goes here. - """ - # TODO: not implemented yet - #raise No - - @pyqtSignature("") - def on_actioncreateObj_triggered(self): - """ - Slot documentation goes here. - """ - self.on_addpBtn_clicked() - - @pyqtSignature("") - def on_actionstopObj_triggered(self): - """ - CARGA UN ARCHIVO DE CONFIGURACION ANTERIOR - """ - # TODO: not implemented yet - #raise NotImplementedError - - @pyqtSignature("") - def on_actionPlayObj_triggered(self): - """ - EMPEZAR EL PROCESAMIENTO. - """ - # TODO: not implemented yet - #raise NotImplementedError - -#*################VENTANA EXPLORADOR DE PROYECTOS###################### + for a in range(0, len(Dirlist)): + fname= Dirlist[a] + Doy=fname[5:8] + fname = fname[1:5] + print fname + fecha=Doy2Date(int(fname),int(Doy)) + fechaList=fecha.change2date() + #print fechaList[0] + Dirlist[a]=fname+"/"+str(fechaList[0])+"/"+str(fechaList[1]) + #+"-"+ fechaList[0]+"-"+fechaList[1] - @pyqtSignature("") - def on_addpBtn_clicked(self): - """ - AADIR UN NUEVO PROYECTO - """ - self.windowshow() - self.idp += 1 - self.Pro=Project() - self.proObjList.append(self.Pro) - self.parentItem=self.model.invisibleRootItem() - self.ProjectObj = QtGui.QStandardItem(QtCore.QString("Project %0").arg(self.idp)) - self.parentItem.appendRow(self.ProjectObj) - self.projectObjList.append(self.ProjectObj) - self.parentItem=self.ProjectObj +#---------------AQUI TIENE QUE SER MODIFICADO--------# - @pyqtSignature("") - def on_addbBtn_clicked(self): - """ - AÑADIR UNA RAMA DE PROCESAMIENTO - """ - #print self.valuep - #print self.namep - #print self.valueb - - #if self.namep ==str("Project"): - self.idb += 1 - self.Bra=self.proObjList[int(self.valuep)-1].addProcBranch(id=self.idb,name='Branch') - self.braObjList.append(self.Bra) - self.parentItem=self.projectObjList[int(self.valuep)-1] - #= - self.countBperPObjList.append(self.valuep) -# LisBperP=self.countBperPObjList - - self.BranchObj= QtGui.QStandardItem(QtCore.QString("Branch %1 ").arg(self.idb)) - self.parentItem.appendRow(self.BranchObj) - self.branchObjList.append(self.BranchObj) - self.parentItem=self.BranchObj + #Se cargan las listas para seleccionar StartDay y StopDay (QComboBox) + for i in range(0, (len(Dirlist))): + self.variableList.append(Dirlist[i]) - @pyqtSignature("") - def on_addoBtn_clicked(self): - """ - AÑADIR UN TIPO DE PROCESAMIENTO. - """ - if self.namep ==str("Project"): - self.totalTree() -#===================== - if self.namep ==str("Voltage"): - self.ids += 1 - self.Spec=self.volObjList[int(self.valuep)-1].addUPSUB(id=self.ids, name='Spectra', type='Pri') - self.specObjList.append(self.Spec) - self.parentItem=self.voltageObjList[int(self.valuep)-1] - self.SpectraObj= QtGui.QStandardItem(QtCore.QString("Spectra %2").arg(self.ids)) - self.parentItem.appendRow(self.SpectraObj) - self.spectraObjList.append(self.SpectraObj) - self.parentItem=self.SpectraObj - - if self.namep ==str("Spectra"): - self.idc += 1 - self.Cor=self.specObjList[int(self.valuep)-1].addUP2SUB(id=self.idc, name='Correlation', type='Pri') - self.corObjList.append(self.Cor) - self.parentItem=self.spectraObjList[int(self.valuep)-1] - self.CorrelationObj= QtGui.QStandardItem(QtCore.QString("Correlation %3").arg(self.idc)) - self.parentItem.appendRow(self.CorrelationObj) - self.correlationObjList.append(self.CorrelationObj) - self.parentItem=self.CorrelationObj - - if self.namep == str("Branch "): - if self.DataType== str("r"): - self.idv += 1 - if len(self.valuep)==0: - print "construir rama" - else: - self.Vol=self.braObjList[int(self.valuep)-1].addUP(id=self.idv, name='Voltage', type='Pri') - self.volObjList.append(self.Vol) - self.parentItem=self.branchObjList[int(self.valuep)-1] - self.VoltageObj= QtGui.QStandardItem(QtCore.QString("Voltage %2").arg(self.idv)) - self.parentItem.appendRow(self.VoltageObj) - self.voltageObjList.append(self.VoltageObj) - self.parentItem=self.VoltageObj - - if self.DataType== str("pdata"): - self.ids += 1 - if len(self.valuep)==0: - print "construir rama" - else: - self.Spec=self.braObjList[int(self.valuep)-1].addUPSUB(id=self.ids, name='Spectra', type='Pri') - self.specObjList.append(self.Spec) - self.parentItem=self.branchObjList[int(self.valuep)-1] - self.SpectraObj= QtGui.QStandardItem(QtCore.QString("Spectra %2").arg(self.ids)) - self.parentItem.appendRow(self.SpectraObj) - self.spectraObjList.append(self.SpectraObj) - self.parentItem=self.SpectraObj - - def totalTree(self): - b= self.proObjList[int(self.valuep)-1] - b.procBranchObjList # Objetos de tipo Branch - print "Project"+str(self.valuep) +"Branch", - for i in range(0 , len(b.procBranchObjList)): - print b.procBranchObjList[i].id, #objetos de tipo branch 1,2,3 o 4,5 o 6 - print "" - for i in range(0 , len(b.procBranchObjList)): - print "Branch"+ str(b.procBranchObjList[i].id) - - for i in range(0 , len(b.procBranchObjList)): - print b.procBranchObjList[i].id - c= self.braObjList[(b.procBranchObjList[i].id)-1] - c.upsubObjList - for i in range(0,len(c.upsubObjList)): - print "Spectra"+str(c.upsubObjList[i].id), -#*********************VENTANA CONFIGURACION DE PROYECTOS************************************ - -#***********************PESTAÑA DE PROYECTOS************************ - -#*************************MODO BASICO O AVANZADO***************** + for i in self.variableList: + self.starDateCmbBox.addItem(i) + self.endDateCmbBox.addItem(i) + self.endDateCmbBox.setCurrentIndex(self.starDateCmbBox.count()-1) - @pyqtSignature("QString") - def on_operationModeCmbBox_activated(self, p0): + self.getsubList() + self.dataOkBtn.setEnabled(True) + + def getsubList(self): """ - Slot documentation goes here. + OBTIENE EL RANDO DE LAS FECHAS SELECCIONADAS """ - pass + self.subList=[] + for i in self.variableList[self.starDateCmbBox.currentIndex():self.starDateCmbBox.currentIndex() + self.endDateCmbBox.currentIndex()+1]: + self.subList.append(i) -#***********************TIPOS DE DATOS A GRABAR****************************** - - @pyqtSignature("int") - def on_dataFormatCmbBox_activated(self,index): - """ - SE EJECUTA CUANDO SE ELIGE UN ITEM DE LA LISTA - ADEMAS SE CARGA LA LISTA DE DIAS SEGUN EL TIPO DE ARCHIVO SELECCIONADO - """ - self.dataFormatTxt.setReadOnly(True) - if index == 0: - self.DataType ='r' - elif index == 1: - self.DataType ='pdata' - else : - self.DataType ='' - self.dataFormatTxt.setReadOnly(False) - self.dataFormatTxt.setText(self.DataType) -# self.loadDays(self) - @pyqtSignature("") def on_dataPathBrowse_clicked(self): """ @@ -429,9 +215,8 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.dataPath = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) self.dataPathTxt.setText(self.dataPath) self.statusDpath=self.existDir(self.dataPath) - self.loadYears() - self.loadDays() - + self.loadDays() + @pyqtSignature("int") def on_starDateCmbBox_activated(self, index): """ @@ -457,440 +242,233 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.starDateCmbBox.setCurrentIndex(var_StartDay_index) self.getsubList() #Se carga var_sublist[] con el rango de las fechas seleccionadas - @pyqtSignature("QString") + @pyqtSignature("int") def on_readModeCmBox_activated(self, p0): """ Slot documentation goes here. """ - print self.readModeCmBox.currentText() - - @pyqtSignature("int") - def on_initialTimeSlider_valueChanged(self, initvalue): - """ - SELECCION DE LA HORA DEL EXPERIMENTO -INITIAL TIME - """ - self.iniciodisplay=initvalue - self.initialtimeLcd.display(initvalue) - self.starTem=initvalue - - @pyqtSignature("int") - def on_finalTimeSlider_valueChanged(self, finalvalue): - """ - SELECCION DE LA HORA DEL EXPERIMENTO -FINAL TIME - """ - finalvalue = self.iniciodisplay + finalvalue - if finalvalue >24: - finalvalue = 24 - self.finaltimeLcd.display(finalvalue) - self.endTem=finalvalue - - @pyqtSignature("QString") - def on_yearCmbBox_activated(self, year): - """ - SELECCION DEL AÑO - """ - self.year = year - #print self.year - - @pyqtSignature("") - def on_dataCancelBtn_clicked(self): - """ - SAVE- BUTTON CANCEL - """ - # TODO: not implemented yet - #raise NotImplementedError - + if p0==0: + self.online=0 + elif p0==1: + self.online=1 + @pyqtSignature("") def on_dataOkBtn_clicked(self): """ - SAVE-BUTTON OK - """ - #print self.ventanaproject.almacena() - print "alex" - print self.Workspace.dirCmbBox.currentText() + Slot documentation goes here. + """ + print "En este nivel se pasa el tipo de dato con el que se trabaja,path,startDate,endDate,startTime,endTime,online" + + projectObj=self.proObjList[int(self.proConfCmbBox.currentIndex())] + datatype=str(self.dataTypeCmbBox.currentText()) + path=str(self.dataPathTxt.text()) + online=int(self.online) + starDate=str(self.starDateCmbBox.currentText()) + endDate=str(self.endDateCmbBox.currentText()) + + + self.readUnitConfObj = projectObj.addReadUnit(datatype=datatype, + path=path, + startDate=starDate, + endDate=endDate, + startTime='06:10:00', + endTime='23:59:59', + online=online) + + self.readUnitConfObjList.append(self.readUnitConfObj) + + print "self.readUnitConfObj.getId",self.readUnitConfObj.getId(),datatype,path,starDate,endDate,online + + self.model_2=treeModel() - #lines = unicode(self.textEdit_2.toPlainText()).split('\n') - #print lines - if self.ventanaproject.almacena()==None: - name=str(self.namep) - name=str(self.ventanaproject.almacena()) - - self.model_2.setParams(name=name, - directorio=str(self.dataPathTxt.text()), - workspace=str(self.Workspace.dirCmbBox.currentText()), - opmode=str(self.operationModeCmbBox.currentText()), + + self.model_2.setParams(name=projectObj.name+str(projectObj.id), + directorio=path, + workspace="C:\\WorkspaceGUI", remode=str(self.readModeCmBox.currentText()), - dataformat=str(self.dataFormatTxt.text()), - date=str(self.starDateCmbBox.currentText())+"-"+str(self.endDateCmbBox.currentText()), - initTime=str( self.starTem), - endTime=str(self.endTem), - timezone="Local" ) - # Summary=str(self.textEdit_2.textCursor())) + dataformat=datatype, + date=str(starDate)+"-"+str(endDate), + initTime='06:10:00', + endTime='23:59:59', + timezone="Local" , + Summary="test de prueba") self.model_2.arbol() self.treeView_2.setModel(self.model_2) self.treeView_2.expandAll() -#*############METODOS PARA EL PATH-YEAR-DAYS########################### - - def existDir(self, var_dir): - """ - METODO PARA VERIFICAR SI LA RUTA EXISTE-VAR_DIR - VARIABLE DIRECCION - """ - if os.path.isdir(var_dir): - return True - else: - self.textEdit.append("Incorrect path:" + str(var_dir)) - return False - - def loadYears(self): - """ - METODO PARA SELECCIONAR EL AÑO - """ - self.variableList=[] - self.yearCmbBox.clear() - if self.statusDpath == False: - self.dataOkBtn.setEnabled(False) - return - if self.DataType == '': - return - - Dirlist = os.listdir(self.dataPath) - - for y in range(0, len(Dirlist)): - fyear= Dirlist[y] - fyear = fyear[1:5] - Dirlist[y]=fyear - - Dirlist=list(set(Dirlist)) - Dirlist.sort() - - if len(Dirlist) == 0: - self.textEdit.append("File not found") - self.dataOkBtn.setEnabled(False) - return - #Se cargan las listas para seleccionar StartDay y StopDay (QComboBox) - for i in range(0, (len(Dirlist))): - self.variableList.append(Dirlist[i]) - for i in self.variableList: - self.yearCmbBox.addItem(i) - - def loadDays(self): + + + + + + + @pyqtSignature("") + def on_addUnitProces_clicked(self): """ - METODO PARA CARGAR LOS DIAS + Slot documentation goes here. """ - self.variableList=[] - self.starDateCmbBox.clear() - self.endDateCmbBox.clear() +# print "En este nivel se adiciona una rama de procesamiento, y se le concatena con el id" +# self.procUnitConfObj0 = self.controllerObj.addProcUnit(datatype='Voltage', inputId=self.readUnitConfObj.getId()) + self.showUp() - Dirlist = os.listdir(self.dataPath) - Dirlist.sort() + def showUp(self): - for a in range(0, len(Dirlist)): - fname= Dirlist[a] - Doy=fname[5:8] - fname = fname[1:5] - print fname - fecha=Doy2Date(int(fname),int(Doy)) - fechaList=fecha.change2date() - #print fechaList[0] - Dirlist[a]=fname+"-"+str(fechaList[0])+"-"+str(fechaList[1]) - #+"-"+ fechaList[0]+"-"+fechaList[1] - -#---------------AQUI TIENE QUE SER MODIFICADO--------# + self.configUP=UnitProcess(self) + for i in self.proObjList: + self.configUP.getfromWindowList.append(i) + #print i + for i in self.upObjList: + self.configUP.getfromWindowList.append(i) + self.configUP.loadTotalList() + self.configUP.show() + self.configUP.unitPsavebut.clicked.connect(self.reciveUPparameters) + self.configUP.closed.connect(self.createUP) - - - - - #Se cargan las listas para seleccionar StartDay y StopDay (QComboBox) - for i in range(0, (len(Dirlist))): - self.variableList.append(Dirlist[i]) + def reciveUPparameters(self): - for i in self.variableList: - self.starDateCmbBox.addItem(i) - self.endDateCmbBox.addItem(i) - self.endDateCmbBox.setCurrentIndex(self.starDateCmbBox.count()-1) - - self.getsubList() - self.dataOkBtn.setEnabled(True) - - def getsubList(self): - """ - OBTIENE EL RANDO DE LAS FECHAS SELECCIONADAS - """ - self.subList=[] - for i in self.variableList[self.starDateCmbBox.currentIndex():self.starDateCmbBox.currentIndex() + self.endDateCmbBox.currentIndex()+1]: - self.subList.append(i) + self.uporProObjRecover,self.upType=self.configUP.almacena() + + + def createUP(self): + print "En este nivel se adiciona una rama de procesamiento, y se le concatena con el id" + projectObj=self.proObjList[int(self.proConfCmbBox.currentIndex())] + + datatype=str(self.upType) + uporprojectObj=self.uporProObjRecover + #+++++++++++LET FLY+++++++++++# + if uporprojectObj.getElementName()=='ProcUnit': + inputId=uporprojectObj.getId() + elif uporprojectObj.getElementName()=='Project': + inputId=self.readUnitConfObjList[uporprojectObj.id-1].getId() + -#*################ METODO PARA GUARDAR ARCHIVO DE CONFIGURACION ################# -# def SaveConfig(self): -# -# desc = "Este es un test" -# filename=str(self.workspace.dirCmbBox.currentText())+"\\"+"Config"+str(self.valuep)+".xml" -# projectObj=self.proObjList[int(self.valuep)-1] -# projectObj.setParms(id =int(self.valuep),name=str(self.namep),description=desc) -# print self.valuep -# print self.namep -# -# readBranchObj = projectObj.addReadBranch(id=str(self.valuep), -# dpath=str(self.dataPathTxt.text()), -# dataformat=str(self.dataFormatTxt.text()), -# opMode=str(self.operationModeCmbBox.currentText()), -# readMode=str(self.readModeCmBox.currentText()), -# startDate=str(self.starDateCmbBox.currentText()), -# endDate=str(self.endDateCmbBox.currentText()), -# startTime=str(self.starTem), -# endTime=str(self.endTem)) -# -# -# branchNumber= len(projectObj.procBranchObjList) #Numero de Ramas -# #=======================readBranchObj============== -# for i in range(0,branchNumber): -# projectObj.procBranchObjList[i] -# idb=projectObj.procBranchObjList[i].id -# # opObjTotal={} -# -# for j in range(0,branchNumber): -# idb=projectObj.procBranchObjList[j].id -# branch=self.braObjList[(idb)-1] -# branch.upObjList -# volNumber=len(branch.upObjList) -# for i in range(0,volNumber): -# unitProcess=branch.upObjList[i] -# idv=branch.upObjList[i].id -# -# opObj11 = unitProcess.addOperation(id=1,name='removeDC', priority=1) -# opObj11.addParameter(name='type', value='1') -# opObj2 = unitProcess.addOperation(id=2,name='removeInterference', priority=1) -# opObj3 = unitProcess.addOperation(id=3,name='removeSatelites', priority=1) -# opObj4 = unitProcess.addOperation(id=4,name='coherent Integration', priority=1) -# -# projectObj.writeXml(filename) -# -#*############METODOS PARA INICIALIZAR-CONFIGURAR-CARGAR ARCHIVO-CARGAR VARIABLES######################## + self.procUnitConfObj1 = projectObj.addProcUnit(datatype=datatype, inputId=inputId) + self.upObjList.append(self.procUnitConfObj1) + print inputId + print self.procUnitConfObj1.getId() + self.parentItem=uporprojectObj.arbol + self.numbertree=int(self.procUnitConfObj1.getId())-1 + self.procUnitConfObj1.arbol=QtGui.QStandardItem(QtCore.QString(datatype +"%1 ").arg(self.numbertree)) + self.parentItem.appendRow(self.procUnitConfObj1.arbol) + self.parentItem=self.procUnitConfObj1.arbol + self.loadUp() + self.treeView.expandAll() + + def loadUp(self): + self.addOpUpselec.clear() + + for i in self.upObjList: + name=i.getElementName() + id=int(i.id)-1 + self.addOpUpselec.addItem(name+str(id)) + - def setParam(self): + + @pyqtSignature("int") + def on_selecChannelopVolCEB_stateChanged(self, p0): """ - INICIALIZACION DE PARAMETROS PARA PRUEBAS + Slot documentation goes here. """ - #self.dataProyectTxt.setText('Test') - self.dataFormatTxt.setText('r') - self.dataPathTxt.setText('C:\\Users\\alex\\Documents\\ROJ\\ew_drifts') - self.dataWaitTxt.setText('0') - - def make_parameters_conf(self): + if p0==2: + upProcessSelect=self.upObjList[int(self.addOpUpselec.currentIndex())] + opObj10=upProcessSelect.addOperation(name='selectChannels') + print opObj10.id + self.operObjList.append(opObj10) + print " Ingresa seleccion de Canales" + if p0==0: + print " deshabilitado" + + @pyqtSignature("int") + def on_selecHeighopVolCEB_stateChanged(self, p0): """ - ARCHIVO DE CONFIGURACION cCRA parameters.conf + Slot documentation goes here. """ - pass - - def getParam(self): + if p0==2: + upProcessSelect=self.upObjList[int(self.addOpUpselec.currentIndex())] + opObj10=upProcessSelect.addOperation(name='selectHeights') + print opObj10.id + self.operObjList.append(opObj10) + print " Select Type of Profile" + if p0==0: + print " deshabilitado" + + + + @pyqtSignature("int") + def on_coherentIntegrationCEB_stateChanged(self, p0): """ - CARGA Proyect.xml + Slot documentation goes here. """ - print "Archivo XML AUN No adjuntado" + if p0==2: + upProcessSelect=self.upObjList[int(self.addOpUpselec.currentIndex())] + opObj10=upProcessSelect.addOperation(name='CohInt', optype='other') + print opObj10.id + self.operObjList.append(opObj10) + print "Choose number of Cohint" + if p0==0: + print " deshabilitado" + - def setVariables(self): - """ - ACTUALIZACION DEL VALOR DE LAS VARIABLES CON LOS PARAMETROS SELECCIONADOS + @pyqtSignature("") + def on_dataopVolOkBtn_clicked(self): """ - self.dataPath = str(self.dataPathTxt.text()) #0 - self.DataType= str(self.dataFormatTxt.text()) #3 - - def windowshow(self): - self.ventanaproject= Window(self) - self.ventanaproject.closed.connect(self.show) - self.ventanaproject.show() -# self.window() -# self.window.closed.connect(self.show) -# self.window.show() - #self.hide() - - def closeEvent(self, event): - self.closed.emit() - event.accept() - - -class treeModel(QtCore.QAbstractItemModel): - ''' - a model to display a few names, ordered by encabezado - ''' - name=None - directorio=None - workspace=None - opmode=None - remode=None - dataformat=None - date=None - initTime=None - endTime=None - timezone=None - #Summary=None - - def __init__(self ,parent=None): - super(treeModel, self).__init__(parent) - self.people = [] + Slot documentation goes here. + """ +# print self.selecChannelopVolCEB.isOn() +# print self.selecHeighopVolCEB.isOn() +# print self.coherentIntegrationCEB.isOn() - def arbol(self): - for caracteristica,principal, descripcion in (("Properties","Name",self.name), - ("Properties","Data Path",self.directorio), - ("Properties","Workspace",self.workspace), - ("Properties","Operation Mode ",self.opmode), - ("Parameters", "Read Mode ",self.remode), - ("Parameters", "DataFormat ",self.dataformat), - ("Parameters", "Date ",self.date), - ("Parameters", "Init Time ",self.initTime), - ("Parameters", "Final Time ",self.endTime), - ("Parameters", " Time zone ",self.timezone), - ("Parameters", "Profiles ","1"), - # ("Description", "Summary ", self.Summary), - ): - person = person_class(caracteristica, principal, descripcion) - self.people.append(person) - - self.rootItem = TreeItem(None, "ALL", None) - self.parents = {0 : self.rootItem} - self.setupModelData() - #def veamos(self): - # self.update= MainWindow(self) - # self.update.dataProyectTxt.text() - # return self.update.dataProyectTxt.text() - def setParams(self,name,directorio,workspace,opmode,remode,dataformat,date,initTime,endTime,timezone): - self.name=name - self.workspace=workspace - self.directorio= directorio - self.opmode=opmode - self.remode=remode - self.dataformat=dataformat - self.date=date - self.initTime=initTime - self.endTime=endTime - self.timezone=timezone - #self.Summary=Summary - - def columnCount(self, parent=None): - if parent and parent.isValid(): - return parent.internalPointer().columnCount() - else: - return len(HORIZONTAL_HEADERS) - - def data(self, index, role): - if not index.isValid(): - return QtCore.QVariant() - - item = index.internalPointer() - if role == QtCore.Qt.DisplayRole: - return item.data(index.column()) - if role == QtCore.Qt.UserRole: - if item: - return item.person - - return QtCore.QVariant() - - def headerData(self, column, orientation, role): - if (orientation == QtCore.Qt.Horizontal and - role == QtCore.Qt.DisplayRole): - try: - return QtCore.QVariant(HORIZONTAL_HEADERS[column]) - except IndexError: - pass - - return QtCore.QVariant() - - def index(self, row, column, parent): - if not self.hasIndex(row, column, parent): - return QtCore.QModelIndex() - - if not parent.isValid(): - parentItem = self.rootItem - else: - parentItem = parent.internalPointer() - - childItem = parentItem.child(row) - if childItem: - return self.createIndex(row, column, childItem) - else: - return QtCore.QModelIndex() - - def parent(self, index): - if not index.isValid(): - return QtCore.QModelIndex() - - childItem = index.internalPointer() - if not childItem: - return QtCore.QModelIndex() - - parentItem = childItem.parent() - - if parentItem == self.rootItem: - return QtCore.QModelIndex() +# if self.coherentIntegrationCEB.enabled(): +# self.operObjList[0]. +# + + @pyqtSignature("") + def on_dataopSpecOkBtn_clicked(self): + """ + Slot documentation goes here. + """ + print "Añadimos operaciones Spectra,nchannels,value,format" - return self.createIndex(parentItem.row(), 0, parentItem) + opObj10 = self.procUnitConfObj0.addOperation(name='selectChannels') + opObj10.addParameter(name='channelList', value='3,4,5', format='intlist') - def rowCount(self, parent=QtCore.QModelIndex()): - if parent.column() > 0: - return 0 - if not parent.isValid(): - p_Item = self.rootItem - else: - p_Item = parent.internalPointer() - return p_Item.childCount() + opObj10 = self.procUnitConfObj0.addOperation(name='selectHeights') + opObj10.addParameter(name='minHei', value='90', format='float') + opObj10.addParameter(name='maxHei', value='180', format='float') - def setupModelData(self): - for person in self.people: - if person.descripcion: - encabezado = person.caracteristica - - - if not self.parents.has_key(encabezado): - newparent = TreeItem(None, encabezado, self.rootItem) - self.rootItem.appendChild(newparent) + opObj12 = self.procUnitConfObj0.addOperation(name='CohInt', optype='other') + opObj12.addParameter(name='n', value='10', format='int') + - self.parents[encabezado] = newparent + @pyqtSignature("") + def on_dataGraphSpecOkBtn_clicked(self): + """ + Slot documentation goes here. + """ + print "Graficar Spec op" + # TODO: not implemented yet + #raise NotImplementedError - parentItem = self.parents[encabezado] - newItem = TreeItem(person, "", parentItem) - parentItem.appendChild(newItem) - def searchModel(self, person): - ''' - get the modelIndex for a given appointment - ''' - def searchNode(node): - ''' - a function called recursively, looking at all nodes beneath node - ''' - for child in node.childItems: - if person == child.person: - index = self.createIndex(child.row(), 0, child) - return index - - if child.childCount() > 0: - result = searchNode(child) - if result: - return result + - retarg = searchNode(self.parents[0]) - #print retarg - return retarg + @pyqtSignature("") + def on_actionguardarObj_triggered(self): + """ + GUARDAR EL ARCHIVO DE CONFIGURACION XML + """ + if self.idp==1: + self.valuep=1 - def find_GivenName(self, principal): - app = None - for person in self.people: - if person.principal == principal: - app = person - break - if app != None: - index = self.searchModel(app) - return (True, index) - return (False, None) + print "Escribiendo el archivo XML" + filename="C:\\WorkspaceGUI\\CONFIG"+str(self.valuep)+".xml" + self.controllerObj=self.proObjList[int(self.valuep)-1] + self.controllerObj.writeXml(filename) - - -class Workspace(QMainWindow, Ui_Workspace): + +class Window(QMainWindow, Ui_window): """ Class documentation goes here. """ @@ -901,134 +479,137 @@ class Workspace(QMainWindow, Ui_Workspace): """ QMainWindow.__init__(self, parent) self.setupUi(self) - #*####### DIRECTORIO DE TRABAJO #########*# - self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) - self.dir=str("C:\WorkSpaceGui") - self.dirCmbBox.addItem(self.dir) - + self.name=0 + self.nameproject=None + self.proyectNameLine.setText('My_name_is...') + self.descriptionTextEdit.setText('Write a description...') + + @pyqtSignature("") - def on_dirBrowsebtn_clicked(self): + def on_cancelButton_clicked(self): """ Slot documentation goes here. """ - self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) - self.dirCmbBox.addItem(self.dirBrowse) + # TODO: not implemented yet + #raise NotImplementedError + + self.hide() @pyqtSignature("") - def on_dirButton_clicked(self): + def on_okButton_clicked(self): """ Slot documentation goes here. """ + #self.almacena() + self.close() @pyqtSignature("") - def on_dirOkbtn_clicked(self): + def on_saveButton_clicked(self): """ - VISTA DE INTERFAZ GRÁFICA + Slot documentation goes here. """ - self.showmemainwindow() + self.almacena() +# self.close() - - @pyqtSignature("") - def on_dirCancelbtn_clicked(self): - """ - Cerrar - """ - self.close() - - def showmemainwindow(self): - self.Dialog= MainWindow(self) - self.Dialog.closed.connect(self.show) - self.Dialog.show() - self.hide() - + def almacena(self): + #print str(self.proyectNameLine.text()) + self.nameproject=str(self.proyectNameLine.text()) + self.description=str(self.descriptionTextEdit.toPlainText()) + return self.nameproject,self.description + def closeEvent(self, event): self.closed.emit() event.accept() - -class InitWindow(QMainWindow, Ui_InitWindow): + +class UnitProcess(QMainWindow, Ui_UnitProcess): """ Class documentation goes here. """ + closed=pyqtSignal() def __init__(self, parent = None): """ Constructor """ QMainWindow.__init__(self, parent) self.setupUi(self) - - - @pyqtSignature("") - def on_pushButton_2_clicked(self): - """ - Close First Window - """ - self.close() + self.getFromWindow=None + self.getfromWindowList=[] + + self.listUP=None - @pyqtSignature("") - def on_pushButton_clicked(self): + def loadTotalList(self): + self.comboInputBox.clear() + for i in self.getfromWindowList: + name=i.getElementName() + id= i.id + if i.getElementName()=='ProcUnit': + id=int(i.id)-1 + self.comboInputBox.addItem(str(name)+str(id)) + + @pyqtSignature("QString") + def on_comboInputBox_activated(self, p0): """ - Show Workspace Window + Slot documentation goes here. """ - self.showmeconfig() + + # TODO: not implemented yet + #raise NotImplementedError - def showmeconfig(self): - ''' - Method to call Workspace - ''' - - self.config=Workspace(self) - self.config.closed.connect(self.show) - self.config.show() - self.hide() - - -class Window(QMainWindow, Ui_window): - """ - Class documentation goes here. - """ - closed=pyqtSignal() - def __init__(self, parent = None): + @pyqtSignature("QString") + def on_comboTypeBox_activated(self, p0): """ - Constructor + Slot documentation goes here. """ - QMainWindow.__init__(self, parent) - self.setupUi(self) - self.name=0 - self.nameproject=None - + # TODO: not implemented yet + #raise NotImplementedError + @pyqtSignature("") - def on_cancelButton_clicked(self): + def on_unitPokbut_clicked(self): """ Slot documentation goes here. """ # TODO: not implemented yet #raise NotImplementedError - self.hide() + self.close() @pyqtSignature("") - def on_okButton_clicked(self): + def on_unitPsavebut_clicked(self): """ Slot documentation goes here. """ # TODO: not implemented yet #raise NotImplementedError - self.almacena() - print self.nameproject - self.close() + #self.getListMainWindow() + print "alex" + #for i in self.getfromWindowList: + #print i + + self.almacena() + @pyqtSignature("") + def on_unitPcancelbut_clicked(self): + """ + Slot documentation goes here. + """ + # TODO: not implemented yet + #raise NotImplementedError + self.hide() + def almacena(self): - #print str(self.proyectNameLine.text()) - self.nameproject=str(self.proyectNameLine.text()) - return self.nameproject - + self.getFromWindow=self.getfromWindowList[int(self.comboInputBox.currentIndex())] + #self.nameofUP= str(self.nameUptxt.text()) + self.typeofUP= str(self.comboTypeBox.currentText()) + return self.getFromWindow,self.typeofUP + def closeEvent(self, event): self.closed.emit() event.accept() - - - + + + + \ No newline at end of file diff --git a/schainpy/gui/viewcontroller/modelProperties.py b/schainpy/gui/viewcontroller/modelProperties.py index f97fed0..b50c6aa 100644 --- a/schainpy/gui/viewcontroller/modelProperties.py +++ b/schainpy/gui/viewcontroller/modelProperties.py @@ -1,5 +1,188 @@ from PyQt4 import QtCore +HORIZONTAL_HEADERS = ("ITEM :"," DATOS : " ) + +HORIZONTAL = ("RAMA :",) + +class treeModel(QtCore.QAbstractItemModel): + ''' + a model to display a few names, ordered by encabezado + ''' + name=None + directorio=None + workspace=None + remode=None + dataformat=None + date=None + initTime=None + endTime=None + timezone=None + Summary=None + + def __init__(self ,parent=None): + super(treeModel, self).__init__(parent) + self.people = [] + + def arbol(self): + for caracteristica,principal, descripcion in (("Properties","Name",self.name), + ("Properties","Data Path",self.directorio), + ("Properties","Workspace",self.workspace), + ("Parameters", "Read Mode ",self.remode), + ("Parameters", "DataType ",self.dataformat), + ("Parameters", "Date ",self.date), + ("Parameters", "Init Time ",self.initTime), + ("Parameters", "Final Time ",self.endTime), + ("Parameters", " Time zone ",self.timezone), + ("Parameters", "Profiles ","1"), + ("Description", "Summary ", self.Summary), + ): + person = person_class(caracteristica, principal, descripcion) + self.people.append(person) + + self.rootItem = TreeItem(None, "ALL", None) + self.parents = {0 : self.rootItem} + self.setupModelData() + + #def veamos(self): + # self.update= MainWindow(self) + # self.update.dataProyectTxt.text() + # return self.update.dataProyectTxt.text() + def setParams(self,name,directorio,workspace,remode,dataformat,date,initTime,endTime,timezone,Summary): + self.name=name + self.workspace=workspace + self.directorio= directorio + self.remode=remode + self.dataformat=dataformat + self.date=date + self.initTime=initTime + self.endTime=endTime + self.timezone=timezone + self.Summary=Summary + + + def columnCount(self, parent=None): + if parent and parent.isValid(): + return parent.internalPointer().columnCount() + else: + return len(HORIZONTAL_HEADERS) + + def data(self, index, role): + if not index.isValid(): + return QtCore.QVariant() + + item = index.internalPointer() + if role == QtCore.Qt.DisplayRole: + return item.data(index.column()) + if role == QtCore.Qt.UserRole: + if item: + return item.person + + return QtCore.QVariant() + + def headerData(self, column, orientation, role): + if (orientation == QtCore.Qt.Horizontal and + role == QtCore.Qt.DisplayRole): + try: + return QtCore.QVariant(HORIZONTAL_HEADERS[column]) + except IndexError: + pass + + return QtCore.QVariant() + + def index(self, row, column, parent): + if not self.hasIndex(row, column, parent): + return QtCore.QModelIndex() + + if not parent.isValid(): + parentItem = self.rootItem + else: + parentItem = parent.internalPointer() + + childItem = parentItem.child(row) + if childItem: + return self.createIndex(row, column, childItem) + else: + return QtCore.QModelIndex() + + def parent(self, index): + if not index.isValid(): + return QtCore.QModelIndex() + + childItem = index.internalPointer() + if not childItem: + return QtCore.QModelIndex() + + parentItem = childItem.parent() + + if parentItem == self.rootItem: + return QtCore.QModelIndex() + + return self.createIndex(parentItem.row(), 0, parentItem) + + def rowCount(self, parent=QtCore.QModelIndex()): + if parent.column() > 0: + return 0 + if not parent.isValid(): + p_Item = self.rootItem + else: + p_Item = parent.internalPointer() + return p_Item.childCount() + + def setupModelData(self): + for person in self.people: + if person.descripcion: + encabezado = person.caracteristica + + + if not self.parents.has_key(encabezado): + newparent = TreeItem(None, encabezado, self.rootItem) + self.rootItem.appendChild(newparent) + + self.parents[encabezado] = newparent + + parentItem = self.parents[encabezado] + newItem = TreeItem(person, "", parentItem) + parentItem.appendChild(newItem) + + def searchModel(self, person): + ''' + get the modelIndex for a given appointment + ''' + def searchNode(node): + ''' + a function called recursively, looking at all nodes beneath node + ''' + for child in node.childItems: + if person == child.person: + index = self.createIndex(child.row(), 0, child) + return index + + if child.childCount() > 0: + result = searchNode(child) + if result: + return result + + retarg = searchNode(self.parents[0]) + #print retarg + return retarg + + def find_GivenName(self, principal): + app = None + for person in self.people: + if person.principal == principal: + app = person + break + if app != None: + index = self.searchModel(app) + return (True, index) + return (False, None) + + + + + + + class person_class(object): ''' a trivial custom data object diff --git a/schainpy/gui/viewcontroller/unitprocess.py b/schainpy/gui/viewcontroller/unitprocess.py new file mode 100644 index 0000000..c67bf50 --- /dev/null +++ b/schainpy/gui/viewcontroller/unitprocess.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- + +""" +Module implementing MainWindow. +""" + +from PyQt4.QtGui import QMainWindow +from PyQt4.QtCore import pyqtSignature + +from viewer.ui_unitprocess import Ui_UnitProcess + +class UnitProcess(QMainWindow, Ui_UnitProcess): + """ + Class documentation goes here. + """ + + def __init__(self, parent = None): + """ + Constructor + """ + QMainWindow.__init__(self, parent) + self.setupUi(self) + + + @pyqtSignature("QString") + def on_comboInputBox_activated(self, p0): + """ + Slot documentation goes here. + """ + # TODO: not implemented yet + raise NotImplementedError + + @pyqtSignature("QString") + def on_comboTypeBox_activated(self, p0): + """ + Slot documentation goes here. + """ + # TODO: not implemented yet + raise NotImplementedError + + + @pyqtSignature("") + def on_unitPokbut_clicked(self): + """ + Slot documentation goes here. + """ + # TODO: not implemented yet + #raise NotImplementedError + print "this is suspiscious" + print "njdasjdajj" + + @pyqtSignature("") + def on_unitPcancelbut_clicked(self): + """ + Slot documentation goes here. + """ + # TODO: not implemented yet + raise NotImplementedError diff --git a/schainpy/gui/viewer/ui_mainwindow.py b/schainpy/gui/viewer/ui_mainwindow.py index ad66685..c504a25 100644 --- a/schainpy/gui/viewer/ui_mainwindow.py +++ b/schainpy/gui/viewer/ui_mainwindow.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\UIDOS\MainWindow28nov.ui' +# Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\UIDOS\MainWindow_NOVTRES.ui' # -# Created: Mon Dec 03 15:13:49 2012 +# Created: Mon Dec 10 11:44:05 2012 # by: PyQt4 UI code generator 4.9.4 # # WARNING! All changes made in this file will be lost! @@ -17,7 +17,7 @@ except AttributeError: class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) - MainWindow.resize(852, 569) + MainWindow.resize(854, 569) self.centralWidget = QtGui.QWidget(MainWindow) self.centralWidget.setObjectName(_fromUtf8("centralWidget")) self.frame_2 = QtGui.QFrame(self.centralWidget) @@ -55,20 +55,17 @@ class Ui_MainWindow(object): self.frame_9.setFrameShadow(QtGui.QFrame.Plain) self.frame_9.setObjectName(_fromUtf8("frame_9")) self.label = QtGui.QLabel(self.frame_9) - self.label.setGeometry(QtCore.QRect(50, 0, 141, 31)) + self.label.setGeometry(QtCore.QRect(70, 0, 101, 31)) font = QtGui.QFont() font.setPointSize(11) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.addpBtn = QtGui.QPushButton(self.frame_9) - self.addpBtn.setGeometry(QtCore.QRect(10, 30, 61, 23)) + self.addpBtn.setGeometry(QtCore.QRect(20, 30, 91, 23)) self.addpBtn.setObjectName(_fromUtf8("addpBtn")) - self.addbBtn = QtGui.QPushButton(self.frame_9) - self.addbBtn.setGeometry(QtCore.QRect(80, 30, 71, 23)) - self.addbBtn.setObjectName(_fromUtf8("addbBtn")) - self.addoBtn = QtGui.QPushButton(self.frame_9) - self.addoBtn.setGeometry(QtCore.QRect(160, 30, 61, 23)) - self.addoBtn.setObjectName(_fromUtf8("addoBtn")) + self.addUnitProces = QtGui.QPushButton(self.frame_9) + self.addUnitProces.setGeometry(QtCore.QRect(120, 30, 91, 23)) + self.addUnitProces.setObjectName(_fromUtf8("addUnitProces")) self.scrollArea = QtGui.QScrollArea(self.frame) self.scrollArea.setGeometry(QtCore.QRect(10, 80, 231, 421)) self.scrollArea.setWidgetResizable(True) @@ -96,7 +93,7 @@ class Ui_MainWindow(object): self.tab_5 = QtGui.QWidget() self.tab_5.setObjectName(_fromUtf8("tab_5")) self.frame_5 = QtGui.QFrame(self.tab_5) - self.frame_5.setGeometry(QtCore.QRect(10, 120, 261, 31)) + self.frame_5.setGeometry(QtCore.QRect(10, 130, 261, 31)) font = QtGui.QFont() font.setPointSize(10) self.frame_5.setFont(font) @@ -124,38 +121,38 @@ class Ui_MainWindow(object): self.dataWaitLine.setFont(font) self.dataWaitLine.setObjectName(_fromUtf8("dataWaitLine")) self.dataWaitTxt = QtGui.QLineEdit(self.frame_5) - self.dataWaitTxt.setGeometry(QtCore.QRect(230, 10, 21, 20)) + self.dataWaitTxt.setGeometry(QtCore.QRect(230, 10, 21, 16)) self.dataWaitTxt.setObjectName(_fromUtf8("dataWaitTxt")) self.frame_4 = QtGui.QFrame(self.tab_5) - self.frame_4.setGeometry(QtCore.QRect(10, 60, 261, 51)) + self.frame_4.setGeometry(QtCore.QRect(10, 60, 261, 61)) self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_4.setFrameShadow(QtGui.QFrame.Plain) self.frame_4.setObjectName(_fromUtf8("frame_4")) - self.dataFormatLine = QtGui.QLabel(self.frame_4) - self.dataFormatLine.setGeometry(QtCore.QRect(10, 10, 81, 16)) + self.dataTypeLine = QtGui.QLabel(self.frame_4) + self.dataTypeLine.setGeometry(QtCore.QRect(10, 10, 81, 16)) font = QtGui.QFont() font.setPointSize(10) - self.dataFormatLine.setFont(font) - self.dataFormatLine.setObjectName(_fromUtf8("dataFormatLine")) + self.dataTypeLine.setFont(font) + self.dataTypeLine.setObjectName(_fromUtf8("dataTypeLine")) self.dataPathline = QtGui.QLabel(self.frame_4) - self.dataPathline.setGeometry(QtCore.QRect(10, 30, 81, 19)) + self.dataPathline.setGeometry(QtCore.QRect(10, 40, 81, 19)) font = QtGui.QFont() font.setPointSize(10) self.dataPathline.setFont(font) self.dataPathline.setObjectName(_fromUtf8("dataPathline")) - self.dataFormatCmbBox = QtGui.QComboBox(self.frame_4) - self.dataFormatCmbBox.setGeometry(QtCore.QRect(90, 10, 101, 16)) + self.dataTypeCmbBox = QtGui.QComboBox(self.frame_4) + self.dataTypeCmbBox.setGeometry(QtCore.QRect(80, 10, 111, 21)) font = QtGui.QFont() font.setPointSize(10) - self.dataFormatCmbBox.setFont(font) - self.dataFormatCmbBox.setObjectName(_fromUtf8("dataFormatCmbBox")) - self.dataFormatCmbBox.addItem(_fromUtf8("")) - self.dataFormatCmbBox.addItem(_fromUtf8("")) + self.dataTypeCmbBox.setFont(font) + self.dataTypeCmbBox.setObjectName(_fromUtf8("dataTypeCmbBox")) + self.dataTypeCmbBox.addItem(_fromUtf8("")) + self.dataTypeCmbBox.addItem(_fromUtf8("")) self.dataPathTxt = QtGui.QLineEdit(self.frame_4) - self.dataPathTxt.setGeometry(QtCore.QRect(90, 30, 131, 16)) + self.dataPathTxt.setGeometry(QtCore.QRect(80, 40, 141, 16)) self.dataPathTxt.setObjectName(_fromUtf8("dataPathTxt")) self.dataPathBrowse = QtGui.QPushButton(self.frame_4) - self.dataPathBrowse.setGeometry(QtCore.QRect(230, 30, 20, 16)) + self.dataPathBrowse.setGeometry(QtCore.QRect(230, 40, 20, 16)) self.dataPathBrowse.setObjectName(_fromUtf8("dataPathBrowse")) self.dataFormatTxt = QtGui.QLineEdit(self.frame_4) self.dataFormatTxt.setGeometry(QtCore.QRect(200, 10, 51, 16)) @@ -166,421 +163,138 @@ class Ui_MainWindow(object): self.frame_3.setFrameShadow(QtGui.QFrame.Plain) self.frame_3.setObjectName(_fromUtf8("frame_3")) self.dataOperationModeline = QtGui.QLabel(self.frame_3) - self.dataOperationModeline.setGeometry(QtCore.QRect(10, 10, 101, 19)) + self.dataOperationModeline.setGeometry(QtCore.QRect(10, 10, 131, 20)) font = QtGui.QFont() font.setPointSize(10) self.dataOperationModeline.setFont(font) self.dataOperationModeline.setObjectName(_fromUtf8("dataOperationModeline")) - self.operationModeCmbBox = QtGui.QComboBox(self.frame_3) - self.operationModeCmbBox.setGeometry(QtCore.QRect(120, 10, 131, 20)) + self.proConfCmbBox = QtGui.QComboBox(self.frame_3) + self.proConfCmbBox.setGeometry(QtCore.QRect(150, 10, 101, 20)) font = QtGui.QFont() font.setPointSize(10) - self.operationModeCmbBox.setFont(font) - self.operationModeCmbBox.setObjectName(_fromUtf8("operationModeCmbBox")) - self.operationModeCmbBox.addItem(_fromUtf8("")) - self.operationModeCmbBox.addItem(_fromUtf8("")) + self.proConfCmbBox.setFont(font) + self.proConfCmbBox.setObjectName(_fromUtf8("proConfCmbBox")) self.frame_8 = QtGui.QFrame(self.tab_5) - self.frame_8.setGeometry(QtCore.QRect(10, 160, 261, 71)) + self.frame_8.setGeometry(QtCore.QRect(10, 170, 261, 71)) self.frame_8.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_8.setFrameShadow(QtGui.QFrame.Plain) self.frame_8.setObjectName(_fromUtf8("frame_8")) - self.dataYearLine = QtGui.QLabel(self.frame_8) - self.dataYearLine.setGeometry(QtCore.QRect(10, 10, 41, 16)) - font = QtGui.QFont() - font.setPointSize(10) - self.dataYearLine.setFont(font) - self.dataYearLine.setObjectName(_fromUtf8("dataYearLine")) self.dataStartLine = QtGui.QLabel(self.frame_8) - self.dataStartLine.setGeometry(QtCore.QRect(80, 10, 69, 16)) + self.dataStartLine.setGeometry(QtCore.QRect(10, 10, 69, 16)) font = QtGui.QFont() font.setPointSize(10) self.dataStartLine.setFont(font) self.dataStartLine.setObjectName(_fromUtf8("dataStartLine")) self.dataEndline = QtGui.QLabel(self.frame_8) - self.dataEndline.setGeometry(QtCore.QRect(170, 10, 61, 16)) + self.dataEndline.setGeometry(QtCore.QRect(10, 30, 61, 16)) font = QtGui.QFont() font.setPointSize(10) self.dataEndline.setFont(font) self.dataEndline.setObjectName(_fromUtf8("dataEndline")) - self.yearCmbBox = QtGui.QComboBox(self.frame_8) - self.yearCmbBox.setGeometry(QtCore.QRect(10, 30, 61, 16)) - font = QtGui.QFont() - font.setPointSize(10) - self.yearCmbBox.setFont(font) - self.yearCmbBox.setObjectName(_fromUtf8("yearCmbBox")) self.starDateCmbBox = QtGui.QComboBox(self.frame_8) - self.starDateCmbBox.setGeometry(QtCore.QRect(80, 30, 81, 16)) + self.starDateCmbBox.setGeometry(QtCore.QRect(100, 10, 141, 16)) self.starDateCmbBox.setObjectName(_fromUtf8("starDateCmbBox")) self.endDateCmbBox = QtGui.QComboBox(self.frame_8) - self.endDateCmbBox.setGeometry(QtCore.QRect(170, 30, 81, 16)) + self.endDateCmbBox.setGeometry(QtCore.QRect(100, 30, 141, 16)) self.endDateCmbBox.setObjectName(_fromUtf8("endDateCmbBox")) self.LTReferenceRdBtn = QtGui.QRadioButton(self.frame_8) - self.LTReferenceRdBtn.setGeometry(QtCore.QRect(90, 50, 161, 16)) + self.LTReferenceRdBtn.setGeometry(QtCore.QRect(30, 50, 211, 21)) font = QtGui.QFont() font.setPointSize(8) self.LTReferenceRdBtn.setFont(font) self.LTReferenceRdBtn.setObjectName(_fromUtf8("LTReferenceRdBtn")) self.frame_10 = QtGui.QFrame(self.tab_5) - self.frame_10.setGeometry(QtCore.QRect(10, 240, 261, 51)) + self.frame_10.setGeometry(QtCore.QRect(10, 250, 261, 71)) self.frame_10.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_10.setFrameShadow(QtGui.QFrame.Plain) self.frame_10.setObjectName(_fromUtf8("frame_10")) - self.initialTimeSlider = QtGui.QSlider(self.frame_10) - self.initialTimeSlider.setGeometry(QtCore.QRect(70, 10, 141, 20)) - self.initialTimeSlider.setMaximum(24) - self.initialTimeSlider.setOrientation(QtCore.Qt.Horizontal) - self.initialTimeSlider.setObjectName(_fromUtf8("initialTimeSlider")) self.dataInitialTimeLine = QtGui.QLabel(self.frame_10) - self.dataInitialTimeLine.setGeometry(QtCore.QRect(10, 10, 61, 16)) + self.dataInitialTimeLine.setGeometry(QtCore.QRect(30, 10, 61, 16)) font = QtGui.QFont() font.setPointSize(9) self.dataInitialTimeLine.setFont(font) self.dataInitialTimeLine.setObjectName(_fromUtf8("dataInitialTimeLine")) self.dataFinelTimeLine = QtGui.QLabel(self.frame_10) - self.dataFinelTimeLine.setGeometry(QtCore.QRect(10, 30, 61, 16)) + self.dataFinelTimeLine.setGeometry(QtCore.QRect(30, 40, 61, 16)) font = QtGui.QFont() font.setPointSize(9) self.dataFinelTimeLine.setFont(font) self.dataFinelTimeLine.setObjectName(_fromUtf8("dataFinelTimeLine")) - self.finalTimeSlider = QtGui.QSlider(self.frame_10) - self.finalTimeSlider.setGeometry(QtCore.QRect(70, 30, 141, 20)) - self.finalTimeSlider.setMaximum(24) - self.finalTimeSlider.setOrientation(QtCore.Qt.Horizontal) - self.finalTimeSlider.setObjectName(_fromUtf8("finalTimeSlider")) - self.initialtimeLcd = QtGui.QLCDNumber(self.frame_10) - self.initialtimeLcd.setGeometry(QtCore.QRect(210, 10, 41, 16)) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) - self.initialtimeLcd.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(14) - font.setBold(True) - font.setWeight(75) - self.initialtimeLcd.setFont(font) - self.initialtimeLcd.setObjectName(_fromUtf8("initialtimeLcd")) - self.finaltimeLcd = QtGui.QLCDNumber(self.frame_10) - self.finaltimeLcd.setGeometry(QtCore.QRect(210, 30, 41, 16)) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.SolidPattern) - palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) - self.finaltimeLcd.setPalette(palette) - self.finaltimeLcd.setObjectName(_fromUtf8("finaltimeLcd")) + self.startTimeEdit = QtGui.QTimeEdit(self.frame_10) + self.startTimeEdit.setGeometry(QtCore.QRect(110, 10, 131, 20)) + self.startTimeEdit.setObjectName(_fromUtf8("startTimeEdit")) + self.timeEdit_2 = QtGui.QTimeEdit(self.frame_10) + self.timeEdit_2.setGeometry(QtCore.QRect(110, 40, 131, 21)) + self.timeEdit_2.setObjectName(_fromUtf8("timeEdit_2")) self.dataOkBtn = QtGui.QPushButton(self.tab_5) - self.dataOkBtn.setGeometry(QtCore.QRect(80, 300, 61, 21)) + self.dataOkBtn.setGeometry(QtCore.QRect(80, 320, 61, 21)) self.dataOkBtn.setObjectName(_fromUtf8("dataOkBtn")) self.dataCancelBtn = QtGui.QPushButton(self.tab_5) - self.dataCancelBtn.setGeometry(QtCore.QRect(160, 300, 61, 21)) + self.dataCancelBtn.setGeometry(QtCore.QRect(150, 320, 61, 21)) self.dataCancelBtn.setObjectName(_fromUtf8("dataCancelBtn")) self.tabWidget.addTab(self.tab_5, _fromUtf8("")) self.tab_7 = QtGui.QWidget() self.tab_7.setObjectName(_fromUtf8("tab_7")) - self.gridLayout_10 = QtGui.QGridLayout(self.tab_7) - self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) self.tabWidget_3 = QtGui.QTabWidget(self.tab_7) + self.tabWidget_3.setGeometry(QtCore.QRect(10, 20, 261, 301)) self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3")) self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName(_fromUtf8("tab_3")) self.frame_13 = QtGui.QFrame(self.tab_3) - self.frame_13.setGeometry(QtCore.QRect(10, 20, 231, 191)) + self.frame_13.setGeometry(QtCore.QRect(10, 10, 231, 201)) self.frame_13.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_13.setFrameShadow(QtGui.QFrame.Plain) self.frame_13.setObjectName(_fromUtf8("frame_13")) self.removeDCCEB = QtGui.QCheckBox(self.frame_13) - self.removeDCCEB.setGeometry(QtCore.QRect(10, 30, 91, 17)) + self.removeDCCEB.setGeometry(QtCore.QRect(10, 100, 91, 17)) font = QtGui.QFont() font.setPointSize(10) self.removeDCCEB.setFont(font) self.removeDCCEB.setObjectName(_fromUtf8("removeDCCEB")) self.coherentIntegrationCEB = QtGui.QCheckBox(self.frame_13) - self.coherentIntegrationCEB.setGeometry(QtCore.QRect(10, 110, 141, 17)) + self.coherentIntegrationCEB.setGeometry(QtCore.QRect(10, 170, 141, 17)) font = QtGui.QFont() font.setPointSize(10) self.coherentIntegrationCEB.setFont(font) self.coherentIntegrationCEB.setObjectName(_fromUtf8("coherentIntegrationCEB")) self.removeDCcob = QtGui.QComboBox(self.frame_13) - self.removeDCcob.setGeometry(QtCore.QRect(150, 30, 71, 20)) + self.removeDCcob.setGeometry(QtCore.QRect(130, 100, 91, 20)) self.removeDCcob.setObjectName(_fromUtf8("removeDCcob")) self.numberIntegration = QtGui.QLineEdit(self.frame_13) - self.numberIntegration.setGeometry(QtCore.QRect(150, 110, 71, 20)) + self.numberIntegration.setGeometry(QtCore.QRect(150, 170, 71, 21)) self.numberIntegration.setObjectName(_fromUtf8("numberIntegration")) self.decodeCEB = QtGui.QCheckBox(self.frame_13) - self.decodeCEB.setGeometry(QtCore.QRect(10, 70, 101, 17)) + self.decodeCEB.setGeometry(QtCore.QRect(10, 130, 101, 21)) font = QtGui.QFont() font.setPointSize(10) self.decodeCEB.setFont(font) self.decodeCEB.setObjectName(_fromUtf8("decodeCEB")) self.decodeCcob = QtGui.QComboBox(self.frame_13) - self.decodeCcob.setGeometry(QtCore.QRect(150, 70, 71, 20)) + self.decodeCcob.setGeometry(QtCore.QRect(130, 130, 91, 20)) self.decodeCcob.setObjectName(_fromUtf8("decodeCcob")) + self.profileOpVolcob = QtGui.QComboBox(self.frame_13) + self.profileOpVolcob.setGeometry(QtCore.QRect(130, 40, 91, 22)) + font = QtGui.QFont() + font.setPointSize(8) + self.profileOpVolcob.setFont(font) + self.profileOpVolcob.setObjectName(_fromUtf8("profileOpVolcob")) + self.profileOpVolcob.addItem(_fromUtf8("")) + self.profileOpVolcob.addItem(_fromUtf8("")) + self.selecChannelopVolCEB = QtGui.QCheckBox(self.frame_13) + self.selecChannelopVolCEB.setGeometry(QtCore.QRect(10, 10, 121, 21)) + self.selecChannelopVolCEB.setObjectName(_fromUtf8("selecChannelopVolCEB")) + self.selecHeighopVolCEB = QtGui.QCheckBox(self.frame_13) + self.selecHeighopVolCEB.setGeometry(QtCore.QRect(10, 40, 121, 21)) + self.selecHeighopVolCEB.setObjectName(_fromUtf8("selecHeighopVolCEB")) + self.numberChannelopVol = QtGui.QLineEdit(self.frame_13) + self.numberChannelopVol.setEnabled(True) + self.numberChannelopVol.setGeometry(QtCore.QRect(130, 10, 91, 20)) + self.numberChannelopVol.setObjectName(_fromUtf8("numberChannelopVol")) + self.lineHeighProfileTxtopVol = QtGui.QLineEdit(self.frame_13) + self.lineHeighProfileTxtopVol.setGeometry(QtCore.QRect(10, 70, 211, 20)) + self.lineHeighProfileTxtopVol.setObjectName(_fromUtf8("lineHeighProfileTxtopVol")) self.frame_14 = QtGui.QFrame(self.tab_3) - self.frame_14.setGeometry(QtCore.QRect(10, 230, 231, 41)) + self.frame_14.setGeometry(QtCore.QRect(10, 220, 231, 41)) self.frame_14.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_14.setFrameShadow(QtGui.QFrame.Plain) self.frame_14.setObjectName(_fromUtf8("frame_14")) @@ -701,12 +415,12 @@ class Ui_MainWindow(object): self.comboBox_10 = QtGui.QComboBox(self.frame_19) self.comboBox_10.setGeometry(QtCore.QRect(90, 10, 131, 16)) self.comboBox_10.setObjectName(_fromUtf8("comboBox_10")) - self.dataOkBtn_3 = QtGui.QPushButton(self.tab_2) - self.dataOkBtn_3.setGeometry(QtCore.QRect(60, 250, 71, 21)) - self.dataOkBtn_3.setObjectName(_fromUtf8("dataOkBtn_3")) - self.dataCancelBtn_3 = QtGui.QPushButton(self.tab_2) - self.dataCancelBtn_3.setGeometry(QtCore.QRect(140, 250, 71, 21)) - self.dataCancelBtn_3.setObjectName(_fromUtf8("dataCancelBtn_3")) + self.dataGraphVolOkBtn = QtGui.QPushButton(self.tab_2) + self.dataGraphVolOkBtn.setGeometry(QtCore.QRect(60, 250, 71, 21)) + self.dataGraphVolOkBtn.setObjectName(_fromUtf8("dataGraphVolOkBtn")) + self.dataGraphVolCancelBtn = QtGui.QPushButton(self.tab_2) + self.dataGraphVolCancelBtn.setGeometry(QtCore.QRect(140, 250, 71, 21)) + self.dataGraphVolCancelBtn.setObjectName(_fromUtf8("dataGraphVolCancelBtn")) self.tabWidget_3.addTab(self.tab_2, _fromUtf8("")) self.tab_4 = QtGui.QWidget() self.tab_4.setObjectName(_fromUtf8("tab_4")) @@ -735,20 +449,21 @@ class Ui_MainWindow(object): self.frame_48.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_48.setFrameShadow(QtGui.QFrame.Plain) self.frame_48.setObjectName(_fromUtf8("frame_48")) - self.dataoutVolOkBtn = QtGui.QPushButton(self.frame_48) - self.dataoutVolOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) - self.dataoutVolOkBtn.setObjectName(_fromUtf8("dataoutVolOkBtn")) - self.dataCancelBtn_13 = QtGui.QPushButton(self.frame_48) - self.dataCancelBtn_13.setGeometry(QtCore.QRect(130, 10, 71, 21)) - self.dataCancelBtn_13.setObjectName(_fromUtf8("dataCancelBtn_13")) + self.datasaveVolOkBtn = QtGui.QPushButton(self.frame_48) + self.datasaveVolOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) + self.datasaveVolOkBtn.setObjectName(_fromUtf8("datasaveVolOkBtn")) + self.datasaveVolCancelBtn = QtGui.QPushButton(self.frame_48) + self.datasaveVolCancelBtn.setGeometry(QtCore.QRect(130, 10, 71, 21)) + self.datasaveVolCancelBtn.setObjectName(_fromUtf8("datasaveVolCancelBtn")) self.tabWidget_3.addTab(self.tab_4, _fromUtf8("")) - self.gridLayout_10.addWidget(self.tabWidget_3, 0, 0, 1, 1) + self.addOpUpselec = QtGui.QComboBox(self.tab_7) + self.addOpUpselec.setGeometry(QtCore.QRect(10, 0, 91, 21)) + self.addOpUpselec.setObjectName(_fromUtf8("addOpUpselec")) self.tabWidget.addTab(self.tab_7, _fromUtf8("")) self.tab_6 = QtGui.QWidget() self.tab_6.setObjectName(_fromUtf8("tab_6")) - self.gridLayout_11 = QtGui.QGridLayout(self.tab_6) - self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11")) self.tabWidget_4 = QtGui.QTabWidget(self.tab_6) + self.tabWidget_4.setGeometry(QtCore.QRect(9, 9, 261, 321)) self.tabWidget_4.setObjectName(_fromUtf8("tabWidget_4")) self.tab_8 = QtGui.QWidget() self.tab_8.setObjectName(_fromUtf8("tab_8")) @@ -798,18 +513,18 @@ class Ui_MainWindow(object): self.frame_35.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_35.setFrameShadow(QtGui.QFrame.Plain) self.frame_35.setObjectName(_fromUtf8("frame_35")) - self.dataOkBtn_9 = QtGui.QPushButton(self.frame_35) - self.dataOkBtn_9.setGeometry(QtCore.QRect(30, 10, 71, 21)) - self.dataOkBtn_9.setObjectName(_fromUtf8("dataOkBtn_9")) - self.dataCancelBtn_9 = QtGui.QPushButton(self.frame_35) - self.dataCancelBtn_9.setGeometry(QtCore.QRect(130, 10, 71, 21)) - self.dataCancelBtn_9.setObjectName(_fromUtf8("dataCancelBtn_9")) + self.dataopSpecOkBtn = QtGui.QPushButton(self.frame_35) + self.dataopSpecOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) + self.dataopSpecOkBtn.setObjectName(_fromUtf8("dataopSpecOkBtn")) + self.dataopSpecCancelBtn = QtGui.QPushButton(self.frame_35) + self.dataopSpecCancelBtn.setGeometry(QtCore.QRect(130, 10, 71, 21)) + self.dataopSpecCancelBtn.setObjectName(_fromUtf8("dataopSpecCancelBtn")) self.tabWidget_4.addTab(self.tab_8, _fromUtf8("")) self.tab_10 = QtGui.QWidget() self.tab_10.setObjectName(_fromUtf8("tab_10")) - self.dataCancelBtn_11 = QtGui.QPushButton(self.tab_10) - self.dataCancelBtn_11.setGeometry(QtCore.QRect(140, 270, 71, 21)) - self.dataCancelBtn_11.setObjectName(_fromUtf8("dataCancelBtn_11")) + self.dataGraphSpecCancelBtn = QtGui.QPushButton(self.tab_10) + self.dataGraphSpecCancelBtn.setGeometry(QtCore.QRect(140, 270, 71, 21)) + self.dataGraphSpecCancelBtn.setObjectName(_fromUtf8("dataGraphSpecCancelBtn")) self.frame_39 = QtGui.QFrame(self.tab_10) self.frame_39.setGeometry(QtCore.QRect(10, 90, 231, 21)) self.frame_39.setFrameShape(QtGui.QFrame.StyledPanel) @@ -896,9 +611,9 @@ class Ui_MainWindow(object): self.checkBox_74.setGeometry(QtCore.QRect(190, 80, 20, 26)) self.checkBox_74.setText(_fromUtf8("")) self.checkBox_74.setObjectName(_fromUtf8("checkBox_74")) - self.dataOkBtn_11 = QtGui.QPushButton(self.tab_10) - self.dataOkBtn_11.setGeometry(QtCore.QRect(60, 270, 71, 21)) - self.dataOkBtn_11.setObjectName(_fromUtf8("dataOkBtn_11")) + self.dataGraphSpecOkBtn = QtGui.QPushButton(self.tab_10) + self.dataGraphSpecOkBtn.setGeometry(QtCore.QRect(60, 270, 71, 21)) + self.dataGraphSpecOkBtn.setObjectName(_fromUtf8("dataGraphSpecOkBtn")) self.frame_38 = QtGui.QFrame(self.tab_10) self.frame_38.setGeometry(QtCore.QRect(10, 10, 231, 71)) self.frame_38.setFrameShape(QtGui.QFrame.StyledPanel) @@ -982,14 +697,13 @@ class Ui_MainWindow(object): self.frame_49.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_49.setFrameShadow(QtGui.QFrame.Plain) self.frame_49.setObjectName(_fromUtf8("frame_49")) - self.dataOkBtn_14 = QtGui.QPushButton(self.frame_49) - self.dataOkBtn_14.setGeometry(QtCore.QRect(30, 10, 71, 21)) - self.dataOkBtn_14.setObjectName(_fromUtf8("dataOkBtn_14")) - self.dataCancelBtn_14 = QtGui.QPushButton(self.frame_49) - self.dataCancelBtn_14.setGeometry(QtCore.QRect(130, 10, 71, 21)) - self.dataCancelBtn_14.setObjectName(_fromUtf8("dataCancelBtn_14")) + self.datasaveSpecOkBtn = QtGui.QPushButton(self.frame_49) + self.datasaveSpecOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) + self.datasaveSpecOkBtn.setObjectName(_fromUtf8("datasaveSpecOkBtn")) + self.datasaveSpecCancelBtn = QtGui.QPushButton(self.frame_49) + self.datasaveSpecCancelBtn.setGeometry(QtCore.QRect(130, 10, 71, 21)) + self.datasaveSpecCancelBtn.setObjectName(_fromUtf8("datasaveSpecCancelBtn")) self.tabWidget_4.addTab(self.tab_11, _fromUtf8("")) - self.gridLayout_11.addWidget(self.tabWidget_4, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_6, _fromUtf8("")) self.tab_9 = QtGui.QWidget() self.tab_9.setObjectName(_fromUtf8("tab_9")) @@ -1018,12 +732,12 @@ class Ui_MainWindow(object): self.frame_36.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_36.setFrameShadow(QtGui.QFrame.Plain) self.frame_36.setObjectName(_fromUtf8("frame_36")) - self.dataOkBtn_10 = QtGui.QPushButton(self.frame_36) - self.dataOkBtn_10.setGeometry(QtCore.QRect(30, 10, 71, 21)) - self.dataOkBtn_10.setObjectName(_fromUtf8("dataOkBtn_10")) - self.dataCancelBtn_10 = QtGui.QPushButton(self.frame_36) - self.dataCancelBtn_10.setGeometry(QtCore.QRect(130, 10, 71, 21)) - self.dataCancelBtn_10.setObjectName(_fromUtf8("dataCancelBtn_10")) + self.dataopCorrOkBtn = QtGui.QPushButton(self.frame_36) + self.dataopCorrOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) + self.dataopCorrOkBtn.setObjectName(_fromUtf8("dataopCorrOkBtn")) + self.dataopCorrCancelBtn = QtGui.QPushButton(self.frame_36) + self.dataopCorrCancelBtn.setGeometry(QtCore.QRect(130, 10, 71, 21)) + self.dataopCorrCancelBtn.setObjectName(_fromUtf8("dataopCorrCancelBtn")) self.tabWidget_5.addTab(self.tab_12, _fromUtf8("")) self.tab_13 = QtGui.QWidget() self.tab_13.setObjectName(_fromUtf8("tab_13")) @@ -1121,12 +835,12 @@ class Ui_MainWindow(object): self.checkBox_68.setGeometry(QtCore.QRect(190, 30, 31, 26)) self.checkBox_68.setText(_fromUtf8("")) self.checkBox_68.setObjectName(_fromUtf8("checkBox_68")) - self.dataOkBtn_12 = QtGui.QPushButton(self.tab_13) - self.dataOkBtn_12.setGeometry(QtCore.QRect(60, 270, 71, 21)) - self.dataOkBtn_12.setObjectName(_fromUtf8("dataOkBtn_12")) - self.dataCancelBtn_12 = QtGui.QPushButton(self.tab_13) - self.dataCancelBtn_12.setGeometry(QtCore.QRect(140, 270, 71, 21)) - self.dataCancelBtn_12.setObjectName(_fromUtf8("dataCancelBtn_12")) + self.dataGraphCorrOkBtn = QtGui.QPushButton(self.tab_13) + self.dataGraphCorrOkBtn.setGeometry(QtCore.QRect(60, 270, 71, 21)) + self.dataGraphCorrOkBtn.setObjectName(_fromUtf8("dataGraphCorrOkBtn")) + self.dataGraphCorrCancelBtn = QtGui.QPushButton(self.tab_13) + self.dataGraphCorrCancelBtn.setGeometry(QtCore.QRect(140, 270, 71, 21)) + self.dataGraphCorrCancelBtn.setObjectName(_fromUtf8("dataGraphCorrCancelBtn")) self.tabWidget_5.addTab(self.tab_13, _fromUtf8("")) self.tab_14 = QtGui.QWidget() self.tab_14.setObjectName(_fromUtf8("tab_14")) @@ -1158,12 +872,12 @@ class Ui_MainWindow(object): self.frame_50.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_50.setFrameShadow(QtGui.QFrame.Plain) self.frame_50.setObjectName(_fromUtf8("frame_50")) - self.dataOkBtn_15 = QtGui.QPushButton(self.frame_50) - self.dataOkBtn_15.setGeometry(QtCore.QRect(30, 10, 71, 21)) - self.dataOkBtn_15.setObjectName(_fromUtf8("dataOkBtn_15")) - self.dataCancelBtn_15 = QtGui.QPushButton(self.frame_50) - self.dataCancelBtn_15.setGeometry(QtCore.QRect(130, 10, 71, 21)) - self.dataCancelBtn_15.setObjectName(_fromUtf8("dataCancelBtn_15")) + self.datasaveCorrOkBtn = QtGui.QPushButton(self.frame_50) + self.datasaveCorrOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) + self.datasaveCorrOkBtn.setObjectName(_fromUtf8("datasaveCorrOkBtn")) + self.dataSaveCorrCancelBtn = QtGui.QPushButton(self.frame_50) + self.dataSaveCorrCancelBtn.setGeometry(QtCore.QRect(130, 10, 71, 21)) + self.dataSaveCorrCancelBtn.setObjectName(_fromUtf8("dataSaveCorrCancelBtn")) self.tabWidget_5.addTab(self.tab_14, _fromUtf8("")) self.gridLayout_12.addWidget(self.tabWidget_5, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_9, _fromUtf8("")) @@ -1178,14 +892,14 @@ class Ui_MainWindow(object): self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.textEdit = Qsci.QsciScintilla(self.tab) - self.textEdit.setGeometry(QtCore.QRect(10, 0, 261, 81)) + self.textEdit.setGeometry(QtCore.QRect(10, 10, 261, 61)) self.textEdit.setToolTip(_fromUtf8("")) self.textEdit.setWhatsThis(_fromUtf8("")) self.textEdit.setObjectName(_fromUtf8("textEdit")) self.tabWidget_2.addTab(self.tab, _fromUtf8("")) MainWindow.setCentralWidget(self.centralWidget) self.menuBar = QtGui.QMenuBar(MainWindow) - self.menuBar.setGeometry(QtCore.QRect(0, 0, 852, 21)) + self.menuBar.setGeometry(QtCore.QRect(0, 0, 854, 21)) self.menuBar.setObjectName(_fromUtf8("menuBar")) self.menuFILE = QtGui.QMenu(self.menuBar) self.menuFILE.setObjectName(_fromUtf8("menuFILE")) @@ -1284,27 +998,35 @@ class Ui_MainWindow(object): self.tabWidget_5.setCurrentIndex(0) self.tabWidget_2.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) + + #++++++++++++++++++NEW PROPERTIES+++++++++++++++++# + QtGui.QToolTip.setFont(QtGui.QFont('SansSerif', 10)) + self.addpBtn.setToolTip('Add_New_Project') + self.addUnitProces.setToolTip('Add_New_Unit_Process') + + #++++++++++++++++++NEW PROPERTIES+++++++++++++++++# + self.model = QtGui.QStandardItemModel() + self.treeView.setModel(self.model) + self.treeView.clicked.connect(self.clickFunctiontree) + self.treeView.expandAll() + #self.treeView.clicked.connect(self.treefunction1) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) self.label_46.setText(QtGui.QApplication.translate("MainWindow", "Project Properties", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("MainWindow", "Project Explorer", None, QtGui.QApplication.UnicodeUTF8)) - self.addpBtn.setText(QtGui.QApplication.translate("MainWindow", "Project", None, QtGui.QApplication.UnicodeUTF8)) - self.addbBtn.setText(QtGui.QApplication.translate("MainWindow", "Branch", None, QtGui.QApplication.UnicodeUTF8)) - self.addoBtn.setText(QtGui.QApplication.translate("MainWindow", "Object", None, QtGui.QApplication.UnicodeUTF8)) + self.addpBtn.setText(QtGui.QApplication.translate("MainWindow", "PROJECT", None, QtGui.QApplication.UnicodeUTF8)) + self.addUnitProces.setText(QtGui.QApplication.translate("MainWindow", "UNIT PROCESS", None, QtGui.QApplication.UnicodeUTF8)) self.label_55.setText(QtGui.QApplication.translate("MainWindow", "Read Mode:", None, QtGui.QApplication.UnicodeUTF8)) self.readModeCmBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "OffLine", None, QtGui.QApplication.UnicodeUTF8)) self.readModeCmBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "OnLine", None, QtGui.QApplication.UnicodeUTF8)) self.dataWaitLine.setText(QtGui.QApplication.translate("MainWindow", "Wait(sec):", None, QtGui.QApplication.UnicodeUTF8)) - self.dataFormatLine.setText(QtGui.QApplication.translate("MainWindow", "Data format :", None, QtGui.QApplication.UnicodeUTF8)) + self.dataTypeLine.setText(QtGui.QApplication.translate("MainWindow", "Data type :", None, QtGui.QApplication.UnicodeUTF8)) self.dataPathline.setText(QtGui.QApplication.translate("MainWindow", "Data Path :", None, QtGui.QApplication.UnicodeUTF8)) - self.dataFormatCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Raw Data", None, QtGui.QApplication.UnicodeUTF8)) - self.dataFormatCmbBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Process Data", None, QtGui.QApplication.UnicodeUTF8)) + self.dataTypeCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Voltage", None, QtGui.QApplication.UnicodeUTF8)) + self.dataTypeCmbBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Spectra", None, QtGui.QApplication.UnicodeUTF8)) self.dataPathBrowse.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOperationModeline.setText(QtGui.QApplication.translate("MainWindow", "Operation Mode:", None, QtGui.QApplication.UnicodeUTF8)) - self.operationModeCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Basico", None, QtGui.QApplication.UnicodeUTF8)) - self.operationModeCmbBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Avanzado", None, QtGui.QApplication.UnicodeUTF8)) - self.dataYearLine.setText(QtGui.QApplication.translate("MainWindow", "Year:", None, QtGui.QApplication.UnicodeUTF8)) + self.dataOperationModeline.setText(QtGui.QApplication.translate("MainWindow", "Project Configuration:", None, QtGui.QApplication.UnicodeUTF8)) self.dataStartLine.setText(QtGui.QApplication.translate("MainWindow", "Start date :", None, QtGui.QApplication.UnicodeUTF8)) self.dataEndline.setText(QtGui.QApplication.translate("MainWindow", "End date :", None, QtGui.QApplication.UnicodeUTF8)) self.LTReferenceRdBtn.setText(QtGui.QApplication.translate("MainWindow", "Local time frame of reference", None, QtGui.QApplication.UnicodeUTF8)) @@ -1316,6 +1038,10 @@ class Ui_MainWindow(object): self.removeDCCEB.setText(QtGui.QApplication.translate("MainWindow", "Remove DC", None, QtGui.QApplication.UnicodeUTF8)) self.coherentIntegrationCEB.setText(QtGui.QApplication.translate("MainWindow", "Coherent Integration", None, QtGui.QApplication.UnicodeUTF8)) self.decodeCEB.setText(QtGui.QApplication.translate("MainWindow", "Decodification", None, QtGui.QApplication.UnicodeUTF8)) + self.profileOpVolcob.setItemText(0, QtGui.QApplication.translate("MainWindow", "ProfileList", None, QtGui.QApplication.UnicodeUTF8)) + self.profileOpVolcob.setItemText(1, QtGui.QApplication.translate("MainWindow", "ProfileRangeList", None, QtGui.QApplication.UnicodeUTF8)) + self.selecChannelopVolCEB.setText(QtGui.QApplication.translate("MainWindow", "Select Channels", None, QtGui.QApplication.UnicodeUTF8)) + self.selecHeighopVolCEB.setText(QtGui.QApplication.translate("MainWindow", "Select Heights", None, QtGui.QApplication.UnicodeUTF8)) self.dataopVolOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) self.dataopVolCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_3), QtGui.QApplication.translate("MainWindow", "Operations", None, QtGui.QApplication.UnicodeUTF8)) @@ -1330,24 +1056,24 @@ class Ui_MainWindow(object): self.label_13.setText(QtGui.QApplication.translate("MainWindow", "FTP server", None, QtGui.QApplication.UnicodeUTF8)) self.label_14.setText(QtGui.QApplication.translate("MainWindow", "FTP path", None, QtGui.QApplication.UnicodeUTF8)) self.toolButton_2.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOkBtn_3.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_3.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.dataGraphVolOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.dataGraphVolCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "Graphics", None, QtGui.QApplication.UnicodeUTF8)) self.dataPathlabelOutVol.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) self.dataOutVolPathBrowse.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.dataSufixlabelOutVol.setText(QtGui.QApplication.translate("MainWindow", "Sufix", None, QtGui.QApplication.UnicodeUTF8)) - self.dataoutVolOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_13.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.datasaveVolOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.datasaveVolCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_4), QtGui.QApplication.translate("MainWindow", "Save Data", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_7), QtGui.QApplication.translate("MainWindow", "Voltage", None, QtGui.QApplication.UnicodeUTF8)) self.checkBox_49.setText(QtGui.QApplication.translate("MainWindow", "Remove DC", None, QtGui.QApplication.UnicodeUTF8)) self.checkBox_50.setText(QtGui.QApplication.translate("MainWindow", "Remove Interference", None, QtGui.QApplication.UnicodeUTF8)) self.checkBox_51.setText(QtGui.QApplication.translate("MainWindow", "Integration Incoherent", None, QtGui.QApplication.UnicodeUTF8)) self.checkBox_52.setText(QtGui.QApplication.translate("MainWindow", "Operation 4", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOkBtn_9.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_9.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.dataopSpecOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.dataopSpecCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_8), QtGui.QApplication.translate("MainWindow", "Operations", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_11.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.dataGraphSpecCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.label_80.setText(QtGui.QApplication.translate("MainWindow", "Type", None, QtGui.QApplication.UnicodeUTF8)) self.label_81.setText(QtGui.QApplication.translate("MainWindow", "Show", None, QtGui.QApplication.UnicodeUTF8)) self.label_82.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8)) @@ -1356,7 +1082,7 @@ class Ui_MainWindow(object): self.label_85.setText(QtGui.QApplication.translate("MainWindow", "CROSS-SPECTRA", None, QtGui.QApplication.UnicodeUTF8)) self.label_86.setText(QtGui.QApplication.translate("MainWindow", "NOISE", None, QtGui.QApplication.UnicodeUTF8)) self.label_100.setText(QtGui.QApplication.translate("MainWindow", "PHASE", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOkBtn_11.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.dataGraphSpecOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) self.label_78.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) self.label_79.setText(QtGui.QApplication.translate("MainWindow", "Prefix", None, QtGui.QApplication.UnicodeUTF8)) self.toolButton_17.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) @@ -1368,13 +1094,13 @@ class Ui_MainWindow(object): self.label_20.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) self.toolButton_5.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.label_21.setText(QtGui.QApplication.translate("MainWindow", "Sufix", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOkBtn_14.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_14.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.datasaveSpecOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.datasaveSpecCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_11), QtGui.QApplication.translate("MainWindow", "Save Data", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), QtGui.QApplication.translate("MainWindow", "Spectra", None, QtGui.QApplication.UnicodeUTF8)) self.checkBox_53.setText(QtGui.QApplication.translate("MainWindow", "Integration", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOkBtn_10.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_10.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.dataopCorrOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.dataopCorrCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_5.setTabText(self.tabWidget_5.indexOf(self.tab_12), QtGui.QApplication.translate("MainWindow", "Operations", None, QtGui.QApplication.UnicodeUTF8)) self.label_95.setText(QtGui.QApplication.translate("MainWindow", "Type", None, QtGui.QApplication.UnicodeUTF8)) self.label_96.setText(QtGui.QApplication.translate("MainWindow", "Show", None, QtGui.QApplication.UnicodeUTF8)) @@ -1386,15 +1112,15 @@ class Ui_MainWindow(object): self.label_99.setText(QtGui.QApplication.translate("MainWindow", "Prefix", None, QtGui.QApplication.UnicodeUTF8)) self.toolButton_20.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.label_91.setText(QtGui.QApplication.translate("MainWindow", "POTENCIA", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOkBtn_12.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_12.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.dataGraphCorrOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.dataGraphCorrCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_5.setTabText(self.tabWidget_5.indexOf(self.tab_13), QtGui.QApplication.translate("MainWindow", "Graphics", None, QtGui.QApplication.UnicodeUTF8)) self.label_17.setText(QtGui.QApplication.translate("MainWindow", "Data format", None, QtGui.QApplication.UnicodeUTF8)) self.label_18.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) self.toolButton_4.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) self.label_19.setText(QtGui.QApplication.translate("MainWindow", "Sufix", None, QtGui.QApplication.UnicodeUTF8)) - self.dataOkBtn_15.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) - self.dataCancelBtn_15.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.datasaveCorrOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.dataSaveCorrCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_5.setTabText(self.tabWidget_5.indexOf(self.tab_14), QtGui.QApplication.translate("MainWindow", "Save Data", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_9), QtGui.QApplication.translate("MainWindow", "Correlation", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Ouput Branch", None, QtGui.QApplication.UnicodeUTF8)) diff --git a/schainpy/gui/viewer/ui_unitprocess.py b/schainpy/gui/viewer/ui_unitprocess.py new file mode 100644 index 0000000..6f85bf6 --- /dev/null +++ b/schainpy/gui/viewer/ui_unitprocess.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\UIDOS\unitProcess.ui' +# +# Created: Thu Dec 06 10:52:30 2012 +# by: PyQt4 UI code generator 4.9.4 +# +# WARNING! All changes made in this file will be lost! + +from PyQt4 import QtCore, QtGui + +try: + _fromUtf8 = QtCore.QString.fromUtf8 +except AttributeError: + _fromUtf8 = lambda s: s + +class Ui_UnitProcess(object): + def setupUi(self, MainWindow): + MainWindow.setObjectName(_fromUtf8("MainWindow")) + MainWindow.resize(207, 181) + self.centralWidget = QtGui.QWidget(MainWindow) + self.centralWidget.setObjectName(_fromUtf8("centralWidget")) + self.comboInputBox = QtGui.QComboBox(self.centralWidget) + self.comboInputBox.setGeometry(QtCore.QRect(80, 50, 111, 22)) + self.comboInputBox.setObjectName(_fromUtf8("comboInputBox")) + self.comboTypeBox = QtGui.QComboBox(self.centralWidget) + self.comboTypeBox.setGeometry(QtCore.QRect(80, 90, 111, 22)) + self.comboTypeBox.setObjectName(_fromUtf8("comboTypeBox")) + self.comboTypeBox.addItem(_fromUtf8("")) + self.comboTypeBox.addItem(_fromUtf8("")) + self.comboTypeBox.addItem(_fromUtf8("")) + self.nameUP = QtGui.QLabel(self.centralWidget) + self.nameUP.setGeometry(QtCore.QRect(50, 20, 111, 21)) + font = QtGui.QFont() + font.setPointSize(10) + font.setBold(False) + font.setWeight(50) + self.nameUP.setFont(font) + self.nameUP.setObjectName(_fromUtf8("nameUP")) + self.inputLabel = QtGui.QLabel(self.centralWidget) + self.inputLabel.setGeometry(QtCore.QRect(20, 50, 51, 31)) + font = QtGui.QFont() + font.setPointSize(10) + font.setBold(False) + font.setWeight(50) + self.inputLabel.setFont(font) + self.inputLabel.setObjectName(_fromUtf8("inputLabel")) + self.typeLabel = QtGui.QLabel(self.centralWidget) + self.typeLabel.setGeometry(QtCore.QRect(20, 90, 51, 21)) + font = QtGui.QFont() + font.setPointSize(10) + font.setBold(False) + font.setWeight(50) + self.typeLabel.setFont(font) + self.typeLabel.setObjectName(_fromUtf8("typeLabel")) + self.unitPokbut = QtGui.QPushButton(self.centralWidget) + self.unitPokbut.setGeometry(QtCore.QRect(80, 130, 51, 23)) + font = QtGui.QFont() + font.setBold(False) + font.setWeight(50) + self.unitPokbut.setFont(font) + self.unitPokbut.setObjectName(_fromUtf8("unitPokbut")) + self.unitPcancelbut = QtGui.QPushButton(self.centralWidget) + self.unitPcancelbut.setGeometry(QtCore.QRect(140, 130, 51, 23)) + font = QtGui.QFont() + font.setBold(False) + font.setWeight(50) + self.unitPcancelbut.setFont(font) + self.unitPcancelbut.setObjectName(_fromUtf8("unitPcancelbut")) + self.unitPsavebut = QtGui.QPushButton(self.centralWidget) + self.unitPsavebut.setGeometry(QtCore.QRect(20, 130, 51, 23)) + font = QtGui.QFont() + font.setBold(False) + font.setWeight(50) + self.unitPsavebut.setFont(font) + self.unitPsavebut.setObjectName(_fromUtf8("unitPsavebut")) + MainWindow.setCentralWidget(self.centralWidget) + + self.retranslateUi(MainWindow) + QtCore.QMetaObject.connectSlotsByName(MainWindow) + + def retranslateUi(self, MainWindow): + MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) + self.comboTypeBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Voltage", None, QtGui.QApplication.UnicodeUTF8)) + self.comboTypeBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Spectra", None, QtGui.QApplication.UnicodeUTF8)) + self.comboTypeBox.setItemText(2, QtGui.QApplication.translate("MainWindow", "Correlation", None, QtGui.QApplication.UnicodeUTF8)) + self.nameUP.setText(QtGui.QApplication.translate("MainWindow", "PROCESSING UNIT", None, QtGui.QApplication.UnicodeUTF8)) + self.inputLabel.setText(QtGui.QApplication.translate("MainWindow", "Input:", None, QtGui.QApplication.UnicodeUTF8)) + self.typeLabel.setText(QtGui.QApplication.translate("MainWindow", "Type:", None, QtGui.QApplication.UnicodeUTF8)) + self.unitPokbut.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.unitPcancelbut.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) + self.unitPsavebut.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8)) + + +if __name__ == "__main__": + import sys + app = QtGui.QApplication(sys.argv) + MainWindow = QtGui.QMainWindow() + ui = Ui_UnitProcess() + ui.setupUi(MainWindow) + MainWindow.show() + sys.exit(app.exec_()) diff --git a/schainpy/gui/viewer/ui_window.py b/schainpy/gui/viewer/ui_window.py index 29341ce..efe81e3 100644 --- a/schainpy/gui/viewer/ui_window.py +++ b/schainpy/gui/viewer/ui_window.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\UIDOS\window.ui' # -# Created: Mon Oct 15 16:44:32 2012 +# Created: Thu Dec 06 08:56:59 2012 # by: PyQt4 UI code generator 4.9.4 # # WARNING! All changes made in this file will be lost! @@ -33,10 +33,10 @@ class Ui_window(object): self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.cancelButton = QtGui.QPushButton(self.centralWidget) - self.cancelButton.setGeometry(QtCore.QRect(110, 160, 51, 23)) + self.cancelButton.setGeometry(QtCore.QRect(150, 160, 51, 23)) self.cancelButton.setObjectName(_fromUtf8("cancelButton")) self.okButton = QtGui.QPushButton(self.centralWidget) - self.okButton.setGeometry(QtCore.QRect(50, 160, 51, 23)) + self.okButton.setGeometry(QtCore.QRect(80, 160, 61, 23)) self.okButton.setObjectName(_fromUtf8("okButton")) self.proyectNameLine = QtGui.QLineEdit(self.centralWidget) self.proyectNameLine.setGeometry(QtCore.QRect(20, 30, 181, 20)) @@ -44,6 +44,9 @@ class Ui_window(object): self.descriptionTextEdit = QtGui.QTextEdit(self.centralWidget) self.descriptionTextEdit.setGeometry(QtCore.QRect(20, 80, 181, 71)) self.descriptionTextEdit.setObjectName(_fromUtf8("descriptionTextEdit")) + self.saveButton = QtGui.QPushButton(self.centralWidget) + self.saveButton.setGeometry(QtCore.QRect(20, 160, 51, 23)) + self.saveButton.setObjectName(_fromUtf8("saveButton")) MainWindow.setCentralWidget(self.centralWidget) self.retranslateUi(MainWindow) @@ -55,6 +58,7 @@ class Ui_window(object): self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Description :", None, QtGui.QApplication.UnicodeUTF8)) self.cancelButton.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) self.okButton.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) + self.saveButton.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__":