调整ui界面内容

This commit is contained in:
zhangsheng 2025-03-11 16:42:00 +08:00
parent 79290f0fd3
commit 5525e96c9b
18 changed files with 6891 additions and 6197 deletions

View File

@ -56,3 +56,6 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
DISTFILES += \ DISTFILES += \
TSI_Config.pro.user TSI_Config.pro.user
RESOURCES += \
qss.qrc

View File

@ -490,13 +490,13 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>50</y> <y>50</y>
<width>80</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>80</width> <width>16777215</width>
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
@ -548,7 +548,7 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>110</y> <y>110</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
@ -633,7 +633,7 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>180</y> <y>180</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>

View File

@ -2,6 +2,7 @@
#define DATA_CONFIG_H #define DATA_CONFIG_H
#include <QString> #include <QString>
#include <QPushButton> #include <QPushButton>
#include <QLabel>
#include <QList> #include <QList>
typedef unsigned char uint8_t; typedef unsigned char uint8_t;
@ -16,6 +17,7 @@ typedef struct {
QString chan_display; QString chan_display;
QString rack_type; QString rack_type;
QPushButton* slot_btn; QPushButton* slot_btn;
QLabel* slot_label;
}SlotConfig; }SlotConfig;
enum CMTCommand { enum CMTCommand {

View File

@ -6,6 +6,7 @@ KeyPhase::KeyPhase(QWidget *parent)
, ui(new Ui::KeyPhase) , ui(new Ui::KeyPhase)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->widget_body->setProperty("flag", "body");
} }
KeyPhase::~KeyPhase() KeyPhase::~KeyPhase()

View File

@ -6,18 +6,114 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>654</width> <width>660</width>
<height>663</height> <height>686</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>键相配置</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="widget_body" native="true">
<widget class="QPushButton" name="pushButton_8">
<property name="geometry">
<rect>
<x>220</x>
<y>610</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>取 消</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_7">
<property name="geometry">
<rect>
<x>510</x>
<y>610</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>帮 助</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_confirm">
<property name="geometry">
<rect>
<x>130</x>
<y>610</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>确 定</string>
</property>
</widget>
<widget class="QLabel" name="label_39">
<property name="geometry">
<rect>
<x>300</x>
<y>310</y>
<width>41</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string> ===</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_11">
<property name="geometry">
<rect>
<x>320</x>
<y>610</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>测点名称</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>296</x>
<y>250</y>
<width>51</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>===&gt;</string>
</property>
</widget>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>70</y> <y>60</y>
<width>281</width> <width>281</width>
<height>541</height> <height>541</height>
</rect> </rect>
@ -224,7 +320,7 @@
<rect> <rect>
<x>140</x> <x>140</x>
<y>30</y> <y>30</y>
<width>51</width> <width>71</width>
<height>20</height> <height>20</height>
</rect> </rect>
</property> </property>
@ -237,7 +333,7 @@
<rect> <rect>
<x>140</x> <x>140</x>
<y>50</y> <y>50</y>
<width>61</width> <width>81</width>
<height>20</height> <height>20</height>
</rect> </rect>
</property> </property>
@ -393,7 +489,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>60</x> <x>60</x>
<y>328</y> <y>327</y>
<width>51</width> <width>51</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -409,7 +505,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>31</y> <y>30</y>
<width>251</width> <width>251</width>
<height>71</height> <height>71</height>
</rect> </rect>
@ -479,7 +575,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>328</y> <y>327</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -492,7 +588,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>371</y> <y>370</y>
<width>251</width> <width>251</width>
<height>81</height> <height>81</height>
</rect> </rect>
@ -557,7 +653,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>11</y> <y>10</y>
<width>51</width> <width>51</width>
<height>20</height> <height>20</height>
</rect> </rect>
@ -583,7 +679,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>150</x> <x>150</x>
<y>331</y> <y>330</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -746,17 +842,43 @@
</widget> </widget>
</widget> </widget>
</widget> </widget>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>294</x>
<y>360</y>
<width>51</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>&lt;===</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_9">
<property name="geometry">
<rect>
<x>420</x>
<y>610</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>打 印...</string>
</property>
</widget>
<widget class="QTabWidget" name="tabWidget_2"> <widget class="QTabWidget" name="tabWidget_2">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>350</x> <x>350</x>
<y>70</y> <y>60</y>
<width>281</width> <width>281</width>
<height>541</height> <height>541</height>
</rect> </rect>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tab_5"> <widget class="QWidget" name="tab_5">
<attribute name="title"> <attribute name="title">
@ -766,7 +888,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>60</x> <x>60</x>
<y>318</y> <y>327</y>
<width>51</width> <width>51</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -782,7 +904,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>21</y> <y>30</y>
<width>251</width> <width>251</width>
<height>71</height> <height>71</height>
</rect> </rect>
@ -852,7 +974,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>318</y> <y>327</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -865,7 +987,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>361</y> <y>370</y>
<width>251</width> <width>251</width>
<height>81</height> <height>81</height>
</rect> </rect>
@ -930,7 +1052,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>1</y> <y>10</y>
<width>51</width> <width>51</width>
<height>20</height> <height>20</height>
</rect> </rect>
@ -956,7 +1078,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>150</x> <x>150</x>
<y>321</y> <y>330</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -1126,7 +1248,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>60</x> <x>60</x>
<y>328</y> <y>327</y>
<width>51</width> <width>51</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -1142,7 +1264,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>31</y> <y>30</y>
<width>251</width> <width>251</width>
<height>71</height> <height>71</height>
</rect> </rect>
@ -1212,7 +1334,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>328</y> <y>327</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -1225,7 +1347,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>371</y> <y>370</y>
<width>251</width> <width>251</width>
<height>81</height> <height>81</height>
</rect> </rect>
@ -1264,7 +1386,7 @@
<rect> <rect>
<x>140</x> <x>140</x>
<y>30</y> <y>30</y>
<width>51</width> <width>71</width>
<height>20</height> <height>20</height>
</rect> </rect>
</property> </property>
@ -1277,7 +1399,7 @@
<rect> <rect>
<x>140</x> <x>140</x>
<y>50</y> <y>50</y>
<width>61</width> <width>81</width>
<height>20</height> <height>20</height>
</rect> </rect>
</property> </property>
@ -1290,7 +1412,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>11</y> <y>10</y>
<width>51</width> <width>51</width>
<height>20</height> <height>20</height>
</rect> </rect>
@ -1316,7 +1438,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>150</x> <x>150</x>
<y>331</y> <y>330</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -1479,115 +1601,11 @@
</widget> </widget>
</widget> </widget>
</widget> </widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>296</x>
<y>260</y>
<width>51</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>===&gt;</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>294</x>
<y>370</y>
<width>51</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>&lt;===</string>
</property>
</widget>
<widget class="QLabel" name="label_39">
<property name="geometry">
<rect>
<x>300</x>
<y>320</y>
<width>41</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string> ===</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_7">
<property name="geometry">
<rect>
<x>510</x>
<y>620</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>帮 助</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_8">
<property name="geometry">
<rect>
<x>220</x>
<y>620</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>取 消</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_9">
<property name="geometry">
<rect>
<x>420</x>
<y>620</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>打 印...</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_confirm">
<property name="geometry">
<rect>
<x>130</x>
<y>620</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>确 定</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_11">
<property name="geometry">
<rect>
<x>320</x>
<y>620</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>测点名称</string>
</property>
</widget>
<widget class="QWidget" name="layoutWidget"> <widget class="QWidget" name="layoutWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>40</x> <x>40</x>
<y>20</y> <y>10</y>
<width>478</width> <width>478</width>
<height>23</height> <height>23</height>
</rect> </rect>
@ -1659,6 +1677,9 @@
</layout> </layout>
</widget> </widget>
</widget> </widget>
</item>
</layout>
</widget>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View File

