📄 lumosconfig.h
字号:
#pragma once
#include <windows.h>
#include "HashContainer.h"
#include "Config.h"
class LumosConfig
{
void LoadConfig();
void ParseValue(TCHAR* name, TCHAR* value);
bool SetValueIfNameSame(const TCHAR* oName, TCHAR* name, TCHAR* value, int *valuePalce);
void ParseExcludeRule(TCHAR* line);
void CheckForGoodValues();
public:
LumosConfig()
{
this->BACKLIGHT_TOLERANCE = 0;
this->DIM_TO_MINIMUM_BELOW = 0;
this->DIM_TO_MINIMUM_PLUS_ONE_BELOW = 0;
this->EXCEPTION_BACKLIGHT = -1;
this->EXCEPTION_ONLY_ACTIVE_WINDOW = 0;
this->EXTRA_POLLS_BEFORE_SET = 1;
this->MAX_BACKLIGHT = 8;
this->MAX_BL_LUMENS = 700;
//this->MAX_REPORTED_BACKLIGHT = 0;
this->MIN_BACKLIGHT = 2;
this->MIN_BL_LUMENS = 0;
//this->MAX_REPORTED_BACKLIGHT = 0;
this->POLLING_INTERVAL = 1250;
this->USE_ON_AC_POWER = 1;
this->LoadConfig();
}
~LumosConfig(){}
HashContainer<int> exceptions;
HashContainer<int> exceptions_class;
HashContainer<int> exceptions_progclass;
int BACKLIGHT_TOLERANCE;
int DIM_TO_MINIMUM_BELOW;
int DIM_TO_MINIMUM_PLUS_ONE_BELOW;
int EXCEPTION_BACKLIGHT ;
int EXCEPTION_ONLY_ACTIVE_WINDOW;
int EXTRA_POLLS_BEFORE_SET;
int MAX_BACKLIGHT;
int MAX_BL_LUMENS;
int MAX_REPORTED_BACKLIGHT;
int MIN_BACKLIGHT;
int MIN_BL_LUMENS;
int MIN_REPORTED_BACKLIGHT;
int POLLING_INTERVAL;
int USE_ON_AC_POWER;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -