-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainPrefs.h
64 lines (55 loc) · 1.47 KB
/
mainPrefs.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
#include <Windows.h>
#include <tchar.h>
#include <iostream>
#include <vector>
#include <winternl.h>
#include "appconst.h"
#ifndef MAINPREFS_H
#define MAINPREFS_H
namespace binary
{
void loadMainPrefs(void);
void saveMainPrefs(void);
void setDefaultPrefs(void);
bool chkIfConfigExists(void);
void updatePrefs(void);
}
namespace manualOverride
{
void loadMainPrefs(void);
void saveMainPrefs(void);
void setDefaultPrefs(void);
bool chkIfConfigExists(void);
void updatePrefs(void);
void parseTxtPrefs(void);
void populateValArray(void);
}
struct MAINPREFS
{
bool bConfirmExit;
bool bShowCompleteFilePathInTitle; //default true
//bool detectURLS;
bool bFirstLaunch; //not actually a setting that user can toggle used in-app
bool bSplashScreen;
bool bToolbarActive; //default 1
bool bToolbarText;
bool bDetectLinks;
bool bStartFullScr;
//bool bShowLoadedFileInTitle; //default true
//int iLang; //default 1 - eng
//TCHAR szFontFamily[257]; //default Arial
//int iFontSize; //default 11
//int iZoom; //default 100
//bool bLastSizeByUser; //true if changed, false otherwise default 0
bool bRememberLastSizeByUser; //default 1
int iUsrLastWidth; //default 500
int iUsrLastHeight; //default 400
int iUsrLastXPos; //default center
int iUsrLastYPos; //default center
bool bOverrideSettings;
//in-app setting, usr can only clear at runtime
};
extern MAINPREFS settings;
extern std::string overrideTxtArray[mainPrefsMax];
extern unsigned int overrideValArray[mainPrefsMax];
#endif