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.
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