Commit 7c70e970 authored by Pedro Henrique Kopper's avatar Pedro Henrique Kopper
Browse files

Rewrite GUI

parent 272fd36c
# Este arquivo define a interface a ser utilizada # Este arquivo define a interface a ser utilizada
device: device:
type: instrument-interface type: mock
location: "/dev/ttyUSB0" location: "/dev/ttyUSB0"
channels: channels:
- id: 0 - id: 0
......
...@@ -7,12 +7,18 @@ ...@@ -7,12 +7,18 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1366</width> <width>1366</width>
<height>756</height> <height>823</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>817</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
...@@ -20,13 +26,18 @@ ...@@ -20,13 +26,18 @@
<string>SADAMAP - Análise de Dados: Etapa 1 - Calibração de Pressão</string> <string>SADAMAP - Análise de Dados: Etapa 1 - Calibração de Pressão</string>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color:rgb(53, 53, 53); <string notr="true">background-color:rgb(250, 250, 250);
color: rgb(255,255,255);
font: normal 11pt &quot;Lato&quot;;
</string> </string>
</property> </property>
<widget class="QWidget" name="centralWidget"> <widget class="QWidget" name="centralWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="autoFillBackground"> <property name="autoFillBackground">
<bool>false</bool> <bool>false</bool>
</property> </property>
...@@ -37,780 +48,509 @@ font: normal 11pt &quot;Lato&quot;; ...@@ -37,780 +48,509 @@ font: normal 11pt &quot;Lato&quot;;
} }
QGroupBox { QGroupBox {
background-color: rgb(65, 65, 65);
border-radius: 4px; border-radius: 4px;
} background-color: rgb(240, 240, 240);
QGroupBox QGroupBox, QLabel { font-weight: bold;
background-color: rgb(70, 70, 70);
}
QGroupBox QLineEdit {
font: bold 13px &quot;FreeMono&quot;;
}</string> }</string>
</property> </property>
<widget class="PlotWidget" name="mainGraph"> <layout class="QGridLayout" name="gridLayout_6">
<property name="geometry"> <item row="0" column="0">
<rect> <widget class="QWidget" name="widget" native="true">
<x>430</x>
<y>10</y>
<width>921</width>
<height>531</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignJustify</set>
</property>
</widget>
<widget class="QGroupBox" name="scaleBox">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>401</width>
<height>221</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>false</bool>
</property>
<property name="styleSheet">
<string notr="true">border: 2px solid rgb(194, 8, 6);</string>
</property>
<property name="title">
<string>Escalas de Visualização (Range)</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<widget class="QGroupBox" name="forceBox">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>181</width>
<height>101</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</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>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
color:rgb(255,255,255);</string>
</property>
<property name="text">
<string>32700</string>
</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>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
color:rgb(255,255,255);</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="pressureBox">
<property name="geometry">
<rect>
<x>210</x>
<y>30</y>
<width>181</width>
<height>101</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</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>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
color:rgb(255,255,255);</string>
</property>
<property name="text">
<string>32700</string>
</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>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
color:rgb(255,255,255);</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="timeGBox">
<property name="geometry">
<rect>
<x>90</x>
<y>140</y>
<width>211</width>
<height>71</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>Tempo</string>
</property>
<widget class="QLineEdit" name="t_max">
<property name="geometry">
<rect>
<x>140</x>
<y>30</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
color:rgb(255,255,255);</string>
</property>
<property name="text">
<string>100</string>
</property>
</widget>
<widget class="QLabel" name="t_max_label">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>131</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: rgb(255,255,255)</string>
</property>
<property name="text">
<string>Intervalo (amostras):</string>
</property>
</widget>
</widget>
</widget>
<widget class="QGroupBox" name="samplingBox">
<property name="geometry">
<rect>
<x>20</x>
<y>250</y>
<width>191</width>
<height>71</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: 2px solid rgb(255, 75, 0);
</string>
</property>
<property name="title">
<string>Amostragem</string>
</property>
<widget class="QComboBox" name="samplingCBox">
<property name="geometry">
<rect>
<x>40</x>
<y>30</y>
<width>101</width>
<height>27</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color:rgb(53, 53, 53)</string>
</property>
<item>
<property name="text">
<string>100 mseg</string>
</property>
</item>
<item>
<property name="text">
<string>200 mseg</string>
</property>
</item>
<item>
<property name="text">
<string>500 mseg</string>
</property>
</item>
<item>
<property name="text">
<string>1 seg</string>
</property>
</item>
<item>
<property name="text">
<string>1.5 seg</string>
</property>
</item>
<item>
<property name="text">
<string>2 seg</string>
</property>
</item>
<item>
<property name="text">
<string>2.5 seg</string>
</property>
</item>
<item>
<property name="text">
<string>5 seg</string>
</property>
</item>
<item>
<property name="text">
<string>10 seg</string>
</property>
</item>
</widget>
</widget>
<widget class="QGroupBox" name="pressNameGBox">
<property name="geometry">
<rect>
<x>220</x>
<y>250</y>
<width>201</width>
<height>71</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: 2px solid rgb(27, 144, 0);
</string>
</property>
<property name="title">
<string>Prensa</string>
</property>
<widget class="QLineEdit" name="pressName">
<property name="geometry">
<rect>
<x>50</x>
<y>30</y>
<width>111</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Noto Serif&quot;;
background-color:rgb(53, 53, 53);
color:rgb(255,255,255);</string>
</property>
<property name="text">
<string>Pr 0 Tonf</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="absValGBox">
<property name="geometry">
<rect>
<x>20</x>
<y>560</y>
<width>401</width>
<height>111</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: 2px solid rgb(26, 149, 172);
</string>
</property>
<property name="title">
<string>Valores Absolutos</string>
</property>
<widget class="QGroupBox" name="forceGBox">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>161</width>
<height>71</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>Força</string>
</property>
<widget class="QLabel" name="forceLabel">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>121</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
color:rgb(255,255,255);
font: 14pt &quot;Noto Serif&quot;;</string>
</property>
<property name="text">
<string>0 Tonf</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="calibratorGBox">
<property name="geometry">
<rect>
<x>220</x>
<y>30</y>
<width>161</width>
<height>71</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>Tensão no Calibrante</string>
</property>
<widget class="QLabel" name="calibratorLabel">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>131</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
color:rgb(255,255,255);
font: 14pt &quot;Noto Serif&quot;;</string>
</property>
<property name="text">
<string>0 mV</string>
</property>
</widget>
</widget>
</widget>
<widget class="QGroupBox" name="cronometroBox">
<property name="geometry">
<rect>
<x>20</x>
<y>340</y>
<width>401</width>
<height>201</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: 2px solid rgb(123, 0, 129);</string>
</property>
<property name="title">
<string>Timer</string>
</property>
<widget class="QGroupBox" name="timerGBox">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>211</width>
<height>71</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>Cronômetro</string>
</property>
<widget class="QLabel" name="timerLabel">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>81</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(80,80,80);
border: 1px solid rgb(255,255,255);
color:rgb(255,255,255);
font: 75 12pt &quot;Noto Serif&quot;;</string>
</property>
<property name="text">
<string>0.00 s</string>
</property>
</widget>
<widget class="QPushButton" name="startTimerButton">
<property name="geometry">
<rect>
<x>130</x>
<y>10</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border: 1px solid rgb(255,255,255);
background-color: rgb(80,80,80);</string>
</property>
<property name="text">
<string>Iniciar</string>
</property>
</widget>
<widget class="QPushButton" name="stopTimerButton">
<property name="geometry">
<rect>
<x>130</x>
<y>40</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<p