-
Notifications
You must be signed in to change notification settings - Fork 1
/
CAdvancedTab.h
131 lines (108 loc) · 3.83 KB
/
CAdvancedTab.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#pragma once
#include "AboutDialog.h"
// CAdvancedTab dialog
class CAdvancedTab : public CDialogEx
{
DECLARE_DYNAMIC(CAdvancedTab)
public:
CAdvancedTab(CWnd* pParent = nullptr); // standard constructor
virtual ~CAdvancedTab();
// Dialog Data
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_ADVANCED_TAB };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
AboutDialog mAboutDialog;
#define UWM_UPDATE_OPTIONS (WM_APP+2)
CString str2;
CWnd* m_pMainWnd;
HWND hWnd;
CButton mCheckFlipCamera;
CButton mCheckEWMA;
CButton mCheckEqualize;
CButton mCheckAutostart;
CSliderCtrl mSliderEWMA;
// CSliderCtrl mSliderMarks;
CSliderCtrl mSliderAcceleration;
CSliderCtrl mSliderFace;
CSliderCtrl mSliderFaceMinNum;
// CSliderCtrl mSliderFaceMaxNum;
CSliderCtrl mSliderCustom;
CSliderCtrl mSliderOnInput;
CComboBox mComboLanguage;
CStatic mStaticMinNum;
// CStatic mStaticMaxNum;
CStatic mStaticEWMA;
// CStatic mStaticMarks;
CStatic mStaticAcceleration;
CStatic mStaticFace;
CStatic mStaticCustom;
CStatic mStaticOnInput;
CButton mCheckSound;
CStatic mStaticLanguages;
CButton mCheckThreading;
CString mEditKeyboard;
bool flipCameraFlag = false;
bool needEqualize = false;
bool needSound = true;
float fSliderEWMA;
// float fSliderMarks;
float fSliderAcceleration;
float fSliderOnInput = 5;
int iSliderFace = 5;
int iSliderMinNum = 12;
int iSliderFaceFrames = 3;
// int iSliderMaxNum = 30;
int iSliderCustom = 10;
bool needAutostart = false;
int langNum = 0;
bool enableMultithreading = false;
CString statictext17 = L"Flip mouse movement";
CString statictext18 = L"Mouse click sound";
CString statictext19 = L"Equalize brightness";
CString statictext20 = L"Autostart with Windows";
CString statictext21 = L"Language:";
CString statictext22 = L"Pause after touching a physical mouse: ";
CString statictext23 = L"Smoothing threshold: ";
// CString statictext24 = L"% of marks moving in one direction: ";
CString statictext25 = L"Acceleration: ";
CString statictext26 = L"Face recognition";
CString statictext27 = L"Threshold (AI): ";
CString statictext28 = L"Cells/width: ";
CString statictext29 = L"Min marks: ";
CString statictext30 = L"Face/frame: ";
CString statictext31 = L"Path to onscreen application";
CString statictext32 = L"Reset default settings";
afx_msg void OnBnClickedCheckFlipcamera();
afx_msg void OnNMCustomdrawSliderEwma(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnNMCustomdrawSliderMarks(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnNMCustomdrawSliderAcceleration(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnNMCustomdrawSliderFaceSensitivity(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBnClickedButtonReset();
afx_msg void OnBnClickedButtonAbout();
afx_msg void OnEnChangeEditKeyboard();
afx_msg void OnBnClickedCheckEqualize();
afx_msg void OnNMCustomdrawSliderFaceMinnum(NMHDR* pNMHDR, LRESULT* pResult);
//afx_msg void OnNMCustomdrawSliderFaceMaxnum(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnNMCustomdrawSliderCustom(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBnClickedCheckAutostart();
afx_msg void OnNMCustomdrawSliderOninput(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBnClickedCheckSound();
virtual void OnOK();
virtual void OnCancel();
virtual BOOL OnInitDialog();
BOOL IsMyProgramRegisteredForStartup(PCWSTR pszAppName);
BOOL RegisterMyProgramForStartup(PCWSTR pszAppName, PCWSTR pathToExe, PCWSTR args);
void RegisterProgram();
LONG DeleteMyProgramForStartup(PCWSTR pszAppName, PCWSTR pathToExe, PCWSTR args);
void DeleteProgram();
afx_msg void OnCbnSelchangeComboLanguage();
afx_msg void OnBnClickedCheckThreading();
CStatic mStaticFaceFrames;
CSliderCtrl mSliderFaceFrames;
afx_msg void OnNMCustomdrawSliderFaceFrames(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBnClickedButtonPath();
};