You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef ARITHCONTROLFORM_H
#define ARITHCONTROLFORM_H
#include <QDockWidget>
#include "QArithModule.h"
#include <QButtonGroup>
namespace Ui {
class ArithControlForm; //前置声明可以不用包含ui生成的头文件学到了
}
class ArithControlForm : public QDockWidget
{
Q_OBJECT
public:
explicit ArithControlForm(QWidget *parent = nullptr, QArithModule* pArithModule = nullptr);
~ArithControlForm();
public:
Ui::ArithControlForm *ui;
QArithModule* m_pArithModule;
public slots:
// 初始化ui状态从配置文件初始化
void InitUIStatus();
// 设置界面
void updateUI();
// 算法参数配置1.无配置文件时从算法读取默认参数并保存配置以便下次使用2.参数设置即保存为配置文件配置不丢失3.具有上电记忆功能,自动下发断电前参数。
// 初始化算法参数
void InithArithParam();
// 将算法配置输出为配置文件
void exportArithParaFile(QString path);
public:
void* getTextBroswerWind();
// 算法控制
public slots:
// 读写配置文件
void readJson();
void writeJson();
void testCmd();
void testAlarmFilter();
void ChangeLockRect();
void CMD_testLockByID();
private:
};
#endif // ARITHCONTROLFORM_H