summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/typingnotify.h
blob: 03fb9851b7577ab09224d6d7cd4f2e63afdc1d7a (plain)
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
#define UM_SETDLGITEMINT          5674

#define TIMEOUT_MINVALUE     -1
#define TIMEOUT_MAXVALUE     99
#define TIMEOUT_POPUP        1
#define TIMEOUT_CUSTOM       2
#define TIMEOUT_PROTO        3
#define TIMEOUT_PERMANENT    4
#define COLOR_OWN            1
#define COLOR_WINDOWS        2
#define COLOR_POPUP          3

#define Module "TypingNotify"

#define SET_WO               "NotWhenFocused"
#define DEF_WO               0
#define SET_DISABLED         "Disabled"
#define DEF_DISABLED         0
#define SET_TIMEOUT          "Timeout"
#define DEF_TIMEOUT          7
#define SET_TIMEOUT2         "Timeout2"
#define DEF_TIMEOUT2         7
#define SET_TIMEOUT_MODE     "TimeoutMode"
#define DEF_TIMEOUT_MODE     TIMEOUT_POPUP
#define SET_TIMEOUT_MODE2    "TimeoutMode2"
#define DEF_TIMEOUT_MODE2    TIMEOUT_POPUP
#define SET_COLOR_MODE       "ColorMode"
#define DEF_COLOR_MODE       COLOR_OWN
#define SET_ICON_SETID       "IconSet"
#define DEF_ICON_SETID       0
#define SET_SHOWDISABLEMENU  "ShowDisableMenu"
#define DEF_SHOWDISABLEMENU  1
#define SET_ONEPOPUP         "OnePopUp"
#define DEF_ONEPOPUP         1


static HANDLE hDisableMenu = NULL;
static HANDLE hPopUpsList = NULL;

static BYTE OnePopUp;
static BYTE ShowMenu;
static BYTE PopupService=0;
static BYTE StartDisabled;
static BYTE StopDisabled;
static BYTE Disabled;
static BYTE ColorMode;
static BYTE TimeoutMode;
static BYTE TimeoutMode2;
static int Timeout;
static int Timeout2;
static int newTimeout;
static int newTimeout2;
static BYTE newTimeoutMode;
static BYTE newTimeoutMode2;
static BYTE newColorMode;
static TCHAR szStart[128];
static TCHAR szStop[128];

static HANDLE hntfStarted = 0;
static HANDLE hntfStopped = 0;


struct colors_s
{
        int res;
        char desc[10];
        COLORREF color;
};

static struct colors_s colorPicker[4] =
{
        {IDC_TYPEON_BG,  "ON_BG",  RGB(255,255,255)},
        {IDC_TYPEON_TX,  "ON_TX",  RGB(0,0,0)},
        {IDC_TYPEOFF_BG, "OFF_BG", RGB(255,255,255)},
        {IDC_TYPEOFF_TX, "OFF_TX", RGB(0,0,0)}
};