|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
#include "canshupeizhi.h"
|
|
|
|
|
#include "wangluo.h"
|
|
|
|
|
#include "xitongshezhi.h"
|
|
|
|
|
#include "ui_canshupeizhi.h"
|
|
|
|
|
#include <mainwindow.h>
|
|
|
|
|
#include "keyboard.h"
|
|
|
|
|
#include <QFileDialog>
|
|
|
|
|
#include <QTime>
|
|
|
|
|
#include <mcu_arm1.h>
|
|
|
|
|
#include <qdebug.h>
|
|
|
|
|
|
|
|
|
|
mcu_arm1 *ARM3;//调用串口通信
|
|
|
|
|
|
|
|
|
|
bool cspz_flag=false;
|
|
|
|
|
|
|
|
|
|
void Delay_MSec1(unsigned int msec)
|
|
|
|
|
{
|
|
|
|
|
QEventLoop eventloop;
|
|
|
|
|
QTimer::singleShot((int)msec, &eventloop, SLOT(quit()));
|
|
|
|
|
eventloop.exec();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
canshupeizhi::canshupeizhi(QWidget *parent) :
|
|
|
|
|
QWidget(parent),
|
|
|
|
|
ui(new Ui::canshupeizhi)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
this->setFixedSize(this->geometry().size());
|
|
|
|
|
KeyBoard_Code=false;
|
|
|
|
|
KeyBoard_ABC_Code=false;
|
|
|
|
|
keyBoard_flag=false;
|
|
|
|
|
keyBoard_ABC_flag = false;
|
|
|
|
|
cspz_set_back_color();
|
|
|
|
|
|
|
|
|
|
ui->label_1->close();
|
|
|
|
|
ui->label_2->close();
|
|
|
|
|
ui->label_3->show();
|
|
|
|
|
ui->label_4->close();
|
|
|
|
|
|
|
|
|
|
label_cspz_0_1=new QLabel(this);
|
|
|
|
|
label_cspz_0_3=new QLabel(this);
|
|
|
|
|
label_cspz_0_5=new QLabel(this);
|
|
|
|
|
label_cspz_0_6=new QLabel(this);
|
|
|
|
|
label_cspz_0_wirenameset=new QLabel(this);
|
|
|
|
|
|
|
|
|
|
label_cspz_0_1->installEventFilter(this);//安装鼠标事件
|
|
|
|
|
label_cspz_0_3->installEventFilter(this);//安装鼠标事件
|
|
|
|
|
label_cspz_0_5->installEventFilter(this);//安装鼠标事件
|
|
|
|
|
label_cspz_0_6->installEventFilter(this);//安装鼠标事件
|
|
|
|
|
label_cspz_0_wirenameset->installEventFilter(this);//安装鼠标事件
|
|
|
|
|
|
|
|
|
|
label_cspz_byq_back=new QLabel(this);
|
|
|
|
|
label_cspz_byq_back->setGeometry(10,185,780,256);
|
|
|
|
|
label_cspz_byq_back->setStyleSheet("background: rgb(145, 145, 145)");
|
|
|
|
|
label_cspz_rxy_back=new QLabel(this);
|
|
|
|
|
label_cspz_rxy_back->setGeometry(10,185,780,256);
|
|
|
|
|
label_cspz_rxy_back->setStyleSheet("background: rgb(145, 145, 145)");
|
|
|
|
|
label_cspz_fengji_back=new QLabel(this);
|
|
|
|
|
label_cspz_fengji_back->setGeometry(10,185,780,256);
|
|
|
|
|
label_cspz_fengji_back->setStyleSheet("background: rgb(145, 145, 145)");
|
|
|
|
|
label_cspz_wuxiancewen_back=new QLabel(this);
|
|
|
|
|
label_cspz_wuxiancewen_back->setGeometry(10,185,780,256);
|
|
|
|
|
label_cspz_wuxiancewen_back->setStyleSheet("background: rgb(145, 145, 145)");
|
|
|
|
|
label_cspz_wirenameset_back=new QLabel(this);
|
|
|
|
|
label_cspz_wirenameset_back->setGeometry(10,185,780,256);
|
|
|
|
|
label_cspz_wirenameset_back->setStyleSheet("background: rgb(145, 145, 145)");
|
|
|
|
|
|
|
|
|
|
label_mimajiemian = new QLabel(this);
|
|
|
|
|
label_mimajiemian->setGeometry(10, 136, 780, 300);
|
|
|
|
|
label_mimajiemian->setStyleSheet("background: rgb(145, 145, 145)");
|
|
|
|
|
|
|
|
|
|
mimaline=new QLineEdit(this);
|
|
|
|
|
mimaline->setGeometry(360, 210, 120, 30);
|
|
|
|
|
mimaline->setStyleSheet("font: 12pt 黑体;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
mimaButton = new QPushButton(this);
|
|
|
|
|
mimaButton->setGeometry(360, 250, 100, 40);
|
|
|
|
|
mimaButton->setStyleSheet("background: rgb(0, 35, 53);font: 12pt 黑体;color: rgb(0, 171, 171)");
|
|
|
|
|
mimaButton->setText("获取权限");
|
|
|
|
|
|
|
|
|
|
label_mima1 = new QLabel(this);
|
|
|
|
|
label_mima1->setGeometry(360, 180, 200, 30);
|
|
|
|
|
label_mima1->setStyleSheet("font: 12pt 黑体;color: rgb(255, 255, 255);color: rgb(0, 0, 0)");
|
|
|
|
|
label_mima1->setText("请输入密码:");
|
|
|
|
|
|
|
|
|
|
label_mima2 = new QLabel(this);
|
|
|
|
|
label_mima2->setGeometry(330, 300, 200, 30);
|
|
|
|
|
label_mima2->setStyleSheet("font: 12pt 黑体;color: rgb(255, 255, 255);color: rgb(255, 255, 255)");
|
|
|
|
|
|
|
|
|
|
mimaline->installEventFilter(this);
|
|
|
|
|
connect(mimaButton,SIGNAL(clicked()), this,SLOT(mimaButtonClicked()));
|
|
|
|
|
|
|
|
|
|
label_cspz_0_1->setGeometry(30,143,120,39);
|
|
|
|
|
label_cspz_0_1->setStyleSheet("background: rgb(0, 35, 53);font: 12pt 黑体;color: rgb(0, 171, 171)");
|
|
|
|
|
label_cspz_0_1->setAlignment(Qt::AlignCenter);
|
|
|
|
|
label_cspz_0_1->setText("变压器参数");
|
|
|
|
|
|
|
|
|
|
label_cspz_0_3->setGeometry(180,143,120,39);
|
|
|
|
|
label_cspz_0_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_3->setAlignment(Qt::AlignCenter);
|
|
|
|
|
label_cspz_0_3->setText("热像仪参数");
|
|
|
|
|
|
|
|
|
|
label_cspz_0_5->setGeometry(330,143,120,39);
|
|
|
|
|
label_cspz_0_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_5->setAlignment(Qt::AlignCenter);
|
|
|
|
|
label_cspz_0_5->setText("风机管控");
|
|
|
|
|
|
|
|
|
|
label_cspz_0_6->setGeometry(480,143,120,39);
|
|
|
|
|
label_cspz_0_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_6->setAlignment(Qt::AlignCenter);
|
|
|
|
|
label_cspz_0_6->setText("无线测温地址");
|
|
|
|
|
|
|
|
|
|
label_cspz_0_wirenameset->setGeometry(630,143,130,39);
|
|
|
|
|
label_cspz_0_wirenameset->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_wirenameset->setAlignment(Qt::AlignCenter);
|
|
|
|
|
label_cspz_0_wirenameset->setText("无线测温节点名");
|
|
|
|
|
|
|
|
|
|
cspz_byqset_page();//变压器倍率
|
|
|
|
|
cspz_rxyset_page();
|
|
|
|
|
cspz_fengjiset_page();
|
|
|
|
|
cspz_wireless_adress_set_page();
|
|
|
|
|
cspz_wireless_name_set_page();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::cspz_page(int a)
|
|
|
|
|
{
|
|
|
|
|
switch (a)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_1->setStyleSheet("background: rgb(0, 35, 53);font: 12pt 黑体;color: rgb(0, 171, 171)");
|
|
|
|
|
label_cspz_0_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_wirenameset->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_wirenameset->setStyleSheet("background: rgb(0, 35, 53);font: 12pt 黑体;color: rgb(0, 171, 171)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_3->setStyleSheet("background: rgb(0, 35, 53);font: 12pt 黑体;color: rgb(0, 171, 171)");
|
|
|
|
|
label_cspz_0_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_wirenameset->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_5->setStyleSheet("background: rgb(0, 35, 53);font: 12pt 黑体;color: rgb(0, 171, 171)");
|
|
|
|
|
label_cspz_0_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_wirenameset->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_0_6->setStyleSheet("background: rgb(0, 35, 53);font: 12pt 黑体;color: rgb(0, 171, 171)");
|
|
|
|
|
label_cspz_0_wirenameset->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体;color: rgb(255, 255, 255)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
canshupeizhi::~canshupeizhi()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_1_show(int a)
|
|
|
|
|
{
|
|
|
|
|
if(a==1)
|
|
|
|
|
{
|
|
|
|
|
label_cspz_byq_back->raise();
|
|
|
|
|
label_cspz_1_1->show();
|
|
|
|
|
label_cspz_1_2->show();
|
|
|
|
|
label_cspz_1_3->show();
|
|
|
|
|
label_cspz_1_4->show();
|
|
|
|
|
label_cspz_1_5->show();
|
|
|
|
|
lineEdit_cspz_1_1->show();
|
|
|
|
|
lineEdit_cspz_1_2->show();
|
|
|
|
|
lineEdit_cspz_1_3->show();
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1_A->show();
|
|
|
|
|
lineEdit_cspz_1_2_B->show();
|
|
|
|
|
lineEdit_cspz_1_3_C->show();
|
|
|
|
|
lineEdit_cspz_1_3_T->show();
|
|
|
|
|
|
|
|
|
|
button_cspz_1_1->show();
|
|
|
|
|
|
|
|
|
|
label_cspz_1_1->raise();
|
|
|
|
|
label_cspz_1_2->raise();
|
|
|
|
|
label_cspz_1_3->raise();
|
|
|
|
|
label_cspz_1_4->raise();
|
|
|
|
|
label_cspz_1_5->raise();
|
|
|
|
|
lineEdit_cspz_1_1->raise();
|
|
|
|
|
lineEdit_cspz_1_2->raise();
|
|
|
|
|
lineEdit_cspz_1_3->raise();
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1_A->raise();
|
|
|
|
|
lineEdit_cspz_1_2_B->raise();
|
|
|
|
|
lineEdit_cspz_1_3_C->raise();
|
|
|
|
|
lineEdit_cspz_1_3_T->raise();
|
|
|
|
|
|
|
|
|
|
button_cspz_1_1->raise();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_3_show(int a)
|
|
|
|
|
{
|
|
|
|
|
if(a==1)
|
|
|
|
|
{
|
|
|
|
|
combox_cspz_3_1->setCurrentText("1");
|
|
|
|
|
label_cspz_rxy_back->raise();
|
|
|
|
|
label_cspz_3_1->show();
|
|
|
|
|
label_cspz_3_2->show();
|
|
|
|
|
label_cspz_3_3->show();
|
|
|
|
|
label_cspz_3_4->show();
|
|
|
|
|
label_cspz_3_5->show();
|
|
|
|
|
label_cspz_3_6->show();
|
|
|
|
|
label_cspz_3_7->show();
|
|
|
|
|
label_cspz_3_8->show();
|
|
|
|
|
label_cspz_3_9->show();
|
|
|
|
|
label_cspz_3_10->show();
|
|
|
|
|
label_cspz_3_11->show();
|
|
|
|
|
label_cspz_3_12->show();
|
|
|
|
|
label_cspz_3_13->show();
|
|
|
|
|
label_cspz_3_14->show();
|
|
|
|
|
label_cspz_3_15->show();
|
|
|
|
|
label_cspz_3_16->show();
|
|
|
|
|
label_cspz_3_17->show();
|
|
|
|
|
label_cspz_3_18->show();
|
|
|
|
|
label_cspz_3_19->show();
|
|
|
|
|
label_cspz_3_20->show();
|
|
|
|
|
label_cspz_3_21->show();
|
|
|
|
|
label_cspz_3_22->show();
|
|
|
|
|
label_cspz_3_23->show();
|
|
|
|
|
label_cspz_3_24->show();
|
|
|
|
|
label_cspz_3_25->show();
|
|
|
|
|
label_cspz_3_26->show();
|
|
|
|
|
label_cspz_3_27->show();
|
|
|
|
|
label_cspz_3_28->show();
|
|
|
|
|
label_cspz_3_29->show();
|
|
|
|
|
label_cspz_3_30->show();
|
|
|
|
|
label_cspz_3_31->show();
|
|
|
|
|
lineEdit_cspz_3_1->show();
|
|
|
|
|
lineEdit_cspz_3_2->show();
|
|
|
|
|
lineEdit_cspz_3_3->show();
|
|
|
|
|
lineEdit_cspz_3_4->show();
|
|
|
|
|
lineEdit_cspz_3_5->show();
|
|
|
|
|
lineEdit_cspz_3_6->show();
|
|
|
|
|
lineEdit_cspz_3_7->show();
|
|
|
|
|
lineEdit_cspz_3_8->show();
|
|
|
|
|
lineEdit_cspz_3_9->show();
|
|
|
|
|
lineEdit_cspz_3_10->show();
|
|
|
|
|
lineEdit_cspz_3_11->show();
|
|
|
|
|
lineEdit_cspz_3_12->show();
|
|
|
|
|
lineEdit_cspz_3_13->show();
|
|
|
|
|
lineEdit_cspz_3_14->show();
|
|
|
|
|
lineEdit_cspz_3_15->show();
|
|
|
|
|
lineEdit_cspz_3_16->show();
|
|
|
|
|
button_cspz_3_1->show();
|
|
|
|
|
button_cspz_3_2->show();
|
|
|
|
|
combox_cspz_3_1->show();
|
|
|
|
|
line_cspz_3_1->show();
|
|
|
|
|
button_cspz_rxy1_start->show();
|
|
|
|
|
button_cspz_rxy2_start->show();
|
|
|
|
|
label_cspz_rxy1_start->show();
|
|
|
|
|
label_cspz_rxy2_start->show();
|
|
|
|
|
|
|
|
|
|
label_cspz_3_1->raise();
|
|
|
|
|
label_cspz_3_2->raise();
|
|
|
|
|
label_cspz_3_3->raise();
|
|
|
|
|
label_cspz_3_4->raise();
|
|
|
|
|
label_cspz_3_5->raise();
|
|
|
|
|
label_cspz_3_6->raise();
|
|
|
|
|
label_cspz_3_7->raise();
|
|
|
|
|
label_cspz_3_8->raise();
|
|
|
|
|
label_cspz_3_9->raise();
|
|
|
|
|
label_cspz_3_10->raise();
|
|
|
|
|
label_cspz_3_11->raise();
|
|
|
|
|
label_cspz_3_12->raise();
|
|
|
|
|
label_cspz_3_13->raise();
|
|
|
|
|
label_cspz_3_14->raise();
|
|
|
|
|
label_cspz_3_15->raise();
|
|
|
|
|
label_cspz_3_16->raise();
|
|
|
|
|
label_cspz_3_17->raise();
|
|
|
|
|
label_cspz_3_18->raise();
|
|
|
|
|
label_cspz_3_19->raise();
|
|
|
|
|
label_cspz_3_20->raise();
|
|
|
|
|
label_cspz_3_21->raise();
|
|
|
|
|
label_cspz_3_22->raise();
|
|
|
|
|
label_cspz_3_23->raise();
|
|
|
|
|
label_cspz_3_24->raise();
|
|
|
|
|
label_cspz_3_25->raise();
|
|
|
|
|
label_cspz_3_26->raise();
|
|
|
|
|
label_cspz_3_27->raise();
|
|
|
|
|
label_cspz_3_28->raise();
|
|
|
|
|
label_cspz_3_29->raise();
|
|
|
|
|
label_cspz_3_30->raise();
|
|
|
|
|
label_cspz_3_31->raise();
|
|
|
|
|
lineEdit_cspz_3_1->raise();
|
|
|
|
|
lineEdit_cspz_3_2->raise();
|
|
|
|
|
lineEdit_cspz_3_3->raise();
|
|
|
|
|
lineEdit_cspz_3_4->raise();
|
|
|
|
|
lineEdit_cspz_3_5->raise();
|
|
|
|
|
lineEdit_cspz_3_6->raise();
|
|
|
|
|
lineEdit_cspz_3_7->raise();
|
|
|
|
|
lineEdit_cspz_3_8->raise();
|
|
|
|
|
lineEdit_cspz_3_9->raise();
|
|
|
|
|
lineEdit_cspz_3_10->raise();
|
|
|
|
|
lineEdit_cspz_3_11->raise();
|
|
|
|
|
lineEdit_cspz_3_12->raise();
|
|
|
|
|
lineEdit_cspz_3_13->raise();
|
|
|
|
|
lineEdit_cspz_3_14->raise();
|
|
|
|
|
lineEdit_cspz_3_15->raise();
|
|
|
|
|
lineEdit_cspz_3_16->raise();
|
|
|
|
|
button_cspz_3_2->raise();
|
|
|
|
|
button_cspz_3_1->raise();
|
|
|
|
|
combox_cspz_3_1->raise();
|
|
|
|
|
line_cspz_3_1->raise();
|
|
|
|
|
button_cspz_rxy1_start->raise();
|
|
|
|
|
button_cspz_rxy2_start->raise();
|
|
|
|
|
label_cspz_rxy1_start->raise();
|
|
|
|
|
label_cspz_rxy2_start->raise();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_5_show(int a)
|
|
|
|
|
{
|
|
|
|
|
if(a==1)
|
|
|
|
|
{
|
|
|
|
|
label_cspz_fengji_back->raise();
|
|
|
|
|
label_cspz_5_1->show();
|
|
|
|
|
label_cspz_5_2->show();
|
|
|
|
|
label_cspz_5_3->show();
|
|
|
|
|
label_cspz_5_4->show();
|
|
|
|
|
label_cspz_5_5->show();
|
|
|
|
|
label_cspz_5_6->show();
|
|
|
|
|
label_cspz_5_7->show();
|
|
|
|
|
label_cspz_5_8->show();
|
|
|
|
|
label_cspz_5_9->show();
|
|
|
|
|
label_cspz_5_10->show();
|
|
|
|
|
label_cspz_5_11->show();
|
|
|
|
|
label_cspz_5_12->show();
|
|
|
|
|
label_cspz_5_13->show();
|
|
|
|
|
label_cspz_5_14->show();
|
|
|
|
|
label_cspz_5_15->show();
|
|
|
|
|
label_cspz_5_18->show();
|
|
|
|
|
label_cspz_5_19->show();
|
|
|
|
|
label_cspz_5_20->show();
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_5_1->show();
|
|
|
|
|
lineEdit_cspz_5_2->show();
|
|
|
|
|
lineEdit_cspz_5_3->show();
|
|
|
|
|
lineEdit_cspz_5_4->show();
|
|
|
|
|
lineEdit_cspz_5_5->show();
|
|
|
|
|
lineEdit_cspz_5_6->show();
|
|
|
|
|
lineEdit_cspz_5_7->show();
|
|
|
|
|
button_cspz_5_1->show();
|
|
|
|
|
button_cspz_5_2->show();
|
|
|
|
|
button_cspz_5_3->show();
|
|
|
|
|
button_cspz_5_4->show();
|
|
|
|
|
button_cspz_5_5->show();
|
|
|
|
|
line_cspz_5_1->show();
|
|
|
|
|
|
|
|
|
|
label_cspz_5_1->raise();
|
|
|
|
|
label_cspz_5_2->raise();
|
|
|
|
|
label_cspz_5_3->raise();
|
|
|
|
|
label_cspz_5_4->raise();
|
|
|
|
|
label_cspz_5_5->raise();
|
|
|
|
|
label_cspz_5_6->raise();
|
|
|
|
|
label_cspz_5_7->raise();
|
|
|
|
|
label_cspz_5_8->raise();
|
|
|
|
|
label_cspz_5_9->raise();
|
|
|
|
|
label_cspz_5_10->raise();
|
|
|
|
|
label_cspz_5_11->raise();
|
|
|
|
|
label_cspz_5_12->raise();
|
|
|
|
|
label_cspz_5_13->raise();
|
|
|
|
|
label_cspz_5_14->raise();
|
|
|
|
|
label_cspz_5_15->raise();
|
|
|
|
|
label_cspz_5_18->raise();
|
|
|
|
|
label_cspz_5_19->raise();
|
|
|
|
|
label_cspz_5_20->raise();
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_5_1->raise();
|
|
|
|
|
lineEdit_cspz_5_2->raise();
|
|
|
|
|
lineEdit_cspz_5_3->raise();
|
|
|
|
|
lineEdit_cspz_5_4->raise();
|
|
|
|
|
lineEdit_cspz_5_5->raise();
|
|
|
|
|
lineEdit_cspz_5_6->raise();
|
|
|
|
|
lineEdit_cspz_5_7->raise();
|
|
|
|
|
button_cspz_5_1->raise();
|
|
|
|
|
button_cspz_5_2->raise();
|
|
|
|
|
button_cspz_5_3->raise();
|
|
|
|
|
button_cspz_5_4->raise();
|
|
|
|
|
button_cspz_5_5->raise();
|
|
|
|
|
line_cspz_5_1->raise();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_6_show(int a)
|
|
|
|
|
{
|
|
|
|
|
if(a==1)
|
|
|
|
|
{
|
|
|
|
|
label_cspz_wuxiancewen_back->raise();
|
|
|
|
|
label_cspz_6_1->show();
|
|
|
|
|
label_cspz_6_2->show();
|
|
|
|
|
label_cspz_6_3->show();
|
|
|
|
|
label_cspz_6_4->show();
|
|
|
|
|
label_cspz_6_5->show();
|
|
|
|
|
label_cspz_6_6->show();
|
|
|
|
|
label_cspz_6_7->show();
|
|
|
|
|
label_cspz_6_8->show();
|
|
|
|
|
label_cspz_6_9->show();
|
|
|
|
|
label_cspz_6_10->show();
|
|
|
|
|
label_cspz_6_11->show();
|
|
|
|
|
label_cspz_6_12->show();
|
|
|
|
|
label_cspz_6_13->show();
|
|
|
|
|
label_cspz_6_14->show();
|
|
|
|
|
label_cspz_6_15->show();
|
|
|
|
|
label_cspz_6_16->show();
|
|
|
|
|
label_cspz_6_17->show();
|
|
|
|
|
label_cspz_6_18->show();
|
|
|
|
|
label_cspz_6_19->show();
|
|
|
|
|
label_cspz_6_20->show();
|
|
|
|
|
label_cspz_6_21->show();
|
|
|
|
|
label_cspz_6_22->show();
|
|
|
|
|
label_cspz_6_23->show();
|
|
|
|
|
label_cspz_6_24->show();
|
|
|
|
|
label_cspz_6_25->show();
|
|
|
|
|
label_cspz_6_26->show();
|
|
|
|
|
label_cspz_6_27->show();
|
|
|
|
|
label_cspz_6_28->show();
|
|
|
|
|
label_cspz_6_29->show();
|
|
|
|
|
label_cspz_6_30->show();
|
|
|
|
|
label_cspz_6_31->show();
|
|
|
|
|
lineEdit_cspz_6_1->show();
|
|
|
|
|
lineEdit_cspz_6_2->show();
|
|
|
|
|
lineEdit_cspz_6_3->show();
|
|
|
|
|
lineEdit_cspz_6_4->show();
|
|
|
|
|
lineEdit_cspz_6_5->show();
|
|
|
|
|
lineEdit_cspz_6_6->show();
|
|
|
|
|
lineEdit_cspz_6_7->show();
|
|
|
|
|
lineEdit_cspz_6_8->show();
|
|
|
|
|
lineEdit_cspz_6_9->show();
|
|
|
|
|
lineEdit_cspz_6_10->show();
|
|
|
|
|
lineEdit_cspz_6_11->show();
|
|
|
|
|
lineEdit_cspz_6_12->show();
|
|
|
|
|
lineEdit_cspz_6_13->show();
|
|
|
|
|
lineEdit_cspz_6_14->show();
|
|
|
|
|
lineEdit_cspz_6_15->show();
|
|
|
|
|
lineEdit_cspz_6_16->show();
|
|
|
|
|
lineEdit_cspz_6_17->show();
|
|
|
|
|
lineEdit_cspz_6_18->show();
|
|
|
|
|
lineEdit_cspz_6_19->show();
|
|
|
|
|
lineEdit_cspz_6_20->show();
|
|
|
|
|
lineEdit_cspz_6_21->show();
|
|
|
|
|
lineEdit_cspz_6_22->show();
|
|
|
|
|
lineEdit_cspz_6_23->show();
|
|
|
|
|
lineEdit_cspz_6_24->show();
|
|
|
|
|
lineEdit_cspz_6_25->show();
|
|
|
|
|
lineEdit_cspz_6_26->show();
|
|
|
|
|
lineEdit_cspz_6_27->show();
|
|
|
|
|
lineEdit_cspz_6_28->show();
|
|
|
|
|
lineEdit_cspz_6_29->show();
|
|
|
|
|
lineEdit_cspz_6_30->show();
|
|
|
|
|
button_cspz_6_1->show();
|
|
|
|
|
button_cspz_6_2->show();
|
|
|
|
|
button_cspz_6_3->show();
|
|
|
|
|
|
|
|
|
|
label_cspz_6_1->raise();
|
|
|
|
|
label_cspz_6_2->raise();
|
|
|
|
|
label_cspz_6_3->raise();
|
|
|
|
|
label_cspz_6_4->raise();
|
|
|
|
|
label_cspz_6_5->raise();
|
|
|
|
|
label_cspz_6_6->raise();
|
|
|
|
|
label_cspz_6_7->raise();
|
|
|
|
|
label_cspz_6_8->raise();
|
|
|
|
|
label_cspz_6_9->raise();
|
|
|
|
|
label_cspz_6_10->raise();
|
|
|
|
|
label_cspz_6_11->raise();
|
|
|
|
|
label_cspz_6_12->raise();
|
|
|
|
|
label_cspz_6_13->raise();
|
|
|
|
|
label_cspz_6_14->raise();
|
|
|
|
|
label_cspz_6_15->raise();
|
|
|
|
|
label_cspz_6_16->raise();
|
|
|
|
|
label_cspz_6_17->raise();
|
|
|
|
|
label_cspz_6_18->raise();
|
|
|
|
|
label_cspz_6_19->raise();
|
|
|
|
|
label_cspz_6_20->raise();
|
|
|
|
|
label_cspz_6_21->raise();
|
|
|
|
|
label_cspz_6_22->raise();
|
|
|
|
|
label_cspz_6_23->raise();
|
|
|
|
|
label_cspz_6_24->raise();
|
|
|
|
|
label_cspz_6_25->raise();
|
|
|
|
|
label_cspz_6_26->raise();
|
|
|
|
|
label_cspz_6_27->raise();
|
|
|
|
|
label_cspz_6_28->raise();
|
|
|
|
|
label_cspz_6_29->raise();
|
|
|
|
|
label_cspz_6_30->raise();
|
|
|
|
|
label_cspz_6_31->raise();
|
|
|
|
|
lineEdit_cspz_6_1->raise();
|
|
|
|
|
lineEdit_cspz_6_2->raise();
|
|
|
|
|
lineEdit_cspz_6_3->raise();
|
|
|
|
|
lineEdit_cspz_6_4->raise();
|
|
|
|
|
lineEdit_cspz_6_5->raise();
|
|
|
|
|
lineEdit_cspz_6_6->raise();
|
|
|
|
|
lineEdit_cspz_6_7->raise();
|
|
|
|
|
lineEdit_cspz_6_8->raise();
|
|
|
|
|
lineEdit_cspz_6_9->raise();
|
|
|
|
|
lineEdit_cspz_6_10->raise();
|
|
|
|
|
lineEdit_cspz_6_11->raise();
|
|
|
|
|
lineEdit_cspz_6_12->raise();
|
|
|
|
|
lineEdit_cspz_6_13->raise();
|
|
|
|
|
lineEdit_cspz_6_14->raise();
|
|
|
|
|
lineEdit_cspz_6_15->raise();
|
|
|
|
|
lineEdit_cspz_6_16->raise();
|
|
|
|
|
lineEdit_cspz_6_17->raise();
|
|
|
|
|
lineEdit_cspz_6_18->raise();
|
|
|
|
|
lineEdit_cspz_6_19->raise();
|
|
|
|
|
lineEdit_cspz_6_20->raise();
|
|
|
|
|
lineEdit_cspz_6_21->raise();
|
|
|
|
|
lineEdit_cspz_6_22->raise();
|
|
|
|
|
lineEdit_cspz_6_23->raise();
|
|
|
|
|
lineEdit_cspz_6_24->raise();
|
|
|
|
|
lineEdit_cspz_6_25->raise();
|
|
|
|
|
lineEdit_cspz_6_26->raise();
|
|
|
|
|
lineEdit_cspz_6_27->raise();
|
|
|
|
|
lineEdit_cspz_6_28->raise();
|
|
|
|
|
lineEdit_cspz_6_29->raise();
|
|
|
|
|
lineEdit_cspz_6_30->raise();
|
|
|
|
|
button_cspz_6_1->raise();
|
|
|
|
|
button_cspz_6_2->raise();
|
|
|
|
|
button_cspz_6_3->raise();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_0_wirenameset_show(int a)
|
|
|
|
|
{
|
|
|
|
|
if(a == 1){
|
|
|
|
|
label_cspz_wirenameset_back->raise();
|
|
|
|
|
label_cspz_wirename_1->show();
|
|
|
|
|
label_cspz_wirename_2->show();
|
|
|
|
|
label_cspz_wirename_3->show();
|
|
|
|
|
label_cspz_wirename_4->show();
|
|
|
|
|
label_cspz_wirename_5->show();
|
|
|
|
|
label_cspz_wirename_6->show();
|
|
|
|
|
label_cspz_wirename_7->show();
|
|
|
|
|
label_cspz_wirename_8->show();
|
|
|
|
|
label_cspz_wirename_9->show();
|
|
|
|
|
label_cspz_wirename_10->show();
|
|
|
|
|
label_cspz_wirename_11->show();
|
|
|
|
|
label_cspz_wirename_12->show();
|
|
|
|
|
label_cspz_wirename_13->show();
|
|
|
|
|
label_cspz_wirename_14->show();
|
|
|
|
|
label_cspz_wirename_15->show();
|
|
|
|
|
label_cspz_wirename_16->show();
|
|
|
|
|
label_cspz_wirename_17->show();
|
|
|
|
|
label_cspz_wirename_18->show();
|
|
|
|
|
label_cspz_wirename_19->show();
|
|
|
|
|
label_cspz_wirename_20->show();
|
|
|
|
|
label_cspz_wirename_21->show();
|
|
|
|
|
label_cspz_wirename_22->show();
|
|
|
|
|
label_cspz_wirename_23->show();
|
|
|
|
|
label_cspz_wirename_24->show();
|
|
|
|
|
label_cspz_wirename_25->show();
|
|
|
|
|
label_cspz_wirename_26->show();
|
|
|
|
|
label_cspz_wirename_27->show();
|
|
|
|
|
label_cspz_wirename_28->show();
|
|
|
|
|
label_cspz_wirename_29->show();
|
|
|
|
|
label_cspz_wirename_30->show();
|
|
|
|
|
label_cspz_wirename_save->show();//保存成功提示
|
|
|
|
|
lineEdit_cspz_wirename_1->show();
|
|
|
|
|
lineEdit_cspz_wirename_2->show();
|
|
|
|
|
lineEdit_cspz_wirename_3->show();
|
|
|
|
|
lineEdit_cspz_wirename_4->show();
|
|
|
|
|
lineEdit_cspz_wirename_5->show();
|
|
|
|
|
lineEdit_cspz_wirename_6->show();
|
|
|
|
|
lineEdit_cspz_wirename_7->show();
|
|
|
|
|
lineEdit_cspz_wirename_8->show();
|
|
|
|
|
lineEdit_cspz_wirename_9->show();
|
|
|
|
|
lineEdit_cspz_wirename_10->show();
|
|
|
|
|
lineEdit_cspz_wirename_11->show();
|
|
|
|
|
lineEdit_cspz_wirename_12->show();
|
|
|
|
|
lineEdit_cspz_wirename_13->show();
|
|
|
|
|
lineEdit_cspz_wirename_14->show();
|
|
|
|
|
lineEdit_cspz_wirename_15->show();
|
|
|
|
|
lineEdit_cspz_wirename_16->show();
|
|
|
|
|
lineEdit_cspz_wirename_17->show();
|
|
|
|
|
lineEdit_cspz_wirename_18->show();
|
|
|
|
|
lineEdit_cspz_wirename_19->show();
|
|
|
|
|
lineEdit_cspz_wirename_20->show();
|
|
|
|
|
lineEdit_cspz_wirename_21->show();
|
|
|
|
|
lineEdit_cspz_wirename_22->show();
|
|
|
|
|
lineEdit_cspz_wirename_23->show();
|
|
|
|
|
lineEdit_cspz_wirename_24->show();
|
|
|
|
|
lineEdit_cspz_wirename_25->show();
|
|
|
|
|
lineEdit_cspz_wirename_26->show();
|
|
|
|
|
lineEdit_cspz_wirename_27->show();
|
|
|
|
|
lineEdit_cspz_wirename_28->show();
|
|
|
|
|
lineEdit_cspz_wirename_29->show();
|
|
|
|
|
lineEdit_cspz_wirename_30->show();
|
|
|
|
|
button_cspz_wirename_1->show();
|
|
|
|
|
button_cspz_wirename_2->show();
|
|
|
|
|
button_cspz_wirename_3->show();
|
|
|
|
|
|
|
|
|
|
label_cspz_wirename_1->raise();
|
|
|
|
|
label_cspz_wirename_2->raise();
|
|
|
|
|
label_cspz_wirename_3->raise();
|
|
|
|
|
label_cspz_wirename_4->raise();
|
|
|
|
|
label_cspz_wirename_5->raise();
|
|
|
|
|
label_cspz_wirename_6->raise();
|
|
|
|
|
label_cspz_wirename_7->raise();
|
|
|
|
|
label_cspz_wirename_8->raise();
|
|
|
|
|
label_cspz_wirename_9->raise();
|
|
|
|
|
label_cspz_wirename_10->raise();
|
|
|
|
|
label_cspz_wirename_11->raise();
|
|
|
|
|
label_cspz_wirename_12->raise();
|
|
|
|
|
label_cspz_wirename_13->raise();
|
|
|
|
|
label_cspz_wirename_14->raise();
|
|
|
|
|
label_cspz_wirename_15->raise();
|
|
|
|
|
label_cspz_wirename_16->raise();
|
|
|
|
|
label_cspz_wirename_17->raise();
|
|
|
|
|
label_cspz_wirename_18->raise();
|
|
|
|
|
label_cspz_wirename_19->raise();
|
|
|
|
|
label_cspz_wirename_20->raise();
|
|
|
|
|
label_cspz_wirename_21->raise();
|
|
|
|
|
label_cspz_wirename_22->raise();
|
|
|
|
|
label_cspz_wirename_23->raise();
|
|
|
|
|
label_cspz_wirename_24->raise();
|
|
|
|
|
label_cspz_wirename_25->raise();
|
|
|
|
|
label_cspz_wirename_26->raise();
|
|
|
|
|
label_cspz_wirename_27->raise();
|
|
|
|
|
label_cspz_wirename_28->raise();
|
|
|
|
|
label_cspz_wirename_29->raise();
|
|
|
|
|
label_cspz_wirename_30->raise();
|
|
|
|
|
|
|
|
|
|
label_cspz_wirename_save->raise();//保存成功提示
|
|
|
|
|
lineEdit_cspz_wirename_1->raise();
|
|
|
|
|
lineEdit_cspz_wirename_2->raise();
|
|
|
|
|
lineEdit_cspz_wirename_3->raise();
|
|
|
|
|
lineEdit_cspz_wirename_4->raise();
|
|
|
|
|
lineEdit_cspz_wirename_5->raise();
|
|
|
|
|
lineEdit_cspz_wirename_6->raise();
|
|
|
|
|
lineEdit_cspz_wirename_7->raise();
|
|
|
|
|
lineEdit_cspz_wirename_8->raise();
|
|
|
|
|
lineEdit_cspz_wirename_9->raise();
|
|
|
|
|
lineEdit_cspz_wirename_10->raise();
|
|
|
|
|
lineEdit_cspz_wirename_11->raise();
|
|
|
|
|
lineEdit_cspz_wirename_12->raise();
|
|
|
|
|
lineEdit_cspz_wirename_13->raise();
|
|
|
|
|
lineEdit_cspz_wirename_14->raise();
|
|
|
|
|
lineEdit_cspz_wirename_15->raise();
|
|
|
|
|
lineEdit_cspz_wirename_16->raise();
|
|
|
|
|
lineEdit_cspz_wirename_17->raise();
|
|
|
|
|
lineEdit_cspz_wirename_18->raise();
|
|
|
|
|
lineEdit_cspz_wirename_19->raise();
|
|
|
|
|
lineEdit_cspz_wirename_20->raise();
|
|
|
|
|
lineEdit_cspz_wirename_21->raise();
|
|
|
|
|
lineEdit_cspz_wirename_22->raise();
|
|
|
|
|
lineEdit_cspz_wirename_23->raise();
|
|
|
|
|
lineEdit_cspz_wirename_24->raise();
|
|
|
|
|
lineEdit_cspz_wirename_25->raise();
|
|
|
|
|
lineEdit_cspz_wirename_26->raise();
|
|
|
|
|
lineEdit_cspz_wirename_27->raise();
|
|
|
|
|
lineEdit_cspz_wirename_28->raise();
|
|
|
|
|
lineEdit_cspz_wirename_29->raise();
|
|
|
|
|
lineEdit_cspz_wirename_30->raise();
|
|
|
|
|
button_cspz_wirename_1->raise();
|
|
|
|
|
button_cspz_wirename_2->raise();
|
|
|
|
|
button_cspz_wirename_3->raise();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::cspz_byqset_page()//变压器倍率
|
|
|
|
|
{
|
|
|
|
|
label_cspz_1_1=new QLabel(this);
|
|
|
|
|
label_cspz_1_2=new QLabel(this);
|
|
|
|
|
label_cspz_1_3=new QLabel(this);
|
|
|
|
|
label_cspz_1_4=new QLabel(this);
|
|
|
|
|
label_cspz_1_5=new QLabel(this);
|
|
|
|
|
lineEdit_cspz_1_1=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_1_2=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_1_3=new QLineEdit(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1_A=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_1_2_B=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_1_3_C=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_1_3_T=new QLineEdit(this);
|
|
|
|
|
|
|
|
|
|
button_cspz_1_1=new QPushButton(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_1_2->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_1_3->installEventFilter(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1_A->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_1_2_B->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_1_3_C->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_1_3_T->installEventFilter(this);
|
|
|
|
|
|
|
|
|
|
label_cspz_1_1->setGeometry(240,210,120,30);
|
|
|
|
|
label_cspz_1_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_1_1->setText("电流互感器倍率");
|
|
|
|
|
label_cspz_1_2->setGeometry(240,250,120,30);
|
|
|
|
|
label_cspz_1_2->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_1_2->setText("电压互感器倍率");
|
|
|
|
|
label_cspz_1_3->setGeometry(370,290,120,30);
|
|
|
|
|
label_cspz_1_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_1_4->setGeometry(450,250,30,30);
|
|
|
|
|
label_cspz_1_4->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_1_4->setText("V:");
|
|
|
|
|
label_cspz_1_5->setGeometry(550,250,120,30);
|
|
|
|
|
label_cspz_1_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_1_5->setText("V");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1->setGeometry(370,210,70,30);
|
|
|
|
|
lineEdit_cspz_1_1->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_1_2->setGeometry(370,250,70,30);
|
|
|
|
|
lineEdit_cspz_1_2->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_1_3->setGeometry(470,250,70,30);
|
|
|
|
|
lineEdit_cspz_1_3->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1_A->setGeometry(370,290,70,30);
|
|
|
|
|
lineEdit_cspz_1_1_A->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_1_2_B->setGeometry(470,290,70,30);
|
|
|
|
|
lineEdit_cspz_1_2_B->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_1_3_C->setGeometry(570,290,70,30);
|
|
|
|
|
lineEdit_cspz_1_3_C->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_1_3_T->setGeometry(670,290,70,30);
|
|
|
|
|
lineEdit_cspz_1_3_T->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
/*文件读取*/
|
|
|
|
|
QFile file_read("/home/data/cspz_ct_set.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
QString line2=in.readLine();
|
|
|
|
|
QString line3=in.readLine();
|
|
|
|
|
|
|
|
|
|
QString line4=in.readLine();
|
|
|
|
|
QString line5=in.readLine();
|
|
|
|
|
QString line6=in.readLine();
|
|
|
|
|
QString line7=in.readLine();
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1->setText(line1);
|
|
|
|
|
lineEdit_cspz_1_2->setText(line2);
|
|
|
|
|
lineEdit_cspz_1_3->setText(line3);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_1_1_A->setText(line4);
|
|
|
|
|
lineEdit_cspz_1_2_B->setText(line5);
|
|
|
|
|
lineEdit_cspz_1_3_C->setText(line6);
|
|
|
|
|
lineEdit_cspz_1_3_T->setText(line7);
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
button_cspz_1_1->setGeometry(240,290,120,30);
|
|
|
|
|
button_cspz_1_1->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_1_1->setText("保存参数");
|
|
|
|
|
|
|
|
|
|
connect(button_cspz_1_1,SIGNAL(clicked()),this,SLOT(button_cspz_1_1_Clicked()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::cspz_rxyset_page()
|
|
|
|
|
{
|
|
|
|
|
label_cspz_3_1=new QLabel(this);
|
|
|
|
|
label_cspz_3_2=new QLabel(this);
|
|
|
|
|
label_cspz_3_3=new QLabel(this);
|
|
|
|
|
label_cspz_3_4=new QLabel(this);
|
|
|
|
|
label_cspz_3_5=new QLabel(this);
|
|
|
|
|
label_cspz_3_6=new QLabel(this);
|
|
|
|
|
label_cspz_3_7=new QLabel(this);
|
|
|
|
|
label_cspz_3_8=new QLabel(this);
|
|
|
|
|
label_cspz_3_9=new QLabel(this);
|
|
|
|
|
label_cspz_3_10=new QLabel(this);
|
|
|
|
|
label_cspz_3_11=new QLabel(this);
|
|
|
|
|
label_cspz_3_12=new QLabel(this);
|
|
|
|
|
label_cspz_3_13=new QLabel(this);
|
|
|
|
|
label_cspz_3_14=new QLabel(this);
|
|
|
|
|
label_cspz_3_15=new QLabel(this);
|
|
|
|
|
label_cspz_3_16=new QLabel(this);
|
|
|
|
|
label_cspz_3_17=new QLabel(this);
|
|
|
|
|
label_cspz_3_18=new QLabel(this);
|
|
|
|
|
label_cspz_3_19=new QLabel(this);
|
|
|
|
|
label_cspz_3_20=new QLabel(this);
|
|
|
|
|
label_cspz_3_21=new QLabel(this);
|
|
|
|
|
label_cspz_3_22=new QLabel(this);
|
|
|
|
|
label_cspz_3_23=new QLabel(this);
|
|
|
|
|
label_cspz_3_24=new QLabel(this);
|
|
|
|
|
label_cspz_3_25=new QLabel(this);
|
|
|
|
|
label_cspz_3_26=new QLabel(this);
|
|
|
|
|
label_cspz_3_27=new QLabel(this);
|
|
|
|
|
label_cspz_3_28=new QLabel(this);
|
|
|
|
|
label_cspz_3_29=new QLabel(this);
|
|
|
|
|
label_cspz_3_30=new QLabel(this);
|
|
|
|
|
label_cspz_3_31=new QLabel(this);
|
|
|
|
|
lineEdit_cspz_3_1=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_2=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_3=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_4=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_5=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_6=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_7=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_8=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_9=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_10=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_11=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_12=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_13=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_14=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_15=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_3_16=new QLineEdit(this);
|
|
|
|
|
button_cspz_3_1=new QPushButton(this);
|
|
|
|
|
button_cspz_3_2=new QPushButton(this);
|
|
|
|
|
combox_cspz_3_1=new QComboBox(this);
|
|
|
|
|
line_cspz_3_1=new QFrame(this);
|
|
|
|
|
label_cspz_rxy1_start=new QLabel(this);
|
|
|
|
|
label_cspz_rxy2_start=new QLabel(this);
|
|
|
|
|
button_cspz_rxy1_start=new QPushButton(this);
|
|
|
|
|
button_cspz_rxy2_start=new QPushButton(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_3_1->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_2->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_3->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_4->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_5->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_6->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_7->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_8->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_9->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_10->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_11->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_12->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_13->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_14->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_15->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_3_16->installEventFilter(this);
|
|
|
|
|
|
|
|
|
|
label_cspz_3_29->setGeometry(50,196,100,30);
|
|
|
|
|
label_cspz_3_29->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_29->setText("设备选择:");
|
|
|
|
|
|
|
|
|
|
label_cspz_3_16->setGeometry(50,231,150,30);
|
|
|
|
|
label_cspz_3_16->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_16->setText("热像仪IP");
|
|
|
|
|
label_cspz_3_17->setGeometry(50,266,150,30);
|
|
|
|
|
label_cspz_3_17->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_17->setText("端口号");
|
|
|
|
|
|
|
|
|
|
label_cspz_3_1->setGeometry(50,301,150,30);
|
|
|
|
|
label_cspz_3_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_1->setText("变压器负荷:");
|
|
|
|
|
label_cspz_3_2->setGeometry(50,336,150,30);
|
|
|
|
|
label_cspz_3_2->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_2->setText("设定容量值:");
|
|
|
|
|
label_cspz_3_3->setGeometry(50,371,100,30);
|
|
|
|
|
label_cspz_3_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_3->setText("工作采集频次:");
|
|
|
|
|
label_cspz_3_4->setGeometry(50,406,150,30);
|
|
|
|
|
label_cspz_3_4->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_4->setText("采集时间段:");
|
|
|
|
|
label_cspz_3_5->setGeometry(160,301,100,30);//变压器负荷值
|
|
|
|
|
label_cspz_3_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_6->setGeometry(270,301,30,30);
|
|
|
|
|
label_cspz_3_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_6->setText("kVA");
|
|
|
|
|
label_cspz_3_7->setGeometry(270,336,30,30);
|
|
|
|
|
label_cspz_3_7->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_7->setText("kVA");
|
|
|
|
|
label_cspz_3_8->setGeometry(160,371,30,30);
|
|
|
|
|
label_cspz_3_8->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_8->setText("每");
|
|
|
|
|
label_cspz_3_9->setGeometry(218,371,30,30);
|
|
|
|
|
label_cspz_3_9->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_9->setText("月");
|
|
|
|
|
label_cspz_3_10->setGeometry(288,371,30,30);
|
|
|
|
|
label_cspz_3_10->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_10->setText("周");
|
|
|
|
|
label_cspz_3_11->setGeometry(358,371,30,30);
|
|
|
|
|
label_cspz_3_11->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_11->setText("天");
|
|
|
|
|
label_cspz_3_12->setGeometry(190,406,20,30);
|
|
|
|
|
label_cspz_3_12->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_12->setText("点");
|
|
|
|
|
label_cspz_3_30->setGeometry(240,406,20,30);
|
|
|
|
|
label_cspz_3_30->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_30->setText("分");
|
|
|
|
|
label_cspz_3_13->setGeometry(260,406,20,30);
|
|
|
|
|
label_cspz_3_13->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_13->setText("至");
|
|
|
|
|
label_cspz_3_14->setGeometry(310,406,20,30);
|
|
|
|
|
label_cspz_3_14->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_14->setText("点");
|
|
|
|
|
label_cspz_3_31->setGeometry(360,406,20,30);
|
|
|
|
|
label_cspz_3_31->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_31->setText("分");
|
|
|
|
|
//label_cspz_3_15->setGeometry(700,354,80,30);
|
|
|
|
|
label_cspz_3_15->setGeometry(310,270,80,30);
|
|
|
|
|
label_cspz_3_15->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
|
|
|
|
|
label_cspz_3_18->setGeometry(450,231,100,30);
|
|
|
|
|
label_cspz_3_18->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_18->setText("反射温度");
|
|
|
|
|
label_cspz_3_19->setGeometry(450,266,100,30);
|
|
|
|
|
label_cspz_3_19->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_19->setText("反射率");
|
|
|
|
|
label_cspz_3_20->setGeometry(450,301,100,30);
|
|
|
|
|
label_cspz_3_20->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_20->setText("反射距离");
|
|
|
|
|
label_cspz_3_21->setGeometry(450,336,100,30);
|
|
|
|
|
label_cspz_3_21->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_21->setText("预警温度");
|
|
|
|
|
label_cspz_3_22->setGeometry(450,371,100,30);
|
|
|
|
|
label_cspz_3_22->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_22->setText("报警温度");
|
|
|
|
|
label_cspz_3_23->setGeometry(450,406,100,30);
|
|
|
|
|
label_cspz_3_23->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_23->setText("报警间隔时间");
|
|
|
|
|
label_cspz_3_24->setGeometry(620,231,30,30);
|
|
|
|
|
label_cspz_3_24->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_24->setText("°C");
|
|
|
|
|
label_cspz_3_25->setGeometry(620,301,30,30);
|
|
|
|
|
label_cspz_3_25->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_25->setText("米");
|
|
|
|
|
label_cspz_3_26->setGeometry(620,336,30,30);
|
|
|
|
|
label_cspz_3_26->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_26->setText("°C");
|
|
|
|
|
label_cspz_3_27->setGeometry(620,371,30,30);
|
|
|
|
|
label_cspz_3_27->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_27->setText("°C");
|
|
|
|
|
label_cspz_3_28->setGeometry(620,406,30,30);
|
|
|
|
|
label_cspz_3_28->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_3_28->setText("秒");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_3_1->setGeometry(160,336,100,30);
|
|
|
|
|
lineEdit_cspz_3_1->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_2->setGeometry(180,371,30,30);
|
|
|
|
|
lineEdit_cspz_3_2->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_3->setGeometry(248,371,30,30);
|
|
|
|
|
lineEdit_cspz_3_3->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_4->setGeometry(320,371,30,30);
|
|
|
|
|
lineEdit_cspz_3_4->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_5->setGeometry(160,406,30,30);
|
|
|
|
|
lineEdit_cspz_3_5->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_6->setGeometry(280,406,30,30);
|
|
|
|
|
lineEdit_cspz_3_6->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_7->setGeometry(160,231,100,30);
|
|
|
|
|
lineEdit_cspz_3_7->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_8->setGeometry(160,266,100,30);
|
|
|
|
|
lineEdit_cspz_3_8->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_9->setGeometry(560,231,50,30);
|
|
|
|
|
lineEdit_cspz_3_9->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_10->setGeometry(560,266,50,30);
|
|
|
|
|
lineEdit_cspz_3_10->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_11->setGeometry(560,301,50,30);
|
|
|
|
|
lineEdit_cspz_3_11->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_12->setGeometry(560,336,50,30);
|
|
|
|
|
lineEdit_cspz_3_12->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_13->setGeometry(560,371,50,30);
|
|
|
|
|
lineEdit_cspz_3_13->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_14->setGeometry(560,406,50,30);
|
|
|
|
|
lineEdit_cspz_3_14->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_15->setGeometry(210,406,30,30);
|
|
|
|
|
lineEdit_cspz_3_15->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_3_16->setGeometry(330,406,30,30);
|
|
|
|
|
lineEdit_cspz_3_16->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
combox_cspz_3_1->setGeometry(160,196,80,30);
|
|
|
|
|
combox_cspz_3_1->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
combox_cspz_3_1->addItem("1");
|
|
|
|
|
combox_cspz_3_1->addItem("2");
|
|
|
|
|
|
|
|
|
|
line_cspz_3_1->setGeometry(395,215,1,220);
|
|
|
|
|
line_cspz_3_1->setStyleSheet("color: rgb(255, 255, 255)");
|
|
|
|
|
line_cspz_3_1->setFrameShape(QFrame::VLine);
|
|
|
|
|
|
|
|
|
|
/*获取变压器容量*/
|
|
|
|
|
QFile byq_read("/home/data/cspz_byqfuhe");
|
|
|
|
|
if(byq_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&byq_read);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
label_cspz_3_5->setText(line1);
|
|
|
|
|
}
|
|
|
|
|
byq_read.close();
|
|
|
|
|
|
|
|
|
|
/*读取配置文件*/
|
|
|
|
|
QFile file_read("/home/data/camera.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
line1=line1.replace("http://","");//删除前面几个字符
|
|
|
|
|
|
|
|
|
|
int local = line1.indexOf(':',1,Qt::CaseInsensitive);//意思是从第1位往后找,找到的第一个‘:’所在的位置
|
|
|
|
|
QString IP=line1.left(local);//从左向右截取n个字符串
|
|
|
|
|
QString PORT=line1.right(line1.length()-local-1);
|
|
|
|
|
|
|
|
|
|
QString yue=in.readLine();
|
|
|
|
|
QString zhou=in.readLine();
|
|
|
|
|
QString tian=in.readLine();
|
|
|
|
|
|
|
|
|
|
QString start=in.readLine();
|
|
|
|
|
QString start_shi=start.left(start.length()-2);
|
|
|
|
|
QString start_fen=start.right(2);
|
|
|
|
|
|
|
|
|
|
QString stop=in.readLine();
|
|
|
|
|
QString stop_shi=stop.left(sizeof(stop)-2);
|
|
|
|
|
QString stop_fen=stop.right(2);
|
|
|
|
|
|
|
|
|
|
QString fan_temp=in.readLine();
|
|
|
|
|
QString fan_rate=in.readLine();
|
|
|
|
|
QString fan_range=in.readLine();
|
|
|
|
|
QString warning=in.readLine();
|
|
|
|
|
QString alarm=in.readLine();
|
|
|
|
|
QString time=in.readLine();
|
|
|
|
|
|
|
|
|
|
QString rongliang=in.readLine();
|
|
|
|
|
bool ok;
|
|
|
|
|
int byq_rongliang = rongliang.toInt(&ok,10)/0.3;//字符串转10进制
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_3_7->setText(IP);
|
|
|
|
|
lineEdit_cspz_3_8->setText(PORT);
|
|
|
|
|
lineEdit_cspz_3_2->setText(yue);
|
|
|
|
|
lineEdit_cspz_3_3->setText(zhou);
|
|
|
|
|
lineEdit_cspz_3_4->setText(tian);
|
|
|
|
|
lineEdit_cspz_3_5->setText(start_shi);
|
|
|
|
|
lineEdit_cspz_3_15->setText(start_fen);
|
|
|
|
|
lineEdit_cspz_3_6->setText(stop_shi);
|
|
|
|
|
lineEdit_cspz_3_16->setText(stop_fen);
|
|
|
|
|
lineEdit_cspz_3_9->setText(fan_temp);
|
|
|
|
|
lineEdit_cspz_3_10->setText(fan_rate);
|
|
|
|
|
lineEdit_cspz_3_11->setText(fan_range);
|
|
|
|
|
lineEdit_cspz_3_12->setText(warning);
|
|
|
|
|
lineEdit_cspz_3_13->setText(alarm);
|
|
|
|
|
lineEdit_cspz_3_14->setText(time);
|
|
|
|
|
lineEdit_cspz_3_1->setText(QString::number(byq_rongliang));
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
button_cspz_3_2->setGeometry(700,390,80,30);
|
|
|
|
|
button_cspz_3_2->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_3_2->setText("保存参数");
|
|
|
|
|
button_cspz_3_1->setGeometry(700,390,80,30);
|
|
|
|
|
button_cspz_3_1->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_3_1->setText("保存参数");
|
|
|
|
|
|
|
|
|
|
label_cspz_rxy1_start->setGeometry(680,270,110,30);
|
|
|
|
|
label_cspz_rxy1_start->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
button_cspz_rxy1_start->setGeometry(680,230,110,30);
|
|
|
|
|
button_cspz_rxy1_start->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
label_cspz_rxy2_start->setGeometry(680,350,110,30);
|
|
|
|
|
label_cspz_rxy2_start->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
button_cspz_rxy2_start->setGeometry(680,310,110,30);
|
|
|
|
|
button_cspz_rxy2_start->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
QFile file_readr("/home/data/connect_rxy1.txt");
|
|
|
|
|
if(file_readr.exists()){
|
|
|
|
|
if(file_readr.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_readr);//创建一个对象让它去读文件
|
|
|
|
|
if(in.readLine()=="1")
|
|
|
|
|
{
|
|
|
|
|
label_cspz_rxy1_start->setText("热像仪1已开启");
|
|
|
|
|
button_cspz_rxy1_start->setText("关闭热像仪1");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
label_cspz_rxy1_start->setText("热像仪1已关闭");
|
|
|
|
|
button_cspz_rxy1_start->setText("开启热像仪1");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_readr.close();
|
|
|
|
|
}else{
|
|
|
|
|
QFile file_write_rxy1("/home/data/connect_rxy1.txt");//文件路径
|
|
|
|
|
if(file_write_rxy1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write_rxy1);
|
|
|
|
|
setWIFI_data<<"0"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write_rxy1.close();
|
|
|
|
|
label_cspz_rxy1_start->setText("热像仪1已关闭");
|
|
|
|
|
button_cspz_rxy1_start->setText("开启热像仪1");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFile file_readr2("/home/data/connect_rxy2.txt");
|
|
|
|
|
if(file_readr2.exists()){
|
|
|
|
|
if(file_readr2.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_readr2);//创建一个对象让它去读文件
|
|
|
|
|
if(in.readLine()=="1")
|
|
|
|
|
{
|
|
|
|
|
label_cspz_rxy2_start->setText("热像仪2已开启");
|
|
|
|
|
button_cspz_rxy2_start->setText("关闭热像仪2");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
label_cspz_rxy2_start->setText("热像仪2已关闭");
|
|
|
|
|
button_cspz_rxy2_start->setText("开启热像仪2");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_readr2.close();
|
|
|
|
|
}else {
|
|
|
|
|
QFile file_write_rxy2("/home/data/connect_rxy2.txt");//文件路径
|
|
|
|
|
if(file_write_rxy2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write_rxy2);
|
|
|
|
|
setWIFI_data<<"0"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write_rxy2.close();
|
|
|
|
|
label_cspz_rxy2_start->setText("热像仪2已关闭");
|
|
|
|
|
button_cspz_rxy2_start->setText("开启热像仪2");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
connect(button_cspz_rxy1_start,SIGNAL(clicked()),this,SLOT(button_cspz_rxy1_start_Clicked()));
|
|
|
|
|
connect(button_cspz_rxy2_start,SIGNAL(clicked()),this,SLOT(button_cspz_rxy2_start_Clicked()));
|
|
|
|
|
|
|
|
|
|
connect(combox_cspz_3_1, SIGNAL(currentIndexChanged(int)), this,SLOT(comboBox_cspz_3_1_IndexChanged(int)));
|
|
|
|
|
connect(button_cspz_3_1,SIGNAL(clicked()),this,SLOT(button_cspz_3_1_Clicked()));
|
|
|
|
|
connect(button_cspz_3_2,SIGNAL(clicked()),this,SLOT(button_cspz_3_2_Clicked()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::cspz_fengjiset_page()
|
|
|
|
|
{
|
|
|
|
|
label_cspz_5_1=new QLabel(this);
|
|
|
|
|
label_cspz_5_2=new QLabel(this);
|
|
|
|
|
label_cspz_5_3=new QLabel(this);
|
|
|
|
|
label_cspz_5_4=new QLabel(this);
|
|
|
|
|
label_cspz_5_5=new QLabel(this);
|
|
|
|
|
label_cspz_5_6=new QLabel(this);
|
|
|
|
|
label_cspz_5_7=new QLabel(this);
|
|
|
|
|
label_cspz_5_8=new QLabel(this);
|
|
|
|
|
label_cspz_5_9=new QLabel(this);
|
|
|
|
|
label_cspz_5_10=new QLabel(this);
|
|
|
|
|
label_cspz_5_11=new QLabel(this);
|
|
|
|
|
label_cspz_5_12=new QLabel(this);
|
|
|
|
|
label_cspz_5_13=new QLabel(this);
|
|
|
|
|
label_cspz_5_14=new QLabel(this);
|
|
|
|
|
label_cspz_5_15=new QLabel(this);
|
|
|
|
|
label_cspz_5_18=new QLabel(this);
|
|
|
|
|
label_cspz_5_19=new QLabel(this);
|
|
|
|
|
label_cspz_5_20=new QLabel(this);
|
|
|
|
|
lineEdit_cspz_5_1=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_5_2=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_5_3=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_5_4=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_5_5=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_5_6=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_5_7=new QLineEdit(this);
|
|
|
|
|
button_cspz_5_1=new QPushButton(this);
|
|
|
|
|
button_cspz_5_2=new QPushButton(this);
|
|
|
|
|
button_cspz_5_3=new QPushButton(this);
|
|
|
|
|
button_cspz_5_4=new QPushButton(this);
|
|
|
|
|
button_cspz_5_5=new QPushButton(this);
|
|
|
|
|
|
|
|
|
|
line_cspz_5_1=new QFrame(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_5_1->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_5_2->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_5_3->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_5_4->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_5_5->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_5_6->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_5_7->installEventFilter(this);
|
|
|
|
|
|
|
|
|
|
label_cspz_5_1->setGeometry(560,240,100,30);
|
|
|
|
|
label_cspz_5_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_1->setText("风机开启温度:");
|
|
|
|
|
label_cspz_5_2->setGeometry(560,280,100,30);
|
|
|
|
|
label_cspz_5_2->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_2->setText("风机停止温度:");
|
|
|
|
|
label_cspz_5_3->setGeometry(560,320,100,30);
|
|
|
|
|
label_cspz_5_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_3->setText("超温报警温度:");
|
|
|
|
|
label_cspz_5_4->setGeometry(560,360,100,30);
|
|
|
|
|
label_cspz_5_4->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_4->setText("超温跳闸温度:");
|
|
|
|
|
label_cspz_5_5->setGeometry(730,240,30,30);
|
|
|
|
|
label_cspz_5_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_5->setText("℃");
|
|
|
|
|
label_cspz_5_6->setGeometry(730,280,30,30);
|
|
|
|
|
label_cspz_5_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_6->setText("℃");
|
|
|
|
|
label_cspz_5_7->setGeometry(730,320,30,30);
|
|
|
|
|
label_cspz_5_7->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_7->setText("℃");
|
|
|
|
|
label_cspz_5_8->setGeometry(730,360,30,30);
|
|
|
|
|
label_cspz_5_8->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_8->setText("℃");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_5_1->setGeometry(670,240,50,30);
|
|
|
|
|
lineEdit_cspz_5_1->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_5_2->setGeometry(670,280,50,30);
|
|
|
|
|
lineEdit_cspz_5_2->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_5_3->setGeometry(670,320,50,30);
|
|
|
|
|
lineEdit_cspz_5_3->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_5_4->setGeometry(670,360,50,30);
|
|
|
|
|
lineEdit_cspz_5_4->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
label_cspz_5_9->setGeometry(20,200,120,30);
|
|
|
|
|
label_cspz_5_9->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_9->setText("模式1:手动控制");
|
|
|
|
|
label_cspz_5_10->setGeometry(200,200,120,30);
|
|
|
|
|
label_cspz_5_10->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_10->setText("模式2:自动控制");
|
|
|
|
|
label_cspz_5_11->setGeometry(200,240,100,30);
|
|
|
|
|
label_cspz_5_11->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_11->setText("风机启动时间:");
|
|
|
|
|
label_cspz_5_12->setGeometry(370,240,30,30);
|
|
|
|
|
label_cspz_5_12->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_12->setText("时");
|
|
|
|
|
label_cspz_5_13->setGeometry(460,240,30,30);
|
|
|
|
|
label_cspz_5_13->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_13->setText("分");
|
|
|
|
|
label_cspz_5_14->setGeometry(200,280,100,30);
|
|
|
|
|
label_cspz_5_14->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_14->setText("风机开启时长:");
|
|
|
|
|
label_cspz_5_15->setGeometry(370,280,30,30);
|
|
|
|
|
label_cspz_5_15->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_15->setText("小时");
|
|
|
|
|
label_cspz_5_18->setGeometry(670,400,100,30);
|
|
|
|
|
label_cspz_5_18->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_5_5->setGeometry(310,240,50,30);
|
|
|
|
|
lineEdit_cspz_5_5->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_5_6->setGeometry(400,240,50,30);
|
|
|
|
|
lineEdit_cspz_5_6->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_5_7->setGeometry(310,280,50,30);
|
|
|
|
|
lineEdit_cspz_5_7->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
line_cspz_5_1->setGeometry(160,210,1,200);
|
|
|
|
|
line_cspz_5_1->setFrameShape(QFrame::VLine);
|
|
|
|
|
|
|
|
|
|
button_cspz_5_1->setGeometry(30,250,100,30);
|
|
|
|
|
button_cspz_5_1->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_1->setText("启动风机检测");
|
|
|
|
|
button_cspz_5_2->setGeometry(30,300,100,30);
|
|
|
|
|
button_cspz_5_2->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_2->setText("停止风机检测");
|
|
|
|
|
|
|
|
|
|
QFile file_read("/home/data/FanTiming_local.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
QString line2=in.readLine();
|
|
|
|
|
QString line3=in.readLine();
|
|
|
|
|
lineEdit_cspz_5_5->setText(line1);
|
|
|
|
|
lineEdit_cspz_5_6->setText(line2);
|
|
|
|
|
lineEdit_cspz_5_7->setText(line3);
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
QFile file_read1("/home/data/FanTemperature.txt");
|
|
|
|
|
if(file_read1.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read1);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
QString line2=in.readLine();
|
|
|
|
|
lineEdit_cspz_5_1->setText(line1);
|
|
|
|
|
lineEdit_cspz_5_2->setText(line2);
|
|
|
|
|
}
|
|
|
|
|
file_read1.close();
|
|
|
|
|
|
|
|
|
|
QFile file_read2("/home/data/overheat.txt");
|
|
|
|
|
if(file_read2.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read2);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
QString line2=in.readLine();
|
|
|
|
|
lineEdit_cspz_5_3->setText(line1);
|
|
|
|
|
lineEdit_cspz_5_4->setText(line2);
|
|
|
|
|
}
|
|
|
|
|
file_read2.close();
|
|
|
|
|
|
|
|
|
|
button_cspz_5_3->setGeometry(560,400,100,30);
|
|
|
|
|
button_cspz_5_3->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_3->setText("保存参数");
|
|
|
|
|
|
|
|
|
|
button_cspz_5_4->setGeometry(200,360,140,30);
|
|
|
|
|
button_cspz_5_4->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_4->setText("关闭风机定时运行");
|
|
|
|
|
label_cspz_5_19->setGeometry(350,360,150,30);
|
|
|
|
|
label_cspz_5_19->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_19->setText("风机定时运行已开启!");
|
|
|
|
|
|
|
|
|
|
button_cspz_5_5->setGeometry(200,320,140,30);
|
|
|
|
|
button_cspz_5_5->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_5->setText("开启铁芯温度检测");
|
|
|
|
|
label_cspz_5_20->setGeometry(350,320,150,30);
|
|
|
|
|
label_cspz_5_20->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_20->setText("铁芯温度检测已关闭!");
|
|
|
|
|
|
|
|
|
|
QFile file_read3("/home/data/select_fan.txt");
|
|
|
|
|
if(file_read3.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read3);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
if(line1=="1")
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_4->setGeometry(200,360,140,30);
|
|
|
|
|
button_cspz_5_4->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_4->setText("关闭风机定时运行");
|
|
|
|
|
label_cspz_5_19->setGeometry(350,360,150,30);
|
|
|
|
|
label_cspz_5_19->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_19->setText("风机定时运行已开启!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_4->setGeometry(200,360,140,30);
|
|
|
|
|
button_cspz_5_4->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_4->setText("开启风机定时运行");
|
|
|
|
|
label_cspz_5_19->setGeometry(350,360,150,30);
|
|
|
|
|
label_cspz_5_19->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_19->setText("风机定时运行已关闭!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_read3.close();
|
|
|
|
|
|
|
|
|
|
QFile file_read4("/home/data/select_tiexin.txt");
|
|
|
|
|
if(file_read4.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read4);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
if(line1=="1")
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_5->setGeometry(200,320,140,30);
|
|
|
|
|
button_cspz_5_5->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_5->setText("关闭铁芯温度检测");
|
|
|
|
|
label_cspz_5_20->setGeometry(350,320,150,30);
|
|
|
|
|
label_cspz_5_20->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_20->setText("铁芯温度检测已开启!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_5->setGeometry(200,320,140,30);
|
|
|
|
|
button_cspz_5_5->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_5_5->setText("开启铁芯温度检测");
|
|
|
|
|
label_cspz_5_20->setGeometry(350,320,150,30);
|
|
|
|
|
label_cspz_5_20->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_5_20->setText("铁芯温度检测已关闭!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_read4.close();
|
|
|
|
|
|
|
|
|
|
connect(button_cspz_5_1,SIGNAL(clicked()),this,SLOT(button_cspz_5_1_Clicked()));
|
|
|
|
|
connect(button_cspz_5_2,SIGNAL(clicked()),this,SLOT(button_cspz_5_2_Clicked()));
|
|
|
|
|
connect(button_cspz_5_3,SIGNAL(clicked()),this,SLOT(button_cspz_5_3_Clicked()));
|
|
|
|
|
connect(button_cspz_5_4,SIGNAL(clicked()),this,SLOT(button_cspz_5_4_Clicked()));
|
|
|
|
|
connect(button_cspz_5_5,SIGNAL(clicked()),this,SLOT(button_cspz_5_5_Clicked()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::cspz_wireless_adress_set_page()
|
|
|
|
|
{
|
|
|
|
|
label_cspz_6_1=new QLabel(this);
|
|
|
|
|
label_cspz_6_2=new QLabel(this);
|
|
|
|
|
label_cspz_6_3=new QLabel(this);
|
|
|
|
|
label_cspz_6_4=new QLabel(this);
|
|
|
|
|
label_cspz_6_5=new QLabel(this);
|
|
|
|
|
label_cspz_6_6=new QLabel(this);
|
|
|
|
|
label_cspz_6_7=new QLabel(this);
|
|
|
|
|
label_cspz_6_8=new QLabel(this);
|
|
|
|
|
label_cspz_6_9=new QLabel(this);
|
|
|
|
|
label_cspz_6_10=new QLabel(this);
|
|
|
|
|
label_cspz_6_11=new QLabel(this);
|
|
|
|
|
label_cspz_6_12=new QLabel(this);
|
|
|
|
|
label_cspz_6_13=new QLabel(this);
|
|
|
|
|
label_cspz_6_14=new QLabel(this);
|
|
|
|
|
label_cspz_6_15=new QLabel(this);
|
|
|
|
|
label_cspz_6_16=new QLabel(this);
|
|
|
|
|
label_cspz_6_17=new QLabel(this);
|
|
|
|
|
label_cspz_6_18=new QLabel(this);
|
|
|
|
|
label_cspz_6_19=new QLabel(this);
|
|
|
|
|
label_cspz_6_20=new QLabel(this);
|
|
|
|
|
label_cspz_6_21=new QLabel(this);
|
|
|
|
|
label_cspz_6_22=new QLabel(this);
|
|
|
|
|
label_cspz_6_23=new QLabel(this);
|
|
|
|
|
label_cspz_6_24=new QLabel(this);
|
|
|
|
|
label_cspz_6_25=new QLabel(this);
|
|
|
|
|
label_cspz_6_26=new QLabel(this);
|
|
|
|
|
label_cspz_6_27=new QLabel(this);
|
|
|
|
|
label_cspz_6_28=new QLabel(this);
|
|
|
|
|
label_cspz_6_29=new QLabel(this);
|
|
|
|
|
label_cspz_6_30=new QLabel(this);
|
|
|
|
|
label_cspz_6_31=new QLabel(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_6_1=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_2=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_3=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_4=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_5=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_6=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_7=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_8=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_9=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_10=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_11=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_12=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_13=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_14=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_15=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_16=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_17=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_18=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_19=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_20=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_21=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_22=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_23=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_24=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_25=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_26=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_27=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_28=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_29=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_6_30=new QLineEdit(this);
|
|
|
|
|
|
|
|
|
|
button_cspz_6_1=new QPushButton(this);
|
|
|
|
|
button_cspz_6_2=new QPushButton(this);
|
|
|
|
|
button_cspz_6_3=new QPushButton(this);
|
|
|
|
|
button_cspz_6_4=new QPushButton(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_6_1->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_2->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_3->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_4->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_5->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_6->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_7->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_8->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_9->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_10->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_11->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_12->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_13->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_14->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_15->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_16->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_17->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_18->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_19->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_20->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_21->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_22->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_23->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_24->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_25->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_26->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_27->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_28->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_29->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_6_30->installEventFilter(this);
|
|
|
|
|
|
|
|
|
|
label_cspz_6_1->setGeometry(24,200,60,30);
|
|
|
|
|
label_cspz_6_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_1->setText("节点1:");
|
|
|
|
|
label_cspz_6_2->setGeometry(184,200,60,30);
|
|
|
|
|
label_cspz_6_2->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_2->setText("节点2:");
|
|
|
|
|
label_cspz_6_3->setGeometry(334,200,60,30);
|
|
|
|
|
label_cspz_6_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_3->setText("节点3:");
|
|
|
|
|
label_cspz_6_4->setGeometry(484,200,60,30);
|
|
|
|
|
label_cspz_6_4->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_4->setText("节点4:");
|
|
|
|
|
label_cspz_6_5->setGeometry(635,200,60,30);
|
|
|
|
|
label_cspz_6_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_5->setText("节点5:");
|
|
|
|
|
label_cspz_6_6->setGeometry(24,232,60,30);
|
|
|
|
|
label_cspz_6_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_6->setText("节点6:");
|
|
|
|
|
label_cspz_6_7->setGeometry(184,232,60,30);
|
|
|
|
|
label_cspz_6_7->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_7->setText("节点7:");
|
|
|
|
|
label_cspz_6_8->setGeometry(334,232,60,30);
|
|
|
|
|
label_cspz_6_8->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_8->setText("节点8:");
|
|
|
|
|
label_cspz_6_9->setGeometry(484,232,60,30);
|
|
|
|
|
label_cspz_6_9->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_9->setText("节点9:");
|
|
|
|
|
label_cspz_6_10->setGeometry(635,232,60,30);
|
|
|
|
|
label_cspz_6_10->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_10->setText("节点10:");
|
|
|
|
|
label_cspz_6_11->setGeometry(24,264,60,30);
|
|
|
|
|
label_cspz_6_11->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_11->setText("节点11:");
|
|
|
|
|
label_cspz_6_12->setGeometry(184,264,60,30);
|
|
|
|
|
label_cspz_6_12->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_12->setText("节点12:");
|
|
|
|
|
label_cspz_6_13->setGeometry(334,264,60,30);
|
|
|
|
|
label_cspz_6_13->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_13->setText("节点13:");
|
|
|
|
|
label_cspz_6_14->setGeometry(484,264,60,30);
|
|
|
|
|
label_cspz_6_14->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_14->setText("节点14:");
|
|
|
|
|
label_cspz_6_15->setGeometry(635,264,60,30);
|
|
|
|
|
label_cspz_6_15->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_15->setText("节点15:");
|
|
|
|
|
label_cspz_6_16->setGeometry(25,296,60,30);
|
|
|
|
|
label_cspz_6_16->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_16->setText("节点16:");
|
|
|
|
|
label_cspz_6_17->setGeometry(184,296,60,30);
|
|
|
|
|
label_cspz_6_17->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_17->setText("节点17:");
|
|
|
|
|
label_cspz_6_18->setGeometry(334,296,60,30);
|
|
|
|
|
label_cspz_6_18->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_18->setText("节点18:");
|
|
|
|
|
label_cspz_6_19->setGeometry(484,296,60,30);
|
|
|
|
|
label_cspz_6_19->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_19->setText("节点19:");
|
|
|
|
|
label_cspz_6_20->setGeometry(635,296,60,30);
|
|
|
|
|
label_cspz_6_20->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_20->setText("节点20:");
|
|
|
|
|
label_cspz_6_21->setGeometry(25,328,60,30);
|
|
|
|
|
label_cspz_6_21->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_21->setText("节点21:");
|
|
|
|
|
label_cspz_6_22->setGeometry(184,328,60,30);
|
|
|
|
|
label_cspz_6_22->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_22->setText("节点22:");
|
|
|
|
|
label_cspz_6_23->setGeometry(334,328,60,30);
|
|
|
|
|
label_cspz_6_23->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_23->setText("节点23:");
|
|
|
|
|
label_cspz_6_24->setGeometry(484,328,60,30);
|
|
|
|
|
label_cspz_6_24->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_24->setText("节点24:");
|
|
|
|
|
label_cspz_6_25->setGeometry(635,328,60,30);
|
|
|
|
|
label_cspz_6_25->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_25->setText("节点25:");
|
|
|
|
|
label_cspz_6_26->setGeometry(25,360,60,30);
|
|
|
|
|
label_cspz_6_26->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_26->setText("节点26:");
|
|
|
|
|
label_cspz_6_27->setGeometry(184,360,60,30);
|
|
|
|
|
label_cspz_6_27->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_27->setText("节点27:");
|
|
|
|
|
label_cspz_6_28->setGeometry(334,360,60,30);
|
|
|
|
|
label_cspz_6_28->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_28->setText("节点28:");
|
|
|
|
|
label_cspz_6_29->setGeometry(484,360,60,30);
|
|
|
|
|
label_cspz_6_29->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_29->setText("节点29:");
|
|
|
|
|
label_cspz_6_30->setGeometry(635,360,60,30);
|
|
|
|
|
label_cspz_6_30->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_6_30->setText("节点30:");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_6_1->setGeometry(83,200,93,30);
|
|
|
|
|
lineEdit_cspz_6_1->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_2->setGeometry(239,200,93,30);
|
|
|
|
|
lineEdit_cspz_6_2->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_3->setGeometry(389,200,93,30);
|
|
|
|
|
lineEdit_cspz_6_3->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_4->setGeometry(540,200,93,30);
|
|
|
|
|
lineEdit_cspz_6_4->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_5->setGeometry(692,200,93,30);
|
|
|
|
|
lineEdit_cspz_6_5->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_6->setGeometry(83,232,93,30);
|
|
|
|
|
lineEdit_cspz_6_6->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_7->setGeometry(239,232,93,30);
|
|
|
|
|
lineEdit_cspz_6_7->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_8->setGeometry(389,232,93,30);
|
|
|
|
|
lineEdit_cspz_6_8->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_9->setGeometry(540,232,93,30);
|
|
|
|
|
lineEdit_cspz_6_9->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_10->setGeometry(692,232,93,30);
|
|
|
|
|
lineEdit_cspz_6_10->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_11->setGeometry(83,264,93,30);
|
|
|
|
|
lineEdit_cspz_6_11->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_12->setGeometry(239,264,93,30);
|
|
|
|
|
lineEdit_cspz_6_12->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_13->setGeometry(389,264,93,30);
|
|
|
|
|
lineEdit_cspz_6_13->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_14->setGeometry(540,264,93,30);
|
|
|
|
|
lineEdit_cspz_6_14->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_15->setGeometry(692,264,93,30);
|
|
|
|
|
lineEdit_cspz_6_15->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_16->setGeometry(83,296,93,30);
|
|
|
|
|
lineEdit_cspz_6_16->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_17->setGeometry(239,296,93,30);
|
|
|
|
|
lineEdit_cspz_6_17->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_18->setGeometry(389,296,93,30);
|
|
|
|
|
lineEdit_cspz_6_18->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_19->setGeometry(540,296,93,30);
|
|
|
|
|
lineEdit_cspz_6_19->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_20->setGeometry(692,296,93,30);
|
|
|
|
|
lineEdit_cspz_6_20->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_21->setGeometry(83,328,93,30);
|
|
|
|
|
lineEdit_cspz_6_21->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_22->setGeometry(239,328,93,30);
|
|
|
|
|
lineEdit_cspz_6_22->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_23->setGeometry(389,328,93,30);
|
|
|
|
|
lineEdit_cspz_6_23->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_24->setGeometry(540,328,93,30);
|
|
|
|
|
lineEdit_cspz_6_24->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_25->setGeometry(692,328,93,30);
|
|
|
|
|
lineEdit_cspz_6_25->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_26->setGeometry(83,360,93,30);
|
|
|
|
|
lineEdit_cspz_6_26->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_27->setGeometry(239,360,93,30);
|
|
|
|
|
lineEdit_cspz_6_27->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_28->setGeometry(389,360,93,30);
|
|
|
|
|
lineEdit_cspz_6_28->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_29->setGeometry(540,360,93,30);
|
|
|
|
|
lineEdit_cspz_6_29->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_6_30->setGeometry(692,360,93,30);
|
|
|
|
|
lineEdit_cspz_6_30->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
button_cspz_6_1->setGeometry(530,400,100,30);
|
|
|
|
|
button_cspz_6_1->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_6_1->setText("保存参数");
|
|
|
|
|
label_cspz_6_31->setGeometry(650,400,100,30);
|
|
|
|
|
label_cspz_6_31->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
button_cspz_6_2->setGeometry(400,400,100,30);
|
|
|
|
|
button_cspz_6_2->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_6_2->setText("下一页");
|
|
|
|
|
button_cspz_6_3->setGeometry(80,400,100,30);
|
|
|
|
|
button_cspz_6_3->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_6_3->setText("上一页");
|
|
|
|
|
button_cspz_6_4->setGeometry(530,400,100,30);
|
|
|
|
|
button_cspz_6_4->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_6_4->setText("保存参数");
|
|
|
|
|
button_cspz_6_1->raise();
|
|
|
|
|
|
|
|
|
|
QFile file_read("/home/data/wireless_adress.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
line1=in.readLine();
|
|
|
|
|
line2=in.readLine();
|
|
|
|
|
line3=in.readLine();
|
|
|
|
|
line4=in.readLine();
|
|
|
|
|
line5=in.readLine();
|
|
|
|
|
line6=in.readLine();
|
|
|
|
|
line7=in.readLine();
|
|
|
|
|
line8=in.readLine();
|
|
|
|
|
line9=in.readLine();
|
|
|
|
|
line10=in.readLine();
|
|
|
|
|
line11=in.readLine();
|
|
|
|
|
line12=in.readLine();
|
|
|
|
|
line13=in.readLine();
|
|
|
|
|
line14=in.readLine();
|
|
|
|
|
line15=in.readLine();
|
|
|
|
|
line16=in.readLine();
|
|
|
|
|
line17=in.readLine();
|
|
|
|
|
line18=in.readLine();
|
|
|
|
|
line19=in.readLine();
|
|
|
|
|
line20=in.readLine();
|
|
|
|
|
line21=in.readLine();
|
|
|
|
|
line22=in.readLine();
|
|
|
|
|
line23=in.readLine();
|
|
|
|
|
line24=in.readLine();
|
|
|
|
|
line25=in.readLine();
|
|
|
|
|
line26=in.readLine();
|
|
|
|
|
line27=in.readLine();
|
|
|
|
|
line28=in.readLine();
|
|
|
|
|
line29=in.readLine();
|
|
|
|
|
line30=in.readLine();
|
|
|
|
|
line31=in.readLine();
|
|
|
|
|
line32=in.readLine();
|
|
|
|
|
line33=in.readLine();
|
|
|
|
|
line34=in.readLine();
|
|
|
|
|
line35=in.readLine();
|
|
|
|
|
line36=in.readLine();
|
|
|
|
|
line37=in.readLine();
|
|
|
|
|
line38=in.readLine();
|
|
|
|
|
line39=in.readLine();
|
|
|
|
|
line40=in.readLine();
|
|
|
|
|
line41=in.readLine();
|
|
|
|
|
line42=in.readLine();
|
|
|
|
|
line43=in.readLine();
|
|
|
|
|
line44=in.readLine();
|
|
|
|
|
line45=in.readLine();
|
|
|
|
|
line46=in.readLine();
|
|
|
|
|
line47=in.readLine();
|
|
|
|
|
line48=in.readLine();
|
|
|
|
|
line49=in.readLine();
|
|
|
|
|
line50=in.readLine();
|
|
|
|
|
line51=in.readLine();
|
|
|
|
|
line52=in.readLine();
|
|
|
|
|
line53=in.readLine();
|
|
|
|
|
line54=in.readLine();
|
|
|
|
|
line55=in.readLine();
|
|
|
|
|
line56=in.readLine();
|
|
|
|
|
line57=in.readLine();
|
|
|
|
|
line58=in.readLine();
|
|
|
|
|
line59=in.readLine();
|
|
|
|
|
line60=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_6_1->setText(line1);
|
|
|
|
|
lineEdit_cspz_6_2->setText(line2);
|
|
|
|
|
lineEdit_cspz_6_3->setText(line3);
|
|
|
|
|
lineEdit_cspz_6_4->setText(line4);
|
|
|
|
|
lineEdit_cspz_6_5->setText(line5);
|
|
|
|
|
lineEdit_cspz_6_6->setText(line6);
|
|
|
|
|
lineEdit_cspz_6_7->setText(line7);
|
|
|
|
|
lineEdit_cspz_6_8->setText(line8);
|
|
|
|
|
lineEdit_cspz_6_9->setText(line9);
|
|
|
|
|
lineEdit_cspz_6_10->setText(line10);
|
|
|
|
|
lineEdit_cspz_6_11->setText(line11);
|
|
|
|
|
lineEdit_cspz_6_12->setText(line12);
|
|
|
|
|
lineEdit_cspz_6_13->setText(line13);
|
|
|
|
|
lineEdit_cspz_6_14->setText(line14);
|
|
|
|
|
lineEdit_cspz_6_15->setText(line15);
|
|
|
|
|
lineEdit_cspz_6_16->setText(line16);
|
|
|
|
|
lineEdit_cspz_6_17->setText(line17);
|
|
|
|
|
lineEdit_cspz_6_18->setText(line18);
|
|
|
|
|
lineEdit_cspz_6_19->setText(line19);
|
|
|
|
|
lineEdit_cspz_6_20->setText(line20);
|
|
|
|
|
lineEdit_cspz_6_21->setText(line21);
|
|
|
|
|
lineEdit_cspz_6_22->setText(line22);
|
|
|
|
|
lineEdit_cspz_6_23->setText(line23);
|
|
|
|
|
lineEdit_cspz_6_24->setText(line24);
|
|
|
|
|
lineEdit_cspz_6_25->setText(line25);
|
|
|
|
|
lineEdit_cspz_6_26->setText(line26);
|
|
|
|
|
lineEdit_cspz_6_27->setText(line27);
|
|
|
|
|
lineEdit_cspz_6_28->setText(line28);
|
|
|
|
|
lineEdit_cspz_6_29->setText(line29);
|
|
|
|
|
lineEdit_cspz_6_30->setText(line30);
|
|
|
|
|
|
|
|
|
|
connect(button_cspz_6_1,SIGNAL(clicked()),this,SLOT(button_cspz_6_1_Clicked()));//无线测温保存第一页
|
|
|
|
|
connect(button_cspz_6_2,SIGNAL(clicked()),this,SLOT(button_cspz_6_2_Clicked()));//无线测温设置下一页
|
|
|
|
|
connect(button_cspz_6_3,SIGNAL(clicked()),this,SLOT(button_cspz_6_3_Clicked()));//无线测温设置上一页
|
|
|
|
|
connect(button_cspz_6_4,SIGNAL(clicked()),this,SLOT(button_cspz_6_4_Clicked()));//无线测温保存第二页
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::cspz_wireless_name_set_page()
|
|
|
|
|
{
|
|
|
|
|
label_cspz_wirename_1=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_2=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_3=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_4=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_5=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_6=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_7=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_8=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_9=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_10=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_11=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_12=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_13=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_14=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_15=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_16=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_17=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_18=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_19=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_20=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_21=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_22=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_23=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_24=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_25=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_26=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_27=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_28=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_29=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_30=new QLabel(this);
|
|
|
|
|
label_cspz_wirename_save=new QLabel(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_wirename_1=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_2=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_3=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_4=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_5=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_6=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_7=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_8=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_9=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_10=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_11=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_12=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_13=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_14=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_15=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_16=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_17=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_18=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_19=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_20=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_21=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_22=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_23=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_24=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_25=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_26=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_27=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_28=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_29=new QLineEdit(this);
|
|
|
|
|
lineEdit_cspz_wirename_30=new QLineEdit(this);
|
|
|
|
|
|
|
|
|
|
button_cspz_wirename_1=new QPushButton(this);
|
|
|
|
|
button_cspz_wirename_2=new QPushButton(this);
|
|
|
|
|
button_cspz_wirename_3=new QPushButton(this);
|
|
|
|
|
button_cspz_wirename_4=new QPushButton(this);
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_wirename_1->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_2->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_3->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_4->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_5->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_6->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_7->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_8->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_9->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_10->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_11->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_12->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_13->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_14->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_15->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_16->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_17->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_18->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_19->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_20->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_21->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_22->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_23->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_24->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_25->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_26->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_27->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_28->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_29->installEventFilter(this);
|
|
|
|
|
lineEdit_cspz_wirename_30->installEventFilter(this);
|
|
|
|
|
|
|
|
|
|
label_cspz_wirename_1->setGeometry(24,200,60,30);
|
|
|
|
|
label_cspz_wirename_1->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_1->setText("节点1:");
|
|
|
|
|
label_cspz_wirename_2->setGeometry(184,200,60,30);
|
|
|
|
|
label_cspz_wirename_2->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_2->setText("节点2:");
|
|
|
|
|
label_cspz_wirename_3->setGeometry(334,200,60,30);
|
|
|
|
|
label_cspz_wirename_3->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_3->setText("节点3:");
|
|
|
|
|
label_cspz_wirename_4->setGeometry(484,200,60,30);
|
|
|
|
|
label_cspz_wirename_4->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_4->setText("节点4:");
|
|
|
|
|
label_cspz_wirename_5->setGeometry(635,200,60,30);
|
|
|
|
|
label_cspz_wirename_5->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_5->setText("节点5:");
|
|
|
|
|
label_cspz_wirename_6->setGeometry(24,232,60,30);
|
|
|
|
|
label_cspz_wirename_6->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_6->setText("节点6:");
|
|
|
|
|
label_cspz_wirename_7->setGeometry(184,232,60,30);
|
|
|
|
|
label_cspz_wirename_7->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_7->setText("节点7:");
|
|
|
|
|
label_cspz_wirename_8->setGeometry(334,232,60,30);
|
|
|
|
|
label_cspz_wirename_8->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_8->setText("节点8:");
|
|
|
|
|
label_cspz_wirename_9->setGeometry(484,232,60,30);
|
|
|
|
|
label_cspz_wirename_9->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_9->setText("节点9:");
|
|
|
|
|
label_cspz_wirename_10->setGeometry(635,232,60,30);
|
|
|
|
|
label_cspz_wirename_10->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_10->setText("节点10:");
|
|
|
|
|
label_cspz_wirename_11->setGeometry(24,264,60,30);
|
|
|
|
|
label_cspz_wirename_11->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_11->setText("节点11:");
|
|
|
|
|
label_cspz_wirename_12->setGeometry(184,264,60,30);
|
|
|
|
|
label_cspz_wirename_12->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_12->setText("节点12:");
|
|
|
|
|
label_cspz_wirename_13->setGeometry(334,264,60,30);
|
|
|
|
|
label_cspz_wirename_13->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_13->setText("节点13:");
|
|
|
|
|
label_cspz_wirename_14->setGeometry(484,264,60,30);
|
|
|
|
|
label_cspz_wirename_14->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_14->setText("节点14:");
|
|
|
|
|
label_cspz_wirename_15->setGeometry(635,264,60,30);
|
|
|
|
|
label_cspz_wirename_15->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_15->setText("节点15:");
|
|
|
|
|
label_cspz_wirename_16->setGeometry(25,296,60,30);
|
|
|
|
|
label_cspz_wirename_16->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_16->setText("节点16:");
|
|
|
|
|
label_cspz_wirename_17->setGeometry(184,296,60,30);
|
|
|
|
|
label_cspz_wirename_17->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_17->setText("节点17:");
|
|
|
|
|
label_cspz_wirename_18->setGeometry(334,296,60,30);
|
|
|
|
|
label_cspz_wirename_18->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_18->setText("节点18:");
|
|
|
|
|
label_cspz_wirename_19->setGeometry(484,296,60,30);
|
|
|
|
|
label_cspz_wirename_19->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_19->setText("节点19:");
|
|
|
|
|
label_cspz_wirename_20->setGeometry(635,296,60,30);
|
|
|
|
|
label_cspz_wirename_20->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_20->setText("节点20:");
|
|
|
|
|
label_cspz_wirename_21->setGeometry(25,328,60,30);
|
|
|
|
|
label_cspz_wirename_21->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_21->setText("节点21:");
|
|
|
|
|
label_cspz_wirename_22->setGeometry(184,328,60,30);
|
|
|
|
|
label_cspz_wirename_22->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_22->setText("节点22:");
|
|
|
|
|
label_cspz_wirename_23->setGeometry(334,328,60,30);
|
|
|
|
|
label_cspz_wirename_23->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_23->setText("节点23:");
|
|
|
|
|
label_cspz_wirename_24->setGeometry(484,328,60,30);
|
|
|
|
|
label_cspz_wirename_24->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_24->setText("节点24:");
|
|
|
|
|
label_cspz_wirename_25->setGeometry(635,328,60,30);
|
|
|
|
|
label_cspz_wirename_25->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_25->setText("节点25:");
|
|
|
|
|
label_cspz_wirename_26->setGeometry(25,360,60,30);
|
|
|
|
|
label_cspz_wirename_26->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_26->setText("节点26:");
|
|
|
|
|
label_cspz_wirename_27->setGeometry(184,360,60,30);
|
|
|
|
|
label_cspz_wirename_27->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_27->setText("节点27:");
|
|
|
|
|
label_cspz_wirename_28->setGeometry(334,360,60,30);
|
|
|
|
|
label_cspz_wirename_28->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_28->setText("节点28:");
|
|
|
|
|
label_cspz_wirename_29->setGeometry(484,360,60,30);
|
|
|
|
|
label_cspz_wirename_29->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_29->setText("节点29:");
|
|
|
|
|
label_cspz_wirename_30->setGeometry(635,360,60,30);
|
|
|
|
|
label_cspz_wirename_30->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
label_cspz_wirename_30->setText("节点30:");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_wirename_1->setGeometry(83,200,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_1->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_2->setGeometry(239,200,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_2->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_3->setGeometry(389,200,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_3->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_4->setGeometry(540,200,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_4->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_5->setGeometry(692,200,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_5->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_6->setGeometry(83,232,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_6->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_7->setGeometry(239,232,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_7->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_8->setGeometry(389,232,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_8->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_9->setGeometry(540,232,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_9->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_10->setGeometry(692,232,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_10->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_11->setGeometry(83,264,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_11->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_12->setGeometry(239,264,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_12->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_13->setGeometry(389,264,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_13->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_14->setGeometry(540,264,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_14->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_15->setGeometry(692,264,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_15->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_16->setGeometry(83,296,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_16->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_17->setGeometry(239,296,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_17->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_18->setGeometry(389,296,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_18->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_19->setGeometry(540,296,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_19->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_20->setGeometry(692,296,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_20->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_21->setGeometry(83,328,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_21->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_22->setGeometry(239,328,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_22->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_23->setGeometry(389,328,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_23->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_24->setGeometry(540,328,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_24->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_25->setGeometry(692,328,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_25->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_26->setGeometry(83,360,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_26->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_27->setGeometry(239,360,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_27->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_28->setGeometry(389,360,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_28->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_29->setGeometry(540,360,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_29->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
lineEdit_cspz_wirename_30->setGeometry(692,360,93,30);
|
|
|
|
|
lineEdit_cspz_wirename_30->setStyleSheet("background: rgb(255, 255, 255);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
|
|
|
|
|
button_cspz_wirename_1->setGeometry(530,400,100,30);
|
|
|
|
|
button_cspz_wirename_1->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_wirename_1->setText("保存参数");
|
|
|
|
|
label_cspz_wirename_save->setGeometry(650,400,100,30);
|
|
|
|
|
label_cspz_wirename_save->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(255, 255, 255)");
|
|
|
|
|
button_cspz_wirename_2->setGeometry(400,400,100,30);
|
|
|
|
|
button_cspz_wirename_2->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_wirename_2->setText("下一页");
|
|
|
|
|
button_cspz_wirename_3->setGeometry(80,400,100,30);
|
|
|
|
|
button_cspz_wirename_3->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_wirename_3->setText("上一页");
|
|
|
|
|
button_cspz_wirename_4->setGeometry(530,400,100,30);
|
|
|
|
|
button_cspz_wirename_4->setStyleSheet("background: rgb(0, 171, 171);font: 12pt 黑体 bold;color: rgb(0, 0, 0)");
|
|
|
|
|
button_cspz_wirename_4->setText("保存参数");
|
|
|
|
|
button_cspz_wirename_1->raise();
|
|
|
|
|
|
|
|
|
|
QFile file_read("/home/data/wireless_name.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
name1=in.readLine();
|
|
|
|
|
name2=in.readLine();
|
|
|
|
|
name3=in.readLine();
|
|
|
|
|
name4=in.readLine();
|
|
|
|
|
name5=in.readLine();
|
|
|
|
|
name6=in.readLine();
|
|
|
|
|
name7=in.readLine();
|
|
|
|
|
name8=in.readLine();
|
|
|
|
|
name9=in.readLine();
|
|
|
|
|
name10=in.readLine();
|
|
|
|
|
name11=in.readLine();
|
|
|
|
|
name12=in.readLine();
|
|
|
|
|
name13=in.readLine();
|
|
|
|
|
name14=in.readLine();
|
|
|
|
|
name15=in.readLine();
|
|
|
|
|
name16=in.readLine();
|
|
|
|
|
name17=in.readLine();
|
|
|
|
|
name18=in.readLine();
|
|
|
|
|
name19=in.readLine();
|
|
|
|
|
name20=in.readLine();
|
|
|
|
|
name21=in.readLine();
|
|
|
|
|
name22=in.readLine();
|
|
|
|
|
name23=in.readLine();
|
|
|
|
|
name24=in.readLine();
|
|
|
|
|
name25=in.readLine();
|
|
|
|
|
name26=in.readLine();
|
|
|
|
|
name27=in.readLine();
|
|
|
|
|
name28=in.readLine();
|
|
|
|
|
name29=in.readLine();
|
|
|
|
|
name30=in.readLine();
|
|
|
|
|
name31=in.readLine();
|
|
|
|
|
name32=in.readLine();
|
|
|
|
|
name33=in.readLine();
|
|
|
|
|
name34=in.readLine();
|
|
|
|
|
name35=in.readLine();
|
|
|
|
|
name36=in.readLine();
|
|
|
|
|
name37=in.readLine();
|
|
|
|
|
name38=in.readLine();
|
|
|
|
|
name39=in.readLine();
|
|
|
|
|
name40=in.readLine();
|
|
|
|
|
name41=in.readLine();
|
|
|
|
|
name42=in.readLine();
|
|
|
|
|
name43=in.readLine();
|
|
|
|
|
name44=in.readLine();
|
|
|
|
|
name45=in.readLine();
|
|
|
|
|
name46=in.readLine();
|
|
|
|
|
name47=in.readLine();
|
|
|
|
|
name48=in.readLine();
|
|
|
|
|
name49=in.readLine();
|
|
|
|
|
name50=in.readLine();
|
|
|
|
|
name51=in.readLine();
|
|
|
|
|
name52=in.readLine();
|
|
|
|
|
name53=in.readLine();
|
|
|
|
|
name54=in.readLine();
|
|
|
|
|
name55=in.readLine();
|
|
|
|
|
name56=in.readLine();
|
|
|
|
|
name57=in.readLine();
|
|
|
|
|
name58=in.readLine();
|
|
|
|
|
name59=in.readLine();
|
|
|
|
|
name60=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
wireless_name[0]=name1;
|
|
|
|
|
wireless_name[1]=name2;
|
|
|
|
|
wireless_name[2]=name3;
|
|
|
|
|
wireless_name[3]=name4;
|
|
|
|
|
wireless_name[4]=name5;
|
|
|
|
|
wireless_name[5]=name6;
|
|
|
|
|
wireless_name[6]=name7;
|
|
|
|
|
wireless_name[7]=name8;
|
|
|
|
|
wireless_name[8]=name9;
|
|
|
|
|
wireless_name[9]=name10;
|
|
|
|
|
wireless_name[10]=name11;
|
|
|
|
|
wireless_name[11]=name12;
|
|
|
|
|
wireless_name[12]=name13;
|
|
|
|
|
wireless_name[13]=name14;
|
|
|
|
|
wireless_name[14]=name15;
|
|
|
|
|
wireless_name[15]=name16;
|
|
|
|
|
wireless_name[16]=name17;
|
|
|
|
|
wireless_name[17]=name18;
|
|
|
|
|
wireless_name[18]=name19;
|
|
|
|
|
wireless_name[19]=name20;
|
|
|
|
|
wireless_name[20]=name21;
|
|
|
|
|
wireless_name[21]=name22;
|
|
|
|
|
wireless_name[22]=name23;
|
|
|
|
|
wireless_name[23]=name24;
|
|
|
|
|
wireless_name[24]=name25;
|
|
|
|
|
wireless_name[25]=name26;
|
|
|
|
|
wireless_name[26]=name27;
|
|
|
|
|
wireless_name[27]=name28;
|
|
|
|
|
wireless_name[28]=name29;
|
|
|
|
|
wireless_name[29]=name30;
|
|
|
|
|
wireless_name[30]=name31;
|
|
|
|
|
wireless_name[31]=name32;
|
|
|
|
|
wireless_name[32]=name33;
|
|
|
|
|
wireless_name[33]=name34;
|
|
|
|
|
wireless_name[34]=name35;
|
|
|
|
|
wireless_name[35]=name36;
|
|
|
|
|
wireless_name[36]=name37;
|
|
|
|
|
wireless_name[37]=name38;
|
|
|
|
|
wireless_name[38]=name39;
|
|
|
|
|
wireless_name[39]=name40;
|
|
|
|
|
wireless_name[40]=name41;
|
|
|
|
|
wireless_name[41]=name42;
|
|
|
|
|
wireless_name[42]=name43;
|
|
|
|
|
wireless_name[43]=name44;
|
|
|
|
|
wireless_name[44]=name45;
|
|
|
|
|
wireless_name[45]=name46;
|
|
|
|
|
wireless_name[46]=name47;
|
|
|
|
|
wireless_name[47]=name48;
|
|
|
|
|
wireless_name[48]=name49;
|
|
|
|
|
wireless_name[49]=name50;
|
|
|
|
|
wireless_name[50]=name51;
|
|
|
|
|
wireless_name[51]=name52;
|
|
|
|
|
wireless_name[52]=name53;
|
|
|
|
|
wireless_name[53]=name54;
|
|
|
|
|
wireless_name[54]=name55;
|
|
|
|
|
wireless_name[55]=name56;
|
|
|
|
|
wireless_name[56]=name57;
|
|
|
|
|
wireless_name[57]=name58;
|
|
|
|
|
wireless_name[58]=name59;
|
|
|
|
|
wireless_name[59]=name60;
|
|
|
|
|
for (int i = 0;i<60;i++) {
|
|
|
|
|
if(wireless_name[i] == "")
|
|
|
|
|
{
|
|
|
|
|
wireless_name[i] = "节点" + QString::number(i+1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_wirename_1->setText(name1);
|
|
|
|
|
lineEdit_cspz_wirename_2->setText(name2);
|
|
|
|
|
lineEdit_cspz_wirename_3->setText(name3);
|
|
|
|
|
lineEdit_cspz_wirename_4->setText(name4);
|
|
|
|
|
lineEdit_cspz_wirename_5->setText(name5);
|
|
|
|
|
lineEdit_cspz_wirename_6->setText(name6);
|
|
|
|
|
lineEdit_cspz_wirename_7->setText(name7);
|
|
|
|
|
lineEdit_cspz_wirename_8->setText(name8);
|
|
|
|
|
lineEdit_cspz_wirename_9->setText(name9);
|
|
|
|
|
lineEdit_cspz_wirename_10->setText(name10);
|
|
|
|
|
lineEdit_cspz_wirename_11->setText(name11);
|
|
|
|
|
lineEdit_cspz_wirename_12->setText(name12);
|
|
|
|
|
lineEdit_cspz_wirename_13->setText(name13);
|
|
|
|
|
lineEdit_cspz_wirename_14->setText(name14);
|
|
|
|
|
lineEdit_cspz_wirename_15->setText(name15);
|
|
|
|
|
lineEdit_cspz_wirename_16->setText(name16);
|
|
|
|
|
lineEdit_cspz_wirename_17->setText(name17);
|
|
|
|
|
lineEdit_cspz_wirename_18->setText(name18);
|
|
|
|
|
lineEdit_cspz_wirename_19->setText(name19);
|
|
|
|
|
lineEdit_cspz_wirename_20->setText(name20);
|
|
|
|
|
lineEdit_cspz_wirename_21->setText(name21);
|
|
|
|
|
lineEdit_cspz_wirename_22->setText(name22);
|
|
|
|
|
lineEdit_cspz_wirename_23->setText(name23);
|
|
|
|
|
lineEdit_cspz_wirename_24->setText(name24);
|
|
|
|
|
lineEdit_cspz_wirename_25->setText(name25);
|
|
|
|
|
lineEdit_cspz_wirename_26->setText(name26);
|
|
|
|
|
lineEdit_cspz_wirename_27->setText(name27);
|
|
|
|
|
lineEdit_cspz_wirename_28->setText(name28);
|
|
|
|
|
lineEdit_cspz_wirename_29->setText(name29);
|
|
|
|
|
lineEdit_cspz_wirename_30->setText(name30);
|
|
|
|
|
|
|
|
|
|
connect(button_cspz_wirename_1,SIGNAL(clicked()),this,SLOT(button_cspz_wirename_1_Clicked()));//无线测温保存第一页
|
|
|
|
|
connect(button_cspz_wirename_2,SIGNAL(clicked()),this,SLOT(button_cspz_wirename_2_Clicked()));//无线测温设置下一页
|
|
|
|
|
connect(button_cspz_wirename_3,SIGNAL(clicked()),this,SLOT(button_cspz_wirename_3_Clicked()));//无线测温设置上一页
|
|
|
|
|
connect(button_cspz_wirename_4,SIGNAL(clicked()),this,SLOT(button_cspz_wirename_4_Clicked()));//无线测温保存第二页
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool canshupeizhi::eventFilter(QObject *watch, QEvent *evn)
|
|
|
|
|
{
|
|
|
|
|
if(watch == label_cspz_0_1 && evn->type() == QEvent::MouseButtonPress)//点击lable切换页面
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_1_clicked();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(watch == label_cspz_0_3 && evn->type() == QEvent::MouseButtonPress)//点击lable切换页面
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_3_clicked();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(watch == label_cspz_0_5 && evn->type() == QEvent::MouseButtonPress)//点击lable切换页面
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_5_clicked();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(watch == label_cspz_0_6 && evn->type() == QEvent::MouseButtonPress)//点击lable切换页面
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_6_clicked();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(watch == label_cspz_0_wirenameset && evn->type() == QEvent::MouseButtonPress)//点击lable切换页面
|
|
|
|
|
{
|
|
|
|
|
label_cspz_0_wirenameset_clicked();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch == mimaline&& evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(mimaline);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_1_1 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_1_1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_1_2 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_1_2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_1_3 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_1_3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_1_1_A && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_1_1_A);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_1_2_B && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_1_2_B);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_1_3_C && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_1_3_C);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_1_3_T && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_1_3_T);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_1 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_2 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_3 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_4 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_5 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_6 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_6);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_7 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_8 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_9 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_9);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_10 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_10);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_11 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_11);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_12 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_12);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_13 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_13);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_14 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_14);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_15 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_3_16 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_3_16);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_5_1 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_5_1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_5_2 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_5_2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_5_3 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_5_3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_5_4 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_5_4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_5_5 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_5_5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_5_6 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_5_6);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_5_7 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_5_7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_1 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_2 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_3 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_4 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_5 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_6 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_6);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_7 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_8 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_9 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_9);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_10 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_10);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_11 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_11);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_12 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_12);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_13 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_13);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_14 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_14);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_15 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_16 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_16);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_17 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_17);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_18 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_18);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_19 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_19);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_20 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_20);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_21 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_21);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_22 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_22);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_23 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_23);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_24 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_24);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_25 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_25);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_26 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_26);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_27 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_27);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_28 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_28);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_29 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_29);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_6_30 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard(lineEdit_cspz_6_30);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_1 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_2 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_3 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_4 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_5 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_6 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_6);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_7 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_8 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_9 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_9);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_10 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_10);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_11 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_11);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_12 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_12);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_13 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_13);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_14 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_14);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_15 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_16 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_16);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_17 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_17);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_18 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_18);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_19 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_19);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_20 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_20);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_21 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_21);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_22 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_22);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_23 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_23);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_24 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_24);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_25 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_25);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_26 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_26);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_27 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_27);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_28 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_28);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_29 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_29);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (watch==lineEdit_cspz_wirename_30 && evn->type() == QEvent::MouseButtonPress)
|
|
|
|
|
{
|
|
|
|
|
callKeyBoard_ABC_Can(lineEdit_cspz_wirename_30);
|
|
|
|
|
}
|
|
|
|
|
return QWidget::eventFilter(watch, evn);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::on_pushButton_zhujiemian_clicked()
|
|
|
|
|
{
|
|
|
|
|
where_page = 0;
|
|
|
|
|
lowpower_mode_flag1=true;
|
|
|
|
|
cspz_flag=false;
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
this->hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::on_pushButton_wangluoxinxi_clicked()
|
|
|
|
|
{
|
|
|
|
|
where_page = 1;
|
|
|
|
|
cspz_flag=false;
|
|
|
|
|
if(!wlpz_flag && !xtpz_flag)
|
|
|
|
|
{
|
|
|
|
|
wlpz_flag=true;
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
this->hide();
|
|
|
|
|
|
|
|
|
|
KeyBoard_Code=false;
|
|
|
|
|
KeyBoard_ABC_Code=false;
|
|
|
|
|
keyBoard_flag=false;
|
|
|
|
|
keyBoard_ABC_flag=false;
|
|
|
|
|
|
|
|
|
|
wangluo_thread->show();
|
|
|
|
|
wangluo_thread->wlxx_set_back_color();
|
|
|
|
|
wangluo_thread->mimaButton->show();
|
|
|
|
|
wangluo_thread->mimaline->show();
|
|
|
|
|
wangluo_thread->label_mima1->show();
|
|
|
|
|
wangluo_thread->label_mima2->show();
|
|
|
|
|
wangluo_thread->label_mimajiemian->show();
|
|
|
|
|
|
|
|
|
|
wangluo_thread->label_mimajiemian->raise();
|
|
|
|
|
wangluo_thread->mimaButton->raise();
|
|
|
|
|
wangluo_thread->mimaline->clear();
|
|
|
|
|
wangluo_thread->mimaline->raise();
|
|
|
|
|
wangluo_thread->label_mima1->raise();
|
|
|
|
|
wangluo_thread->label_mima2->clear();
|
|
|
|
|
wangluo_thread->label_mima2->raise();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::on_pushButton_canshushezhi_clicked()
|
|
|
|
|
{
|
|
|
|
|
where_page = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::on_pushButton_xitongshezhi_clicked()
|
|
|
|
|
{
|
|
|
|
|
where_page = 3;
|
|
|
|
|
cspz_flag=false;
|
|
|
|
|
if(!wlpz_flag && !xtpz_flag)
|
|
|
|
|
{
|
|
|
|
|
xtpz_flag=true;
|
|
|
|
|
keyBoard_flag=false;
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this->hide();
|
|
|
|
|
xitongshezhi_thread->show();
|
|
|
|
|
xitongshezhi_thread->xtsz_page(1);
|
|
|
|
|
xitongshezhi_thread->label_xtsz_1_show(1);
|
|
|
|
|
xitongshezhi_thread->label_xtsz_2_show(0);
|
|
|
|
|
xitongshezhi_thread->label_xtsz_3_show(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::mimaButtonClicked()
|
|
|
|
|
{
|
|
|
|
|
QString str= mimaline->text();
|
|
|
|
|
|
|
|
|
|
if(str=="1111")
|
|
|
|
|
{
|
|
|
|
|
label_mima2->raise();
|
|
|
|
|
label_mima2->setStyleSheet("background: rgb(145, 145, 145);font: 12pt 黑体 bold;color: rgb(0, 100, 60)");
|
|
|
|
|
label_mima2->setText("密码正确,正在加载...");
|
|
|
|
|
Delay_MSec1(150);
|
|
|
|
|
cspz_page(1);//显示第1页4G配置
|
|
|
|
|
this->installEventFilter(this);//安装鼠标事件
|
|
|
|
|
|
|
|
|
|
mimaline->clear();
|
|
|
|
|
mimaline->close();
|
|
|
|
|
mimaButton->close();
|
|
|
|
|
label_mima1->close();
|
|
|
|
|
label_mimajiemian->close();
|
|
|
|
|
label_mima2->close();
|
|
|
|
|
label_cspz_1_show(1);
|
|
|
|
|
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
label_mima2->setStyleSheet("font: 12pt 黑体;color: rgb(255, 255, 255);color: red");
|
|
|
|
|
label_mima2->setGeometry(360, 300, 200, 30);
|
|
|
|
|
label_mima2->setText("密码错误!");
|
|
|
|
|
mimaline->clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::callKeyBoard(QLineEdit *a)
|
|
|
|
|
{
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
if(KeyBoard_Code==false)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1 = new KeyBoard(0, a);
|
|
|
|
|
keyBoard1->setGeometry(490, 200, 321, 182);
|
|
|
|
|
keyBoard1->show();
|
|
|
|
|
KeyBoard_Code=true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
keyBoard1 = new KeyBoard(0, a);
|
|
|
|
|
keyBoard1->setGeometry(490, 200, 321, 182);
|
|
|
|
|
keyBoard1->show();
|
|
|
|
|
}
|
|
|
|
|
keyBoard1->setAttribute(Qt::WA_DeleteOnClose);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::callKeyBoard_ABC_Can(QLineEdit *a)
|
|
|
|
|
{
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
if(KeyBoard_ABC_Code==false)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1 = new KeyBoard_ABC(0, a);
|
|
|
|
|
keyBoard_ABC1->setGeometry(5, 326, 790, 143);
|
|
|
|
|
keyBoard_ABC1->show();
|
|
|
|
|
KeyBoard_ABC_Code=true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1 = new KeyBoard_ABC(0, a);
|
|
|
|
|
keyBoard_ABC1->setGeometry(5, 326, 790, 143);
|
|
|
|
|
keyBoard_ABC1->show();
|
|
|
|
|
}
|
|
|
|
|
keyBoard_ABC1->setAttribute(Qt::WA_DeleteOnClose);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_1_1_Clicked()
|
|
|
|
|
{
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
QFile file_write("/home/data/cspz_ct_set.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_1_1->text()<<endl<<lineEdit_cspz_1_2->text()<<endl<<lineEdit_cspz_1_3->text()<<endl<<
|
|
|
|
|
lineEdit_cspz_1_1_A->text()<<endl<<lineEdit_cspz_1_2_B->text()<<endl<<lineEdit_cspz_1_3_C->text()<<endl<<lineEdit_cspz_1_3_T->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
QFile file_write1("/home/data/cspz_byqset.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
int voltage_set=lineEdit_cspz_1_2->text().toFloat()/lineEdit_cspz_1_3->text().toFloat()*100;
|
|
|
|
|
int a_set = lineEdit_cspz_1_1->text().toFloat();
|
|
|
|
|
if(lineEdit_cspz_1_2->text() == "" && lineEdit_cspz_1_3->text() == "")
|
|
|
|
|
{
|
|
|
|
|
voltage_set = 100;
|
|
|
|
|
}
|
|
|
|
|
if(lineEdit_cspz_1_1->text() == "")
|
|
|
|
|
{
|
|
|
|
|
a_set = 1;
|
|
|
|
|
}
|
|
|
|
|
int AA = lineEdit_cspz_1_1_A->text().toFloat()*10;
|
|
|
|
|
int BB = lineEdit_cspz_1_2_B->text().toFloat()*10;
|
|
|
|
|
int CC = lineEdit_cspz_1_3_C->text().toFloat()*10;
|
|
|
|
|
int TT = lineEdit_cspz_1_3_T->text().toFloat()*10;
|
|
|
|
|
setWIFI_data<<a_set<<endl<<voltage_set<<endl<<AA<<endl<<BB<<endl<<CC<<endl<<TT<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
|
|
|
|
|
ARM3->setCT();
|
|
|
|
|
label_cspz_1_3->setText("保存成功!");
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
label_cspz_1_3->clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_3_1_Clicked()
|
|
|
|
|
{
|
|
|
|
|
QString a_rxy_time1,a_rxy_time2,a_rxy_time3,a_rxy_time4,a_rxy_time5,a_rxy_data1,a_rxy_data2,a_rxy_data3,a_rxy_data4,a_rxy_data5,a_rxy_data6;
|
|
|
|
|
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
bool ok;
|
|
|
|
|
int byq_rongliang = lineEdit_cspz_3_1->text().toInt(&ok,10)*0.3;//字符串转10进制
|
|
|
|
|
|
|
|
|
|
QFile file_read("/home/data/camera.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
in.readLine();
|
|
|
|
|
rxy_time1=in.readLine();
|
|
|
|
|
rxy_time2=in.readLine();
|
|
|
|
|
rxy_time3=in.readLine();
|
|
|
|
|
rxy_time4=in.readLine();
|
|
|
|
|
rxy_time5=in.readLine();
|
|
|
|
|
rxy_data1=in.readLine();
|
|
|
|
|
rxy_data2=in.readLine();
|
|
|
|
|
rxy_data3=in.readLine();
|
|
|
|
|
rxy_data4=in.readLine();
|
|
|
|
|
rxy_data5=in.readLine();
|
|
|
|
|
rxy_data6=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
/*时间设置上限*/
|
|
|
|
|
bool okb;
|
|
|
|
|
if(lineEdit_cspz_3_5->text().toInt(&okb,10)>24)
|
|
|
|
|
lineEdit_cspz_3_5->setText("24");
|
|
|
|
|
if(lineEdit_cspz_3_15->text().toInt(&okb,10)>59)
|
|
|
|
|
lineEdit_cspz_3_15->setText("59");
|
|
|
|
|
if(lineEdit_cspz_3_6->text().toInt(&okb,10)>24)
|
|
|
|
|
lineEdit_cspz_3_6->setText("24");
|
|
|
|
|
if(lineEdit_cspz_3_16->text().toInt(&okb,10)>59)
|
|
|
|
|
lineEdit_cspz_3_16->setText("59");
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/camera.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<"http://"<<lineEdit_cspz_3_7->text()<<":"<<lineEdit_cspz_3_8->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_2->text()<<endl<<lineEdit_cspz_3_3->text()<<endl<<lineEdit_cspz_3_4->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_5->text()<<lineEdit_cspz_3_15->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_6->text()<<lineEdit_cspz_3_16->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_9->text()<<endl<<lineEdit_cspz_3_10->text()<<endl<<lineEdit_cspz_3_11->text()<<endl<<lineEdit_cspz_3_12->text()<<endl<<lineEdit_cspz_3_13->text()<<endl<<lineEdit_cspz_3_14->text()<<endl
|
|
|
|
|
<<byq_rongliang<<endl<<lineEdit_cspz_3_1->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
QFile file_read1("/home/data/camera.txt");
|
|
|
|
|
if(file_read1.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read1);//创建一个对象让它去读文件
|
|
|
|
|
in.readLine();
|
|
|
|
|
a_rxy_time1=in.readLine();
|
|
|
|
|
a_rxy_time2=in.readLine();
|
|
|
|
|
a_rxy_time3=in.readLine();
|
|
|
|
|
a_rxy_time4=in.readLine();
|
|
|
|
|
a_rxy_time5=in.readLine();
|
|
|
|
|
a_rxy_data1=in.readLine();
|
|
|
|
|
a_rxy_data2=in.readLine();
|
|
|
|
|
a_rxy_data3=in.readLine();
|
|
|
|
|
a_rxy_data4=in.readLine();
|
|
|
|
|
a_rxy_data5=in.readLine();
|
|
|
|
|
a_rxy_data6=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read1.close();
|
|
|
|
|
|
|
|
|
|
if((rxy_time1!=a_rxy_time1)|(rxy_time2!=a_rxy_time2)|(rxy_time3!=a_rxy_time3)|(rxy_time4!=a_rxy_time4)|(rxy_time5!=a_rxy_time5))
|
|
|
|
|
{
|
|
|
|
|
QFile file_write1("/home/data/change_time.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFile file_write2("/home/data/change_set.txt");//文件路径
|
|
|
|
|
if(file_write2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write2);
|
|
|
|
|
}
|
|
|
|
|
file_write2.close();
|
|
|
|
|
|
|
|
|
|
label_cspz_3_15->setText("保存成功!");
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
label_cspz_3_15->clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_3_2_Clicked()
|
|
|
|
|
{
|
|
|
|
|
QString a_rxy_time1,a_rxy_time2,a_rxy_time3,a_rxy_time4,a_rxy_time5,a_rxy_data1,a_rxy_data2,a_rxy_data3,a_rxy_data4,a_rxy_data5,a_rxy_data6;
|
|
|
|
|
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
bool ok;
|
|
|
|
|
int byq_rongliang = lineEdit_cspz_3_1->text().toInt(&ok,10)*0.3;//字符串转10进制
|
|
|
|
|
|
|
|
|
|
QFile file_read("/home/data/camera1.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
in.readLine();
|
|
|
|
|
rxy_time1=in.readLine();
|
|
|
|
|
rxy_time2=in.readLine();
|
|
|
|
|
rxy_time3=in.readLine();
|
|
|
|
|
rxy_time4=in.readLine();
|
|
|
|
|
rxy_time5=in.readLine();
|
|
|
|
|
rxy_data1=in.readLine();
|
|
|
|
|
rxy_data2=in.readLine();
|
|
|
|
|
rxy_data3=in.readLine();
|
|
|
|
|
rxy_data4=in.readLine();
|
|
|
|
|
rxy_data5=in.readLine();
|
|
|
|
|
rxy_data6=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
/*时间设置上限*/
|
|
|
|
|
bool okb;
|
|
|
|
|
if(lineEdit_cspz_3_5->text().toInt(&okb,10)>24)
|
|
|
|
|
lineEdit_cspz_3_5->setText("24");
|
|
|
|
|
if(lineEdit_cspz_3_15->text().toInt(&okb,10)>59)
|
|
|
|
|
lineEdit_cspz_3_15->setText("59");
|
|
|
|
|
if(lineEdit_cspz_3_6->text().toInt(&okb,10)>24)
|
|
|
|
|
lineEdit_cspz_3_6->setText("24");
|
|
|
|
|
if(lineEdit_cspz_3_16->text().toInt(&okb,10)>59)
|
|
|
|
|
lineEdit_cspz_3_16->setText("59");
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/camera1.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<"http://"<<lineEdit_cspz_3_7->text()<<":"<<lineEdit_cspz_3_8->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_2->text()<<endl<<lineEdit_cspz_3_3->text()<<endl<<lineEdit_cspz_3_4->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_5->text()<<lineEdit_cspz_3_15->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_6->text()<<lineEdit_cspz_3_16->text()<<endl
|
|
|
|
|
<<lineEdit_cspz_3_9->text()<<endl<<lineEdit_cspz_3_10->text()<<endl<<lineEdit_cspz_3_11->text()<<endl<<lineEdit_cspz_3_12->text()<<endl<<lineEdit_cspz_3_13->text()<<endl<<lineEdit_cspz_3_14->text()<<endl
|
|
|
|
|
<<byq_rongliang<<endl<<lineEdit_cspz_3_1->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
QFile file_read1("/home/data/camera1.txt");
|
|
|
|
|
if(file_read1.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read1);//创建一个对象让它去读文件
|
|
|
|
|
in.readLine();
|
|
|
|
|
a_rxy_time1=in.readLine();
|
|
|
|
|
a_rxy_time2=in.readLine();
|
|
|
|
|
a_rxy_time3=in.readLine();
|
|
|
|
|
a_rxy_time4=in.readLine();
|
|
|
|
|
a_rxy_time5=in.readLine();
|
|
|
|
|
a_rxy_data1=in.readLine();
|
|
|
|
|
a_rxy_data2=in.readLine();
|
|
|
|
|
a_rxy_data3=in.readLine();
|
|
|
|
|
a_rxy_data4=in.readLine();
|
|
|
|
|
a_rxy_data5=in.readLine();
|
|
|
|
|
a_rxy_data6=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read1.close();
|
|
|
|
|
|
|
|
|
|
if((rxy_time1!=a_rxy_time1)|(rxy_time2!=a_rxy_time2)|(rxy_time3!=a_rxy_time3)|(rxy_time4!=a_rxy_time4)|(rxy_time5!=a_rxy_time5))
|
|
|
|
|
{
|
|
|
|
|
QFile file_write1("/home/data/change_time1.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFile file_write2("/home/data/change_set1.txt");//文件路径
|
|
|
|
|
if(file_write2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write2);
|
|
|
|
|
}
|
|
|
|
|
file_write2.close();
|
|
|
|
|
|
|
|
|
|
label_cspz_3_15->setText("保存成功!");
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
label_cspz_3_15->clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_rxy1_start_Clicked()//开启热像仪1
|
|
|
|
|
{
|
|
|
|
|
if(label_cspz_rxy1_start->text()=="热像仪1已开启")
|
|
|
|
|
{
|
|
|
|
|
QFile file_write2("/home/data/connect_rxy1.txt");//文件路径
|
|
|
|
|
if(file_write2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write2);
|
|
|
|
|
setWIFI_data<<"0"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write2.close();
|
|
|
|
|
|
|
|
|
|
label_cspz_rxy1_start->setText("热像仪1已关闭");
|
|
|
|
|
button_cspz_rxy1_start->setText("开启热像仪1");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
QFile file_write2("/home/data/connect_rxy1.txt");//文件路径
|
|
|
|
|
if(file_write2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write2);
|
|
|
|
|
setWIFI_data<<"1"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write2.close();
|
|
|
|
|
label_cspz_rxy1_start->setText("热像仪1已开启");
|
|
|
|
|
button_cspz_rxy1_start->setText("关闭热像仪1");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ARM3->rxy_state(); //下发热像仪状态 23.8.30
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_rxy2_start_Clicked()//开启热像仪2
|
|
|
|
|
{
|
|
|
|
|
if(label_cspz_rxy2_start->text()=="热像仪2已开启")
|
|
|
|
|
{
|
|
|
|
|
QFile file_write2("/home/data/connect_rxy2.txt");//文件路径
|
|
|
|
|
if(file_write2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write2);
|
|
|
|
|
setWIFI_data<<"0"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write2.close();
|
|
|
|
|
label_cspz_rxy2_start->setText("热像仪2已关闭");
|
|
|
|
|
button_cspz_rxy2_start->setText("开启热像仪2");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
QFile file_write2("/home/data/connect_rxy2.txt");//文件路径
|
|
|
|
|
if(file_write2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write2);
|
|
|
|
|
setWIFI_data<<"1"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write2.close();
|
|
|
|
|
label_cspz_rxy2_start->setText("热像仪2已开启");
|
|
|
|
|
button_cspz_rxy2_start->setText("关闭热像仪2");
|
|
|
|
|
}
|
|
|
|
|
ARM3->rxy_state(); //下发热像仪状态 23.8.30
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_5_1_Clicked()//开启风机
|
|
|
|
|
{
|
|
|
|
|
ARM3->setFanState(1);
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_5_2_Clicked()//关闭风机
|
|
|
|
|
{
|
|
|
|
|
ARM3->setFanState(0);
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool fengji_flag=true;
|
|
|
|
|
void canshupeizhi::button_cspz_5_3_Clicked()
|
|
|
|
|
{
|
|
|
|
|
bool ok;
|
|
|
|
|
ui->pushButton_zhujiemian->setDisabled(true);
|
|
|
|
|
ui->pushButton_wangluoxinxi->setDisabled(true);
|
|
|
|
|
ui->pushButton_xitongshezhi->setDisabled(true);
|
|
|
|
|
if(fengji_flag)
|
|
|
|
|
{
|
|
|
|
|
fengji_flag=false;
|
|
|
|
|
|
|
|
|
|
label_cspz_5_18->setText("正在配置...");
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
if(lineEdit_cspz_5_5->text().toInt(&ok,10)>24)
|
|
|
|
|
lineEdit_cspz_5_5->setText("24");
|
|
|
|
|
if(lineEdit_cspz_5_6->text().toInt(&ok,10)>60)
|
|
|
|
|
lineEdit_cspz_5_6->setText("60");
|
|
|
|
|
if(lineEdit_cspz_5_7->text().toInt(&ok,10)>24)
|
|
|
|
|
lineEdit_cspz_5_7->setText("24");
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/FanTiming_local.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_5_5->text()<<endl<<lineEdit_cspz_5_6->text()<<endl<<lineEdit_cspz_5_7->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
QFile file_writef("/home/data/FanTiming.txt");//文件路径
|
|
|
|
|
if(file_writef.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
float time=lineEdit_cspz_5_7->text().toFloat()/0.5;
|
|
|
|
|
QTextStream setWIFI_data(&file_writef);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_5_5->text()<<endl<<lineEdit_cspz_5_6->text()<<endl<<QString::number(time,'f',0)<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_writef.close();
|
|
|
|
|
|
|
|
|
|
QFile file_write1("/home/data/FanTemperature.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_5_1->text()<<endl<<lineEdit_cspz_5_2->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
|
|
|
|
|
QFile file_write2("/home/data/overheat.txt");//文件路径
|
|
|
|
|
if(file_write2.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write2);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_5_3->text()<<endl<<lineEdit_cspz_5_4->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write2.close();
|
|
|
|
|
Delay_MSec1(50);
|
|
|
|
|
ARM3->setoverheat();
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
if(label_cspz_5_19->text()=="风机定时运行已开启!")
|
|
|
|
|
{
|
|
|
|
|
ARM3->setFanTiming(0x01);//串口发送启动风机定时
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ARM3->setFanTiming(0x00);//串口发送关闭风机定时
|
|
|
|
|
}
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
ARM3->setFanStartT();
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
label_cspz_5_18->setText("保存成功!");
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
label_cspz_5_18->clear();
|
|
|
|
|
ui->pushButton_zhujiemian->setEnabled(true);
|
|
|
|
|
ui->pushButton_wangluoxinxi->setEnabled(true);
|
|
|
|
|
ui->pushButton_xitongshezhi->setEnabled(true);
|
|
|
|
|
fengji_flag=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_5_4_Clicked()
|
|
|
|
|
{
|
|
|
|
|
if(label_cspz_5_19->text()=="风机定时运行已开启!")
|
|
|
|
|
{
|
|
|
|
|
QFile file_write1("/home/data/select_fan.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
setWIFI_data<<"0"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
|
|
|
|
|
ARM3->setFanTiming(0x00);//串口发送关闭风机定时
|
|
|
|
|
button_cspz_5_4->setText("开启风机定时运行");
|
|
|
|
|
label_cspz_5_19->setText("风机定时运行已关闭!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
QFile file_write1("/home/data/select_fan.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
setWIFI_data<<"1"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
|
|
|
|
|
ARM3->setFanTiming(0x01);//串口发送启动风机定时
|
|
|
|
|
button_cspz_5_4->setText("关闭风机定时运行");
|
|
|
|
|
label_cspz_5_19->setText("风机定时运行已开启!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_5_5_Clicked()
|
|
|
|
|
{
|
|
|
|
|
if(label_cspz_5_20->text()=="铁芯温度检测已关闭!")
|
|
|
|
|
{
|
|
|
|
|
QFile file_write1("/home/data/select_tiexin.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
setWIFI_data<<"1"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
|
|
|
|
|
ARM3->setIorn(0x01);//串口发送开启铁芯温度检测
|
|
|
|
|
button_cspz_5_5->setText("关闭铁芯温度检测");
|
|
|
|
|
label_cspz_5_20->setText("铁芯温度检测已开启!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
QFile file_write1("/home/data/select_tiexin.txt");//文件路径
|
|
|
|
|
if(file_write1.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write1);
|
|
|
|
|
setWIFI_data<<"0"<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write1.close();
|
|
|
|
|
|
|
|
|
|
ARM3->setIorn(0x00);//串口发送关闭铁芯温度检测
|
|
|
|
|
button_cspz_5_5->setText("开启铁芯温度检测");
|
|
|
|
|
label_cspz_5_20->setText("铁芯温度检测已关闭!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_6_1_Clicked()//无线测温保存第一页
|
|
|
|
|
{
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_adress.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_6_1->text()<<endl<<lineEdit_cspz_6_2->text()<<endl<<lineEdit_cspz_6_3->text()<<endl<<lineEdit_cspz_6_4->text()<<endl<<lineEdit_cspz_6_5->text()<<endl<<lineEdit_cspz_6_6->text()<<endl<<lineEdit_cspz_6_7->text()<<endl<<lineEdit_cspz_6_8->text()<<endl<<lineEdit_cspz_6_9->text()<<endl<<lineEdit_cspz_6_10->text()<<endl<<lineEdit_cspz_6_11->text()<<endl<<lineEdit_cspz_6_12->text()<<endl<<lineEdit_cspz_6_13->text()<<endl<<lineEdit_cspz_6_14->text()<<endl<<lineEdit_cspz_6_15->text()<<endl<<lineEdit_cspz_6_16->text()<<endl<<lineEdit_cspz_6_17->text()<<endl<<lineEdit_cspz_6_18->text()<<endl<<lineEdit_cspz_6_19->text()<<endl<<lineEdit_cspz_6_20->text()<<endl<<lineEdit_cspz_6_21->text()<<endl<<lineEdit_cspz_6_22->text()<<endl<<lineEdit_cspz_6_23->text()<<endl<<lineEdit_cspz_6_24->text()<<endl<<lineEdit_cspz_6_25->text()<<endl<<lineEdit_cspz_6_26->text()<<endl<<lineEdit_cspz_6_27->text()<<endl<<lineEdit_cspz_6_28->text()<<endl<<lineEdit_cspz_6_29->text()<<endl<<lineEdit_cspz_6_30->text()<<endl<<line31<<endl<<line32<<endl<<line33<<endl<<line34<<endl<<line35<<endl<<line36<<endl<<line37<<endl<<line38<<endl<<line39<<endl<<line40<<endl<<line41<<endl<<line42<<endl<<line43<<endl<<line44<<endl<<line45<<endl<<line46<<endl<<line47<<endl<<line48<<endl<<line49<<endl<<line50<<endl<<line51<<endl<<line52<<endl<<line53<<endl<<line54<<endl<<line55<<endl<<line56<<endl<<line57<<endl<<line58<<endl<<line59<<endl<<line60<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
ARM3->setWirelessT();
|
|
|
|
|
label_cspz_6_31->setText("保存成功!");
|
|
|
|
|
QTimer::singleShot(500, label_cspz_6_31, SLOT(clear()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_6_2_Clicked()//无线测温设置下一页
|
|
|
|
|
{
|
|
|
|
|
if(cspz_wxcw_down_page_flag)
|
|
|
|
|
{
|
|
|
|
|
button_cspz_6_4->raise();
|
|
|
|
|
QFile file_read("/home/data/wireless_adress.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
line1=in.readLine();
|
|
|
|
|
line2=in.readLine();
|
|
|
|
|
line3=in.readLine();
|
|
|
|
|
line4=in.readLine();
|
|
|
|
|
line5=in.readLine();
|
|
|
|
|
line6=in.readLine();
|
|
|
|
|
line7=in.readLine();
|
|
|
|
|
line8=in.readLine();
|
|
|
|
|
line9=in.readLine();
|
|
|
|
|
line10=in.readLine();
|
|
|
|
|
line11=in.readLine();
|
|
|
|
|
line12=in.readLine();
|
|
|
|
|
line13=in.readLine();
|
|
|
|
|
line14=in.readLine();
|
|
|
|
|
line15=in.readLine();
|
|
|
|
|
line16=in.readLine();
|
|
|
|
|
line17=in.readLine();
|
|
|
|
|
line18=in.readLine();
|
|
|
|
|
line19=in.readLine();
|
|
|
|
|
line20=in.readLine();
|
|
|
|
|
line21=in.readLine();
|
|
|
|
|
line22=in.readLine();
|
|
|
|
|
line23=in.readLine();
|
|
|
|
|
line24=in.readLine();
|
|
|
|
|
line25=in.readLine();
|
|
|
|
|
line26=in.readLine();
|
|
|
|
|
line27=in.readLine();
|
|
|
|
|
line28=in.readLine();
|
|
|
|
|
line29=in.readLine();
|
|
|
|
|
line30=in.readLine();
|
|
|
|
|
line31=in.readLine();
|
|
|
|
|
line32=in.readLine();
|
|
|
|
|
line33=in.readLine();
|
|
|
|
|
line34=in.readLine();
|
|
|
|
|
line35=in.readLine();
|
|
|
|
|
line36=in.readLine();
|
|
|
|
|
line37=in.readLine();
|
|
|
|
|
line38=in.readLine();
|
|
|
|
|
line39=in.readLine();
|
|
|
|
|
line40=in.readLine();
|
|
|
|
|
line41=in.readLine();
|
|
|
|
|
line42=in.readLine();
|
|
|
|
|
line43=in.readLine();
|
|
|
|
|
line44=in.readLine();
|
|
|
|
|
line45=in.readLine();
|
|
|
|
|
line46=in.readLine();
|
|
|
|
|
line47=in.readLine();
|
|
|
|
|
line48=in.readLine();
|
|
|
|
|
line49=in.readLine();
|
|
|
|
|
line50=in.readLine();
|
|
|
|
|
line51=in.readLine();
|
|
|
|
|
line52=in.readLine();
|
|
|
|
|
line53=in.readLine();
|
|
|
|
|
line54=in.readLine();
|
|
|
|
|
line55=in.readLine();
|
|
|
|
|
line56=in.readLine();
|
|
|
|
|
line57=in.readLine();
|
|
|
|
|
line58=in.readLine();
|
|
|
|
|
line59=in.readLine();
|
|
|
|
|
line60=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_adress.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_6_1->text()<<endl<<lineEdit_cspz_6_2->text()<<endl<<lineEdit_cspz_6_3->text()<<endl<<lineEdit_cspz_6_4->text()<<endl<<lineEdit_cspz_6_5->text()<<endl<<lineEdit_cspz_6_6->text()<<endl<<lineEdit_cspz_6_7->text()<<endl<<lineEdit_cspz_6_8->text()<<endl<<lineEdit_cspz_6_9->text()<<endl<<lineEdit_cspz_6_10->text()<<endl<<lineEdit_cspz_6_11->text()<<endl<<lineEdit_cspz_6_12->text()<<endl<<lineEdit_cspz_6_13->text()<<endl<<lineEdit_cspz_6_14->text()<<endl<<lineEdit_cspz_6_15->text()<<endl<<lineEdit_cspz_6_16->text()<<endl<<lineEdit_cspz_6_17->text()<<endl<<lineEdit_cspz_6_18->text()<<endl<<lineEdit_cspz_6_19->text()<<endl<<lineEdit_cspz_6_20->text()<<endl<<lineEdit_cspz_6_21->text()<<endl<<lineEdit_cspz_6_22->text()<<endl<<lineEdit_cspz_6_23->text()<<endl<<lineEdit_cspz_6_24->text()<<endl<<lineEdit_cspz_6_25->text()<<endl<<lineEdit_cspz_6_26->text()<<endl<<lineEdit_cspz_6_27->text()<<endl<<lineEdit_cspz_6_28->text()<<endl<<lineEdit_cspz_6_29->text()<<endl<<lineEdit_cspz_6_30->text()<<endl<<line31<<endl<<line32<<endl<<line33<<endl<<line34<<endl<<line35<<endl<<line36<<endl<<line37<<endl<<line38<<endl<<line39<<endl<<line40<<endl<<line41<<endl<<line42<<endl<<line43<<endl<<line44<<endl<<line45<<endl<<line46<<endl<<line47<<endl<<line48<<endl<<line49<<endl<<line50<<endl<<line51<<endl<<line52<<endl<<line53<<endl<<line54<<endl<<line55<<endl<<line56<<endl<<line57<<endl<<line58<<endl<<line59<<endl<<line60<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
label_cspz_6_1->setText("节点31:");
|
|
|
|
|
label_cspz_6_2->setText("节点32:");
|
|
|
|
|
label_cspz_6_3->setText("节点33:");
|
|
|
|
|
label_cspz_6_4->setText("节点34:");
|
|
|
|
|
label_cspz_6_5->setText("节点35:");
|
|
|
|
|
label_cspz_6_6->setText("节点36:");
|
|
|
|
|
label_cspz_6_7->setText("节点37:");
|
|
|
|
|
label_cspz_6_8->setText("节点38:");
|
|
|
|
|
label_cspz_6_9->setText("节点39:");
|
|
|
|
|
label_cspz_6_10->setText("节点40:");
|
|
|
|
|
label_cspz_6_11->setText("节点41:");
|
|
|
|
|
label_cspz_6_12->setText("节点42:");
|
|
|
|
|
label_cspz_6_13->setText("节点43:");
|
|
|
|
|
label_cspz_6_14->setText("节点44:");
|
|
|
|
|
label_cspz_6_15->setText("节点45:");
|
|
|
|
|
label_cspz_6_16->setText("节点46:");
|
|
|
|
|
label_cspz_6_17->setText("节点47:");
|
|
|
|
|
label_cspz_6_18->setText("节点48:");
|
|
|
|
|
label_cspz_6_19->setText("节点49:");
|
|
|
|
|
label_cspz_6_20->setText("节点50:");
|
|
|
|
|
label_cspz_6_21->setText("节点51:");
|
|
|
|
|
label_cspz_6_22->setText("节点52:");
|
|
|
|
|
label_cspz_6_23->setText("节点53:");
|
|
|
|
|
label_cspz_6_24->setText("节点54:");
|
|
|
|
|
label_cspz_6_25->setText("节点55:");
|
|
|
|
|
label_cspz_6_26->setText("节点56:");
|
|
|
|
|
label_cspz_6_27->setText("节点57:");
|
|
|
|
|
label_cspz_6_28->setText("节点58:");
|
|
|
|
|
label_cspz_6_29->setText("节点59:");
|
|
|
|
|
label_cspz_6_30->setText("节点60:");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_6_1->setText(line31);
|
|
|
|
|
lineEdit_cspz_6_2->setText(line32);
|
|
|
|
|
lineEdit_cspz_6_3->setText(line33);
|
|
|
|
|
lineEdit_cspz_6_4->setText(line34);
|
|
|
|
|
lineEdit_cspz_6_5->setText(line35);
|
|
|
|
|
lineEdit_cspz_6_6->setText(line36);
|
|
|
|
|
lineEdit_cspz_6_7->setText(line37);
|
|
|
|
|
lineEdit_cspz_6_8->setText(line38);
|
|
|
|
|
lineEdit_cspz_6_9->setText(line39);
|
|
|
|
|
lineEdit_cspz_6_10->setText(line40);
|
|
|
|
|
lineEdit_cspz_6_11->setText(line41);
|
|
|
|
|
lineEdit_cspz_6_12->setText(line42);
|
|
|
|
|
lineEdit_cspz_6_13->setText(line43);
|
|
|
|
|
lineEdit_cspz_6_14->setText(line44);
|
|
|
|
|
lineEdit_cspz_6_15->setText(line45);
|
|
|
|
|
lineEdit_cspz_6_16->setText(line46);
|
|
|
|
|
lineEdit_cspz_6_17->setText(line47);
|
|
|
|
|
lineEdit_cspz_6_18->setText(line48);
|
|
|
|
|
lineEdit_cspz_6_19->setText(line49);
|
|
|
|
|
lineEdit_cspz_6_20->setText(line50);
|
|
|
|
|
lineEdit_cspz_6_21->setText(line51);
|
|
|
|
|
lineEdit_cspz_6_22->setText(line52);
|
|
|
|
|
lineEdit_cspz_6_23->setText(line53);
|
|
|
|
|
lineEdit_cspz_6_24->setText(line54);
|
|
|
|
|
lineEdit_cspz_6_25->setText(line55);
|
|
|
|
|
lineEdit_cspz_6_26->setText(line56);
|
|
|
|
|
lineEdit_cspz_6_27->setText(line57);
|
|
|
|
|
lineEdit_cspz_6_28->setText(line58);
|
|
|
|
|
lineEdit_cspz_6_29->setText(line59);
|
|
|
|
|
lineEdit_cspz_6_30->setText(line60);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
cspz_wxcw_down_page_flag=false;
|
|
|
|
|
cspz_wxcw_top_page_flag=true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_6_3_Clicked()//无线测温设置上一页
|
|
|
|
|
{
|
|
|
|
|
if(cspz_wxcw_top_page_flag)
|
|
|
|
|
{
|
|
|
|
|
button_cspz_6_4->close();
|
|
|
|
|
button_cspz_6_1->show();
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_adress.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<line1<<endl<<line2<<endl<<line3<<endl<<line4<<endl<<line5<<endl<<line6<<endl<<line7<<endl<<line8<<endl<<line9<<endl<<line10<<endl<<line11<<endl<<line12<<endl<<line13<<endl<<line14<<endl<<line15<<endl<<line16<<endl<<line17<<endl<<line18<<endl<<line19<<endl<<line20<<endl<<line21<<endl<<line22<<endl<<line23<<endl<<line24<<endl<<line25<<endl<<line26<<endl<<line27<<endl<<line28<<endl<<line29<<endl<<line30<<endl<<lineEdit_cspz_6_1->text()<<endl<<lineEdit_cspz_6_2->text()<<endl<<lineEdit_cspz_6_3->text()<<endl<<lineEdit_cspz_6_4->text()<<endl<<lineEdit_cspz_6_5->text()<<endl<<lineEdit_cspz_6_6->text()<<endl<<lineEdit_cspz_6_7->text()<<endl<<lineEdit_cspz_6_8->text()<<endl<<lineEdit_cspz_6_9->text()<<endl<<lineEdit_cspz_6_10->text()<<endl<<lineEdit_cspz_6_11->text()<<endl<<lineEdit_cspz_6_12->text()<<endl<<lineEdit_cspz_6_13->text()<<endl<<lineEdit_cspz_6_14->text()<<endl<<lineEdit_cspz_6_15->text()<<endl<<lineEdit_cspz_6_16->text()<<endl<<lineEdit_cspz_6_17->text()<<endl<<lineEdit_cspz_6_18->text()<<endl<<lineEdit_cspz_6_19->text()<<endl<<lineEdit_cspz_6_20->text()<<endl<<lineEdit_cspz_6_21->text()<<endl<<lineEdit_cspz_6_22->text()<<endl<<lineEdit_cspz_6_23->text()<<endl<<lineEdit_cspz_6_24->text()<<endl<<lineEdit_cspz_6_25->text()<<endl<<lineEdit_cspz_6_26->text()<<endl<<lineEdit_cspz_6_27->text()<<endl<<lineEdit_cspz_6_28->text()<<endl<<lineEdit_cspz_6_29->text()<<endl<<lineEdit_cspz_6_30->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
label_cspz_6_1->setText("节点1:");
|
|
|
|
|
label_cspz_6_2->setText("节点2:");
|
|
|
|
|
label_cspz_6_3->setText("节点3:");
|
|
|
|
|
label_cspz_6_4->setText("节点4:");
|
|
|
|
|
label_cspz_6_5->setText("节点5:");
|
|
|
|
|
label_cspz_6_6->setText("节点6:");
|
|
|
|
|
label_cspz_6_7->setText("节点7:");
|
|
|
|
|
label_cspz_6_8->setText("节点8:");
|
|
|
|
|
label_cspz_6_9->setText("节点9:");
|
|
|
|
|
label_cspz_6_10->setText("节点10:");
|
|
|
|
|
label_cspz_6_11->setText("节点11:");
|
|
|
|
|
label_cspz_6_12->setText("节点12:");
|
|
|
|
|
label_cspz_6_13->setText("节点13:");
|
|
|
|
|
label_cspz_6_14->setText("节点14:");
|
|
|
|
|
label_cspz_6_15->setText("节点15:");
|
|
|
|
|
label_cspz_6_16->setText("节点16:");
|
|
|
|
|
label_cspz_6_17->setText("节点17:");
|
|
|
|
|
label_cspz_6_18->setText("节点18:");
|
|
|
|
|
label_cspz_6_19->setText("节点19:");
|
|
|
|
|
label_cspz_6_20->setText("节点20:");
|
|
|
|
|
label_cspz_6_21->setText("节点21:");
|
|
|
|
|
label_cspz_6_22->setText("节点22:");
|
|
|
|
|
label_cspz_6_23->setText("节点23:");
|
|
|
|
|
label_cspz_6_24->setText("节点24:");
|
|
|
|
|
label_cspz_6_25->setText("节点25:");
|
|
|
|
|
label_cspz_6_26->setText("节点26:");
|
|
|
|
|
label_cspz_6_27->setText("节点27:");
|
|
|
|
|
label_cspz_6_28->setText("节点28:");
|
|
|
|
|
label_cspz_6_29->setText("节点29:");
|
|
|
|
|
label_cspz_6_30->setText("节点30:");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_6_1->setText(line1);
|
|
|
|
|
lineEdit_cspz_6_2->setText(line2);
|
|
|
|
|
lineEdit_cspz_6_3->setText(line3);
|
|
|
|
|
lineEdit_cspz_6_4->setText(line4);
|
|
|
|
|
lineEdit_cspz_6_5->setText(line5);
|
|
|
|
|
lineEdit_cspz_6_6->setText(line6);
|
|
|
|
|
lineEdit_cspz_6_7->setText(line7);
|
|
|
|
|
lineEdit_cspz_6_8->setText(line8);
|
|
|
|
|
lineEdit_cspz_6_9->setText(line9);
|
|
|
|
|
lineEdit_cspz_6_10->setText(line10);
|
|
|
|
|
lineEdit_cspz_6_11->setText(line11);
|
|
|
|
|
lineEdit_cspz_6_12->setText(line12);
|
|
|
|
|
lineEdit_cspz_6_13->setText(line13);
|
|
|
|
|
lineEdit_cspz_6_14->setText(line14);
|
|
|
|
|
lineEdit_cspz_6_15->setText(line15);
|
|
|
|
|
lineEdit_cspz_6_16->setText(line16);
|
|
|
|
|
lineEdit_cspz_6_17->setText(line17);
|
|
|
|
|
lineEdit_cspz_6_18->setText(line18);
|
|
|
|
|
lineEdit_cspz_6_19->setText(line19);
|
|
|
|
|
lineEdit_cspz_6_20->setText(line20);
|
|
|
|
|
lineEdit_cspz_6_21->setText(line21);
|
|
|
|
|
lineEdit_cspz_6_22->setText(line22);
|
|
|
|
|
lineEdit_cspz_6_23->setText(line23);
|
|
|
|
|
lineEdit_cspz_6_24->setText(line24);
|
|
|
|
|
lineEdit_cspz_6_25->setText(line25);
|
|
|
|
|
lineEdit_cspz_6_26->setText(line26);
|
|
|
|
|
lineEdit_cspz_6_27->setText(line27);
|
|
|
|
|
lineEdit_cspz_6_28->setText(line28);
|
|
|
|
|
lineEdit_cspz_6_29->setText(line29);
|
|
|
|
|
lineEdit_cspz_6_30->setText(line30);
|
|
|
|
|
}
|
|
|
|
|
cspz_wxcw_down_page_flag=true;
|
|
|
|
|
cspz_wxcw_top_page_flag=false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_6_4_Clicked()//无线测温保存第二页
|
|
|
|
|
{
|
|
|
|
|
if(keyBoard_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard1->close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_adress.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<line1<<endl<<line2<<endl<<line3<<endl<<line4<<endl<<line5<<endl<<line6<<endl<<line7<<endl<<line8<<endl<<line9<<endl<<line10<<endl<<line11<<endl<<line12<<endl<<line13<<endl<<line14<<endl<<line15<<endl<<line16<<endl<<line17<<endl<<line18<<endl<<line19<<endl<<line20<<endl<<line21<<endl<<line22<<endl<<line23<<endl<<line24<<endl<<line25<<endl<<line26<<endl<<line27<<endl<<line28<<endl<<line29<<endl<<line30<<endl<<lineEdit_cspz_6_1->text()<<endl<<lineEdit_cspz_6_2->text()<<endl<<lineEdit_cspz_6_3->text()<<endl<<lineEdit_cspz_6_4->text()<<endl<<lineEdit_cspz_6_5->text()<<endl<<lineEdit_cspz_6_6->text()<<endl<<lineEdit_cspz_6_7->text()<<endl<<lineEdit_cspz_6_8->text()<<endl<<lineEdit_cspz_6_9->text()<<endl<<lineEdit_cspz_6_10->text()<<endl<<lineEdit_cspz_6_11->text()<<endl<<lineEdit_cspz_6_12->text()<<endl<<lineEdit_cspz_6_13->text()<<endl<<lineEdit_cspz_6_14->text()<<endl<<lineEdit_cspz_6_15->text()<<endl<<lineEdit_cspz_6_16->text()<<endl<<lineEdit_cspz_6_17->text()<<endl<<lineEdit_cspz_6_18->text()<<endl<<lineEdit_cspz_6_19->text()<<endl<<lineEdit_cspz_6_20->text()<<endl<<lineEdit_cspz_6_21->text()<<endl<<lineEdit_cspz_6_22->text()<<endl<<lineEdit_cspz_6_23->text()<<endl<<lineEdit_cspz_6_24->text()<<endl<<lineEdit_cspz_6_25->text()<<endl<<lineEdit_cspz_6_26->text()<<endl<<lineEdit_cspz_6_27->text()<<endl<<lineEdit_cspz_6_28->text()<<endl<<lineEdit_cspz_6_29->text()<<endl<<lineEdit_cspz_6_30->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
label_cspz_6_31->setText("保存成功!");
|
|
|
|
|
Delay_MSec1(500);
|
|
|
|
|
label_cspz_6_31->clear();
|
|
|
|
|
ARM3->setWirelessT();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_wirename_1_Clicked()
|
|
|
|
|
{
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_name.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_wirename_1->text()<<endl<<lineEdit_cspz_wirename_2->text()<<endl<<lineEdit_cspz_wirename_3->text()<<endl<<lineEdit_cspz_wirename_4->text()<<endl<<lineEdit_cspz_wirename_5->text()<<endl<<lineEdit_cspz_wirename_6->text()<<endl<<lineEdit_cspz_wirename_7->text()<<endl<<lineEdit_cspz_wirename_8->text()<<endl<<lineEdit_cspz_wirename_9->text()<<endl<<lineEdit_cspz_wirename_10->text()<<endl<<lineEdit_cspz_wirename_11->text()<<endl<<lineEdit_cspz_wirename_12->text()<<endl<<lineEdit_cspz_wirename_13->text()<<endl<<lineEdit_cspz_wirename_14->text()<<endl<<lineEdit_cspz_wirename_15->text()<<endl<<lineEdit_cspz_wirename_16->text()<<endl<<lineEdit_cspz_wirename_17->text()<<endl<<lineEdit_cspz_wirename_18->text()<<endl<<lineEdit_cspz_wirename_19->text()<<endl<<lineEdit_cspz_wirename_20->text()<<endl<<lineEdit_cspz_wirename_21->text()<<endl<<lineEdit_cspz_wirename_22->text()<<endl<<lineEdit_cspz_wirename_23->text()<<endl<<lineEdit_cspz_wirename_24->text()<<endl<<lineEdit_cspz_wirename_25->text()<<endl<<lineEdit_cspz_wirename_26->text()<<endl<<lineEdit_cspz_wirename_27->text()<<endl<<lineEdit_cspz_wirename_28->text()<<endl<<lineEdit_cspz_wirename_29->text()<<endl<<lineEdit_cspz_wirename_30->text()<<endl<<name31<<endl
|
|
|
|
|
<<name32<<endl<<name33<<endl<<name34<<endl<<name35<<endl<<name36<<endl<<name37<<endl<<name38<<endl<<name39<<endl<<name40<<endl<<name41<<endl<<name42<<endl<<name43<<endl<<name44<<endl<<name45<<endl<<name46<<endl<<name47<<endl<<name48<<endl<<name49<<endl<<name50<<endl<<name51<<endl<<name52<<endl<<name53<<endl<<name54<<endl<<name55<<endl<<name56<<endl<<name57<<endl<<name58<<endl<<name59<<endl<<name60<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
label_cspz_wirename_save->setText("保存成功!");
|
|
|
|
|
QTimer::singleShot(500, label_cspz_wirename_save, SLOT(clear()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_wirename_2_Clicked()
|
|
|
|
|
{
|
|
|
|
|
if(cspz_wxcw_name_down_page_flag)
|
|
|
|
|
{
|
|
|
|
|
button_cspz_wirename_4->raise();
|
|
|
|
|
QFile file_read("/home/data/wireless_name.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
name1=in.readLine();
|
|
|
|
|
name2=in.readLine();
|
|
|
|
|
name3=in.readLine();
|
|
|
|
|
name4=in.readLine();
|
|
|
|
|
name5=in.readLine();
|
|
|
|
|
name6=in.readLine();
|
|
|
|
|
name7=in.readLine();
|
|
|
|
|
name8=in.readLine();
|
|
|
|
|
name9=in.readLine();
|
|
|
|
|
name10=in.readLine();
|
|
|
|
|
name11=in.readLine();
|
|
|
|
|
name12=in.readLine();
|
|
|
|
|
name13=in.readLine();
|
|
|
|
|
name14=in.readLine();
|
|
|
|
|
name15=in.readLine();
|
|
|
|
|
name16=in.readLine();
|
|
|
|
|
name17=in.readLine();
|
|
|
|
|
name18=in.readLine();
|
|
|
|
|
name19=in.readLine();
|
|
|
|
|
name20=in.readLine();
|
|
|
|
|
name21=in.readLine();
|
|
|
|
|
name22=in.readLine();
|
|
|
|
|
name23=in.readLine();
|
|
|
|
|
name24=in.readLine();
|
|
|
|
|
name25=in.readLine();
|
|
|
|
|
name26=in.readLine();
|
|
|
|
|
name27=in.readLine();
|
|
|
|
|
name28=in.readLine();
|
|
|
|
|
name29=in.readLine();
|
|
|
|
|
name30=in.readLine();
|
|
|
|
|
name31=in.readLine();
|
|
|
|
|
name32=in.readLine();
|
|
|
|
|
name33=in.readLine();
|
|
|
|
|
name34=in.readLine();
|
|
|
|
|
name35=in.readLine();
|
|
|
|
|
name36=in.readLine();
|
|
|
|
|
name37=in.readLine();
|
|
|
|
|
name38=in.readLine();
|
|
|
|
|
name39=in.readLine();
|
|
|
|
|
name40=in.readLine();
|
|
|
|
|
name41=in.readLine();
|
|
|
|
|
name42=in.readLine();
|
|
|
|
|
name43=in.readLine();
|
|
|
|
|
name44=in.readLine();
|
|
|
|
|
name45=in.readLine();
|
|
|
|
|
name46=in.readLine();
|
|
|
|
|
name47=in.readLine();
|
|
|
|
|
name48=in.readLine();
|
|
|
|
|
name49=in.readLine();
|
|
|
|
|
name50=in.readLine();
|
|
|
|
|
name51=in.readLine();
|
|
|
|
|
name52=in.readLine();
|
|
|
|
|
name53=in.readLine();
|
|
|
|
|
name54=in.readLine();
|
|
|
|
|
name55=in.readLine();
|
|
|
|
|
name56=in.readLine();
|
|
|
|
|
name57=in.readLine();
|
|
|
|
|
name58=in.readLine();
|
|
|
|
|
name59=in.readLine();
|
|
|
|
|
name60=in.readLine();
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
wireless_name[0]=name1;
|
|
|
|
|
wireless_name[1]=name2;
|
|
|
|
|
wireless_name[2]=name3;
|
|
|
|
|
wireless_name[3]=name4;
|
|
|
|
|
wireless_name[4]=name5;
|
|
|
|
|
wireless_name[5]=name6;
|
|
|
|
|
wireless_name[6]=name7;
|
|
|
|
|
wireless_name[7]=name8;
|
|
|
|
|
wireless_name[8]=name9;
|
|
|
|
|
wireless_name[9]=name10;
|
|
|
|
|
wireless_name[10]=name11;
|
|
|
|
|
wireless_name[11]=name12;
|
|
|
|
|
wireless_name[12]=name13;
|
|
|
|
|
wireless_name[13]=name14;
|
|
|
|
|
wireless_name[14]=name15;
|
|
|
|
|
wireless_name[15]=name16;
|
|
|
|
|
wireless_name[16]=name17;
|
|
|
|
|
wireless_name[17]=name18;
|
|
|
|
|
wireless_name[18]=name19;
|
|
|
|
|
wireless_name[19]=name20;
|
|
|
|
|
wireless_name[20]=name21;
|
|
|
|
|
wireless_name[21]=name22;
|
|
|
|
|
wireless_name[22]=name23;
|
|
|
|
|
wireless_name[23]=name24;
|
|
|
|
|
wireless_name[24]=name25;
|
|
|
|
|
wireless_name[25]=name26;
|
|
|
|
|
wireless_name[26]=name27;
|
|
|
|
|
wireless_name[27]=name28;
|
|
|
|
|
wireless_name[28]=name29;
|
|
|
|
|
wireless_name[29]=name30;
|
|
|
|
|
wireless_name[30]=name31;
|
|
|
|
|
wireless_name[31]=name32;
|
|
|
|
|
wireless_name[32]=name33;
|
|
|
|
|
wireless_name[33]=name34;
|
|
|
|
|
wireless_name[34]=name35;
|
|
|
|
|
wireless_name[35]=name36;
|
|
|
|
|
wireless_name[36]=name37;
|
|
|
|
|
wireless_name[37]=name38;
|
|
|
|
|
wireless_name[38]=name39;
|
|
|
|
|
wireless_name[39]=name40;
|
|
|
|
|
wireless_name[40]=name41;
|
|
|
|
|
wireless_name[41]=name42;
|
|
|
|
|
wireless_name[42]=name43;
|
|
|
|
|
wireless_name[43]=name44;
|
|
|
|
|
wireless_name[44]=name45;
|
|
|
|
|
wireless_name[45]=name46;
|
|
|
|
|
wireless_name[46]=name47;
|
|
|
|
|
wireless_name[47]=name48;
|
|
|
|
|
wireless_name[48]=name49;
|
|
|
|
|
wireless_name[49]=name50;
|
|
|
|
|
wireless_name[50]=name51;
|
|
|
|
|
wireless_name[51]=name52;
|
|
|
|
|
wireless_name[52]=name53;
|
|
|
|
|
wireless_name[53]=name54;
|
|
|
|
|
wireless_name[54]=name55;
|
|
|
|
|
wireless_name[55]=name56;
|
|
|
|
|
wireless_name[56]=name57;
|
|
|
|
|
wireless_name[57]=name58;
|
|
|
|
|
wireless_name[58]=name59;
|
|
|
|
|
wireless_name[59]=name60;
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_name.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<lineEdit_cspz_wirename_1->text()<<endl<<lineEdit_cspz_wirename_2->text()<<endl<<lineEdit_cspz_wirename_3->text()<<endl<<lineEdit_cspz_wirename_4->text()<<endl<<lineEdit_cspz_wirename_5->text()<<endl<<lineEdit_cspz_wirename_6->text()<<endl<<lineEdit_cspz_wirename_7->text()<<endl<<lineEdit_cspz_wirename_8->text()<<endl<<lineEdit_cspz_wirename_9->text()<<endl<<lineEdit_cspz_wirename_10->text()<<endl<<lineEdit_cspz_wirename_11->text()<<endl<<lineEdit_cspz_wirename_12->text()<<endl<<lineEdit_cspz_wirename_13->text()<<endl<<lineEdit_cspz_wirename_14->text()<<endl<<lineEdit_cspz_wirename_15->text()<<endl<<lineEdit_cspz_wirename_16->text()<<endl<<lineEdit_cspz_wirename_17->text()<<endl<<lineEdit_cspz_wirename_18->text()<<endl<<lineEdit_cspz_wirename_19->text()<<endl<<lineEdit_cspz_wirename_20->text()<<endl<<lineEdit_cspz_wirename_21->text()<<endl<<lineEdit_cspz_wirename_22->text()<<endl<<lineEdit_cspz_wirename_23->text()<<endl<<lineEdit_cspz_wirename_24->text()<<endl<<lineEdit_cspz_wirename_25->text()<<endl<<lineEdit_cspz_wirename_26->text()<<endl<<lineEdit_cspz_wirename_27->text()<<endl<<lineEdit_cspz_wirename_28->text()<<endl<<lineEdit_cspz_wirename_29->text()<<endl<<lineEdit_cspz_wirename_30->text()<<endl<<name31<<endl
|
|
|
|
|
<<name32<<endl<<name33<<endl<<name34<<endl<<name35<<endl<<name36<<endl<<name37<<endl<<name38<<endl<<name39<<endl<<name40<<endl<<name41<<endl<<name42<<endl<<name43<<endl<<name44<<endl<<name45<<endl<<name46<<endl<<name47<<endl<<name48<<endl<<name49<<endl<<name50<<endl<<name51<<endl<<name52<<endl<<name53<<endl<<name54<<endl<<name55<<endl<<name56<<endl<<name57<<endl<<name58<<endl<<name59<<endl<<name60<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
label_cspz_wirename_1->setText("节点31:");
|
|
|
|
|
label_cspz_wirename_2->setText("节点32:");
|
|
|
|
|
label_cspz_wirename_3->setText("节点33:");
|
|
|
|
|
label_cspz_wirename_4->setText("节点34:");
|
|
|
|
|
label_cspz_wirename_5->setText("节点35:");
|
|
|
|
|
label_cspz_wirename_6->setText("节点36:");
|
|
|
|
|
label_cspz_wirename_7->setText("节点37:");
|
|
|
|
|
label_cspz_wirename_8->setText("节点38:");
|
|
|
|
|
label_cspz_wirename_9->setText("节点39:");
|
|
|
|
|
label_cspz_wirename_10->setText("节点40:");
|
|
|
|
|
label_cspz_wirename_11->setText("节点41:");
|
|
|
|
|
label_cspz_wirename_12->setText("节点42:");
|
|
|
|
|
label_cspz_wirename_13->setText("节点43:");
|
|
|
|
|
label_cspz_wirename_14->setText("节点44:");
|
|
|
|
|
label_cspz_wirename_15->setText("节点45:");
|
|
|
|
|
label_cspz_wirename_16->setText("节点46:");
|
|
|
|
|
label_cspz_wirename_17->setText("节点47:");
|
|
|
|
|
label_cspz_wirename_18->setText("节点48:");
|
|
|
|
|
label_cspz_wirename_19->setText("节点49:");
|
|
|
|
|
label_cspz_wirename_20->setText("节点50:");
|
|
|
|
|
label_cspz_wirename_21->setText("节点51:");
|
|
|
|
|
label_cspz_wirename_22->setText("节点52:");
|
|
|
|
|
label_cspz_wirename_23->setText("节点53:");
|
|
|
|
|
label_cspz_wirename_24->setText("节点54:");
|
|
|
|
|
label_cspz_wirename_25->setText("节点55:");
|
|
|
|
|
label_cspz_wirename_26->setText("节点56:");
|
|
|
|
|
label_cspz_wirename_27->setText("节点57:");
|
|
|
|
|
label_cspz_wirename_28->setText("节点58:");
|
|
|
|
|
label_cspz_wirename_29->setText("节点59:");
|
|
|
|
|
label_cspz_wirename_30->setText("节点60:");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_wirename_1->setText(wireless_name[30]);
|
|
|
|
|
lineEdit_cspz_wirename_2->setText(wireless_name[31]);
|
|
|
|
|
lineEdit_cspz_wirename_3->setText(wireless_name[32]);
|
|
|
|
|
lineEdit_cspz_wirename_4->setText(wireless_name[33]);
|
|
|
|
|
lineEdit_cspz_wirename_5->setText(wireless_name[34]);
|
|
|
|
|
lineEdit_cspz_wirename_6->setText(wireless_name[35]);
|
|
|
|
|
lineEdit_cspz_wirename_7->setText(wireless_name[36]);
|
|
|
|
|
lineEdit_cspz_wirename_8->setText(wireless_name[37]);
|
|
|
|
|
lineEdit_cspz_wirename_9->setText(wireless_name[38]);
|
|
|
|
|
lineEdit_cspz_wirename_10->setText(wireless_name[39]);
|
|
|
|
|
lineEdit_cspz_wirename_11->setText(wireless_name[40]);
|
|
|
|
|
lineEdit_cspz_wirename_12->setText(wireless_name[41]);
|
|
|
|
|
lineEdit_cspz_wirename_13->setText(wireless_name[42]);
|
|
|
|
|
lineEdit_cspz_wirename_14->setText(wireless_name[43]);
|
|
|
|
|
lineEdit_cspz_wirename_15->setText(wireless_name[44]);
|
|
|
|
|
lineEdit_cspz_wirename_16->setText(wireless_name[45]);
|
|
|
|
|
lineEdit_cspz_wirename_17->setText(wireless_name[46]);
|
|
|
|
|
lineEdit_cspz_wirename_18->setText(wireless_name[47]);
|
|
|
|
|
lineEdit_cspz_wirename_19->setText(wireless_name[48]);
|
|
|
|
|
lineEdit_cspz_wirename_20->setText(wireless_name[49]);
|
|
|
|
|
lineEdit_cspz_wirename_21->setText(wireless_name[50]);
|
|
|
|
|
lineEdit_cspz_wirename_22->setText(wireless_name[51]);
|
|
|
|
|
lineEdit_cspz_wirename_23->setText(wireless_name[52]);
|
|
|
|
|
lineEdit_cspz_wirename_24->setText(wireless_name[53]);
|
|
|
|
|
lineEdit_cspz_wirename_25->setText(wireless_name[54]);
|
|
|
|
|
lineEdit_cspz_wirename_26->setText(wireless_name[55]);
|
|
|
|
|
lineEdit_cspz_wirename_27->setText(wireless_name[56]);
|
|
|
|
|
lineEdit_cspz_wirename_28->setText(wireless_name[57]);
|
|
|
|
|
lineEdit_cspz_wirename_29->setText(wireless_name[58]);
|
|
|
|
|
lineEdit_cspz_wirename_30->setText(wireless_name[59]);
|
|
|
|
|
|
|
|
|
|
for (int i = 0;i<60;i++) {
|
|
|
|
|
if(wireless_name[i] == "")
|
|
|
|
|
{
|
|
|
|
|
wireless_name[i] = "节点" + QString::number(i+1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
cspz_wxcw_name_down_page_flag=false;
|
|
|
|
|
cspz_wxcw_name_top_page_flag=true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_wirename_3_Clicked()
|
|
|
|
|
{
|
|
|
|
|
if(cspz_wxcw_name_top_page_flag)
|
|
|
|
|
{
|
|
|
|
|
button_cspz_wirename_4->close();
|
|
|
|
|
button_cspz_wirename_1->show();
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_name.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<name1<<endl<<name2<<endl<<name3<<endl<<name4<<endl<<name5<<endl<<name6<<endl<<name7<<endl<<name8<<endl<<name9<<endl<<name10<<endl<<name11<<endl<<name12<<endl<<name13<<endl<<name14<<endl<<name15<<endl<<name16<<endl<<name17<<endl<<name18<<endl<<name19<<endl<<name20<<endl<<name21<<endl<<name22<<endl<<name23<<endl<<name24<<endl<<name25<<endl<<name26<<endl<<name27<<endl<<name28<<endl<<name29<<endl<<name30<<endl<<lineEdit_cspz_wirename_1->text()<<endl<<lineEdit_cspz_wirename_2->text()<<endl<<lineEdit_cspz_wirename_3->text()<<endl<<lineEdit_cspz_wirename_4->text()<<endl<<lineEdit_cspz_wirename_5->text()<<endl<<lineEdit_cspz_wirename_6->text()<<endl<<lineEdit_cspz_wirename_7->text()<<endl<<lineEdit_cspz_wirename_8->text()<<endl<<lineEdit_cspz_wirename_9->text()<<endl<<lineEdit_cspz_wirename_10->text()<<endl<<lineEdit_cspz_wirename_11->text()<<endl<<lineEdit_cspz_wirename_12->text()<<endl<<lineEdit_cspz_wirename_13->text()<<endl<<lineEdit_cspz_wirename_14->text()<<endl<<lineEdit_cspz_wirename_15->text()<<endl<<lineEdit_cspz_wirename_16->text()<<endl<<lineEdit_cspz_wirename_17->text()<<endl<<lineEdit_cspz_wirename_18->text()<<endl<<lineEdit_cspz_wirename_19->text()<<endl<<lineEdit_cspz_wirename_20->text()<<endl<<lineEdit_cspz_wirename_21->text()<<endl<<lineEdit_cspz_wirename_22->text()<<endl<<lineEdit_cspz_wirename_23->text()<<endl<<lineEdit_cspz_wirename_24->text()<<endl<<lineEdit_cspz_wirename_25->text()<<endl<<lineEdit_cspz_wirename_26->text()<<endl<<lineEdit_cspz_wirename_27->text()<<endl<<lineEdit_cspz_wirename_28->text()<<endl<<lineEdit_cspz_wirename_29->text()<<endl<<lineEdit_cspz_wirename_30->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
|
|
|
|
|
label_cspz_wirename_1->setText("节点1:");
|
|
|
|
|
label_cspz_wirename_2->setText("节点2:");
|
|
|
|
|
label_cspz_wirename_3->setText("节点3:");
|
|
|
|
|
label_cspz_wirename_4->setText("节点4:");
|
|
|
|
|
label_cspz_wirename_5->setText("节点5:");
|
|
|
|
|
label_cspz_wirename_6->setText("节点6:");
|
|
|
|
|
label_cspz_wirename_7->setText("节点7:");
|
|
|
|
|
label_cspz_wirename_8->setText("节点8:");
|
|
|
|
|
label_cspz_wirename_9->setText("节点9:");
|
|
|
|
|
label_cspz_wirename_10->setText("节点10:");
|
|
|
|
|
label_cspz_wirename_11->setText("节点11:");
|
|
|
|
|
label_cspz_wirename_12->setText("节点12:");
|
|
|
|
|
label_cspz_wirename_13->setText("节点13:");
|
|
|
|
|
label_cspz_wirename_14->setText("节点14:");
|
|
|
|
|
label_cspz_wirename_15->setText("节点15:");
|
|
|
|
|
label_cspz_wirename_16->setText("节点16:");
|
|
|
|
|
label_cspz_wirename_17->setText("节点17:");
|
|
|
|
|
label_cspz_wirename_18->setText("节点18:");
|
|
|
|
|
label_cspz_wirename_19->setText("节点19:");
|
|
|
|
|
label_cspz_wirename_20->setText("节点20:");
|
|
|
|
|
label_cspz_wirename_21->setText("节点21:");
|
|
|
|
|
label_cspz_wirename_22->setText("节点22:");
|
|
|
|
|
label_cspz_wirename_23->setText("节点23:");
|
|
|
|
|
label_cspz_wirename_24->setText("节点24:");
|
|
|
|
|
label_cspz_wirename_25->setText("节点25:");
|
|
|
|
|
label_cspz_wirename_26->setText("节点26:");
|
|
|
|
|
label_cspz_wirename_27->setText("节点27:");
|
|
|
|
|
label_cspz_wirename_28->setText("节点28:");
|
|
|
|
|
label_cspz_wirename_29->setText("节点29:");
|
|
|
|
|
label_cspz_wirename_30->setText("节点30:");
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_wirename_1->setText(name1);
|
|
|
|
|
lineEdit_cspz_wirename_2->setText(name2);
|
|
|
|
|
lineEdit_cspz_wirename_3->setText(name3);
|
|
|
|
|
lineEdit_cspz_wirename_4->setText(name4);
|
|
|
|
|
lineEdit_cspz_wirename_5->setText(name5);
|
|
|
|
|
lineEdit_cspz_wirename_6->setText(name6);
|
|
|
|
|
lineEdit_cspz_wirename_7->setText(name7);
|
|
|
|
|
lineEdit_cspz_wirename_8->setText(name8);
|
|
|
|
|
lineEdit_cspz_wirename_9->setText(name9);
|
|
|
|
|
lineEdit_cspz_wirename_10->setText(name10);
|
|
|
|
|
lineEdit_cspz_wirename_11->setText(name11);
|
|
|
|
|
lineEdit_cspz_wirename_12->setText(name12);
|
|
|
|
|
lineEdit_cspz_wirename_13->setText(name13);
|
|
|
|
|
lineEdit_cspz_wirename_14->setText(name14);
|
|
|
|
|
lineEdit_cspz_wirename_15->setText(name15);
|
|
|
|
|
lineEdit_cspz_wirename_16->setText(name16);
|
|
|
|
|
lineEdit_cspz_wirename_17->setText(name17);
|
|
|
|
|
lineEdit_cspz_wirename_18->setText(name18);
|
|
|
|
|
lineEdit_cspz_wirename_19->setText(name19);
|
|
|
|
|
lineEdit_cspz_wirename_20->setText(name20);
|
|
|
|
|
lineEdit_cspz_wirename_21->setText(name21);
|
|
|
|
|
lineEdit_cspz_wirename_22->setText(name22);
|
|
|
|
|
lineEdit_cspz_wirename_23->setText(name23);
|
|
|
|
|
lineEdit_cspz_wirename_24->setText(name24);
|
|
|
|
|
lineEdit_cspz_wirename_25->setText(name25);
|
|
|
|
|
lineEdit_cspz_wirename_26->setText(name26);
|
|
|
|
|
lineEdit_cspz_wirename_27->setText(name27);
|
|
|
|
|
lineEdit_cspz_wirename_28->setText(name28);
|
|
|
|
|
lineEdit_cspz_wirename_29->setText(name29);
|
|
|
|
|
lineEdit_cspz_wirename_30->setText(name30);
|
|
|
|
|
}
|
|
|
|
|
cspz_wxcw_name_down_page_flag=true;
|
|
|
|
|
cspz_wxcw_name_top_page_flag=false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::button_cspz_wirename_4_Clicked()
|
|
|
|
|
{
|
|
|
|
|
if(keyBoard_ABC_flag==true)
|
|
|
|
|
{
|
|
|
|
|
keyBoard_ABC1->close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QFile file_write("/home/data/wireless_name.txt");//文件路径
|
|
|
|
|
if(file_write.open(QFile::WriteOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream setWIFI_data(&file_write);
|
|
|
|
|
setWIFI_data<<name1<<endl<<name2<<endl<<name3<<endl<<name4<<endl<<name5<<endl<<name6<<endl<<name7<<endl<<name8<<endl<<name9<<endl<<name10<<endl<<name11<<endl<<name12<<endl<<name13<<endl<<name14<<endl<<name15<<endl<<name16<<endl<<name17<<endl<<name18<<endl<<name19<<endl<<name20<<endl<<name21<<endl<<name22<<endl<<name23<<endl<<name24<<endl<<name25<<endl<<name26<<endl<<name27<<endl<<name28<<endl<<name29<<endl<<name30<<endl<<lineEdit_cspz_wirename_1->text()<<endl<<lineEdit_cspz_wirename_2->text()<<endl<<lineEdit_cspz_wirename_3->text()<<endl<<lineEdit_cspz_wirename_4->text()<<endl<<lineEdit_cspz_wirename_5->text()<<endl<<lineEdit_cspz_wirename_6->text()<<endl<<lineEdit_cspz_wirename_7->text()<<endl<<lineEdit_cspz_wirename_8->text()<<endl<<lineEdit_cspz_wirename_9->text()<<endl<<lineEdit_cspz_wirename_10->text()<<endl<<lineEdit_cspz_wirename_11->text()<<endl<<lineEdit_cspz_wirename_12->text()<<endl<<lineEdit_cspz_wirename_13->text()<<endl<<lineEdit_cspz_wirename_14->text()<<endl<<lineEdit_cspz_wirename_15->text()<<endl<<lineEdit_cspz_wirename_16->text()<<endl<<lineEdit_cspz_wirename_17->text()<<endl<<lineEdit_cspz_wirename_18->text()<<endl<<lineEdit_cspz_wirename_19->text()<<endl<<lineEdit_cspz_wirename_20->text()<<endl<<lineEdit_cspz_wirename_21->text()<<endl<<lineEdit_cspz_wirename_22->text()<<endl<<lineEdit_cspz_wirename_23->text()<<endl<<lineEdit_cspz_wirename_24->text()<<endl<<lineEdit_cspz_wirename_25->text()<<endl<<lineEdit_cspz_wirename_26->text()<<endl<<lineEdit_cspz_wirename_27->text()<<endl<<lineEdit_cspz_wirename_28->text()<<endl<<lineEdit_cspz_wirename_29->text()<<endl<<lineEdit_cspz_wirename_30->text()<<endl;
|
|
|
|
|
}
|
|
|
|
|
file_write.close();
|
|
|
|
|
label_cspz_wirename_save->setText("保存成功!");
|
|
|
|
|
QTimer::singleShot(500, label_cspz_wirename_save, SLOT(clear()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cspz_back_color=0;
|
|
|
|
|
void canshupeizhi::cspz_set_back_color()
|
|
|
|
|
{
|
|
|
|
|
QString data;
|
|
|
|
|
/*文件读取*/
|
|
|
|
|
QFile file_read("/home/data/back_color");
|
|
|
|
|
if(file_read.open(QFile::ReadOnly))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
data=in.readAll();
|
|
|
|
|
}
|
|
|
|
|
cspz_back_color=data.toInt();
|
|
|
|
|
file_read.close();
|
|
|
|
|
|
|
|
|
|
switch(cspz_back_color)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
{
|
|
|
|
|
ui->label->setStyleSheet("background: rgb(244, 244, 244)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
{
|
|
|
|
|
ui->label->setStyleSheet("background: rgb(148, 238, 213)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
{
|
|
|
|
|
ui->label->setStyleSheet("background: rgb(255, 255, 96)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
{
|
|
|
|
|
ui->label->setStyleSheet("background: rgb(209, 99, 191)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
{
|
|
|
|
|
ui->label->setStyleSheet("background: rgb(87, 255, 78)");
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_0_1_clicked()//页面1label点击槽函数
|
|
|
|
|
{
|
|
|
|
|
cspz_page(1);//显示第1页
|
|
|
|
|
label_cspz_1_show(1);//页面1开启
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_0_3_clicked()//页面3label点击槽函数
|
|
|
|
|
{
|
|
|
|
|
cspz_page(3);//显示第1页
|
|
|
|
|
label_cspz_3_show(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_0_5_clicked()//页面5label点击槽函数
|
|
|
|
|
{
|
|
|
|
|
//更新按钮状态 23.8.31
|
|
|
|
|
QFile file_read3("/home/data/select_fan.txt");
|
|
|
|
|
if(file_read3.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read3);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
if(line1=="1")
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_4->setText("关闭风机定时运行");
|
|
|
|
|
label_cspz_5_19->setText("风机定时运行已开启!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_4->setText("开启风机定时运行");
|
|
|
|
|
label_cspz_5_19->setText("风机定时运行已关闭!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_read3.close();
|
|
|
|
|
|
|
|
|
|
QFile file_read4("/home/data/select_tiexin.txt");
|
|
|
|
|
if(file_read4.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read4);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
if(line1=="1")
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_5->setText("关闭铁芯温度检测");
|
|
|
|
|
label_cspz_5_20->setText("铁芯温度检测已开启!");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
button_cspz_5_5->setText("开启铁芯温度检测");
|
|
|
|
|
label_cspz_5_20->setText("铁芯温度检测已关闭!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_read4.close();
|
|
|
|
|
|
|
|
|
|
cspz_page(5);//显示第1页
|
|
|
|
|
label_cspz_5_show(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_0_6_clicked()//页面6label点击槽函数
|
|
|
|
|
{
|
|
|
|
|
cspz_page(6);//显示第1页
|
|
|
|
|
label_cspz_6_show(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void canshupeizhi::label_cspz_0_wirenameset_clicked()
|
|
|
|
|
{
|
|
|
|
|
cspz_page(2);//显示第1页
|
|
|
|
|
label_cspz_0_wirenameset_show(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*热像仪设备选择*/
|
|
|
|
|
void canshupeizhi::comboBox_cspz_3_1_IndexChanged(int index)
|
|
|
|
|
{
|
|
|
|
|
QString rxy_select=combox_cspz_3_1->itemText(index);
|
|
|
|
|
if(rxy_select=="1")
|
|
|
|
|
{
|
|
|
|
|
button_cspz_3_1->show();
|
|
|
|
|
button_cspz_3_2->hide();
|
|
|
|
|
|
|
|
|
|
/*读取配置文件*/
|
|
|
|
|
QFile file_read("/home/data/camera.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
line1.replace("http://","");//删除前面几个字符
|
|
|
|
|
|
|
|
|
|
int local = line1.indexOf(':',1,Qt::CaseInsensitive);//意思是从第1位往后找,找到的第一个‘:’所在的位置
|
|
|
|
|
QString IP=line1.left(local);//从左向右截取n个字符串
|
|
|
|
|
QString PORT=line1.right(line1.length()-local-1);
|
|
|
|
|
|
|
|
|
|
QString yue=in.readLine();
|
|
|
|
|
QString zhou=in.readLine();
|
|
|
|
|
QString tian=in.readLine();
|
|
|
|
|
|
|
|
|
|
QString start=in.readLine();
|
|
|
|
|
QString start_shi=start.left(start.length()-2);
|
|
|
|
|
QString start_fen=start.right(2);
|
|
|
|
|
|
|
|
|
|
QString stop=in.readLine();
|
|
|
|
|
QString stop_shi=stop.left(stop.length()-2);
|
|
|
|
|
QString stop_fen=stop.right(2);
|
|
|
|
|
|
|
|
|
|
QString fan_temp=in.readLine();
|
|
|
|
|
QString fan_rate=in.readLine();
|
|
|
|
|
QString fan_range=in.readLine();
|
|
|
|
|
QString warning=in.readLine();
|
|
|
|
|
QString alarm=in.readLine();
|
|
|
|
|
QString time=in.readLine();
|
|
|
|
|
|
|
|
|
|
QString rongliang=in.readLine();
|
|
|
|
|
bool ok;
|
|
|
|
|
int byq_rongliang = rongliang.toInt(&ok,10)/0.3;//字符串转10进制
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_3_7->setText(IP);
|
|
|
|
|
lineEdit_cspz_3_8->setText(PORT);
|
|
|
|
|
lineEdit_cspz_3_2->setText(yue);
|
|
|
|
|
lineEdit_cspz_3_3->setText(zhou);
|
|
|
|
|
lineEdit_cspz_3_4->setText(tian);
|
|
|
|
|
lineEdit_cspz_3_5->setText(start_shi);
|
|
|
|
|
lineEdit_cspz_3_15->setText(start_fen);
|
|
|
|
|
lineEdit_cspz_3_6->setText(stop_shi);
|
|
|
|
|
lineEdit_cspz_3_16->setText(stop_fen);
|
|
|
|
|
lineEdit_cspz_3_9->setText(fan_temp);
|
|
|
|
|
lineEdit_cspz_3_10->setText(fan_rate);
|
|
|
|
|
lineEdit_cspz_3_11->setText(fan_range);
|
|
|
|
|
lineEdit_cspz_3_12->setText(warning);
|
|
|
|
|
lineEdit_cspz_3_13->setText(alarm);
|
|
|
|
|
lineEdit_cspz_3_14->setText(time);
|
|
|
|
|
lineEdit_cspz_3_1->setText(QString::number(byq_rongliang));
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
button_cspz_3_1->hide();
|
|
|
|
|
button_cspz_3_2->show();
|
|
|
|
|
|
|
|
|
|
/*读取配置文件*/
|
|
|
|
|
QFile file_read("/home/data/camera1.txt");
|
|
|
|
|
if(file_read.open(QIODevice::ReadOnly | QIODevice::Text))
|
|
|
|
|
{
|
|
|
|
|
QTextStream in(&file_read);//创建一个对象让它去读文件
|
|
|
|
|
QString line1=in.readLine();
|
|
|
|
|
line1.replace("http://","");//删除前面几个字符
|
|
|
|
|
|
|
|
|
|
int local = line1.indexOf(':',1,Qt::CaseInsensitive);//意思是从第1位往后找,找到的第一个‘:’所在的位置
|
|
|
|
|
QString IP=line1.left(local);//从左向右截取n个字符串
|
|
|
|
|
QString PORT=line1.right(line1.length()-local-1);
|
|
|
|
|
|
|
|
|
|
QString yue=in.readLine();
|
|
|
|
|
QString zhou=in.readLine();
|
|
|
|
|
QString tian=in.readLine();
|
|
|
|
|
|
|
|
|
|
QString start=in.readLine();
|
|
|
|
|
QString start_shi=start.left(start.length()-2);
|
|
|
|
|
QString start_fen=start.right(2);
|
|
|
|
|
|
|
|
|
|
QString stop=in.readLine();
|
|
|
|
|
QString stop_shi=stop.left(stop.length()-2);
|
|
|
|
|
QString stop_fen=stop.right(2);
|
|
|
|
|
|
|
|
|
|
QString fan_temp=in.readLine();
|
|
|
|
|
QString fan_rate=in.readLine();
|
|
|
|
|
QString fan_range=in.readLine();
|
|
|
|
|
QString warning=in.readLine();
|
|
|
|
|
QString alarm=in.readLine();
|
|
|
|
|
QString time=in.readLine();
|
|
|
|
|
|
|
|
|
|
QString rongliang=in.readLine();
|
|
|
|
|
bool ok;
|
|
|
|
|
int byq_rongliang = rongliang.toInt(&ok,10)/0.3;//字符串转10进制
|
|
|
|
|
|
|
|
|
|
lineEdit_cspz_3_7->setText(IP);
|
|
|
|
|
lineEdit_cspz_3_8->setText(PORT);
|
|
|
|
|
lineEdit_cspz_3_2->setText(yue);
|
|
|
|
|
lineEdit_cspz_3_3->setText(zhou);
|
|
|
|
|
lineEdit_cspz_3_4->setText(tian);
|
|
|
|
|
lineEdit_cspz_3_5->setText(start_shi);
|
|
|
|
|
lineEdit_cspz_3_15->setText(start_fen);
|
|
|
|
|
lineEdit_cspz_3_6->setText(stop_shi);
|
|
|
|
|
lineEdit_cspz_3_16->setText(stop_fen);
|
|
|
|
|
lineEdit_cspz_3_9->setText(fan_temp);
|
|
|
|
|
lineEdit_cspz_3_10->setText(fan_rate);
|
|
|
|
|
lineEdit_cspz_3_11->setText(fan_range);
|
|
|
|
|
lineEdit_cspz_3_12->setText(warning);
|
|
|
|
|
lineEdit_cspz_3_13->setText(alarm);
|
|
|
|
|
lineEdit_cspz_3_14->setText(time);
|
|
|
|
|
lineEdit_cspz_3_1->setText(QString::number(byq_rongliang));
|
|
|
|
|
}
|
|
|
|
|
file_read.close();
|
|
|
|
|
}
|
|
|
|
|
}
|