Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pedro Henrique Kopper
SADAPMAP
Commits
181f8d7e
Commit
181f8d7e
authored
Nov 01, 2017
by
Alisson Claudino
Browse files
Construído Esqueleto da Interface - Parte 1: Calibração P
parent
1f70bf6f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Interface/CalibracaoP.py
0 → 100644
View file @
181f8d7e
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Resources/CalibracaoP.ui'
#
# Created: Wed Nov 1 20:05:10 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
))
MainWindow
.
setStyleSheet
(
"background-color:rgb(86, 86, 86);
\n
"
"color: rgb(255,255,255);"
)
self
.
centralWidget
=
QtWidgets
.
QWidget
(
MainWindow
)
self
.
centralWidget
.
setAutoFillBackground
(
False
)
self
.
centralWidget
.
setObjectName
(
"centralWidget"
)
self
.
CentralGraph
=
QtWidgets
.
QGraphicsView
(
self
.
centralWidget
)
self
.
CentralGraph
.
setGeometry
(
QtCore
.
QRect
(
420
,
10
,
931
,
621
))
sizePolicy
=
QtWidgets
.
QSizePolicy
(
QtWidgets
.
QSizePolicy
.
Fixed
,
QtWidgets
.
QSizePolicy
.
Fixed
)
sizePolicy
.
setHorizontalStretch
(
0
)
sizePolicy
.
setVerticalStretch
(
0
)
sizePolicy
.
setHeightForWidth
(
self
.
CentralGraph
.
sizePolicy
().
hasHeightForWidth
())
self
.
CentralGraph
.
setSizePolicy
(
sizePolicy
)
self
.
CentralGraph
.
setObjectName
(
"CentralGraph"
)
self
.
escalaBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
escalaBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
10
,
391
,
231
))
self
.
escalaBox
.
setToolTip
(
""
)
self
.
escalaBox
.
setStatusTip
(
""
)
self
.
escalaBox
.
setWhatsThis
(
""
)
self
.
escalaBox
.
setAutoFillBackground
(
False
)
self
.
escalaBox
.
setStyleSheet
(
"background-color: rgb(86, 86, 86);
\n
"
"border:1px solid rgb(194, 8, 6);
\n
"
"color: rgb(255, 255, 255);"
)
self
.
escalaBox
.
setFlat
(
False
)
self
.
escalaBox
.
setCheckable
(
False
)
self
.
escalaBox
.
setObjectName
(
"escalaBox"
)
self
.
forcaBox
=
QtWidgets
.
QGroupBox
(
self
.
escalaBox
)
self
.
forcaBox
.
setGeometry
(
QtCore
.
QRect
(
10
,
30
,
181
,
101
))
self
.
forcaBox
.
setObjectName
(
"forcaBox"
)
self
.
f_max
=
QtWidgets
.
QLineEdit
(
self
.
forcaBox
)
self
.
f_max
.
setGeometry
(
QtCore
.
QRect
(
80
,
30
,
61
,
21
))
self
.
f_max
.
setObjectName
(
"f_max"
)
self
.
f_max_label
=
QtWidgets
.
QLabel
(
self
.
forcaBox
)
self
.
f_max_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
57
,
21
))
self
.
f_max_label
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
f_max_label
.
setObjectName
(
"f_max_label"
)
self
.
f_min_label
=
QtWidgets
.
QLabel
(
self
.
forcaBox
)
self
.
f_min_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
60
,
57
,
21
))
self
.
f_min_label
.
setStyleSheet
(
"border:rgb(255,255,255)"
)
self
.
f_min_label
.
setObjectName
(
"f_min_label"
)
self
.
f_min
=
QtWidgets
.
QLineEdit
(
self
.
forcaBox
)
self
.
f_min
.
setGeometry
(
QtCore
.
QRect
(
80
,
60
,
61
,
21
))
self
.
f_min
.
setObjectName
(
"f_min"
)
self
.
pressaoBox
=
QtWidgets
.
QGroupBox
(
self
.
escalaBox
)
self
.
pressaoBox
.
setGeometry
(
QtCore
.
QRect
(
200
,
30
,
181
,
101
))
self
.
pressaoBox
.
setObjectName
(
"pressaoBox"
)
self
.
p_max
=
QtWidgets
.
QLineEdit
(
self
.
pressaoBox
)
self
.
p_max
.
setGeometry
(
QtCore
.
QRect
(
80
,
30
,
61
,
21
))
self
.
p_max
.
setObjectName
(
"p_max"
)
self
.
p_max_label
=
QtWidgets
.
QLabel
(
self
.
pressaoBox
)
self
.
p_max_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
57
,
21
))
self
.
p_max_label
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
p_max_label
.
setObjectName
(
"p_max_label"
)
self
.
p_min_label
=
QtWidgets
.
QLabel
(
self
.
pressaoBox
)
self
.
p_min_label
.
setGeometry
(
QtCore
.
QRect
(
20
,
60
,
57
,
21
))
self
.
p_min_label
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
p_min_label
.
setObjectName
(
"p_min_label"
)
self
.
p_min
=
QtWidgets
.
QLineEdit
(
self
.
pressaoBox
)
self
.
p_min
.
setGeometry
(
QtCore
.
QRect
(
80
,
60
,
61
,
21
))
self
.
p_min
.
setObjectName
(
"p_min"
)
self
.
forcaBox_2
=
QtWidgets
.
QGroupBox
(
self
.
escalaBox
)
self
.
forcaBox_2
.
setGeometry
(
QtCore
.
QRect
(
100
,
140
,
171
,
81
))
self
.
forcaBox_2
.
setObjectName
(
"forcaBox_2"
)
self
.
f_max_2
=
QtWidgets
.
QLineEdit
(
self
.
forcaBox_2
)
self
.
f_max_2
.
setGeometry
(
QtCore
.
QRect
(
100
,
30
,
61
,
21
))
self
.
f_max_2
.
setObjectName
(
"f_max_2"
)
self
.
f_max_label_2
=
QtWidgets
.
QLabel
(
self
.
forcaBox_2
)
self
.
f_max_label_2
.
setGeometry
(
QtCore
.
QRect
(
10
,
30
,
81
,
21
))
self
.
f_max_label_2
.
setStyleSheet
(
"border: rgb(255,255,255)"
)
self
.
f_max_label_2
.
setObjectName
(
"f_max_label_2"
)
self
.
amostragemBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
amostragemBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
250
,
181
,
71
))
self
.
amostragemBox
.
setStyleSheet
(
"border:1px solid rgb(255, 83, 0);
\n
"
"color: rgb(255,255,255);"
)
self
.
amostragemBox
.
setObjectName
(
"amostragemBox"
)
self
.
amostragemCBox
=
QtWidgets
.
QComboBox
(
self
.
amostragemBox
)
self
.
amostragemCBox
.
setGeometry
(
QtCore
.
QRect
(
50
,
30
,
101
,
27
))
self
.
amostragemCBox
.
setStyleSheet
(
"border-color: rgb(255,255,255);
\n
"
"background-color: rgb(169, 169, 169);
\n
"
""
)
self
.
amostragemCBox
.
setObjectName
(
"amostragemCBox"
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
amostragemCBox
.
addItem
(
""
)
self
.
cronometroBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
cronometroBox
.
setGeometry
(
QtCore
.
QRect
(
20
,
330
,
381
,
171
))
self
.
cronometroBox
.
setStyleSheet
(
"border:1px solid rgb(123, 0, 129);"
)
self
.
cronometroBox
.
setObjectName
(
"cronometroBox"
)
self
.
timerButton
=
QtWidgets
.
QPushButton
(
self
.
cronometroBox
)
self
.
timerButton
.
setGeometry
(
QtCore
.
QRect
(
140
,
130
,
61
,
31
))
self
.
timerButton
.
setObjectName
(
"timerButton"
)
self
.
stopTimerButton
=
QtWidgets
.
QPushButton
(
self
.
cronometroBox
)
self
.
stopTimerButton
.
setGeometry
(
QtCore
.
QRect
(
140
,
30
,
61
,
31
))
self
.
stopTimerButton
.
setObjectName
(
"stopTimerButton"
)
self
.
groupBox_2
=
QtWidgets
.
QGroupBox
(
self
.
cronometroBox
)
self
.
groupBox_2
.
setGeometry
(
QtCore
.
QRect
(
10
,
30
,
120
,
131
))
self
.
groupBox_2
.
setObjectName
(
"groupBox_2"
)
self
.
cronometroLabel
=
QtWidgets
.
QLabel
(
self
.
groupBox_2
)
self
.
cronometroLabel
.
setGeometry
(
QtCore
.
QRect
(
20
,
60
,
81
,
31
))
self
.
cronometroLabel
.
setObjectName
(
"cronometroLabel"
)
self
.
groupBox_3
=
QtWidgets
.
QGroupBox
(
self
.
cronometroBox
)
self
.
groupBox_3
.
setGeometry
(
QtCore
.
QRect
(
220
,
10
,
151
,
71
))
self
.
groupBox_3
.
setObjectName
(
"groupBox_3"
)
self
.
label
=
QtWidgets
.
QLabel
(
self
.
groupBox_3
)
self
.
label
.
setGeometry
(
QtCore
.
QRect
(
30
,
30
,
91
,
31
))
self
.
label
.
setStyleSheet
(
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
label
.
setObjectName
(
"label"
)
self
.
groupBox_4
=
QtWidgets
.
QGroupBox
(
self
.
cronometroBox
)
self
.
groupBox_4
.
setGeometry
(
QtCore
.
QRect
(
220
,
90
,
151
,
71
))
self
.
groupBox_4
.
setObjectName
(
"groupBox_4"
)
self
.
label_2
=
QtWidgets
.
QLabel
(
self
.
groupBox_4
)
self
.
label_2
.
setGeometry
(
QtCore
.
QRect
(
30
,
30
,
91
,
31
))
self
.
label_2
.
setStyleSheet
(
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
label_2
.
setObjectName
(
"label_2"
)
self
.
stopTimerButton_2
=
QtWidgets
.
QPushButton
(
self
.
cronometroBox
)
self
.
stopTimerButton_2
.
setGeometry
(
QtCore
.
QRect
(
140
,
80
,
61
,
31
))
self
.
stopTimerButton_2
.
setObjectName
(
"stopTimerButton_2"
)
self
.
groupBox
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
groupBox
.
setGeometry
(
QtCore
.
QRect
(
210
,
250
,
191
,
71
))
self
.
groupBox
.
setStyleSheet
(
"border: 1px solid rgb(27, 144, 0);"
)
self
.
groupBox
.
setObjectName
(
"groupBox"
)
self
.
lineEdit
=
QtWidgets
.
QLineEdit
(
self
.
groupBox
)
self
.
lineEdit
.
setGeometry
(
QtCore
.
QRect
(
50
,
20
,
111
,
31
))
self
.
lineEdit
.
setStyleSheet
(
"font: 12pt
\"
Noto Serif
\"
;"
)
self
.
lineEdit
.
setObjectName
(
"lineEdit"
)
self
.
groupBox_5
=
QtWidgets
.
QGroupBox
(
self
.
centralWidget
)
self
.
groupBox_5
.
setGeometry
(
QtCore
.
QRect
(
20
,
510
,
381
,
111
))
self
.
groupBox_5
.
setStyleSheet
(
"border: 1px solid rgb(26, 149, 172)"
)
self
.
groupBox_5
.
setObjectName
(
"groupBox_5"
)
self
.
groupBox_6
=
QtWidgets
.
QGroupBox
(
self
.
groupBox_5
)
self
.
groupBox_6
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
161
,
71
))
self
.
groupBox_6
.
setObjectName
(
"groupBox_6"
)
self
.
forcaLabel
=
QtWidgets
.
QLabel
(
self
.
groupBox_6
)
self
.
forcaLabel
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
121
,
31
))
self
.
forcaLabel
.
setStyleSheet
(
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
forcaLabel
.
setObjectName
(
"forcaLabel"
)
self
.
groupBox_7
=
QtWidgets
.
QGroupBox
(
self
.
groupBox_5
)
self
.
groupBox_7
.
setGeometry
(
QtCore
.
QRect
(
200
,
30
,
161
,
71
))
self
.
groupBox_7
.
setObjectName
(
"groupBox_7"
)
self
.
calibranteLabel
=
QtWidgets
.
QLabel
(
self
.
groupBox_7
)
self
.
calibranteLabel
.
setGeometry
(
QtCore
.
QRect
(
20
,
30
,
131
,
31
))
self
.
calibranteLabel
.
setStyleSheet
(
"font: 14pt
\"
Noto Serif
\"
;"
)
self
.
calibranteLabel
.
setObjectName
(
"calibranteLabel"
)
self
.
label_5
=
QtWidgets
.
QLabel
(
self
.
centralWidget
)
self
.
label_5
.
setGeometry
(
QtCore
.
QRect
(
20
,
630
,
111
,
16
))
self
.
label_5
.
setObjectName
(
"label_5"
)
self
.
label_6
=
QtWidgets
.
QLabel
(
self
.
centralWidget
)
self
.
label_6
.
setGeometry
(
QtCore
.
QRect
(
140
,
630
,
241
,
16
))
self
.
label_6
.
setObjectName
(
"label_6"
)
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
.
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
.
setIconVisibleInMenu
(
True
)
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: Etapa 1 - Calibração de Pressão"
))
self
.
escalaBox
.
setTitle
(
_translate
(
"MainWindow"
,
"Escalas de Visualização (Range)"
))
self
.
forcaBox
.
setTitle
(
_translate
(
"MainWindow"
,
"Força"
))
self
.
f_max_label
.
setText
(
_translate
(
"MainWindow"
,
"Máximo:"
))
self
.
f_min_label
.
setText
(
_translate
(
"MainWindow"
,
"Mínimo:"
))
self
.
pressaoBox
.
setTitle
(
_translate
(
"MainWindow"
,
"Tensão no Calibrante"
))
self
.
p_max_label
.
setText
(
_translate
(
"MainWindow"
,
"Máximo:"
))
self
.
p_min_label
.
setText
(
_translate
(
"MainWindow"
,
"Mínimo:"
))
self
.
forcaBox_2
.
setTitle
(
_translate
(
"MainWindow"
,
"Tempo"
))
self
.
f_max_label_2
.
setText
(
_translate
(
"MainWindow"
,
"Intervalo (s):"
))
self
.
amostragemBox
.
setTitle
(
_translate
(
"MainWindow"
,
"Amostragem"
))
self
.
amostragemCBox
.
setItemText
(
0
,
_translate
(
"MainWindow"
,
"100 mseg"
))
self
.
amostragemCBox
.
setItemText
(
1
,
_translate
(
"MainWindow"
,
"200 mseg"
))
self
.
amostragemCBox
.
setItemText
(
2
,
_translate
(
"MainWindow"
,
"500 mseg"
))
self
.
amostragemCBox
.
setItemText
(
3
,
_translate
(
"MainWindow"
,
"1 seg"
))
self
.
amostragemCBox
.
setItemText
(
4
,
_translate
(
"MainWindow"
,
"1.5 seg"
))
self
.
amostragemCBox
.
setItemText
(
5
,
_translate
(
"MainWindow"
,
"2 seg"
))
self
.
amostragemCBox
.
setItemText
(
6
,
_translate
(
"MainWindow"
,
"2.5 seg"
))
self
.
amostragemCBox
.
setItemText
(
7
,
_translate
(
"MainWindow"
,
"5 seg"
))
self
.
amostragemCBox
.
setItemText
(
8
,
_translate
(
"MainWindow"
,
"10 seg"
))
self
.
cronometroBox
.
setTitle
(
_translate
(
"MainWindow"
,
"Timer"
))
self
.
timerButton
.
setText
(
_translate
(
"MainWindow"
,
"Opções"
))
self
.
stopTimerButton
.
setText
(
_translate
(
"MainWindow"
,
"Iniciar"
))
self
.
groupBox_2
.
setTitle
(
_translate
(
"MainWindow"
,
"Cronômetro"
))
self
.
cronometroLabel
.
setText
(
_translate
(
"MainWindow"
,
"10.2674 s"
))
self
.
groupBox_3
.
setTitle
(
_translate
(
"MainWindow"
,
"Horário de Início"
))
self
.
label
.
setText
(
_translate
(
"MainWindow"
,
"16:30:15"
))
self
.
groupBox_4
.
setTitle
(
_translate
(
"MainWindow"
,
"Horário Atual"
))
self
.
label_2
.
setText
(
_translate
(
"MainWindow"
,
"17:05:56"
))
self
.
stopTimerButton_2
.
setText
(
_translate
(
"MainWindow"
,
"Parar"
))
self
.
groupBox
.
setTitle
(
_translate
(
"MainWindow"
,
"Prensa"
))
self
.
lineEdit
.
setText
(
_translate
(
"MainWindow"
,
"Pr 400 Tonf"
))
self
.
groupBox_5
.
setTitle
(
_translate
(
"MainWindow"
,
"Valores Absolutos"
))
self
.
groupBox_6
.
setTitle
(
_translate
(
"MainWindow"
,
"Força"
))
self
.
forcaLabel
.
setText
(
_translate
(
"MainWindow"
,
"-42.679 Tonf"
))
self
.
groupBox_7
.
setTitle
(
_translate
(
"MainWindow"
,
"Tensão no Calibrante"
))
self
.
calibranteLabel
.
setText
(
_translate
(
"MainWindow"
,
"-23.804 mV"
))
self
.
label_5
.
setText
(
_translate
(
"MainWindow"
,
"Arquivo Salvo em:"
))
self
.
label_6
.
setText
(
_translate
(
"MainWindow"
,
"/home/LAPMA/Pressao/1025565.pre"
))
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
)
\ No newline at end of file
Interface/CalibracaoT.py
0 → 100644
View file @
181f8d7e
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CalibracaoT.ui'
#
# Created: Wed Nov 1 15:33:53 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
(
800
,
600
)
self
.
menubar
=
QtWidgets
.
QMenuBar
(
MainWindow
)
self
.
menubar
.
setObjectName
(
"menubar"
)
MainWindow
.
setMenuBar
(
self
.
menubar
)
self
.
centralwidget
=
QtWidgets
.
QWidget
(
MainWindow
)
self
.
centralwidget
.
setObjectName
(
"centralwidget"
)
MainWindow
.
setCentralWidget
(
self
.
centralwidget
)
self
.
statusbar
=
QtWidgets
.
QStatusBar
(
MainWindow
)
self
.
statusbar
.
setObjectName
(
"statusbar"
)
MainWindow
.
setStatusBar
(
self
.
statusbar
)
self
.
retranslateUi
(
MainWindow
)
QtCore
.
QMetaObject
.
connectSlotsByName
(
MainWindow
)
def
retranslateUi
(
self
,
MainWindow
):
_translate
=
QtCore
.
QCoreApplication
.
translate
MainWindow
.
setWindowTitle
(
_translate
(
"MainWindow"
,
"MainWindow"
))
Interface/Processamento.py
0 → 100644
View file @
181f8d7e
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Processamento.ui'
#
# Created: Wed Nov 1 15:34:09 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
(
800
,
600
)
self
.
centralwidget
=
QtWidgets
.
QWidget
(
MainWindow
)
self
.
centralwidget
.
setObjectName
(
"centralwidget"
)
MainWindow
.
setCentralWidget
(
self
.
centralwidget
)
self
.
menubar
=
QtWidgets
.
QMenuBar
(
MainWindow
)
self
.
menubar
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
800
,
23
))
self
.
menubar
.
setObjectName
(
"menubar"
)
MainWindow
.
setMenuBar
(
self
.
menubar
)
self
.
statusbar
=
QtWidgets
.
QStatusBar
(
MainWindow
)
self
.
statusbar
.
setObjectName
(
"statusbar"
)
MainWindow
.
setStatusBar
(
self
.
statusbar
)
self
.
retranslateUi
(
MainWindow
)
QtCore
.
QMetaObject
.
connectSlotsByName
(
MainWindow
)
def
retranslateUi
(
self
,
MainWindow
):
_translate
=
QtCore
.
QCoreApplication
.
translate
MainWindow
.
setWindowTitle
(
_translate
(
"MainWindow"
,
"MainWindow"
))
Interface/Resources/CalibracaoP.ui
View file @
181f8d7e
...
...
@@ -17,29 +17,39 @@
</size>
</property>
<property
name=
"windowTitle"
>
<string>
SADAMAP - Análise de Dados
</string>
<string>
SADAMAP - Análise de Dados: Etapa 1 - Calibração de Pressão
</string>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color:rgb(86, 86, 86);
color: rgb(255,255,255);
</string>
</property>
<widget
class=
"QWidget"
name=
"centralWidget"
>
<property
name=
"autoFillBackground"
>
<bool>
tru
e
</bool>
<bool>
fals
e
</bool>
</property>
<widget
class=
"QGraphicsView"
name=
"CentralGraph"
>
<property
name=
"geometry"
>
<rect>
<x>
4
1
0
</x>
<y>
3
0
</y>
<width>
9
2
1
</width>
<height>
57
1
</height>
<x>
4
2
0
</x>
<y>
1
0
</y>
<width>
9
3
1
</width>
<height>
62
1
</height>
</rect>
</property>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Fixed"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
<widget
class=
"QGroupBox"
name=
"
group
Box"
>
<widget
class=
"QGroupBox"
name=
"
escala
Box"
>
<property
name=
"geometry"
>
<rect>
<x>
4
0
</x>
<y>
3
0
</y>
<width>
16
1
</width>
<height>
1
21
</height>
<x>
2
0
</x>
<y>
1
0
</y>
<width>
39
1
</width>
<height>
2
3
1
</height>
</rect>
</property>
<property
name=
"toolTip"
>
...
...
@@ -52,10 +62,15 @@
<string
notr=
"true"
/>
</property>
<property
name=
"autoFillBackground"
>
<bool>
true
</bool>
<bool>
false
</bool>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color: rgb(86, 86, 86);
border:1px solid rgb(194, 8, 6);
color: rgb(255, 255, 255);
</string>
</property>
<property
name=
"title"
>
<string>
Escalas
</string>
<string>
Escalas
de Visualização (Range)
</string>
</property>
<property
name=
"flat"
>
<bool>
false
</bool>
...
...
@@ -63,31 +78,522 @@
<property
name=
"checkable"
>
<bool>
false
</bool>
</property>
<widget
class=
"Q
Label"
name=
"label
"
>
<widget
class=
"Q
GroupBox"
name=
"forcaBox
"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<x>
10
</x>
<y>
30
</y>
<width>
181
</width>
<height>
101
</height>
</rect>
</property>
<property
name=
"title"
>
<string>
Força
</string>
</property>
<widget
class=
"QLineEdit"
name=
"f_max"
>
<property
name=
"geometry"
>
<rect>
<x>
80
</x>
<y>
30
</y>
<width>
61
</width>
<height>
21
</height>
</rect>
</property>
</widget>
<widget
class=
"QLabel"
name=
"f_max_label"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
30
</y>
<width>
57
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border: rgb(255,255,255)
</string>
</property>
<property
name=
"text"
>
<string>
Máximo:
</string>
</property>
</widget>
<widget
class=
"QLabel"
name=
"f_min_label"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
60
</y>
<width>
57
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border:rgb(255,255,255)
</string>
</property>
<property
name=
"text"
>
<string>
Mínimo:
</string>
</property>
</widget>
<widget
class=
"QLineEdit"
name=
"f_min"
>
<property
name=
"geometry"
>
<rect>
<x>
80
</x>
<y>
60
</y>
<width>
61
</width>
<height>
21
</height>
</rect>
</property>
</widget>
</widget>
<widget
class=
"QGroupBox"
name=
"pressaoBox"
>
<property
name=
"geometry"
>
<rect>
<x>
200
</x>
<y>
30
</y>
<width>
181
</width>
<height>
101
</height>
</rect>
</property>
<property
name=
"title"
>
<string>
Tensão no Calibrante
</string>
</property>
<widget
class=
"QLineEdit"
name=
"p_max"
>
<property
name=
"geometry"
>
<rect>
<x>
80
</x>
<y>
30
</y>
<width>
61
</width>
<height>
21
</height>
</rect>
</property>
</widget>
<widget
class=
"QLabel"
name=
"p_max_label"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
30
</y>
<width>
57
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border: rgb(255,255,255)
</string>
</property>
<property
name=
"text"
>
<string>
Máximo:
</string>
</property>
</widget>
<widget
class=
"QLabel"
name=
"p_min_label"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
60
</y>
<width>
57
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border: rgb(255,255,255)
</string>
</property>
<property
name=
"text"
>
<string>
Mínimo:
</string>
</property>
</widget>
<widget
class=
"QLineEdit"
name=
"p_min"
>
<property
name=
"geometry"
>
<rect>
<x>
80
</x>
<y>
60
</y>
<width>
61
</width>
<height>
21
</height>
</rect>
</property>
</widget>
</widget>
<widget
class=
"QGroupBox"
name=
"forcaBox_2"
>
<property
name=
"geometry"
>
<rect>
<x>
100
</x>
<y>
140
</y>
<width>
171
</width>
<height>
81
</height>
</rect>
</property>
<property
name=
"title"
>
<string>
Tempo
</string>
</property>
<widget
class=
"QLineEdit"
name=
"f_max_2"
>
<property
name=
"geometry"
>
<rect>
<x>
100
</x>
<y>
30
</y>
<width>
61
</width>
<height>
21
</height>
</rect>
</property>
</widget>
<widget
class=
"QLabel"
name=
"f_max_label_2"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
30
</y>
<width>
81
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border: rgb(255,255,255)
</string>
</property>
<property
name=
"text"
>
<string>
Intervalo (s):
</string>
</property>
</widget>
</widget>
</widget>
<widget
class=
"QGroupBox"
name=
"amostragemBox"
>
<property
name=
"geometry"
>
<rect>
<x>
20
</x>
<y>
250
</y>
<width>
181
</width>
<height>
71
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border:1px solid rgb(255, 83, 0);
color: rgb(255,255,255);
</string>