fix bugs
This commit is contained in:
parent
71cc0c4f1a
commit
6c908697bf
@ -123,8 +123,6 @@ void Acceleration::Init() {
|
||||
ui->checkBox_enable_10->setChecked(variable_ptr->freband_output[9].enable);
|
||||
ui->lineEdit_start_10->setText(QString::number(variable_ptr->freband_output[9].start));
|
||||
ui->lineEdit_end_10->setText(QString::number(variable_ptr->freband_output[9].end));
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Acceleration::on_pushButton_confirm_clicked() {
|
||||
|
@ -403,7 +403,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_8">
|
||||
<attribute name="title">
|
||||
@ -414,8 +414,8 @@
|
||||
<rect>
|
||||
<x>200</x>
|
||||
<y>150</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -427,8 +427,8 @@
|
||||
<rect>
|
||||
<x>200</x>
|
||||
<y>50</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>81</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -492,8 +492,8 @@
|
||||
<rect>
|
||||
<x>200</x>
|
||||
<y>100</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>81</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -651,13 +651,12 @@
|
||||
<rect>
|
||||
<x>90</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> 等级
|
||||
(um)</string>
|
||||
<string> 等级</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_41">
|
||||
@ -665,13 +664,12 @@
|
||||
<rect>
|
||||
<x>170</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>回差
|
||||
(um)</string>
|
||||
<string>回差</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_42">
|
||||
@ -679,13 +677,12 @@
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>延时
|
||||
(um)</string>
|
||||
<string>延时</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_43">
|
||||
@ -693,7 +690,7 @@
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -706,7 +703,7 @@
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1134,6 +1131,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_5">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1147,6 +1147,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_5">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1157,6 +1160,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_5">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1167,6 +1173,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_6">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1180,6 +1189,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_6">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1190,6 +1202,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_6">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1200,6 +1215,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_7">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1213,6 +1231,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_7">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1223,6 +1244,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_7">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1233,6 +1257,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_8">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1246,6 +1273,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_8">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1256,6 +1286,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_8">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1266,6 +1299,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_9">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1279,6 +1315,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_9">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1289,6 +1328,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_9">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1299,6 +1341,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_10">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1312,6 +1357,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_10">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1322,6 +1370,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_10">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
|
@ -240,7 +240,7 @@ typedef enum {
|
||||
kVibRackTMR = 1 // 三冗余
|
||||
} VibRackType;
|
||||
|
||||
typedef struct {
|
||||
typedef struct SeismicMonitor_{
|
||||
int id;
|
||||
QString point_name;
|
||||
QString chan_id;
|
||||
@ -260,6 +260,13 @@ typedef struct {
|
||||
int keyphase_ch;
|
||||
int sensitivity_unit;
|
||||
float signal_sensitivity;
|
||||
SeismicMonitor_(){
|
||||
standby = false;
|
||||
active = false;
|
||||
normal_voltage_high = 20;
|
||||
normal_voltage_low = -20;
|
||||
signal_sensitivity = 8;
|
||||
}
|
||||
} SeismicMonitor;
|
||||
|
||||
typedef enum {
|
||||
|
@ -56,7 +56,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>通道1 & 通道4</string>
|
||||
<string>通道1 & 通道2</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
|
32
keyphase.ui
32
keyphase.ui
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>660</width>
|
||||
<height>580</height>
|
||||
<width>691</width>
|
||||
<height>598</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -76,7 +76,7 @@
|
||||
<widget class="QLabel" name="label_39">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
<x>326</x>
|
||||
<y>310</y>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
@ -89,7 +89,7 @@
|
||||
<widget class="QPushButton" name="pushButton_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>296</x>
|
||||
<x>322</x>
|
||||
<y>250</y>
|
||||
<width>51</width>
|
||||
<height>32</height>
|
||||
@ -104,7 +104,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>60</y>
|
||||
<width>281</width>
|
||||
<width>301</width>
|
||||
<height>451</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -550,7 +550,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>40</y>
|
||||
<width>251</width>
|
||||
<width>281</width>
|
||||
<height>71</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -717,7 +717,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>130</y>
|
||||
<width>251</width>
|
||||
<width>281</width>
|
||||
<height>181</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -809,7 +809,7 @@
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>90</y>
|
||||
<width>111</width>
|
||||
<width>131</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -822,7 +822,7 @@
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>130</y>
|
||||
<width>101</width>
|
||||
<width>131</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -897,7 +897,7 @@
|
||||
<widget class="QPushButton" name="pushButton_3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>294</x>
|
||||
<x>320</x>
|
||||
<y>360</y>
|
||||
<width>51</width>
|
||||
<height>32</height>
|
||||
@ -926,9 +926,9 @@
|
||||
<widget class="QTabWidget" name="tabWidget_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>350</x>
|
||||
<x>380</x>
|
||||
<y>60</y>
|
||||
<width>281</width>
|
||||
<width>301</width>
|
||||
<height>451</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1374,7 +1374,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>40</y>
|
||||
<width>251</width>
|
||||
<width>281</width>
|
||||
<height>71</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1538,7 +1538,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>130</y>
|
||||
<width>251</width>
|
||||
<width>281</width>
|
||||
<height>181</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1630,7 +1630,7 @@
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>90</y>
|
||||
<width>111</width>
|
||||
<width>131</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1643,7 +1643,7 @@
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>130</y>
|
||||
<width>101</width>
|
||||
<width>121</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
|
||||
#include <QInputDialog>
|
||||
#include "keyphase.h"
|
||||
#include "singlerelay.h"
|
||||
#include "tachometer.h"
|
||||
@ -36,9 +36,6 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
, ui(new Ui::MainWindow) {
|
||||
ui->setupUi(this);
|
||||
// QMenuBar *menuBar = this->menuBar();
|
||||
// this->setMenuBar(menuBar); //添加到对象树
|
||||
// menuBar->addMenu(ui->menu_start);
|
||||
g_version = "1.1";
|
||||
current_slot = -1;
|
||||
tsi_config_file = "";
|
||||
@ -571,12 +568,28 @@ uint8_t calculate_crc(const QByteArray &data) {
|
||||
}
|
||||
void MainWindow::on_pushButton_save_clicked() {
|
||||
|
||||
QString filepath = QFileDialog::getExistingDirectory(this, tr("选择文件夹"), tr(""));
|
||||
if(filepath == "")
|
||||
return;
|
||||
QString file_name = filepath + "\\tsi_config_file.json";
|
||||
ConfigMgr::Instance()->Save(file_name);
|
||||
tsi_config_file = file_name;
|
||||
QString file_name = "";
|
||||
if(tsi_config_file == ""){
|
||||
QString strTips =QString("请输入保存的文件名称");
|
||||
bool ok = false;
|
||||
QString defaultInput = "tsi_config_file";
|
||||
file_name = QInputDialog::getText(this, tr("输入名称对话框"), strTips, QLineEdit::Normal, defaultInput, &ok);
|
||||
if(!ok) return;
|
||||
|
||||
if( file_name == ""){
|
||||
QMessageBox::information(this, QStringLiteral("提示"), QStringLiteral("请输入正确的文件名称!"));
|
||||
return ;
|
||||
}
|
||||
QString filepath = QFileDialog::getExistingDirectory(this, tr("选择文件夹"), tr(""));
|
||||
if(filepath == "")
|
||||
return;
|
||||
file_name = filepath + "\\"+file_name +".json";
|
||||
ConfigMgr::Instance()->Save(file_name);
|
||||
tsi_config_file = file_name;
|
||||
}else {
|
||||
ConfigMgr::Instance()->Save(tsi_config_file);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
@ -598,7 +611,7 @@ void MainWindow::on_pushButton_open_clicked() {
|
||||
return;
|
||||
}
|
||||
QList<QAbstractButton *> buttonList = btnGroup_slot->buttons();
|
||||
for (int i = 0; i < buttonList.count(); i++) {
|
||||
for (int i = 1; i < buttonList.count(); i++) {
|
||||
buttonList[i]->setText("");
|
||||
}
|
||||
for (int i = 0; i < SLOT_NUM; i++) {
|
||||
|
@ -724,7 +724,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>电源板</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
|
@ -464,7 +464,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_8">
|
||||
<attribute name="title">
|
||||
@ -687,8 +687,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> 等级
|
||||
(um)</string>
|
||||
<string> 等级</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_41">
|
||||
@ -701,8 +700,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>回差
|
||||
(um)</string>
|
||||
<string>回差</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_42">
|
||||
@ -715,8 +713,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>延时
|
||||
(um)</string>
|
||||
<string>延时</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_43">
|
||||
@ -724,7 +721,7 @@
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -737,7 +734,7 @@
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1165,6 +1162,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_5">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1178,6 +1178,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_5">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1188,6 +1191,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_5">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1198,6 +1204,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_6">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1211,6 +1220,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_6">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1221,6 +1233,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_6">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1231,6 +1246,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_7">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1244,6 +1262,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_7">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1254,6 +1275,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_7">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1264,6 +1288,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_8">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1277,6 +1304,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_8">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1287,6 +1317,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_8">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1297,6 +1330,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_9">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1310,6 +1346,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_9">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1320,6 +1359,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_9">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
@ -1330,6 +1372,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkBox_enable_10">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
@ -1343,6 +1388,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_end_10">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
@ -1353,6 +1401,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="lineEdit_start_10">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>150</x>
|
||||
|
@ -23,7 +23,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>2</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_5">
|
||||
<attribute name="title">
|
||||
@ -300,7 +300,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_8">
|
||||
<attribute name="title">
|
||||
@ -563,27 +563,25 @@
|
||||
<rect>
|
||||
<x>90</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> 等级
|
||||
(um)</string>
|
||||
<string>等级</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_41">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>170</x>
|
||||
<x>160</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>回差
|
||||
(um)</string>
|
||||
<string>回差</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_42">
|
||||
@ -591,13 +589,12 @@
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>延时
|
||||
(um)</string>
|
||||
<string>延时</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_43">
|
||||
@ -605,7 +602,7 @@
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -618,7 +615,7 @@
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -897,7 +894,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_10">
|
||||
<attribute name="title">
|
||||
@ -908,8 +905,8 @@
|
||||
<rect>
|
||||
<x>210</x>
|
||||
<y>150</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>91</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -921,8 +918,8 @@
|
||||
<rect>
|
||||
<x>210</x>
|
||||
<y>50</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -934,8 +931,8 @@
|
||||
<rect>
|
||||
<x>210</x>
|
||||
<y>100</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>91</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -1160,27 +1157,25 @@
|
||||
<rect>
|
||||
<x>90</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> 等级
|
||||
(um)</string>
|
||||
<string>等级</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_52">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>170</x>
|
||||
<x>160</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>回差
|
||||
(um)</string>
|
||||
<string>回差</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_53">
|
||||
@ -1188,13 +1183,12 @@
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>延时
|
||||
(um)</string>
|
||||
<string>延时</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_54">
|
||||
@ -1202,7 +1196,7 @@
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1215,7 +1209,7 @@
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1486,7 +1480,7 @@
|
||||
<rect>
|
||||
<x>21</x>
|
||||
<y>10</y>
|
||||
<width>105</width>
|
||||
<width>141</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -474,3 +474,31 @@ void Seismic_monitor::DisableKeyphase4(){
|
||||
ui->comboBox_keyphase_ch_4->setEnabled(false);
|
||||
ui->comboBox_keyphase_slot_4->setEnabled(false);
|
||||
}
|
||||
|
||||
void Seismic_monitor::on_comboBox_sensitivity_unit_1_currentTextChanged(const QString &arg1)
|
||||
{
|
||||
QString str = QString("信号灵敏度(mV/%1)").arg(arg1);
|
||||
ui->label_signal_sensitivity_1->setText(str);
|
||||
}
|
||||
|
||||
|
||||
void Seismic_monitor::on_comboBox_sensitivity_unit_2_currentTextChanged(const QString &arg1)
|
||||
{
|
||||
QString str = QString("信号灵敏度(mV/%1)").arg(arg1);
|
||||
ui->label_signal_sensitivity_2->setText(str);
|
||||
}
|
||||
|
||||
|
||||
void Seismic_monitor::on_comboBox_sensitivity_unit_3_currentTextChanged(const QString &arg1)
|
||||
{
|
||||
QString str = QString("信号灵敏度(mV/%1)").arg(arg1);
|
||||
ui->label_signal_sensitivity_3->setText(str);
|
||||
}
|
||||
|
||||
|
||||
void Seismic_monitor::on_comboBox_sensitivity_unit_4_currentTextChanged(const QString &arg1)
|
||||
{
|
||||
QString str = QString("信号灵敏度(mV/%1)").arg(arg1);
|
||||
ui->label_signal_sensitivity_4->setText(str);
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,15 @@ class Seismic_monitor : public QWidget {
|
||||
|
||||
void on_comboBox_transducer_name_4_currentTextChanged(const QString &arg1);
|
||||
|
||||
private:
|
||||
void on_comboBox_sensitivity_unit_1_currentTextChanged(const QString &arg1);
|
||||
|
||||
void on_comboBox_sensitivity_unit_2_currentTextChanged(const QString &arg1);
|
||||
|
||||
void on_comboBox_sensitivity_unit_3_currentTextChanged(const QString &arg1);
|
||||
|
||||
void on_comboBox_sensitivity_unit_4_currentTextChanged(const QString &arg1);
|
||||
|
||||
private:
|
||||
Ui::Seismic_monitor *ui;
|
||||
void UpdateData(std::shared_ptr<VibrationData> vib_data);
|
||||
int card_type;
|
||||
|
@ -280,7 +280,7 @@
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>200</x>
|
||||
<x>220</x>
|
||||
<y>380</y>
|
||||
<width>120</width>
|
||||
<height>81</height>
|
||||
@ -324,7 +324,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>50</y>
|
||||
<width>311</width>
|
||||
<width>341</width>
|
||||
<height>321</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -366,32 +366,32 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴振</string>
|
||||
<string>轴振传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>加速度</string>
|
||||
<string>加速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>速度</string>
|
||||
<string>速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴位移</string>
|
||||
<string>轴位移传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>压力脉动</string>
|
||||
<string>压力脉动传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>DC</string>
|
||||
<string>DC传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@ -507,7 +507,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_13">
|
||||
<widget class="QLabel" name="label_signal_sensitivity_1">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>90</width>
|
||||
@ -804,32 +804,32 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴振</string>
|
||||
<string>轴振传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>加速度</string>
|
||||
<string>加速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>速度</string>
|
||||
<string>速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴位移</string>
|
||||
<string>轴位移传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>压力脉动</string>
|
||||
<string>压力脉动传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>DC</string>
|
||||
<string>DC传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@ -945,7 +945,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_26">
|
||||
<widget class="QLabel" name="label_signal_sensitivity_2">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>90</width>
|
||||
@ -1306,7 +1306,7 @@
|
||||
<widget class="QWidget" name="layoutWidget_4">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<x>150</x>
|
||||
<y>390</y>
|
||||
<width>52</width>
|
||||
<height>75</height>
|
||||
@ -1458,7 +1458,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>50</y>
|
||||
<width>321</width>
|
||||
<width>331</width>
|
||||
<height>321</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -1500,32 +1500,32 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴振</string>
|
||||
<string>轴振传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>加速度</string>
|
||||
<string>加速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>速度</string>
|
||||
<string>速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴位移</string>
|
||||
<string>轴位移传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>压力脉动</string>
|
||||
<string>压力脉动传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>DC</string>
|
||||
<string>DC传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@ -1641,7 +1641,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_28">
|
||||
<widget class="QLabel" name="label_signal_sensitivity_3">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>90</width>
|
||||
@ -1938,32 +1938,32 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴振</string>
|
||||
<string>轴振传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>加速度</string>
|
||||
<string>加速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>速度</string>
|
||||
<string>速度传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>轴位移</string>
|
||||
<string>轴位移传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>压力脉动</string>
|
||||
<string>压力脉动传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>DC</string>
|
||||
<string>DC传感器</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@ -2079,7 +2079,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_29">
|
||||
<widget class="QLabel" name="label_signal_sensitivity_4">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>90</width>
|
||||
|
@ -112,17 +112,29 @@ void SingleRelay::Init(){
|
||||
qDebug() << "i" << i;
|
||||
std::shared_ptr<VibrationData> ptr = std::dynamic_pointer_cast<VibrationData>(cardbase_ptr);
|
||||
for (int var = 0; var < CHANNEL_COUNT; ++var) {
|
||||
std::shared_ptr<VariableBase> variable_base = ptr->GetChannelPtr(var + 1);
|
||||
QString item_data,item_str;
|
||||
if(ptr->alert_danger[var].direct_enable ||
|
||||
ptr->alert_danger[var].x1_ampl_enable ||
|
||||
ptr->alert_danger[var].x2_ampl_enable){
|
||||
item_str = QString("%1 (槽位 %2 通道 %3 警报)").arg(ptr->base_config_[var].point_name).arg(ptr->base_config_[var].chan_id.mid(1,2)).arg(ptr->base_config_[var].chan_id.mid(4,2));
|
||||
if(variable_base->alert_high.enable){
|
||||
item_str = QString("%1 (槽位 %2 通道 %3 警报高)").arg(ptr->base_config_[var].point_name).arg(ptr->base_config_[var].chan_id.mid(1,2)).arg(ptr->base_config_[var].chan_id.mid(4,2));
|
||||
item_data = QString("%1A2").arg(ptr->base_config_[var].chan_id);
|
||||
}
|
||||
channelNameMap[item_data] = item_str;
|
||||
if(variable_base->danger_high.enable){
|
||||
item_str = QString("%1 (槽位 %2 通道 %3 危险高)").arg(ptr->base_config_[var].point_name).arg(ptr->base_config_[var].chan_id.mid(1,2)).arg(ptr->base_config_[var].chan_id.mid(4,2));
|
||||
item_data = QString("%1A1").arg(ptr->base_config_[var].chan_id);
|
||||
}
|
||||
channelNameMap[item_data] = item_str;
|
||||
if(ptr->alert_danger[var].danger_enable){
|
||||
item_str = QString("%1 (槽位 %2 通道 %3 危险)").arg(ptr->base_config_[var].point_name).arg(ptr->base_config_[var].chan_id.mid(1,2)).arg(ptr->base_config_[var].chan_id.mid(4,2));
|
||||
item_data = QString("%1A2").arg(ptr->base_config_[var].chan_id);
|
||||
if(variable_base->alert_low.enable){
|
||||
item_str = QString("%1 (槽位 %2 通道 %3 警报低)").arg(ptr->base_config_[var].point_name).arg(ptr->base_config_[var].chan_id.mid(1,2)).arg(ptr->base_config_[var].chan_id.mid(4,2));
|
||||
item_data = QString("%1A3").arg(ptr->base_config_[var].chan_id);
|
||||
}
|
||||
channelNameMap[item_data] = item_str;
|
||||
if(variable_base->danger_low.enable){
|
||||
item_str = QString("%1 (槽位 %2 通道 %3 危险低)").arg(ptr->base_config_[var].point_name).arg(ptr->base_config_[var].chan_id.mid(1,2)).arg(ptr->base_config_[var].chan_id.mid(4,2));
|
||||
item_data = QString("%1A4").arg(ptr->base_config_[var].chan_id);
|
||||
}
|
||||
if(var == 3){
|
||||
qDebug() << "alert" << variable_base->danger_high.enable<<variable_base->danger_high.enable;
|
||||
}
|
||||
channelNameMap[item_data] = item_str;
|
||||
item_str = QString("%1 (槽位 %2 通道 %3 非OK)").arg(ptr->base_config_[var].point_name).arg(ptr->base_config_[var].chan_id.mid(1,2)).arg(ptr->base_config_[var].chan_id.mid(4,2));
|
||||
@ -162,24 +174,35 @@ void SingleRelay::OnButtonGroup(QAbstractButton *slot_btn) {
|
||||
|
||||
for(int var = 0; var < CHANNEL_COUNT ; ++var){
|
||||
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(button_id);
|
||||
std::shared_ptr<VariableBase> variable_base = ptr->GetChannelPtr(var + 1);
|
||||
if(base_ptr->card_type_ == kCardVibSingle){
|
||||
QString item_data;
|
||||
if(ptr->base_config_[var].standby && (var % 2))
|
||||
continue;
|
||||
if(ptr->alert_danger[var].direct_enable ||
|
||||
ptr->alert_danger[var].x1_ampl_enable ||
|
||||
ptr->alert_danger[var].x2_ampl_enable){
|
||||
QString item_str = QString("%1 (槽位 %3 通道 %4 警报)").arg(ptr->base_config_[var].point_name).arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
if(variable_base->alert_high.enable){
|
||||
QString item_str = QString("%1 (槽位 %3 通道 %4 警报高)").arg(ptr->base_config_[var].point_name).arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
QListWidgetItem *item = new QListWidgetItem(item_str);
|
||||
item_data = QString("S%1C%2A2").arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
item->setData(Qt::UserRole, item_data);
|
||||
list_widget_available->addItem(item);
|
||||
}
|
||||
|
||||
if(variable_base->danger_high.enable){
|
||||
QString item_str = QString("%1 (槽位 %3 通道 %4 危险高)").arg(ptr->base_config_[var].point_name).arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
QListWidgetItem *item = new QListWidgetItem(item_str);
|
||||
item_data = QString("S%1C%2A1").arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
item->setData(Qt::UserRole, item_data);
|
||||
list_widget_available->addItem(item);
|
||||
}
|
||||
|
||||
if(ptr->alert_danger[var].danger_enable){
|
||||
QString item_str = QString("%1 (槽位 %3 通道 %4 危险)").arg(ptr->base_config_[var].point_name).arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
if(variable_base->danger_low.enable){
|
||||
QString item_str = QString("%1 (槽位 %3 通道 %4 危险低)").arg(ptr->base_config_[var].point_name).arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
QListWidgetItem *item = new QListWidgetItem(item_str);
|
||||
item_data = QString("S%1C%2A2").arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
item_data = QString("S%1C%2A4").arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
item->setData(Qt::UserRole, item_data);
|
||||
list_widget_available->addItem(item);
|
||||
}
|
||||
if(variable_base->alert_low.enable){
|
||||
QString item_str = QString("%1 (槽位 %3 通道 %4 警报低)").arg(ptr->base_config_[var].point_name).arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
QListWidgetItem *item = new QListWidgetItem(item_str);
|
||||
item_data = QString("S%1C%2A3").arg(QString::number(button_id, 10).rightJustified(2, '0')).arg(QString::number(var+1, 10).rightJustified(2, '0'));
|
||||
item->setData(Qt::UserRole, item_data);
|
||||
list_widget_available->addItem(item);
|
||||
}
|
||||
@ -425,6 +448,7 @@ ExprValidationResult SingleRelay::validateLogicExpression(const QString& expr) {
|
||||
void SingleRelay::setExpressionToTreeView(QTreeView* treeView, const QString& expr) {
|
||||
int pos = 0;
|
||||
model_Relay->clear();
|
||||
qDebug() << "expr" << expr;
|
||||
ExprNode* root = parseExpression(expr, pos);
|
||||
QStandardItem* rootItem = buildItemTree(root);
|
||||
|
||||
|
27
trust.ui
27
trust.ui
@ -298,8 +298,8 @@
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>50</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>81</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -311,8 +311,8 @@
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>100</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>81</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -481,8 +481,8 @@
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>150</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>81</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -613,8 +613,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> 等级
|
||||
(um)</string>
|
||||
<string>等级</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_41">
|
||||
@ -627,8 +626,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>回差
|
||||
(um)</string>
|
||||
<string>回差</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_42">
|
||||
@ -641,8 +639,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>延时
|
||||
(um)</string>
|
||||
<string>延时</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_43">
|
||||
@ -650,7 +647,7 @@
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -663,7 +660,7 @@
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -904,7 +901,7 @@
|
||||
<rect>
|
||||
<x>21</x>
|
||||
<y>10</y>
|
||||
<width>105</width>
|
||||
<width>131</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
35
velocity.ui
35
velocity.ui
@ -300,7 +300,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_8">
|
||||
<attribute name="title">
|
||||
@ -311,8 +311,8 @@
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>150</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -381,8 +381,8 @@
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>50</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -461,8 +461,8 @@
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>100</y>
|
||||
<width>54</width>
|
||||
<height>12</height>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -563,27 +563,25 @@
|
||||
<rect>
|
||||
<x>90</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> 等级
|
||||
(um)</string>
|
||||
<string>等级</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_41">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>170</x>
|
||||
<x>160</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>回差
|
||||
(um)</string>
|
||||
<string>回差</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_42">
|
||||
@ -591,13 +589,12 @@
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>30</y>
|
||||
<width>31</width>
|
||||
<width>51</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>延时
|
||||
(um)</string>
|
||||
<string>延时</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_43">
|
||||
@ -605,7 +602,7 @@
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -618,7 +615,7 @@
|
||||
<rect>
|
||||
<x>340</x>
|
||||
<y>40</y>
|
||||
<width>31</width>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
Loading…
x
Reference in New Issue
Block a user