Adds new [Meter:] and [Measure:] functionality

This commit is contained in:
Brian
2012-08-01 13:52:50 -04:00
committed by jsmorley
parent 746bd059fd
commit 06f625c91c
3 changed files with 246 additions and 36 deletions

View File

@ -33,6 +33,7 @@
class CRainmeter;
class CMeterWindow;
class CMeasure;
class CMeter;
class CConfigParser
{
@ -109,6 +110,8 @@ private:
void SetAutoSelectedMonitorVariables(CMeterWindow* meterWindow);
bool GetSectionVariables(const std::wstring& strVariable, std::wstring& strValue);
static void SetVariable(std::unordered_map<std::wstring, std::wstring>& variables, const std::wstring& strVariable, const std::wstring& strValue);
static void SetVariable(std::unordered_map<std::wstring, std::wstring>& variables, const WCHAR* strVariable, const WCHAR* strValue);
@ -140,6 +143,8 @@ private:
std::unordered_map<std::wstring, std::wstring> m_BuiltInVariables;
std::unordered_map<std::wstring, std::wstring> m_Variables;
CMeterWindow* m_MeterWindow;
static std::unordered_map<std::wstring, std::wstring> c_MonitorVariables;
};