@ -29,10 +29,20 @@ MainWindow::MainWindow(QWidget *parent)
QMenuBar* menuBar = this->menuBar(); QMenuBar* menuBar = this->menuBar();
this->setMenuBar(menuBar); //添加到对象树 this->setMenuBar(menuBar); //添加到对象树
menuBar->addMenu(ui->menu_tool); menuBar->addMenu(ui->menu_tool);
ui->widget_body->setProperty("flag", "title");
ui->menuBar->setProperty("flag", "menuBar");
//关联事件过滤器用于双击放大
ui->widget_body->installEventFilter(this);
ui->widget_body->setProperty("flag", "body");
ui->statusBar->setProperty("flag","status");
//this->initStyle();
//添加信号槽 //添加信号槽
QObject::connect(ui->action_realy, &QAction::triggered, this, &MainWindow::onMenuAction_relay); QObject::connect(ui->action_realy, &QAction::triggered, this, &MainWindow::onMenuAction_relay);
slot = -1; slot = -1;
btnGroup_slot = new QButtonGroup(this); btnGroup_slot = new QButtonGroup(this);
btnGroup_slot->addButton(ui->pushButton_slot0);
btnGroup_slot->addButton(ui->pushButton_slot1);
btnGroup_slot->addButton(ui->pushButton_slot2);
btnGroup_slot->addButton(ui->pushButton_slot3); btnGroup_slot->addButton(ui->pushButton_slot3);
btnGroup_slot->addButton(ui->pushButton_slot4); btnGroup_slot->addButton(ui->pushButton_slot4);
btnGroup_slot->addButton(ui->pushButton_slot5); btnGroup_slot->addButton(ui->pushButton_slot5);
@ -46,9 +56,25 @@ MainWindow::MainWindow(QWidget *parent)
btnGroup_slot->addButton(ui->pushButton_slot13); btnGroup_slot->addButton(ui->pushButton_slot13);
btnGroup_slot->addButton(ui->pushButton_slot14); btnGroup_slot->addButton(ui->pushButton_slot14);
btnGroup_slot->addButton(ui->pushButton_slot15); btnGroup_slot->addButton(ui->pushButton_slot15);
btnGroup_slot->addButton(ui->pushButton_slot16);
btnGroup_slot->addButton(ui->pushButton_slot17); list_label.reserve(16);
btnGroup_slot->addButton(ui->pushButton_slot18); list_label.push_back(ui->label_18);
list_label.push_back(ui->label_1);
list_label.push_back(ui->label_2);
list_label.push_back(ui->label_3);
list_label.push_back(ui->label_4);
list_label.push_back(ui->label_5);
list_label.push_back(ui->label_6);
list_label.push_back(ui->label_7);
list_label.push_back(ui->label_8);
list_label.push_back(ui->label_9);
list_label.push_back(ui->label_10);
list_label.push_back(ui->label_11);
list_label.push_back(ui->label_12);
list_label.push_back(ui->label_13);
list_label.push_back(ui->label_14);
list_label.push_back(ui->label_15);
ui->pushButton_slot->setChecked(true); ui->pushButton_slot->setChecked(true);
readJsonFile(QCoreApplication::applicationDirPath() + "\\config\\main.json"); readJsonFile(QCoreApplication::applicationDirPath() + "\\config\\main.json");
@ -70,7 +96,19 @@ MainWindow::~MainWindow()
{ {
delete ui; delete ui;
} }
void MainWindow::initStyle()
{
//加载样式表
QString qss;
QFile file(":/qss/soft.css");
if (file.open(QFile::ReadOnly)) {
qss = QLatin1String(file.readAll());
QString paletteColor = qss.mid(20, 7);
qApp->setPalette(QPalette(paletteColor));
qApp->setStyleSheet(qss);
file.close();
}
}
void MainWindow::readJsonFile(const QString &filePath) void MainWindow::readJsonFile(const QString &filePath)
{ {
// 创建文件对象 // 创建文件对象
@ -113,8 +151,9 @@ void MainWindow::createMenu()
QList<QAbstractButton*> buttonList = btnGroup_slot->buttons(); QList<QAbstractButton*> buttonList = btnGroup_slot->buttons();
for (int i = 0; i < buttonList.count(); i++){ for (int i = 0; i < buttonList.count(); i++){
buttonList[i]->setText(map_slot_config[i].chan_display); buttonList[i]->setText(map_slot_config[i].chan_display);
createMenu(QString("%1").arg(i + 3), (QPushButton*)buttonList[i]); createMenu(QString("%1").arg(i + 1), (QPushButton*)buttonList[i]);
map_slot_config[i].slot_btn = (QPushButton*)buttonList[i]; map_slot_config[i].slot_btn = (QPushButton*)buttonList[i];
map_slot_config[i].slot_label = list_label[i];
// else // else
// createMenuSet(QString("%1").arg(i + 1), (QPushButton*)buttonList[i]); // createMenuSet(QString("%1").arg(i + 1), (QPushButton*)buttonList[i]);
} }
@ -237,6 +276,7 @@ void MainWindow::onMenuActionTriggered()
QString rack_type = action->text().right(action->text().length()-4); QString rack_type = action->text().right(action->text().length()-4);
int button_id = button->objectName().right(button->objectName().length()-15).toInt(); int button_id = button->objectName().right(button->objectName().length()-15).toInt();
qDebug() << slot_type << rack_type << button_id << map_slot_config[button_id + 1].slot_type << map_slot_config[button_id + 2].slot_type << endl; qDebug() << slot_type << rack_type << button_id << map_slot_config[button_id + 1].slot_type << map_slot_config[button_id + 2].slot_type << endl;
map_slot_config[button_id].slot_label->setStyleSheet("QLabel { color :#2980b9; font: bold 16px}");
if(rack_type == "三冗余板卡" && (map_slot_config[button_id].slot_type != 0 || map_slot_config[button_id + 1].slot_type != 0 \ if(rack_type == "三冗余板卡" && (map_slot_config[button_id].slot_type != 0 || map_slot_config[button_id + 1].slot_type != 0 \
|| map_slot_config[button_id + 2].slot_type != 0)){ || map_slot_config[button_id + 2].slot_type != 0)){
QMessageBox::information(this, QStringLiteral("提示"), "不要重叠三冗余板卡配置,请在创建新配置之前移除现有的配置!"); QMessageBox::information(this, QStringLiteral("提示"), "不要重叠三冗余板卡配置,请在创建新配置之前移除现有的配置!");
@ -347,10 +387,11 @@ void MainWindow::onMenuActionTriggered()
map_slot_config[button_id].slot_btn->setText(""); map_slot_config[button_id].slot_btn->setText("");
map_slot_config[button_id].chan_display = ""; map_slot_config[button_id].chan_display = "";
} }
}else if(action->text() == "升级固件"){ }else if(action->text() == "升级固件"){
sendUpgradePackage(button_id - 3); sendUpgradePackage(button_id);
}else if(action->text() == "查看版本"){ }else if(action->text() == "查看版本"){
getVersion(button_id - 3); getVersion(button_id);
} }
break; // 找到按钮后,跳出循环 break; // 找到按钮后,跳出循环
} }
@ -368,6 +409,7 @@ void MainWindow::OnButtonGroup(QAbstractButton * slot_btn)
qDebug() << object_name << endl; qDebug() << object_name << endl;
int button_id = object_name.right(object_name.length()-15).toInt(); int button_id = object_name.right(object_name.length()-15).toInt();
SlotConfig slot_config = map_slot_config[button_id]; SlotConfig slot_config = map_slot_config[button_id];
map_slot_config[button_id].slot_label->setStyleSheet("QLabel { color :#2980b9; font: bold 16px}");
if (slot_config.slot_type == KEYPHASOR){ if (slot_config.slot_type == KEYPHASOR){
KeyPhase *key_phase = new KeyPhase(); KeyPhase *key_phase = new KeyPhase();
key_phase->setWindowModality(Qt::ApplicationModal); key_phase->setWindowModality(Qt::ApplicationModal);

View File

@ -33,6 +33,7 @@ private:
QMenu * button_menu; QMenu * button_menu;
QMap<int,SlotConfig> map_slot_config; QMap<int,SlotConfig> map_slot_config;
QList<QLabel*> list_label;
QButtonGroup * btnGroup_slot = nullptr; QButtonGroup * btnGroup_slot = nullptr;
@ -46,7 +47,7 @@ private:
void readJsonFile(const QString &filePath); void readJsonFile(const QString &filePath);
void sendUpgradePackage(int slot); void sendUpgradePackage(int slot);
void getVersion(int slot); void getVersion(int slot);
void initStyle();
private slots: private slots:
void onMenuAction_relay(); void onMenuAction_relay();
void OnButtonGroup(QAbstractButton *); void OnButtonGroup(QAbstractButton *);

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1072</width> <width>1129</width>
<height>529</height> <height>529</height>
</rect> </rect>
</property> </property>
@ -15,8 +15,23 @@
</property> </property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item> <item>
<widget class="QWidget" name="widget" native="true"> <widget class="QWidget" name="widget_body" native="true">
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<widget class="QWidget" name="widget_2" native="true"> <widget class="QWidget" name="widget_2" native="true">
@ -407,7 +422,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_1">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -429,7 +444,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_2">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -451,7 +466,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_3">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -473,7 +488,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_8"> <widget class="QLabel" name="label_4">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -495,7 +510,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_10"> <widget class="QLabel" name="label_5">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -517,7 +532,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_9"> <widget class="QLabel" name="label_6">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -561,7 +576,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_11"> <widget class="QLabel" name="label_8">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -583,7 +598,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_15"> <widget class="QLabel" name="label_9">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -605,7 +620,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_12"> <widget class="QLabel" name="label_10">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -627,7 +642,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_13"> <widget class="QLabel" name="label_11">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -649,7 +664,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_14"> <widget class="QLabel" name="label_12">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -671,7 +686,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_17"> <widget class="QLabel" name="label_13">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -693,7 +708,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_16"> <widget class="QLabel" name="label_14">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -715,7 +730,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_20"> <widget class="QLabel" name="label_15">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -777,7 +792,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_slot3"> <widget class="QPushButton" name="pushButton_slot0">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -799,7 +814,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_slot4"> <widget class="QPushButton" name="pushButton_slot1">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -821,7 +836,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_slot5"> <widget class="QPushButton" name="pushButton_slot2">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -839,6 +854,63 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="pushButton_slot3">
<property name="minimumSize">
<size>
<width>50</width>
<height>280</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>280</height>
</size>
</property>
<property name="text">
<string>振动</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_slot4">
<property name="minimumSize">
<size>
<width>50</width>
<height>280</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>280</height>
</size>
</property>
<property name="text">
<string>振动</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_slot5">
<property name="minimumSize">
<size>
<width>50</width>
<height>280</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>280</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="pushButton_slot6"> <widget class="QPushButton" name="pushButton_slot6">
<property name="minimumSize"> <property name="minimumSize">
@ -854,7 +926,7 @@
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>振动</string> <string/>
</property> </property>
</widget> </widget>
</item> </item>
@ -873,7 +945,7 @@
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>振动</string> <string/>
</property> </property>
</widget> </widget>
</item> </item>
@ -1029,63 +1101,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="pushButton_slot16">
<property name="minimumSize">
<size>
<width>50</width>
<height>280</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>280</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_slot17">
<property name="minimumSize">
<size>
<width>50</width>
<height>280</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>280</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_slot18">
<property name="minimumSize">
<size>
<width>50</width>
<height>280</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>280</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -1105,7 +1120,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1072</width> <width>1129</width>
<height>21</height> <height>21</height>
</rect> </rect>
</property> </property>

View File

@ -96,75 +96,129 @@
<rect> <rect>
<x>10</x> <x>10</x>
<y>30</y> <y>30</y>
<width>591</width> <width>349</width>
<height>141</height> <height>116</height>
</rect> </rect>
</property> </property>
<property name="title"> <property name="title">
<string>滤波</string> <string>滤波</string>
</property> </property>
<widget class="QLabel" name="label_29"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="geometry">
<rect>
<x>310</x>
<y>70</y>
<width>72</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>30 - 30000Hz</string>
</property>
</widget>
<widget class="QComboBox" name="comboBox_7">
<property name="geometry">
<rect>
<x>225</x>
<y>70</y>
<width>69</width>
<height>20</height>
</rect>
</property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="checkBox_10">
<property name="text"> <property name="text">
<string>30000</string> <string/>
</property> </property>
</item>
</widget> </widget>
<widget class="QLabel" name="label_30"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="label_12">
<x>195</x> <property name="text">
<y>70</y> <string>高通:</string>
<width>21</width>
<height>16</height>
</rect>
</property> </property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_4">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="minimum">
<number>3</number>
</property>
<property name="maximum">
<number>3000</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_33">
<property name="text"> <property name="text">
<string>-</string> <string>-</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_11"> </item>
<property name="geometry"> <item>
<rect> <widget class="QSpinBox" name="spinBox_5">
<x>56</x> <property name="minimumSize">
<y>71</y> <size>
<width>36</width> <width>60</width>
<height>16</height> <height>0</height>
</rect> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="minimum">
<number>3</number>
</property>
<property name="maximum">
<number>3000</number>
</property>
<property name="value">
<number>3000</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_32">
<property name="text">
<string>3 - 3000Hz</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QCheckBox" name="checkBox_11">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_11">
<property name="text"> <property name="text">
<string>低通:</string> <string>低通:</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_2"> <widget class="QComboBox" name="comboBox_2">
<property name="geometry"> <property name="minimumSize">
<rect> <size>
<x>105</x> <width>60</width>
<y>71</y> <height>0</height>
<width>61</width> </size>
<height>20</height>
</rect>
</property> </property>
<item> <item>
<property name="text"> <property name="text">
@ -172,101 +226,74 @@
</property> </property>
</item> </item>
</widget> </widget>
<widget class="QLabel" name="label_12"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="label_30">
<x>56</x>
<y>31</y>
<width>36</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>高通:</string>
</property>
</widget>
<widget class="QLabel" name="label_32">
<property name="geometry">
<rect>
<x>310</x>
<y>30</y>
<width>60</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>3 - 3000Hz</string>
</property>
</widget>
<widget class="QLabel" name="label_33">
<property name="geometry">
<rect>
<x>195</x>
<y>30</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>-</string> <string>-</string>
</property> </property>
</widget> </widget>
<widget class="QSpinBox" name="spinBox_4"> </item>
<property name="geometry"> <item>
<rect> <widget class="QComboBox" name="comboBox_7">
<x>105</x> <property name="minimumSize">
<y>30</y> <size>
<width>61</width> <width>60</width>
<height>22</height> <height>0</height>
</rect> </size>
</property> </property>
<property name="minimum"> <item>
<number>3</number> <property name="text">
<string>30000</string>
</property> </property>
<property name="maximum"> </item>
<number>3000</number> </widget>
</item>
<item>
<widget class="QLabel" name="label_29">
<property name="text">
<string>30 - 30000Hz</string>
</property> </property>
</widget> </widget>
<widget class="QSpinBox" name="spinBox_5"> </item>
<property name="geometry"> <item>
<rect> <spacer name="horizontalSpacer_2">
<x>225</x> <property name="orientation">
<y>30</y> <enum>Qt::Horizontal</enum>
<width>61</width>
<height>22</height>
</rect>
</property> </property>
<property name="minimum"> <property name="sizeHint" stdset="0">
<number>3</number> <size>
<width>40</width>
<height>20</height>
</size>
</property> </property>
<property name="maximum"> </spacer>
<number>3000</number> </item>
</property> </layout>
<property name="value"> </item>
<number>3000</number> <item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QCheckBox" name="checkBox_12">
<property name="text">
<string/>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="label_13"> <widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>56</x>
<y>101</y>
<width>36</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>带通:</string> <string>带通:</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_6"> <widget class="QSpinBox" name="spinBox_6">
<property name="geometry"> <property name="minimumSize">
<rect> <size>
<x>105</x> <width>60</width>
<y>100</y> <height>0</height>
<width>61</width> </size>
<height>22</height>
</rect>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>3</number> <number>3</number>
@ -275,27 +302,21 @@
<number>3000</number> <number>3000</number>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="label_34"> <widget class="QLabel" name="label_34">
<property name="geometry">
<rect>
<x>195</x>
<y>100</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>-</string> <string>-</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_7"> <widget class="QSpinBox" name="spinBox_7">
<property name="geometry"> <property name="minimumSize">
<rect> <size>
<x>225</x> <width>60</width>
<y>100</y> <height>0</height>
<width>61</width> </size>
<height>22</height>
</rect>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>3</number> <number>3</number>
@ -307,58 +328,30 @@
<number>3000</number> <number>3000</number>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="label_35"> <widget class="QLabel" name="label_35">
<property name="geometry">
<rect>
<x>310</x>
<y>100</y>
<width>60</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>3 - 3000Hz</string> <string>3 - 3000Hz</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_10"> </item>
<property name="geometry"> <item>
<rect> <spacer name="horizontalSpacer_3">
<x>20</x> <property name="orientation">
<y>30</y> <enum>Qt::Horizontal</enum>
<width>21</width>
<height>16</height>
</rect>
</property> </property>
<property name="text"> <property name="sizeHint" stdset="0">
<string/> <size>
<width>40</width>
<height>20</height>
</size>
</property> </property>
</widget> </spacer>
<widget class="QCheckBox" name="checkBox_11"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>20</x> </layout>
<y>70</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_12">
<property name="geometry">
<rect>
<x>20</x>
<y>100</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget> </widget>
</widget> </widget>
<widget class="QWidget" name="tab_6"> <widget class="QWidget" name="tab_6">
@ -408,7 +401,7 @@
<rect> <rect>
<x>20</x> <x>20</x>
<y>110</y> <y>110</y>
<width>71</width> <width>81</width>
<height>16</height> <height>16</height>
</rect> </rect>
</property> </property>
@ -421,7 +414,7 @@
<rect> <rect>
<x>20</x> <x>20</x>
<y>180</y> <y>180</y>
<width>71</width> <width>81</width>
<height>16</height> <height>16</height>
</rect> </rect>
</property> </property>
@ -460,10 +453,15 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>50</y> <y>50</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 500 um</string>
</property>
</item>
</widget> </widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_17"> <widget class="QDoubleSpinBox" name="doubleSpinBox_17">
<property name="geometry"> <property name="geometry">
@ -490,10 +488,15 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>110</y> <y>110</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 500 um</string>
</property>
</item>
</widget> </widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_19"> <widget class="QDoubleSpinBox" name="doubleSpinBox_19">
<property name="geometry"> <property name="geometry">
@ -578,20 +581,30 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>180</y> <y>180</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 500 um</string>
</property>
</item>
</widget> </widget>
<widget class="QComboBox" name="comboBox_19"> <widget class="QComboBox" name="comboBox_19">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>130</x> <x>130</x>
<y>80</y> <y>80</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 500 um</string>
</property>
</item>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_21"> <widget class="QCheckBox" name="checkBox_21">
<property name="geometry"> <property name="geometry">
@ -611,10 +624,15 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>240</y> <y>240</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 500 um</string>
</property>
</item>
</widget> </widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_25"> <widget class="QDoubleSpinBox" name="doubleSpinBox_25">
<property name="geometry"> <property name="geometry">
@ -631,10 +649,15 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>270</y> <y>270</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 500 um</string>
</property>
</item>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_22"> <widget class="QCheckBox" name="checkBox_22">
<property name="geometry"> <property name="geometry">
@ -915,6 +938,9 @@
<property name="text"> <property name="text">
<string>2 mA 默认值</string> <string>2 mA 默认值</string>
</property> </property>
<property name="checked">
<bool>true</bool>
</property>
</widget> </widget>
<widget class="QLabel" name="label_85"> <widget class="QLabel" name="label_85">
<property name="geometry"> <property name="geometry">
@ -1015,7 +1041,7 @@
<x>340</x> <x>340</x>
<y>10</y> <y>10</y>
<width>189</width> <width>189</width>
<height>22</height> <height>23</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_11"> <layout class="QHBoxLayout" name="horizontalLayout_11">
@ -1095,7 +1121,7 @@
<x>20</x> <x>20</x>
<y>10</y> <y>10</y>
<width>231</width> <width>231</width>
<height>22</height> <height>23</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_13"> <layout class="QHBoxLayout" name="horizontalLayout_13">

View File

@ -13,7 +13,7 @@ RelaySetting::RelaySetting(QWidget *parent)
, ui(new Ui::RelaySetting) , ui(new Ui::RelaySetting)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->widget_body->setProperty("flag", "body");
readJsonFile(QCoreApplication::applicationDirPath() + "\\config\\main.json"); readJsonFile(QCoreApplication::applicationDirPath() + "\\config\\main.json");
for (int var = 0; var < map_slot_config.size(); ++var) { for (int var = 0; var < map_slot_config.size(); ++var) {

View File

@ -11,11 +11,26 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>继电器设置</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item> <item>
<widget class="QWidget" name="widget_2" native="true"> <widget class="QWidget" name="widget_body" native="true">
<widget class="QWidget" name="layoutWidget"> <widget class="QWidget" name="layoutWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
@ -1312,25 +1327,25 @@
<resources/> <resources/>
<connections/> <connections/>
<buttongroups> <buttongroups>
<buttongroup name="buttonGroup_12"/>
<buttongroup name="buttonGroup_11"/>
<buttongroup name="buttonGroup_10"/>
<buttongroup name="buttonGroup_14"/>
<buttongroup name="buttonGroup_7"/>
<buttongroup name="buttonGroup_8"/>
<buttongroup name="buttonGroup_1"/>
<buttongroup name="buttonGroup_6"/>
<buttongroup name="buttonGroup_3"/>
<buttongroup name="buttonGroup_5"/>
<buttongroup name="buttonGroup_16"/> <buttongroup name="buttonGroup_16"/>
<buttongroup name="buttonGroup_STATUS"/> <buttongroup name="buttonGroup_12"/>
<buttongroup name="buttonGroup_TX_RX"/>
<buttongroup name="buttonGroup_OK"/>
<buttongroup name="buttonGroup_9"/> <buttongroup name="buttonGroup_9"/>
<buttongroup name="buttonGroup_2"/> <buttongroup name="buttonGroup_2"/>
<buttongroup name="buttonGroup_4"/> <buttongroup name="buttonGroup_8"/>
<buttongroup name="buttonGroup_TEST"/> <buttongroup name="buttonGroup_TEST"/>
<buttongroup name="buttonGroup_OK"/> <buttongroup name="buttonGroup_1"/>
<buttongroup name="buttonGroup_3"/>
<buttongroup name="buttonGroup_6"/>
<buttongroup name="buttonGroup_4"/>
<buttongroup name="buttonGroup_7"/>
<buttongroup name="buttonGroup_10"/>
<buttongroup name="buttonGroup_14"/>
<buttongroup name="buttonGroup_11"/>
<buttongroup name="buttonGroup_5"/>
<buttongroup name="buttonGroup_STATUS"/>
<buttongroup name="buttonGroup_15"/> <buttongroup name="buttonGroup_15"/>
<buttongroup name="buttonGroup_TX_RX"/>
<buttongroup name="buttonGroup_13"/> <buttongroup name="buttonGroup_13"/>
</buttongroups> </buttongroups>
</ui> </ui>

View File

@ -5,6 +5,7 @@
#include <QJsonArray> #include <QJsonArray>
#include <QJsonObject> #include <QJsonObject>
#include <QFile> #include <QFile>
#include <QListView>
#include "acceleration.h" #include "acceleration.h"
#include "velocity.h" #include "velocity.h"
#include "radial_vibration.h" #include "radial_vibration.h"
@ -14,6 +15,8 @@ Seismic_monitor::Seismic_monitor(int slot,QWidget *parent) :
ui(new Ui::Seismic_monitor) ui(new Ui::Seismic_monitor)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->widget_body->setProperty("flag", "body");
ui->comboBox_chan_type_1->setView(new QListView());
slot_no = slot; slot_no = slot;
QString slot_no_ = QString("%1").arg(slot_no); QString slot_no_ = QString("%1").arg(slot_no);
ui->label_slot_no->setText(slot_no_); ui->label_slot_no->setText(slot_no_);
@ -223,6 +226,42 @@ void Seismic_monitor::on_pushButton_config_1_clicked()
Acceleration *acceleration = new Acceleration(slot_no,channel,seismic_monitor[i].active); Acceleration *acceleration = new Acceleration(slot_no,channel,seismic_monitor[i].active);
acceleration->setWindowModality(Qt::ApplicationModal); acceleration->setWindowModality(Qt::ApplicationModal);
acceleration->show(); acceleration->show();
}else if(seismic_monitor[i].channel_type == "proximeter"){
channel = 1;
Radial_vibration *radial_vibration = new Radial_vibration();
radial_vibration->setWindowModality(Qt::ApplicationModal);
radial_vibration->show();
}else if(seismic_monitor[i].channel_type == "velocity"){
channel = 1;
Velocity *velocity = new Velocity();
velocity->setWindowModality(Qt::ApplicationModal);
velocity->show();
}
}
}
}
void Seismic_monitor::on_pushButton_config_3_clicked()
{
for (int i = 0 ;i < CHANNLE_COUNT ; i++) {
if(seismic_monitor[i].id == 3){
if(seismic_monitor[i].channel_type == "acceleration"){
channel = 3;
Acceleration *acceleration = new Acceleration(slot_no,channel,seismic_monitor[i].active);
acceleration->setWindowModality(Qt::ApplicationModal);
acceleration->show();
}else if(seismic_monitor[i].channel_type == "proximeter"){
channel = 3;
Radial_vibration *radial_vibration = new Radial_vibration();
radial_vibration->setWindowModality(Qt::ApplicationModal);
radial_vibration->show();
}else if(seismic_monitor[i].channel_type == "velocity"){
channel = 3;
Velocity *velocity = new Velocity();
velocity->setWindowModality(Qt::ApplicationModal);
velocity->show();
} }
} }
} }

