添加代码
This commit is contained in:
parent
37cd43791e
commit
3461aa9e4a
@ -30,6 +30,7 @@ SOURCES += \
|
|||||||
tachometer.cpp \
|
tachometer.cpp \
|
||||||
tachometer_data.cpp \
|
tachometer_data.cpp \
|
||||||
tmrrelayassociation.cpp \
|
tmrrelayassociation.cpp \
|
||||||
|
tmrrelayassociation_data.cpp \
|
||||||
velocity.cpp \
|
velocity.cpp \
|
||||||
vibrationdata.cpp
|
vibrationdata.cpp
|
||||||
|
|
||||||
@ -57,6 +58,7 @@ HEADERS += \
|
|||||||
tachometer.h \
|
tachometer.h \
|
||||||
tachometer_data.h \
|
tachometer_data.h \
|
||||||
tmrrelayassociation.h \
|
tmrrelayassociation.h \
|
||||||
|
tmrrelayassociation_data.h \
|
||||||
velocity.h \
|
velocity.h \
|
||||||
velocity_ds.h \
|
velocity_ds.h \
|
||||||
vibrationdata.h
|
vibrationdata.h
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include "tachometer_data.h"
|
#include "tachometer_data.h"
|
||||||
#include "keyphase_data.h"
|
#include "keyphase_data.h"
|
||||||
#include "singlerelay_data.h"
|
#include "singlerelay_data.h"
|
||||||
|
#include "tmrrelayassociation_data.h"
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
|
|
||||||
@ -282,10 +283,14 @@ void ConfigMgr::Save(QString & file_path) {
|
|||||||
std::shared_ptr<SingleRelayDataNOK> ptr = std::dynamic_pointer_cast<SingleRelayDataNOK>(base_ptr);
|
std::shared_ptr<SingleRelayDataNOK> ptr = std::dynamic_pointer_cast<SingleRelayDataNOK>(base_ptr);
|
||||||
channel_item.insert("logic_expression", ptr->single_relay_nok[ch].logic_expression);
|
channel_item.insert("logic_expression", ptr->single_relay_nok[ch].logic_expression);
|
||||||
|
|
||||||
}else if(card_type_[i] == kCardRelaySingle){
|
}else if(card_type_[i] == kCardRelaySingle || card_type_[i] == kCardRelayTMRPrimary){
|
||||||
|
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(slot);
|
||||||
}else if(card_type_[i] == kCardRelayTMRPrimary){
|
if (base_ptr == nullptr) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
std::shared_ptr<TmrrelayassociationData> ptr = std::dynamic_pointer_cast<TmrrelayassociationData>(base_ptr);
|
||||||
|
channel_item.insert("logic_expression", ptr->tmr_relay[ch].logic_expression);
|
||||||
|
channel_item.insert("sgcc_enable", ptr->tmr_relay[ch].sgcc_enable);
|
||||||
}
|
}
|
||||||
slot_item[QString::number(ch + 1)] = channel_item;
|
slot_item[QString::number(ch + 1)] = channel_item;
|
||||||
}
|
}
|
||||||
@ -540,16 +545,27 @@ void ConfigMgr::Load(QString filename) {
|
|||||||
keyphase_data->variables_[j].events_per_revolution = channel["events_per_revolution"].toInt();
|
keyphase_data->variables_[j].events_per_revolution = channel["events_per_revolution"].toInt();
|
||||||
}
|
}
|
||||||
cards_.push_back(keyphase_data);
|
cards_.push_back(keyphase_data);
|
||||||
}else if (card_type_[i] == kCardRelaySingleNOK || card_type_[i] == kCardRelayTMRPrimary || card_type_[i] == kCardRelaySingle){
|
}else if (card_type_[i] == kCardRelaySingleNOK ){
|
||||||
std::shared_ptr<SingleRelayDataNOK> singlereay_data = std::make_shared<SingleRelayDataNOK>();
|
std::shared_ptr<SingleRelayDataNOK> singlerelay_data = std::make_shared<SingleRelayDataNOK>();
|
||||||
singlereay_data->slot_ = slot;
|
singlerelay_data->slot_ = slot;
|
||||||
singlereay_data->card_type_ = static_cast<CardType>(card_type_[i]);
|
singlerelay_data->card_type_ = static_cast<CardType>(card_type_[i]);
|
||||||
singlereay_data->version_ = temp_obj["version"].toInt();
|
singlerelay_data->version_ = temp_obj["version"].toInt();
|
||||||
for (int j = 0; j < RELAY_COUNT; ++j) {
|
for (int j = 0; j < RELAY_COUNT; ++j) {
|
||||||
channel = temp_obj[QString::number(j + 1)].toObject();
|
channel = temp_obj[QString::number(j + 1)].toObject();
|
||||||
singlereay_data->single_relay_nok[j].logic_expression = channel["logic_expression"].toString();
|
singlerelay_data->single_relay_nok[j].logic_expression = channel["logic_expression"].toString();
|
||||||
}
|
}
|
||||||
cards_.push_back(singlereay_data);
|
cards_.push_back(singlerelay_data);
|
||||||
|
}else if(card_type_[i] == kCardRelayTMRPrimary || card_type_[i] == kCardRelaySingle){
|
||||||
|
std::shared_ptr<TmrrelayassociationData> relay_data = std::make_shared<TmrrelayassociationData>();
|
||||||
|
relay_data->slot_ = slot;
|
||||||
|
relay_data->card_type_ = static_cast<CardType>(card_type_[i]);
|
||||||
|
relay_data->version_ = temp_obj["version"].toInt();
|
||||||
|
for (int j = 0; j < RELAY_COUNT; ++j) {
|
||||||
|
channel = temp_obj[QString::number(j + 1)].toObject();
|
||||||
|
relay_data->tmr_relay[j].logic_expression = channel["logic_expression"].toString();
|
||||||
|
relay_data->tmr_relay[j].sgcc_enable = channel["sgcc_enable"].toBool();
|
||||||
|
}
|
||||||
|
cards_.push_back(relay_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -274,6 +274,15 @@ typedef struct SingleRelayNOK_{
|
|||||||
}
|
}
|
||||||
} SingleRelayNOK;
|
} SingleRelayNOK;
|
||||||
|
|
||||||
|
typedef struct TMRRelay_{
|
||||||
|
QString logic_expression;
|
||||||
|
bool sgcc_enable;
|
||||||
|
TMRRelay_(){
|
||||||
|
logic_expression = "";
|
||||||
|
sgcc_enable = false;
|
||||||
|
}
|
||||||
|
} TMRRelay;
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t head[3]; // 固定值:0xAA55AA
|
uint8_t head[3]; // 固定值:0xAA55AA
|
||||||
|
@ -637,9 +637,7 @@ void MainWindow::on_pushButton_open_clicked() {
|
|||||||
qWarning() << "Failed to open update file.";
|
qWarning() << "Failed to open update file.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigMgr::Instance()->Load(filepath);
|
ConfigMgr::Instance()->Load(filepath);
|
||||||
|
|
||||||
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++) {
|
||||||
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(i + 1);
|
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(i + 1);
|
||||||
|
@ -50,6 +50,34 @@ SingleRelay::~SingleRelay() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SingleRelay::Init(){
|
void SingleRelay::Init(){
|
||||||
|
QList<QAbstractButton *> buttonList = btnGroup_slot->buttons();
|
||||||
|
for (int i = 1; i < buttonList.count() + 1; i++) {
|
||||||
|
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(i);
|
||||||
|
if(base_ptr != nullptr){
|
||||||
|
switch (base_ptr->card_type_) {
|
||||||
|
case kCardVibSingle :{
|
||||||
|
buttonList[i - 1]->setText("振动");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case kCardKeyphaseSingle:{
|
||||||
|
buttonList[i - 1]->setText("键相");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case kCardSpeedSingle:{
|
||||||
|
buttonList[i - 1]->setText("转速");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case kCardRelaySingle:
|
||||||
|
case kCardRelaySingleNOK:
|
||||||
|
case kCardRelayTMRPrimary:{
|
||||||
|
buttonList[i - 1]->setText("继电器");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(slot_no);
|
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(slot_no);
|
||||||
if (base_ptr == nullptr) {
|
if (base_ptr == nullptr) {
|
||||||
// do nothing or use template to init it.
|
// do nothing or use template to init it.
|
||||||
@ -60,6 +88,7 @@ void SingleRelay::Init(){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
single_relay_nok_data = std::dynamic_pointer_cast<SingleRelayDataNOK>(base_ptr);
|
single_relay_nok_data = std::dynamic_pointer_cast<SingleRelayDataNOK>(base_ptr);
|
||||||
|
|
||||||
}
|
}
|
||||||
void SingleRelay::on_pushButton_cancel_clicked() {
|
void SingleRelay::on_pushButton_cancel_clicked() {
|
||||||
this->close();
|
this->close();
|
||||||
|
@ -690,7 +690,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -709,7 +709,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -728,7 +728,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -747,7 +747,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -766,7 +766,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -785,7 +785,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -804,7 +804,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -823,7 +823,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -842,7 +842,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -861,7 +861,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -880,7 +880,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -899,7 +899,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -918,7 +918,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -937,7 +937,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -956,7 +956,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -975,7 +975,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TMRRelayAssociation::TMRRelayAssociation(int slot,int cardtype,QWidget *parent)
|
TMRRelayAssociation::TMRRelayAssociation(int slot,int cardtype,QWidget *parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
, ui(new Ui::TMRRelayAssociation)
|
, ui(new Ui::TMRRelayAssociation)
|
||||||
@ -65,6 +66,45 @@ TMRRelayAssociation::~TMRRelayAssociation()
|
|||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
void TMRRelayAssociation::Init(){
|
void TMRRelayAssociation::Init(){
|
||||||
|
QList<QAbstractButton *> buttonList = btnGroup_slot->buttons();
|
||||||
|
for (int i = 1; i < buttonList.count() + 1; i++) {
|
||||||
|
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(i);
|
||||||
|
if(base_ptr != nullptr){
|
||||||
|
switch (base_ptr->card_type_) {
|
||||||
|
case kCardVibSingle :{
|
||||||
|
buttonList[i - 1]->setText("振动");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case kCardKeyphaseSingle:{
|
||||||
|
buttonList[i - 1]->setText("键相");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case kCardSpeedSingle:{
|
||||||
|
buttonList[i - 1]->setText("转速");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case kCardRelaySingle:
|
||||||
|
case kCardRelaySingleNOK:
|
||||||
|
case kCardRelayTMRPrimary:{
|
||||||
|
buttonList[i - 1]->setText("继电器");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(slot_no);
|
||||||
|
if (base_ptr == nullptr) {
|
||||||
|
// do nothing or use template to init it.
|
||||||
|
relay_data = std::make_shared<TmrrelayassociationData>();
|
||||||
|
relay_data->card_type_ = car_type;
|
||||||
|
relay_data->slot_ = slot_no;
|
||||||
|
ConfigMgr::Instance()->AddCard(relay_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
relay_data = std::dynamic_pointer_cast<TmrrelayassociationData>(base_ptr);
|
||||||
|
setExpressionToTreeView(treeView_relay, relay_data->tmr_relay[current_index].logic_expression);
|
||||||
|
|
||||||
}
|
}
|
||||||
ExprNode* TMRRelayAssociation::parseExpression(const QString& expr, int& pos) {
|
ExprNode* TMRRelayAssociation::parseExpression(const QString& expr, int& pos) {
|
||||||
@ -128,13 +168,12 @@ QStandardItem* TMRRelayAssociation::buildItemTree(ExprNode* node) {
|
|||||||
}
|
}
|
||||||
void TMRRelayAssociation::setExpressionToTreeView(QTreeView* treeView, const QString& expr) {
|
void TMRRelayAssociation::setExpressionToTreeView(QTreeView* treeView, const QString& expr) {
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
model_Relay->clear();
|
||||||
ExprNode* root = parseExpression(expr, pos);
|
ExprNode* root = parseExpression(expr, pos);
|
||||||
QStandardItem* rootItem = buildItemTree(root);
|
QStandardItem* rootItem = buildItemTree(root);
|
||||||
|
|
||||||
QStandardItemModel* model = new QStandardItemModel();
|
model_Relay->appendRow(rootItem);
|
||||||
model->appendRow(rootItem);
|
treeView_relay->expandAll();
|
||||||
treeView->setModel(model);
|
|
||||||
treeView->expandAll();
|
|
||||||
}
|
}
|
||||||
QString TMRRelayAssociation::buildLogicExpression(QStandardItem *item) {
|
QString TMRRelayAssociation::buildLogicExpression(QStandardItem *item) {
|
||||||
if (!item) return "";
|
if (!item) return "";
|
||||||
@ -294,17 +333,39 @@ void TMRRelayAssociation::on_pushButton_confirm_clicked()
|
|||||||
for (int i = 0; i < root->rowCount(); ++i) {
|
for (int i = 0; i < root->rowCount(); ++i) {
|
||||||
QStandardItem *topItem = root->child(i);
|
QStandardItem *topItem = root->child(i);
|
||||||
QString expr = buildLogicExpression(topItem);
|
QString expr = buildLogicExpression(topItem);
|
||||||
if (!finalExpr.isEmpty()) {
|
// if (!finalExpr.isEmpty()) {
|
||||||
finalExpr += " OR ";
|
// finalExpr += " OR ";
|
||||||
}
|
// }
|
||||||
finalExpr += expr;
|
finalExpr += expr;
|
||||||
}
|
}
|
||||||
|
relay_data->tmr_relay[current_index].logic_expression = finalExpr;
|
||||||
|
relay_data->tmr_relay[current_index].sgcc_enable = ui->checkBox_sgcc->checkState();
|
||||||
qDebug() << "逻辑表达式:" << finalExpr;
|
qDebug() << "逻辑表达式:" << finalExpr;
|
||||||
this->close();
|
this->close();
|
||||||
}
|
}
|
||||||
void TMRRelayAssociation::onComboBoxIndexChanged(int index){
|
void TMRRelayAssociation::onComboBoxIndexChanged(int index){
|
||||||
|
|
||||||
|
QStandardItemModel *model = qobject_cast<QStandardItemModel *>(treeView_relay->model());
|
||||||
|
if (!model) return;
|
||||||
|
QStandardItem *root = model->invisibleRootItem();
|
||||||
|
QString finalExpr;
|
||||||
|
for (int i = 0; i < root->rowCount(); ++i) {
|
||||||
|
QStandardItem *topItem = root->child(i);
|
||||||
|
QString expr = buildLogicExpression(topItem);
|
||||||
|
// if (!finalExpr.isEmpty()) {
|
||||||
|
// finalExpr += " OR ";
|
||||||
|
// }
|
||||||
|
finalExpr += expr;
|
||||||
|
}
|
||||||
|
relay_data->tmr_relay[current_index].logic_expression = finalExpr;
|
||||||
|
relay_data->tmr_relay[current_index].sgcc_enable = ui->checkBox_sgcc->checkState();
|
||||||
|
current_index = index;
|
||||||
|
|
||||||
|
if(relay_data->tmr_relay[index].logic_expression != "")
|
||||||
|
setExpressionToTreeView(treeView_relay, relay_data->tmr_relay[index].logic_expression);
|
||||||
|
else
|
||||||
|
model_Relay->clear();
|
||||||
|
ui->checkBox_sgcc->setChecked(relay_data->tmr_relay[index].sgcc_enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMRRelayAssociation::on_pushButton_and_clicked()
|
void TMRRelayAssociation::on_pushButton_and_clicked()
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include "config_mgr.h"
|
#include "config_mgr.h"
|
||||||
#include <QStandardItemModel> //数据模型类
|
#include <QStandardItemModel> //数据模型类
|
||||||
#include <QTreeView>
|
#include <QTreeView>
|
||||||
|
#include "tmrrelayassociation_data.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class TMRRelayAssociation;
|
class TMRRelayAssociation;
|
||||||
@ -85,6 +86,7 @@ private:
|
|||||||
int current_index;
|
int current_index;
|
||||||
QTreeView *treeView_relay;
|
QTreeView *treeView_relay;
|
||||||
QStandardItemModel *model_Relay;
|
QStandardItemModel *model_Relay;
|
||||||
|
std::shared_ptr<TmrrelayassociationData> relay_data = nullptr;
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
void buildTreeFromExpression(QTreeView *treeView, const QString &expr);
|
void buildTreeFromExpression(QTreeView *treeView, const QString &expr);
|
||||||
|
@ -181,12 +181,12 @@
|
|||||||
<string>告警驱动逻辑:</string>
|
<string>告警驱动逻辑:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QTextEdit" name="textEdit">
|
<widget class="QTextEdit" name="textEdit_logic">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>230</x>
|
<x>110</x>
|
||||||
<y>540</y>
|
<y>540</y>
|
||||||
<width>551</width>
|
<width>691</width>
|
||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -197,8 +197,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>520</x>
|
<x>450</x>
|
||||||
<y>590</y>
|
<y>580</y>
|
||||||
<width>71</width>
|
<width>71</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -211,7 +211,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>240</x>
|
<x>240</x>
|
||||||
<y>590</y>
|
<y>580</y>
|
||||||
<width>71</width>
|
<width>71</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -226,8 +226,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>610</x>
|
<x>550</x>
|
||||||
<y>590</y>
|
<y>580</y>
|
||||||
<width>81</width>
|
<width>81</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -240,7 +240,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>350</x>
|
<x>350</x>
|
||||||
<y>590</y>
|
<y>580</y>
|
||||||
<width>71</width>
|
<width>71</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -262,7 +262,7 @@
|
|||||||
<string>NCT6100T</string>
|
<string>NCT6100T</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_guowang">
|
<widget class="QCheckBox" name="checkBox_sgcc">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>30</x>
|
<x>30</x>
|
||||||
@ -661,7 +661,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -680,7 +680,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -699,7 +699,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -718,7 +718,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -737,7 +737,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -756,7 +756,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -775,7 +775,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -794,7 +794,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -813,7 +813,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -832,7 +832,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -851,7 +851,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -870,7 +870,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -889,7 +889,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -908,7 +908,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -927,7 +927,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -946,7 +946,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>PushButton</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -1014,6 +1014,19 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLabel" name="label_21">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>550</y>
|
||||||
|
<width>71</width>
|
||||||
|
<height>16</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>逻辑表达式:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user