huago-corrcet_tools/HuaGoCorrect/A3.h

89 lines
2.1 KiB
C
Raw 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 <20>Ի<EFBFBD><D4BB><EFBFBD>
class CA3 : public CDialog
{
DECLARE_DYNAMIC(CA3)
public:
CA3(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
virtual ~CA3();
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
enum { IDD = IDD_A3_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
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();
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}},
{2,{90,0x2b6,0x882}},
2021-09-22 02:47:05 +00:00
{3,{110,0x24e,0x706}},
{4,{100,0x27c,0x775}},
{5,{110,0x27c,0x775}},
{6,{120,0x27c,0x775}},
{7,{130,0x27c,0x775}}
2021-08-17 01:07:55 +00:00
};
std::map<int, CString> speedmodeMapString = {
{0,L"G100_70PPM"},
{1,L"G100_80PPM"},
{2,L"G100_90PPM"},
2021-09-22 02:47:05 +00:00
{3,L"G100_110PPM"},
{4,L"G200_100PPM"},
{5,L"G200_110PPM"},
{6,L"G200_120PPM"},
{7,L"G200_130PPM"}
2021-08-17 01:07:55 +00:00
};
std::map<int, CString> G300G400speedmodeMapString = {
{1,L"G300/G400_40PPM"},
{2,L"G300/G400_50PPM"},
{3,L"G300/G400_60PPM"},
{4,L"G300/G400_70PPM"},
{5,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
};