View File

@ -24,6 +24,8 @@ private slots:
void on_pushButton_config_1_clicked(); void on_pushButton_config_1_clicked();
void on_pushButton_config_3_clicked();
private: private:
Ui::Seismic_monitor *ui; Ui::Seismic_monitor *ui;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ Tachometer::Tachometer(QWidget *parent)
, ui(new Ui::Tachometer) , ui(new Ui::Tachometer)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->widget_body->setProperty("flag", "body");
} }
Tachometer::~Tachometer() Tachometer::~Tachometer()

View File

@ -6,18 +6,56 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>724</width> <width>774</width>
<height>546</height> <height>637</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Dialog</string>
</property> </property>
<widget class="QWidget" name="widget_body" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>751</width>
<height>611</height>
</rect>
</property>
<widget class="QPushButton" name="pushButton_4">
<property name="geometry">
<rect>
<x>440</x>
<y>550</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>打 印...</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_3">
<property name="geometry">
<rect>
<x>40</x>
<y>90</y>
<width>81</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>通道1激活</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QWidget" name="layoutWidget"> <widget class="QWidget" name="layoutWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>40</x>
<y>10</y> <y>50</y>
<width>478</width> <width>478</width>
<height>23</height> <height>23</height>
</rect> </rect>
@ -61,43 +99,50 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_3"> <widget class="QPushButton" name="pushButton_3">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>350</x>
<y>50</y> <y>550</y>
<width>81</width> <width>71</width>
<height>20</height> <height>32</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string>通道1激活</string> <string>取 消</string>
</property>
<property name="checked">
<bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_4"> <widget class="QPushButton" name="pushButton_6">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>120</x> <x>40</x>
<y>50</y> <y>550</y>
<width>81</width> <width>71</width>
<height>20</height> <height>32</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string>通道2激活</string> <string>确 定</string>
</property> </property>
<property name="checked"> </widget>
<bool>true</bool> <widget class="QPushButton" name="pushButton_9">
<property name="geometry">
<rect>
<x>630</x>
<y>550</y>
<width>91</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>另存为模板</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_5"> <widget class="QCheckBox" name="checkBox_5">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>220</x> <x>240</x>
<y>50</y> <y>90</y>
<width>81</width> <width>81</width>
<height>20</height> <height>20</height>
</rect> </rect>
@ -109,11 +154,37 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="pushButton_5">
<property name="geometry">
<rect>
<x>530</x>
<y>550</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>帮 助</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_7">
<property name="geometry">
<rect>
<x>120</x>
<y>550</y>
<width>101</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>加载预定义模板</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBox_6"> <widget class="QCheckBox" name="checkBox_6">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>320</x> <x>340</x>
<y>50</y> <y>90</y>
<width>81</width> <width>81</width>
<height>20</height> <height>20</height>
</rect> </rect>
@ -125,102 +196,11 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="pushButton_5">
<property name="geometry">
<rect>
<x>510</x>
<y>510</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>帮 助</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>330</x>
<y>510</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>取 消</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_4">
<property name="geometry">
<rect>
<x>420</x>
<y>510</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>打 印...</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_6">
<property name="geometry">
<rect>
<x>20</x>
<y>510</y>
<width>71</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>确 定</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_7">
<property name="geometry">
<rect>
<x>100</x>
<y>510</y>
<width>101</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>加载预定义模板</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_8">
<property name="geometry">
<rect>
<x>220</x>
<y>510</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>测点名称</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_9">
<property name="geometry">
<rect>
<x>610</x>
<y>510</y>
<width>91</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>另存为模板</string>
</property>
</widget>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>40</x>
<y>80</y> <y>120</y>
<width>691</width> <width>691</width>
<height>411</height> <height>411</height>
</rect> </rect>
@ -470,7 +450,7 @@
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>340</x> <x>310</x>
<y>130</y> <y>130</y>
<width>371</width> <width>371</width>
<height>131</height> <height>131</height>
@ -583,7 +563,7 @@
<widget class="QGroupBox" name="groupBox_6"> <widget class="QGroupBox" name="groupBox_6">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>340</x> <x>310</x>
<y>10</y> <y>10</y>
<width>191</width> <width>191</width>
<height>91</height> <height>91</height>
@ -629,7 +609,7 @@
<widget class="QGroupBox" name="groupBox_5"> <widget class="QGroupBox" name="groupBox_5">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>340</x> <x>310</x>
<y>280</y> <y>280</y>
<width>371</width> <width>371</width>
<height>91</height> <height>91</height>
@ -705,7 +685,7 @@
<widget class="QGroupBox" name="groupBox_13"> <widget class="QGroupBox" name="groupBox_13">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>13</y> <y>13</y>
<width>251</width> <width>251</width>
<height>71</height> <height>71</height>
@ -775,7 +755,7 @@
<widget class="QLabel" name="label_30"> <widget class="QLabel" name="label_30">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>310</y> <y>310</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
@ -788,7 +768,7 @@
<widget class="QLabel" name="label_31"> <widget class="QLabel" name="label_31">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>140</x> <x>150</x>
<y>313</y> <y>313</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
@ -801,7 +781,7 @@
<widget class="QGroupBox" name="groupBox_14"> <widget class="QGroupBox" name="groupBox_14">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>93</y> <y>93</y>
<width>251</width> <width>251</width>
<height>181</height> <height>181</height>
@ -940,7 +920,7 @@
<widget class="QGroupBox" name="groupBox_7"> <widget class="QGroupBox" name="groupBox_7">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>130</y> <y>130</y>
<width>371</width> <width>371</width>
<height>131</height> <height>131</height>
@ -1037,7 +1017,7 @@
<widget class="QSpinBox" name="spinBox_7"> <widget class="QSpinBox" name="spinBox_7">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>50</x> <x>60</x>
<y>310</y> <y>310</y>
<width>51</width> <width>51</width>
<height>22</height> <height>22</height>
@ -1053,7 +1033,7 @@
<widget class="QGroupBox" name="groupBox_16"> <widget class="QGroupBox" name="groupBox_16">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>510</x> <x>490</x>
<y>20</y> <y>20</y>
<width>191</width> <width>191</width>
<height>91</height> <height>91</height>
@ -1099,7 +1079,7 @@
<widget class="QGroupBox" name="groupBox_17"> <widget class="QGroupBox" name="groupBox_17">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>20</y> <y>20</y>
<width>151</width> <width>151</width>
<height>91</height> <height>91</height>
@ -1141,7 +1121,7 @@
<widget class="QGroupBox" name="groupBox_18"> <widget class="QGroupBox" name="groupBox_18">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>280</y> <y>280</y>
<width>371</width> <width>371</width>
<height>91</height> <height>91</height>
@ -1217,8 +1197,8 @@
<widget class="QGroupBox" name="groupBox_19"> <widget class="QGroupBox" name="groupBox_19">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>3</y> <y>13</y>
<width>251</width> <width>251</width>
<height>71</height> <height>71</height>
</rect> </rect>
@ -1287,8 +1267,8 @@
<widget class="QLabel" name="label_37"> <widget class="QLabel" name="label_37">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>300</y> <y>310</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -1300,8 +1280,8 @@
<widget class="QLabel" name="label_38"> <widget class="QLabel" name="label_38">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>140</x> <x>150</x>
<y>303</y> <y>313</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
</rect> </rect>
@ -1313,8 +1293,8 @@
<widget class="QGroupBox" name="groupBox_20"> <widget class="QGroupBox" name="groupBox_20">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>83</y> <y>93</y>
<width>251</width> <width>251</width>
<height>181</height> <height>181</height>
</rect> </rect>
@ -1452,8 +1432,8 @@
<widget class="QGroupBox" name="groupBox_22"> <widget class="QGroupBox" name="groupBox_22">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>120</y> <y>130</y>
<width>371</width> <width>371</width>
<height>131</height> <height>131</height>
</rect> </rect>
@ -1549,8 +1529,8 @@
<widget class="QSpinBox" name="spinBox_8"> <widget class="QSpinBox" name="spinBox_8">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>50</x> <x>60</x>
<y>300</y> <y>310</y>
<width>51</width> <width>51</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -1565,8 +1545,8 @@
<widget class="QGroupBox" name="groupBox_25"> <widget class="QGroupBox" name="groupBox_25">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>510</x> <x>490</x>
<y>10</y> <y>20</y>
<width>191</width> <width>191</width>
<height>91</height> <height>91</height>
</rect> </rect>
@ -1611,8 +1591,8 @@
<widget class="QGroupBox" name="groupBox_26"> <widget class="QGroupBox" name="groupBox_26">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>10</y> <y>20</y>
<width>151</width> <width>151</width>
<height>91</height> <height>91</height>
</rect> </rect>
@ -1653,8 +1633,8 @@
<widget class="QGroupBox" name="groupBox_27"> <widget class="QGroupBox" name="groupBox_27">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>270</y> <y>280</y>
<width>371</width> <width>371</width>
<height>91</height> <height>91</height>
</rect> </rect>
@ -1729,7 +1709,7 @@
<widget class="QGroupBox" name="groupBox_28"> <widget class="QGroupBox" name="groupBox_28">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>13</y> <y>13</y>
<width>251</width> <width>251</width>
<height>71</height> <height>71</height>
@ -1799,7 +1779,7 @@
<widget class="QLabel" name="label_44"> <widget class="QLabel" name="label_44">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>310</y> <y>310</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
@ -1812,7 +1792,7 @@
<widget class="QLabel" name="label_45"> <widget class="QLabel" name="label_45">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>140</x> <x>150</x>
<y>313</y> <y>313</y>
<width>58</width> <width>58</width>
<height>16</height> <height>16</height>
@ -1825,7 +1805,7 @@
<widget class="QGroupBox" name="groupBox_29"> <widget class="QGroupBox" name="groupBox_29">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>10</x>
<y>93</y> <y>93</y>
<width>251</width> <width>251</width>
<height>181</height> <height>181</height>
@ -1964,7 +1944,7 @@
<widget class="QGroupBox" name="groupBox_31"> <widget class="QGroupBox" name="groupBox_31">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>130</y> <y>130</y>
<width>371</width> <width>371</width>
<height>131</height> <height>131</height>
@ -2061,7 +2041,7 @@
<widget class="QSpinBox" name="spinBox_9"> <widget class="QSpinBox" name="spinBox_9">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>50</x> <x>60</x>
<y>310</y> <y>310</y>
<width>51</width> <width>51</width>
<height>22</height> <height>22</height>
@ -2077,7 +2057,7 @@
<widget class="QGroupBox" name="groupBox_34"> <widget class="QGroupBox" name="groupBox_34">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>510</x> <x>490</x>
<y>20</y> <y>20</y>
<width>191</width> <width>191</width>
<height>91</height> <height>91</height>
@ -2123,7 +2103,7 @@
<widget class="QGroupBox" name="groupBox_35"> <widget class="QGroupBox" name="groupBox_35">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>20</y> <y>20</y>
<width>151</width> <width>151</width>
<height>91</height> <height>91</height>
@ -2165,7 +2145,7 @@
<widget class="QGroupBox" name="groupBox_36"> <widget class="QGroupBox" name="groupBox_36">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>330</x> <x>310</x>
<y>280</y> <y>280</y>
<width>371</width> <width>371</width>
<height>91</height> <height>91</height>
@ -2235,6 +2215,36 @@
</widget> </widget>
</widget> </widget>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_4">
<property name="geometry">
<rect>
<x>140</x>
<y>90</y>
<width>81</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>通道2激活</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="pushButton_8">
<property name="geometry">
<rect>
<x>240</x>
<y>550</y>
<width>81</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>测点名称</string>
</property>
</widget>
</widget>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -19,7 +19,7 @@
<x>340</x> <x>340</x>
<y>10</y> <y>10</y>
<width>189</width> <width>189</width>
<height>22</height> <height>23</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_11"> <layout class="QHBoxLayout" name="horizontalLayout_11">
@ -128,68 +128,37 @@
<property name="title"> <property name="title">
<string>滤波</string> <string>滤波</string>
</property> </property>
<widget class="QLabel" name="label_29"> <widget class="QWidget" name="layoutWidget_4">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>310</x> <x>40</x>
<y>70</y> <y>59</y>
<width>72</width> <width>329</width>
<height>16</height> <height>23</height>
</rect>
</property>
<property name="text">
<string>30 - 30000Hz</string>
</property>
</widget>
<widget class="QComboBox" name="comboBox_7">
<property name="geometry">
<rect>
<x>225</x>
<y>70</y>
<width>69</width>
<height>20</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<widget class="QCheckBox" name="checkBox_11">
<property name="text"> <property name="text">
<string>30000</string> <string/>
</property> </property>
</widget>
</item> </item>
</widget> <item>
<widget class="QLabel" name="label_30">
<property name="geometry">
<rect>
<x>195</x>
<y>70</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>-</string>
</property>
</widget>
<widget class="QLabel" name="label_11"> <widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>56</x>
<y>71</y>
<width>36</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>低通:</string> <string>低通:</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_2"> <widget class="QComboBox" name="comboBox_2">
<property name="geometry"> <property name="minimumSize">
<rect> <size>
<x>105</x> <width>60</width>
<y>71</y> <height>0</height>
<width>61</width> </size>
<height>20</height>
</rect>
</property> </property>
<item> <item>
<property name="text"> <property name="text">
@ -197,101 +166,82 @@
</property> </property>
</item> </item>
</widget> </widget>
<widget class="QLabel" name="label_12"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="label_30">
<x>56</x>
<y>31</y>
<width>36</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>高通:</string>
</property>
</widget>
<widget class="QLabel" name="label_32">
<property name="geometry">
<rect>
<x>310</x>
<y>30</y>
<width>60</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>3 - 3000Hz</string>
</property>
</widget>
<widget class="QLabel" name="label_33">
<property name="geometry">
<rect>
<x>195</x>
<y>30</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>-</string> <string>-</string>
</property> </property>
</widget> </widget>
<widget class="QSpinBox" name="spinBox_4"> </item>
<property name="geometry"> <item>
<rect> <widget class="QComboBox" name="comboBox_7">
<x>105</x> <property name="minimumSize">
<y>30</y> <size>
<width>61</width> <width>60</width>
<height>22</height> <height>0</height>
</rect> </size>
</property> </property>
<property name="minimum"> <item>
<number>3</number> <property name="text">
<string>30000</string>
</property> </property>
<property name="maximum"> </item>
<number>3000</number> </widget>
</item>
<item>
<widget class="QLabel" name="label_29">
<property name="text">
<string>30 - 30000Hz</string>
</property> </property>
</widget> </widget>
<widget class="QSpinBox" name="spinBox_5"> </item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget_5">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>225</x> <x>40</x>
<y>30</y> <y>88</y>
<width>61</width> <width>329</width>
<height>22</height> <height>23</height>
</rect> </rect>
</property> </property>
<property name="minimum"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<number>3</number> <item>
</property> <widget class="QCheckBox" name="checkBox_12">
<property name="maximum"> <property name="text">
<number>3000</number> <string/>
</property>
<property name="value">
<number>3000</number>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="label_13"> <widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>56</x>
<y>101</y>
<width>36</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>带通:</string> <string>带通:</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_6"> <widget class="QSpinBox" name="spinBox_6">
<property name="geometry"> <property name="minimumSize">
<rect> <size>
<x>105</x> <width>60</width>
<y>100</y> <height>0</height>
<width>61</width> </size>
<height>22</height>
</rect>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>3</number> <number>3</number>
@ -300,27 +250,21 @@
<number>3000</number> <number>3000</number>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="label_34"> <widget class="QLabel" name="label_34">
<property name="geometry">
<rect>
<x>195</x>
<y>100</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>-</string> <string>-</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_7"> <widget class="QSpinBox" name="spinBox_7">
<property name="geometry"> <property name="minimumSize">
<rect> <size>
<x>225</x> <width>60</width>
<y>100</y> <height>0</height>
<width>61</width> </size>
<height>22</height>
</rect>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>3</number> <number>3</number>
@ -332,58 +276,129 @@
<number>3000</number> <number>3000</number>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QLabel" name="label_35"> <widget class="QLabel" name="label_35">
<property name="geometry">
<rect>
<x>310</x>
<y>100</y>
<width>60</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string>3 - 3000Hz</string> <string>3 - 3000Hz</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_10"> </item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget_6">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>40</x>
<y>30</y> <y>30</y>
<width>21</width> <width>329</width>
<height>16</height> <height>23</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="checkBox_10">
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_11"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="label_12">
<x>20</x>
<y>70</y>
<width>21</width>
<height>16</height>
</rect>
</property>
<property name="text"> <property name="text">
<string/> <string>高通:</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_12"> </item>
<property name="geometry"> <item>
<rect> <widget class="QSpinBox" name="spinBox_4">
<x>20</x> <property name="minimumSize">
<y>100</y> <size>
<width>21</width> <width>60</width>
<height>16</height> <height>0</height>
</rect> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="minimum">
<number>3</number>
</property>
<property name="maximum">
<number>3000</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_33">
<property name="text"> <property name="text">
<string/> <string>-</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_5">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="minimum">
<number>3</number>
</property>
<property name="maximum">
<number>3000</number>
</property>
<property name="value">
<number>3000</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_32">
<property name="text">
<string>3 - 3000Hz</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget> </widget>
</widget> </widget>
<widget class="QWidget" name="tab_6"> <widget class="QWidget" name="tab_6">
@ -485,10 +500,15 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>50</y> <y>50</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 20 mm/s</string>
</property>
</item>
</widget> </widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_17"> <widget class="QDoubleSpinBox" name="doubleSpinBox_17">
<property name="geometry"> <property name="geometry">
@ -531,10 +551,15 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>110</y> <y>110</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 20 mm/s</string>
</property>
</item>
</widget> </widget>
<widget class="QDoubleSpinBox" name="doubleSpinBox_19"> <widget class="QDoubleSpinBox" name="doubleSpinBox_19">
<property name="geometry"> <property name="geometry">
@ -613,10 +638,15 @@
<rect> <rect>
<x>130</x> <x>130</x>
<y>180</y> <y>180</y>
<width>69</width> <width>111</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
<item>
<property name="text">
<string>0 - 20 mm/s</string>
</property>
</item>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_21"> <widget class="QCheckBox" name="checkBox_21">
<property name="geometry"> <property name="geometry">
@ -886,13 +916,16 @@
<rect> <rect>
<x>460</x> <x>460</x>
<y>160</y> <y>160</y>
<width>91</width> <width>101</width>
<height>16</height> <height>16</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string>2 mA 默认值</string> <string>2 mA 默认值</string>
</property> </property>
<property name="checked">
<bool>true</bool>
</property>
</widget> </widget>
<widget class="QCheckBox" name="checkBox_27"> <widget class="QCheckBox" name="checkBox_27">
<property name="geometry"> <property name="geometry">
@ -1009,7 +1042,7 @@
<x>20</x> <x>20</x>
<y>10</y> <y>10</y>
<width>231</width> <width>231</width>
<height>22</height> <height>23</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_13"> <layout class="QHBoxLayout" name="horizontalLayout_13">