-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
UserConfig.h
53 lines (47 loc) · 829 Bytes
/
UserConfig.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
#pragma once
struct HotKey
{
int key;
bool ctrl;
bool alt;
bool shift;
};
struct WebButtonInfo
{
CString command;
CString name;
CPath iconPath;
int iconIndex;
WCHAR acceleratorKey;
int width;
int height;
};
enum class TextRetrievalMethod
{
default,
msaa,
uia
};
class UserConfig
{
public:
UserConfig();
bool LoadFromIniFile();
bool SaveToIniFile() const;
HotKey m_mouseHotKey;
HotKey m_keybdHotKey;
LANGID m_uiLanguage;
bool m_checkForUpdates;
bool m_autoCopySelection;
bool m_hideWndOnStartup;
bool m_hideTrayIcon;
bool m_textBoxNonResiable;
CString m_fontName;
int m_fontSize;
bool m_unicodeSpacesToAscii;
TextRetrievalMethod m_textRetrievalMethod;
int m_webButtonsIconSize;
int m_webButtonsPerRow;
std::vector<WebButtonInfo> m_webButtonInfos;
std::vector<CString> m_excludedPrograms;
};