huago-corrcet_tools/HuaGoCorrect/A3.h

99 lines
2.3 KiB
C
Raw Permalink Normal View History

2020-08-31 08:08:50 +00:00
#pragma once
2021-08-17 01:07:55 +00:00
#include <map>
2020-08-31 08:08:50 +00:00
// CA3 对话框
2020-08-31 08:08:50 +00:00
class CA3 : public CDialog
{
DECLARE_DYNAMIC(CA3)
public:
CA3(CWnd* pParent = NULL); // 标准构造函数
2020-08-31 08:08:50 +00:00
virtual ~CA3();
// 对话框数据
2020-08-31 08:08:50 +00:00
enum { IDD = IDD_A3_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
2020-08-31 08:08:50 +00:00
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedBtngetsp();
afx_msg void OnBnClickedBtnsetsp();
afx_msg void OnBnClickedBtngetgraysp();
afx_msg void OnBnClickedBtnsetgraysp();
afx_msg void OnBnClickedBtngetuvsp();
afx_msg void OnBnClickedBtnsetuvsp();
afx_msg void OnBnClickedBtngetcolorsp();
afx_msg void OnBnClickedBtnsetcolorsp();
2022-01-26 09:05:59 +00:00
afx_msg void OnBnClickedBtnGetSysInfo();
private:
void OnGetOrSetSp(bool get, int type);
public:
2021-08-17 01:07:55 +00:00
afx_msg void OnGetOrSetSleepTime(bool get, int type);
void UpdateMaxBright(bool get,int id);
void UpdateSleepTime(bool get);
void OnBnClickedBtngetsleeptime();
afx_msg void OnBnClickedBtnsetsleeptime();
2021-08-17 01:07:55 +00:00
afx_msg void OnBnClickedBtnsetclrmaxbrt();
afx_msg void OnBnClickedBtnsetgrymaxbrt();
afx_msg void OnBnClickedBtngetclrmaxbrt();
afx_msg void OnBnClickedBtngetgrymaxbrt();
afx_msg void OnBnClickedBtngetversion();
afx_msg void OnBnClickedBtnsetspeed();
afx_msg void OnBnClickedBtngetspeed();
void updatespeedmode(bool get);
private:
struct speedmodeparam {
int Speedmode;
unsigned int ColorSp;
unsigned int GraySp;
};
int speedemodelen;
2021-08-17 01:07:55 +00:00
std::map<int, speedmodeparam> speedmodeMap = {
2021-08-24 11:40:04 +00:00
{0,{70,0x42d,0xc88}},
{1,{80,0x37f,0xa7f}},
2021-12-17 05:46:57 +00:00
{2,{90,0x2b6,0x822}},
{3,{110,0x24e,0x706}},
{4,{100,0x27c,0x775}},
{5,{110,0x27c,0x775}},
{6,{120,0x27c,0x775}},
{7,{130,0x27c,0x775}},
{8,{1,0,0}},
{9,{2,0,0}},
{10,{3,0,0}},
{11,{4,0,0}},
{12,{1,0,0}},
{13,{2,0,0}},
{14,{3,0,0}},
{15,{4,0,0}},
{16,{5,0,0}}
2021-08-17 01:07:55 +00:00
};
std::map<int, CString> speedmodeMapString = {
{0,L"G139_70PPM"},
{1,L"G139_80PPM"},
{2,L"G139_90PPM"},
2021-12-17 05:46:57 +00:00
{3,L"G139_110PPM"},
{4,L"G239_100PPM"},
{5,L"G239_110PPM"},
{6,L"G239_120PPM"},
{7,L"G239_130PPM"},
{8,L"G300_40PPM"},
{9,L"G300_50PPM"},
{10,L"G300_60PPM"},
{11,L"G300_700PPM"},
{12,L"G400_40PPM"},
{13,L"G400_50PPM"},
{14,L"G400_60PPM"},
{15,L"G400_70PPM"},
{16,L"G400_80PPM"},
2021-08-17 01:07:55 +00:00
};
CComboBox m_cmbSpeedmode;
public:
afx_msg void OnBnClickedBtngetip();
2020-08-31 08:08:50 +00:00
};