-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFaceControllerMFC.rc
462 lines (375 loc) · 32.8 KB
/
FaceControllerMFC.rc
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#include "afxres.h"
#include "verrsrc.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// Russian (Russia) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#ifndef APSTUDIO_INVOKED\r\n"
"#include ""targetver.h""\r\n"
"#endif\r\n"
"#include ""afxres.h""\r\n"
"#include ""verrsrc.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"LANGUAGE 9, 1\r\n"
"#include ""res\\FaceControllerMFC.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#if !defined(_AFXDLL)\r\n"
"#include ""afxribbon.rc"" // MFC ribbon and control bar resources\r\n"
"#endif\r\n"
"#endif\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON "C:\\Users\\Eugene\\source\\repos\\FaceControllerMFC\\res\\icon.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDB_BITMAP_CLICKLEFT BITMAP "res\\left.bmp"
IDB_BITMAP_CLICK1X BITMAP "res\\1x.bmp"
IDB_BITMAP_CLICK2X BITMAP "res\\2x.bmp"
IDB_BITMAP_CLICK1XP BITMAP "res\\1xp.bmp"
IDB_BITMAP_CLICK2XP BITMAP "res\\2xp.bmp"
IDB_BITMAP_CLICKLEFTP BITMAP "res\\leftp.bmp"
IDB_BITMAP_OFF BITMAP "res\\off.bmp"
IDB_BITMAP_SETTINGS BITMAP "res\\settings.bmp"
IDB_BITMAP_PAUSE BITMAP "res\\pause.bmp"
IDB_BITMAP_PLAY BITMAP "res\\play.bmp"
IDB_BITMAP_AI BITMAP "res\\AI.bmp"
IDB_BITMAP_AIP BITMAP "res\\AIp.bmp"
IDB_BITMAP_DWELL BITMAP "res\\dwell.bmp"
IDB_BITMAP_DWELLP BITMAP "res\\dwellp.bmp"
IDB_BITMAP_GEO BITMAP "res\\GEO.bmp"
IDB_BITMAP_GEOP BITMAP "res\\GEOp.bmp"
IDB_BITMAP_QUICK BITMAP "res\\quickclick.bmp"
IDB_BITMAP_TIMER BITMAP "res\\timer.bmp"
IDB_BITMAP_LOGO BITMAP "res\\logo.bmp"
IDB_BITMAP_LOGOBIG BITMAP "res\\logobig.bmp"
IDB_BITMAP_ABC BITMAP "res\\ABC.bmp"
IDB_BITMAP_DRAG BITMAP "res\\drag.bmp"
IDB_BITMAP_DRAGP BITMAP "res\\dragp.bmp"
IDB_BITMAP_EYEOPEN BITMAP "res\\eye-open.bmp"
IDB_BITMAP_EYEHIDE BITMAP "res\\eye-hide.bmp"
IDB_BITMAP_CHROME BITMAP "res\\chrome.bmp"
IDB_BITMAP_STOP BITMAP "res\\stop.bmp"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_OPTIONS DIALOGEX 0, 0, 191, 285
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Options"
FONT 10, "Calibri", 400, 0, 0xCC
BEGIN
DEFPUSHBUTTON "OK",IDOK,0,271,50,14
PUSHBUTTON "Cancel",IDCANCEL,136,271,53,14
PUSHBUTTON "Apply",IDC_APPLY,68,271,50,14
CONTROL "",IDC_TAB,"SysTabControl32",TCS_TOOLTIPS,0,0,191,271
END
IDD_MOUSE_DIALOG DIALOGEX 0, 0, 30, 25
STYLE DS_SYSMODAL | DS_SETFONT | WS_POPUP
EXSTYLE WS_EX_TRANSPARENT
FONT 16, "Calibri", 400, 0, 0x0
BEGIN
CONTROL "+",IDC_STATIC_INFOTEXT,"Static",SS_CENTER | SS_CENTERIMAGE | WS_GROUP | 0x20,5,4,10,8
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_OPTIONS, DIALOG
BEGIN
END
IDD_MOUSE_DIALOG, DIALOG
BEGIN
RIGHTMARGIN, 23
BOTTOMMARGIN, 19
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// AFX_DIALOG_LAYOUT
//
IDD_OPTIONS AFX_DIALOG_LAYOUT
BEGIN
0
END
IDD_MOUSE_DIALOG AFX_DIALOG_LAYOUT
BEGIN
0
END
#endif // Russian (Russia) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOGEX 0, 0, 176, 227
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Face Controlled Mouse"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
LTEXT "Face Controlled Mouse, Version 1.0.0",IDC_STATIC,18,7,135,8,SS_NOPREFIX
LTEXT "Supported platforms: Windows only.",IDC_STATIC,7,128,159,8
DEFPUSHBUTTON "OK",IDOK,61,205,50,14,WS_GROUP
LTEXT "Face Controlled Mouse (C) is a free mouse replacement software. You will be able to control your computer without using your hands. Face Controlled Mouse uses a standard web camera to track your face motion and move the mouse pointer accordingly. ",IDC_STATIC,7,21,167,49
LTEXT "License: Face Controlled Mouse released under the GNU/GPL v3 license.",IDC_STATIC,7,140,167,20
LTEXT "Authors: Eugene Filimonov (development), Julia Reutskaya (adaptation for children with special needs).",IDC_STATIC,7,160,167,26
LTEXT "Face Controlled Mouse (C) 2021, PreAbility",IDC_STATIC,7,188,167,10
LTEXT "It also provides several methods for clicking (dwell or smile). It works on standard PCs equipped with a web camera. No additional hardware is required.",IDC_STATIC,7,73,167,26
LTEXT "Pointer speed, motion acceleration and smoothness, dwelling time, and many other variables can be adjusted to fit the user's needs.",IDC_STATIC,7,101,167,26
END
IDD_FACECONTROLLERMFC_DIALOG DIALOGEX 0, 0, 423, 222
STYLE DS_SYSMODAL | DS_SETFONT | DS_3DLOOK | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
EXSTYLE WS_EX_APPWINDOW
CAPTION "Face Controlled Mouse"
FONT 10, "Calibri Light", 300, 0, 0xCC
BEGIN
DEFPUSHBUTTON "E",IDOK,393,0,30,27
PUSHBUTTON "T",IDC_START,1,0,30,27
PUSHBUTTON "O",IDC_OPTIONS,261,0,30,27
PUSHBUTTON "1x",IDC_BUTTON_CLICK1X,116,0,30,27
PUSHBUTTON "2x",IDC_BUTTON_CLICK2X,145,0,30,27
PUSHBUTTON "L",IDC_BUTTON_CLICKLEFT,174,0,30,27
PUSHBUTTON "G",IDC_BUTTON_GEO,29,0,30,27
PUSHBUTTON "A",IDC_BUTTON_AI,58,0,30,27
PUSHBUTTON "D",IDC_BUTTON_DWELL,87,0,30,27
PUSHBUTTON "C",IDC_BUTTON_TIMING,232,0,30,27
PUSHBUTTON "OSK",IDC_BUTTON_OCR,290,0,30,27
CONTROL VK_VOLUME_MUTE,IDC_PICTURE,"Static",SS_BITMAP | SS_REALSIZEIMAGE,0,30,423,192
PUSHBUTTON "Dr",IDC_BUTTON_DRAG,203,0,30,27
PUSHBUTTON "H",IDC_BUTTON_HIDE,319,0,30,27
CONTROL "Start",IDC_CHECK_AUTOSTART,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,34,83,10
PUSHBUTTON "Cr",IDC_BUTTON_CHROME,356,0,30,27,0,WS_EX_DLGMODALFRAME
END
IDD_MAIN_TAB DIALOGEX 0, 0, 195, 263
STYLE DS_SETFONT | WS_CHILD
FONT 10, "Calibri", 400, 0, 0xCC
BEGIN
CONTROL "",IDC_SLIDER_SPEED_HORIZONTAL,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,24,173,15
LTEXT "Horizontal mouse speed (X)",IDC_STATIC_SPEED_HORIZONTAL,9,16,161,8
CONTROL "",IDC_SLIDER_SPEED_VERTICAL,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,45,173,15
LTEXT "Vertical mouse speed (Y)",IDC_STATIC_SPEED_VERTICAL,9,37,158,8
CONTROL "",IDC_SLIDER_SMILE_ANGLE,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,66,147,15
LTEXT "Smile angle (geometric)",IDC_STATIC_SMILE_ANGLE,9,58,143,8
CONTROL "",IDC_SLIDER_SMILE_SENSITIVITY,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,87,147,15
LTEXT "Recognition threshold (AI)",IDC_STATIC_SMILE_SENSITIVITY,9,79,143,8
CONTROL IDB_BITMAP_GEO,IDC_STATIC,"Static",SS_BITMAP,161,60,22,19
CONTROL IDB_BITMAP_AI,IDC_STATIC,"Static",SS_BITMAP,161,82,22,19
CONTROL "",IDC_SLIDER_DWELL_DISPL,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,196,146,15
CONTROL "",IDC_SLIDER_DWELL_TIME,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,239,146,15
LTEXT "Dwell displacement",IDC_STATIC_DWELL_DISPL,9,187,145,8
LTEXT "Dwell duration, (sec)",IDC_STATIC_DWELL_TIME,9,230,142,8
CONTROL IDB_BITMAP_DWELL,IDC_STATIC,"Static",SS_BITMAP,161,212,23,19
CONTROL VK_RMENU,IDC_STATIC,"Static",SS_BITMAP,161,103,22,19
CONTROL "",IDC_SLIDER_QUICK_TIME,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,108,149,15
LTEXT "Waiting:",IDC_STATIC_1X,10,134,43,8
LTEXT "1x click:",IDC_STATIC_2X,10,148,43,8
LTEXT "2x click:",IDC_STATIC_CANCEL,10,162,43,8
CONTROL "",IDC_SLIDER_CANCEL,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,55,161,100,15
CONTROL VK_BROWSER_BACK,IDC_STATIC,"Static",SS_BITMAP,161,142,22,19
CONTROL "",IDC_SLIDER_1X,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,55,133,100,15
CONTROL "",IDC_SLIDER_2X,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,55,147,100,15
LTEXT "Quick click time, (sec)",IDC_STATIC_QUICK_TIME,9,100,136,8
LTEXT "Time to dwell, (sec)",IDC_STATIC_TIMETODWELL,9,209,139,8
CONTROL "",IDC_SLIDER_TIMETODWELL,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,9,217,146,15
LTEXT "Long click timing, (sec)",IDC_STATIC_LONGCLICK,16,122,135,8
LTEXT "Mouse speed",IDC_STATIC_MOUSESPEED,16,6,120,8
LTEXT "Dwell parameters",IDC_STATIC_DWELL,16,175,122,8
END
IDD_ADVANCED_TAB DIALOGEX 0, 0, 207, 257
STYLE DS_ABSALIGN | DS_SETFONT | WS_CHILD
FONT 10, "Calibri", 400, 0, 0xCC
BEGIN
CONTROL "Flip mouse movement",IDC_CHECK_FLIPCAMERA,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,2,107,10
CONTROL "Equalize brightness",IDC_CHECK_EQUALIZE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,16,76,10
CONTROL "",IDC_SLIDER_ACCELERATION,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,19,117,162,15
CONTROL "",IDC_SLIDER_EWMA,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,19,95,162,15
LTEXT "Acceleration:",IDC_STATIC_ACCELERATION,10,110,108,8
LTEXT "Threshold (AI)",IDC_STATIC_FACE_SENSITIVITY,2,145,88,8
CONTROL "",IDC_SLIDER_FACE_SENSITIVITY,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,87,144,101,15
PUSHBUTTON "Reset to default settings",IDC_BUTTON_RESET,4,233,94,15
PUSHBUTTON "About",IDC_BUTTON_ABOUT,134,234,50,14
EDITTEXT IDC_EDIT_KEYBOARD,29,213,155,14,ES_AUTOHSCROLL
LTEXT "Path to onscreen application",IDC_STATIC_PATH,10,202,137,8
LTEXT "Face recognition",IDC_STATIC_FACEREC,10,133,141,8
LTEXT "Min marks",IDC_STATIC_MINNUM,2,173,81,8
CONTROL "",IDC_SLIDER_FACE_MINNUM,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,87,172,101,15
LTEXT "Custom",IDC_STATIC_CUSTOM,2,159,88,8
CONTROL "",IDC_SLIDER_CUSTOM,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,87,158,101,15
LTEXT "Smoothing threshold:",IDC_STATIC_EWMA,10,86,170,8
CONTROL "Autostart with Windows",IDC_CHECK_AUTOSTART,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,30,92,10
CONTROL "",IDC_SLIDER_ONINPUT,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,19,73,163,15
LTEXT "Pause after touching a physical mouse:",IDC_STATIC_ONINPUT,10,63,168,8
CONTROL "Mouse click sound",IDC_CHECK_SOUND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,114,2,73,10
COMBOBOX IDC_COMBO_LANGUAGE,114,29,68,30,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
LTEXT "Language:",IDC_STATIC_LANGUAGES,114,20,32,8
CONTROL "Enable OpenCV multithreading",IDC_CHECK_THREADING,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,44,160,10
LTEXT "Face/Frames",IDC_STATIC_FACE_FRAMES,2,187,74,8
CONTROL "",IDC_SLIDER_FACE_FRAMES,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,87,187,101,15
PUSHBUTTON "...",IDC_BUTTON_PATH,0,213,27,14
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 174
TOPMARGIN, 7
BOTTOMMARGIN, 220
END
IDD_FACECONTROLLERMFC_DIALOG, DIALOG
BEGIN
END
IDD_MAIN_TAB, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 188
TOPMARGIN, 7
BOTTOMMARGIN, 254
END
IDD_ADVANCED_TAB, DIALOG
BEGIN
RIGHTMARGIN, 196
BOTTOMMARGIN, 248
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// AFX_DIALOG_LAYOUT
//
IDD_FACECONTROLLERMFC_DIALOG AFX_DIALOG_LAYOUT
BEGIN
0
END
IDD_ABOUTBOX AFX_DIALOG_LAYOUT
BEGIN
0
END
IDD_MAIN_TAB AFX_DIALOG_LAYOUT
BEGIN
0
END
IDD_ADVANCED_TAB AFX_DIALOG_LAYOUT
BEGIN
0
END
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "PreAbility"
VALUE "FileDescription", "FaceControllerMFC"
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "FaceControllerMFC.exe"
VALUE "LegalCopyright", "(c) PreAbility. All rights reserved."
VALUE "OriginalFilename", "FaceControllerMFC.exe"
VALUE "ProductName", "Face Controlled Mouse"
VALUE "ProductVersion", "1.0.0.1"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_ABOUTBOX "&About FaceControllerMFC..."
END
#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
#include "res\FaceControllerMFC.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#if !defined(_AFXDLL)
#include "afxribbon.rc" // MFC ribbon and control bar resources
#endif
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED