Commit 1f70bf6f authored by Alisson Claudino's avatar Alisson Claudino

Adicionados arquivos de layout de interface

parent b01ee3cd
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CalibracaoP.ui'
#
# Created: Mon Oct 30 15:48:28 2017
# by: PyQt5 UI code generator 5.2.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1366, 695)
MainWindow.setMinimumSize(QtCore.QSize(817, 0))
self.centralWidget = QtWidgets.QWidget(MainWindow)
self.centralWidget.setAutoFillBackground(True)
self.centralWidget.setObjectName("centralWidget")
self.CentralGraph = QtWidgets.QGraphicsView(self.centralWidget)
self.CentralGraph.setGeometry(QtCore.QRect(410, 30, 921, 571))
self.CentralGraph.setObjectName("CentralGraph")
self.groupBox = QtWidgets.QGroupBox(self.centralWidget)
self.groupBox.setGeometry(QtCore.QRect(40, 30, 161, 121))
self.groupBox.setAutoFillBackground(True)
self.groupBox.setFlat(False)
self.groupBox.setCheckable(False)
self.groupBox.setObjectName("groupBox")
self.groupBox.setStyleSheet("QLabel { color: green}")
self.label = QtWidgets.QLabel(self.groupBox)
self.label.setGeometry(QtCore.QRect(20, 30, 57, 17))
self.label.setObjectName("label")
self.ForceDisp = QtWidgets.QLabel(self.centralWidget)
self.ForceDisp.setGeometry(QtCore.QRect(60, 210, 57, 17))
self.ForceDisp.setObjectName("ForceDisp")
MainWindow.setCentralWidget(self.centralWidget)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 1366, 25))
self.menuBar.setObjectName("menuBar")
self.Menuzinho = QtWidgets.QMenu(self.menuBar)
self.Menuzinho.setObjectName("Menuzinho")
self.menuEtapa = QtWidgets.QMenu(self.menuBar)
self.menuEtapa.setObjectName("menuEtapa")
MainWindow.setMenuBar(self.menuBar)
self.mainToolBar = QtWidgets.QToolBar(MainWindow)
self.mainToolBar.setObjectName("mainToolBar")
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
self.statusBar = QtWidgets.QStatusBar(MainWindow)
self.statusBar.setObjectName("statusBar")
MainWindow.setStatusBar(self.statusBar)
self.actionCalibra_o_P = QtWidgets.QAction(MainWindow)
self.actionCalibra_o_P.setObjectName("actionCalibra_o_P")
self.actionCalibra_o_T = QtWidgets.QAction(MainWindow)
self.actionCalibra_o_T.setObjectName("actionCalibra_o_T")
self.actionProcessamento = QtWidgets.QAction(MainWindow)
self.actionProcessamento.setObjectName("actionProcessamento")
self.actionAbrir = QtWidgets.QAction(MainWindow)
self.actionAbrir.setObjectName("actionAbrir")
self.actionSalvar = QtWidgets.QAction(MainWindow)
self.actionSalvar.setObjectName("actionSalvar")
self.actionSalvar_Como = QtWidgets.QAction(MainWindow)
self.actionSalvar_Como.setObjectName("actionSalvar_Como")
self.actionSalvar_2 = QtWidgets.QAction(MainWindow)
self.actionSalvar_2.setObjectName("actionSalvar_2")
self.actionSalvar_Como_2 = QtWidgets.QAction(MainWindow)
self.actionSalvar_Como_2.setObjectName("actionSalvar_Como_2")
self.Menuzinho.addAction(self.actionAbrir)
self.Menuzinho.addAction(self.actionSalvar_2)
self.Menuzinho.addAction(self.actionSalvar_Como_2)
self.menuEtapa.addAction(self.actionCalibra_o_P)
self.menuEtapa.addAction(self.actionCalibra_o_T)
self.menuEtapa.addAction(self.actionProcessamento)
self.menuBar.addAction(self.Menuzinho.menuAction())
self.menuBar.addAction(self.menuEtapa.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "SADAMAP - Análise de Dados "))
self.groupBox.setTitle(_translate("MainWindow", "Escalas"))
self.label.setText(_translate("MainWindow", "TextLabel"))
self.ForceDisp.setText(_translate("MainWindow", "TextLabel"))
self.Menuzinho.setTitle(_translate("MainWindow", "Arquivo"))
self.menuEtapa.setTitle(_translate("MainWindow", "Etapa"))
self.actionCalibra_o_P.setText(_translate("MainWindow", "Calibração P"))
self.actionCalibra_o_T.setText(_translate("MainWindow", "Calibração T"))
self.actionProcessamento.setText(_translate("MainWindow", "Processamento"))
self.actionAbrir.setText(_translate("MainWindow", "Abrir"))
self.actionSalvar.setText(_translate("MainWindow", "Salvar"))
self.actionSalvar_Como.setText(_translate("MainWindow", "Salvar Como"))
self.actionSalvar_2.setText(_translate("MainWindow", "Salvar"))
self.actionSalvar_Como_2.setText(_translate("MainWindow", "Salvar Como"))
def sceneSelector(self, scene):
self.CentralGraph.setScene(scene)
self.CentralGraph.setBackgroundBrush(QtCore.Qt.black)
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1366</width>
<height>695</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>817</width>
<height>0</height>
</size>
</property>
<property name="windowTitle">
<string>SADAMAP - Análise de Dados </string>
</property>
<widget class="QWidget" name="centralWidget">
<property name="autoFillBackground">
<bool>true</bool>
</property>
<widget class="QGraphicsView" name="CentralGraph">
<property name="geometry">
<rect>
<x>410</x>
<y>30</y>
<width>921</width>
<height>571</height>
</rect>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>40</x>
<y>30</y>
<width>161</width>
<height>121</height>
</rect>
</property>
<property name="toolTip">
<string notr="true"/>
</property>
<property name="statusTip">
<string notr="true"/>
</property>
<property name="whatsThis">
<string notr="true"/>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="title">
<string>Escalas</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>57</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
<widget class="QLabel" name="ForceDisp">
<property name="geometry">
<rect>
<x>60</x>
<y>210</y>
<width>57</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1366</width>
<height>25</height>
</rect>
</property>
<widget class="QMenu" name="Menuzinho">
<property name="title">
<string>Arquivo</string>
</property>
<addaction name="actionAbrir"/>
<addaction name="actionSalvar_2"/>
<addaction name="actionSalvar_Como_2"/>
</widget>
<widget class="QMenu" name="menuEtapa">
<property name="title">
<string>Etapa</string>
</property>
<addaction name="actionCalibra_o_P"/>
<addaction name="actionCalibra_o_T"/>
<addaction name="actionProcessamento"/>
</widget>
<addaction name="Menuzinho"/>
<addaction name="menuEtapa"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="actionCalibra_o_P">
<property name="text">
<string>Calibração P</string>
</property>
</action>
<action name="actionCalibra_o_T">
<property name="text">
<string>Calibração T</string>
</property>
</action>
<action name="actionProcessamento">
<property name="text">
<string>Processamento</string>
</property>
</action>
<action name="actionAbrir">
<property name="text">
<string>Abrir</string>
</property>
</action>
<action name="actionSalvar">
<property name="text">
<string>Salvar</string>
</property>
</action>
<action name="actionSalvar_Como">
<property name="text">
<string>Salvar Como</string>
</property>
</action>
<action name="actionSalvar_2">
<property name="text">
<string>Salvar</string>
</property>
</action>
<action name="actionSalvar_Como_2">
<property name="text">
<string>Salvar Como</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainWindow</string>
</property>
<widget class="QMenuBar" name="menubar" />
<widget class="QWidget" name="centralwidget" />
<widget class="QStatusBar" name="statusbar" />
</widget>
<pixmapfunction></pixmapfunction>
<connections/>
</ui>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget"/>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>
......@@ -2,7 +2,7 @@ from PyQt5 import QtGui, QtCore, QtWidgets #importação de classes
import pyqtgraph as pg
import serial
import time
from mainwindow import Ui_MainWindow
from CalibracaoP import Ui_MainWindow
ser = serial.Serial('/dev/ttyUSB0', 115200) #Inicialização da Serial com baudrate 115200bps
ser.setDTR(False) #Reset do arduino para reinicio da leitura
......@@ -34,8 +34,8 @@ curve6 = p1.plot(pen='m',name="Sensor 6")
curve7 = p1.plot(pen='c',name="Sensor 7")
curve8 = p1.plot(name="Sensor 8")
window.CentralGraph.setFixedSize(690,550)
layout.setPreferredSize(640,500)
#window.CentralGraph.setFixedSize(690,550)
layout.setPreferredSize(700,450)
y1 = [] #Inicialização da lista dinâmica dos valores de y
y2 = []
y3 = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment