2009-02-10 18:37:48 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2001 Kimmo Pekkola
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __RAINMETER_H__
|
|
|
|
#define __RAINMETER_H__
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
2011-02-07 08:02:12 +00:00
|
|
|
#include <list>
|
2009-02-10 18:37:48 +00:00
|
|
|
#include <string>
|
2010-09-21 22:47:53 +00:00
|
|
|
#include "Litestep.h"
|
|
|
|
#include "MeterWindow.h"
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
#define MAX_LINE_LENGTH 4096
|
|
|
|
|
|
|
|
#define APPNAME L"Rainmeter"
|
|
|
|
#ifdef _WIN64
|
2011-08-28 10:58:26 +00:00
|
|
|
#define APPBITS L"64-bit"
|
2009-02-10 18:37:48 +00:00
|
|
|
#else
|
2011-08-28 10:58:26 +00:00
|
|
|
#define APPBITS L"32-bit"
|
2009-02-10 18:37:48 +00:00
|
|
|
#endif
|
2011-08-28 10:58:26 +00:00
|
|
|
#define WIDEN2(x) L ## x
|
|
|
|
#define WIDEN(x) WIDEN2(x)
|
|
|
|
#define APPDATE WIDEN(__DATE__)
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-12-17 00:09:37 +00:00
|
|
|
// Callbacks for Litestep
|
2009-02-10 18:37:48 +00:00
|
|
|
void RainmeterRefresh(HWND, const char* arg);
|
2010-03-29 21:50:05 +00:00
|
|
|
void RainmeterRefreshApp(HWND, const char* arg);
|
2009-02-10 18:37:48 +00:00
|
|
|
void RainmeterRedraw(HWND, const char* arg);
|
2010-12-28 13:31:17 +00:00
|
|
|
void RainmeterUpdate(HWND, const char* arg);
|
2009-02-10 18:37:48 +00:00
|
|
|
void RainmeterShow(HWND, const char* arg);
|
|
|
|
void RainmeterHide(HWND, const char* arg);
|
|
|
|
void RainmeterToggle(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterShowFade(HWND, const char* arg);
|
|
|
|
void RainmeterHideFade(HWND, const char* arg);
|
|
|
|
void RainmeterToggleFade(HWND, const char* arg);
|
2011-04-08 18:14:32 +00:00
|
|
|
void RainmeterShowBlur(HWND, const char* arg);
|
|
|
|
void RainmeterHideBlur(HWND, const char* arg);
|
|
|
|
void RainmeterToggleBlur(HWND, const char* arg);
|
|
|
|
void RainmeterAddBlur(HWND, const char* arg);
|
|
|
|
void RainmeterRemoveBlur(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterShowMeter(HWND, const char* arg);
|
|
|
|
void RainmeterHideMeter(HWND, const char* arg);
|
|
|
|
void RainmeterToggleMeter(HWND, const char* arg);
|
|
|
|
void RainmeterMoveMeter(HWND, const char* arg);
|
2010-12-28 13:31:17 +00:00
|
|
|
void RainmeterUpdateMeter(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterEnableMeasure(HWND, const char* arg);
|
|
|
|
void RainmeterDisableMeasure(HWND, const char* arg);
|
|
|
|
void RainmeterToggleMeasure(HWND, const char* arg);
|
2010-12-28 13:31:17 +00:00
|
|
|
void RainmeterUpdateMeasure(HWND, const char* arg);
|
2011-07-09 09:23:28 +00:00
|
|
|
void RainmeterCommandMeasure(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterActivateConfig(HWND, const char* arg);
|
|
|
|
void RainmeterDeactivateConfig(HWND, const char* arg);
|
|
|
|
void RainmeterToggleConfig(HWND, const char* arg);
|
2009-02-10 18:37:48 +00:00
|
|
|
void RainmeterMove(HWND, const char* arg);
|
|
|
|
void RainmeterZPos(HWND, const char* arg);
|
2010-08-22 12:08:38 +00:00
|
|
|
void RainmeterClickThrough(HWND, const char* arg);
|
|
|
|
void RainmeterDraggable(HWND, const char* arg);
|
|
|
|
void RainmeterSnapEdges(HWND, const char* arg);
|
|
|
|
void RainmeterKeepOnScreen(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterSetTransparency(HWND, const char* arg);
|
|
|
|
void RainmeterSetVariable(HWND, const char* arg);
|
2011-07-27 10:42:35 +00:00
|
|
|
void RainmeterSetOption(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
|
|
|
|
void RainmeterRefreshGroup(HWND, const char* arg);
|
|
|
|
void RainmeterRedrawGroup(HWND, const char* arg);
|
2010-12-28 13:31:17 +00:00
|
|
|
void RainmeterUpdateGroup(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterShowGroup(HWND, const char* arg);
|
|
|
|
void RainmeterHideGroup(HWND, const char* arg);
|
|
|
|
void RainmeterToggleGroup(HWND, const char* arg);
|
|
|
|
void RainmeterShowFadeGroup(HWND, const char* arg);
|
|
|
|
void RainmeterHideFadeGroup(HWND, const char* arg);
|
|
|
|
void RainmeterToggleFadeGroup(HWND, const char* arg);
|
|
|
|
void RainmeterShowMeterGroup(HWND, const char* arg);
|
|
|
|
void RainmeterHideMeterGroup(HWND, const char* arg);
|
|
|
|
void RainmeterToggleMeterGroup(HWND, const char* arg);
|
2010-12-28 13:31:17 +00:00
|
|
|
void RainmeterUpdateMeterGroup(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterEnableMeasureGroup(HWND, const char* arg);
|
|
|
|
void RainmeterDisableMeasureGroup(HWND, const char* arg);
|
|
|
|
void RainmeterToggleMeasureGroup(HWND, const char* arg);
|
2010-12-28 13:31:17 +00:00
|
|
|
void RainmeterUpdateMeasureGroup(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterDeactivateConfigGroup(HWND, const char* arg);
|
|
|
|
void RainmeterZPosGroup(HWND, const char* arg);
|
2010-08-22 12:08:38 +00:00
|
|
|
void RainmeterClickThroughGroup(HWND, const char* arg);
|
|
|
|
void RainmeterDraggableGroup(HWND, const char* arg);
|
|
|
|
void RainmeterSnapEdgesGroup(HWND, const char* arg);
|
|
|
|
void RainmeterKeepOnScreenGroup(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterSetTransparencyGroup(HWND, const char* arg);
|
|
|
|
void RainmeterSetVariableGroup(HWND, const char* arg);
|
2011-07-27 10:42:35 +00:00
|
|
|
void RainmeterSetOptionGroup(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
|
2009-02-10 18:37:48 +00:00
|
|
|
void RainmeterLsHook(HWND, const char* arg);
|
|
|
|
void RainmeterAbout(HWND, const char* arg);
|
2011-08-28 16:42:34 +00:00
|
|
|
void RainmeterManage(HWND, const char* arg);
|
2010-07-17 13:02:34 +00:00
|
|
|
void RainmeterSkinMenu(HWND, const char* arg);
|
|
|
|
void RainmeterTrayMenu(HWND, const char* arg);
|
2009-02-10 18:37:48 +00:00
|
|
|
void RainmeterResetStats(HWND, const char* arg);
|
2010-08-03 15:10:42 +00:00
|
|
|
void RainmeterWriteKeyValue(HWND, const char* arg);
|
2009-02-10 18:37:48 +00:00
|
|
|
void RainmeterPluginBang(HWND, const char* arg);
|
2009-08-04 09:48:03 +00:00
|
|
|
void RainmeterQuit(HWND, const char* arg);
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-12-17 00:09:37 +00:00
|
|
|
// Callbacks for Unicode support
|
|
|
|
void RainmeterActivateConfigWide(const WCHAR* arg);
|
|
|
|
void RainmeterDeactivateConfigWide(const WCHAR* arg);
|
|
|
|
void RainmeterToggleConfigWide(const WCHAR* arg);
|
|
|
|
void RainmeterDeactivateConfigGroupWide(const WCHAR* arg);
|
|
|
|
void RainmeterRefreshAppWide();
|
2011-08-28 10:58:26 +00:00
|
|
|
void RainmeterAboutWide(const WCHAR* arg = NULL);
|
|
|
|
void RainmeterManageWide(const WCHAR* arg = NULL);
|
2010-12-17 00:09:37 +00:00
|
|
|
void RainmeterSkinMenuWide(const WCHAR* arg);
|
|
|
|
void RainmeterTrayMenuWide();
|
|
|
|
void RainmeterResetStatsWide();
|
|
|
|
void RainmeterWriteKeyValueWide(const WCHAR* arg);
|
|
|
|
void RainmeterQuitWide();
|
|
|
|
|
2009-02-14 10:11:28 +00:00
|
|
|
void BangWithArgs(BANGCOMMAND bang, const WCHAR* arg, size_t numOfArgs);
|
2010-07-17 13:38:12 +00:00
|
|
|
void BangGroupWithArgs(BANGCOMMAND bang, const WCHAR* arg, size_t numOfArgs);
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
struct GlobalConfig
|
|
|
|
{
|
|
|
|
double netInSpeed;
|
|
|
|
double netOutSpeed;
|
|
|
|
};
|
|
|
|
|
2011-02-07 08:02:12 +00:00
|
|
|
class CConfigParser;
|
|
|
|
class CTrayWindow;
|
|
|
|
|
2009-02-10 18:37:48 +00:00
|
|
|
class CRainmeter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct CONFIG
|
|
|
|
{
|
|
|
|
std::wstring config;
|
|
|
|
std::vector<std::wstring> iniFiles;
|
|
|
|
std::vector<UINT> commands;
|
|
|
|
int active;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CONFIGMENU
|
|
|
|
{
|
|
|
|
std::wstring name;
|
|
|
|
size_t index;
|
|
|
|
std::vector<CONFIGMENU> children;
|
|
|
|
};
|
|
|
|
|
2010-08-26 20:50:36 +00:00
|
|
|
struct LOG_INFO
|
|
|
|
{
|
2011-08-28 10:58:26 +00:00
|
|
|
int level;
|
2010-08-26 20:50:36 +00:00
|
|
|
std::wstring timestamp;
|
|
|
|
std::wstring message;
|
|
|
|
};
|
|
|
|
|
2009-02-10 18:37:48 +00:00
|
|
|
CRainmeter();
|
|
|
|
~CRainmeter();
|
|
|
|
|
|
|
|
int Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath);
|
|
|
|
void Quit(HINSTANCE dllInst);
|
|
|
|
|
2010-10-19 22:03:32 +00:00
|
|
|
CConfigParser* GetCurrentParser() { return m_CurrentParser; }
|
|
|
|
void SetCurrentParser(CConfigParser* parser) { m_CurrentParser = parser; }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-10-19 22:03:32 +00:00
|
|
|
CTrayWindow* GetTrayWindow() { return m_TrayWindow; }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
CMeterWindow* GetMeterWindow(const std::wstring& config);
|
2010-12-16 17:04:14 +00:00
|
|
|
CMeterWindow* GetMeterWindowByINI(const std::wstring& ini_searching);
|
2011-09-08 23:10:41 +00:00
|
|
|
std::pair<int, int> GetMeterWindowIndex(const std::wstring& config, const std::wstring& iniFile);
|
|
|
|
std::pair<int, int> GetMeterWindowIndex(CMeterWindow* meterWindow) { return GetMeterWindowIndex(meterWindow->GetSkinName(), meterWindow->GetSkinIniFile()); }
|
2011-09-08 14:39:25 +00:00
|
|
|
|
2010-03-23 16:15:07 +00:00
|
|
|
CMeterWindow* GetMeterWindow(HWND hwnd);
|
2010-07-17 13:02:34 +00:00
|
|
|
void GetMeterWindowsByLoadOrder(std::multimap<int, CMeterWindow*>& windows, const std::wstring& group = L"");
|
2010-10-19 22:03:32 +00:00
|
|
|
std::map<std::wstring, CMeterWindow*>& GetAllMeterWindows() { return m_Meters; }
|
|
|
|
const std::vector<CONFIG>& GetAllConfigs() { return m_ConfigStrings; }
|
|
|
|
const std::vector<std::wstring>& GetAllThemes() { return m_Themes; }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
void ActivateConfig(int configIndex, int iniIndex);
|
2011-08-28 10:58:26 +00:00
|
|
|
bool DeactivateConfig(CMeterWindow* meterWindow, int configIndex, bool save = true);
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-10-19 22:03:32 +00:00
|
|
|
const std::wstring& GetPath() { return m_Path; }
|
|
|
|
const std::wstring& GetIniFile() { return m_IniFile; }
|
|
|
|
const std::wstring& GetLogFile() { return m_LogFile; }
|
|
|
|
const std::wstring& GetSkinPath() { return m_SkinPath; }
|
|
|
|
const std::wstring& GetPluginPath() { return m_PluginPath; }
|
2010-11-25 22:00:34 +00:00
|
|
|
const std::wstring& GetAddonPath() { return m_AddonPath; }
|
2010-10-19 22:03:32 +00:00
|
|
|
std::wstring GetSettingsPath() { return ExtractPath(m_IniFile); }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-11-25 22:00:34 +00:00
|
|
|
const std::wstring& GetDrive() { return m_Drive; }
|
|
|
|
|
2010-10-19 22:03:32 +00:00
|
|
|
const std::wstring& GetConfigEditor() { return m_ConfigEditor; }
|
|
|
|
const std::wstring& GetLogViewer() { return m_LogViewer; }
|
|
|
|
const std::wstring& GetStatsDate() { return m_StatsDate; }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-10-19 22:03:32 +00:00
|
|
|
HINSTANCE GetInstance() { return m_Instance; }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-10-19 22:03:32 +00:00
|
|
|
static void SetDummyLitestep(bool Dummy) { c_DummyLitestep = Dummy; }
|
|
|
|
static bool GetDummyLitestep() { return c_DummyLitestep; }
|
|
|
|
static void SetCommandLine(LPCTSTR CmdLine) { c_CmdLine = CmdLine;}
|
|
|
|
static LPCTSTR GetCommandLine() { return c_CmdLine.c_str(); }
|
|
|
|
static GlobalConfig& GetGlobalConfig() { return c_GlobalConfig; }
|
2010-07-07 23:46:44 +00:00
|
|
|
|
2010-02-13 03:07:34 +00:00
|
|
|
static bool GetDebug() { return c_Debug; }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
void ReloadSettings();
|
|
|
|
|
|
|
|
void UpdateStats();
|
|
|
|
void ReadStats();
|
2009-07-27 12:30:28 +00:00
|
|
|
void WriteStats(bool bForce);
|
2009-02-10 18:37:48 +00:00
|
|
|
void ResetStats();
|
|
|
|
|
2011-08-28 10:58:26 +00:00
|
|
|
bool GetDisableVersionCheck() { return m_DisableVersionCheck; }
|
|
|
|
void SetDisableVersionCheck(bool check);
|
|
|
|
bool GetNewVersion() { return m_NewVersion; }
|
|
|
|
void SetNewVersion(bool newver) { m_NewVersion = newver; }
|
2010-07-07 23:46:44 +00:00
|
|
|
|
|
|
|
bool GetLogging() { return m_Logging; }
|
2010-07-08 10:59:06 +00:00
|
|
|
void StartLogging();
|
|
|
|
void StopLogging();
|
|
|
|
void DeleteLogFile();
|
2010-09-19 09:21:25 +00:00
|
|
|
|
2010-11-24 15:34:07 +00:00
|
|
|
bool GetDisableRDP() { return m_DisableRDP; }
|
|
|
|
|
2010-11-27 10:57:59 +00:00
|
|
|
bool GetDisableDragging() { return m_DisableDragging; }
|
|
|
|
void SetDisableDragging(bool dragging);
|
2010-11-24 15:34:07 +00:00
|
|
|
|
2011-08-28 10:58:26 +00:00
|
|
|
void AddAboutLogInfo(int level, LPCWSTR time, LPCWSTR message);
|
2011-09-03 16:45:29 +00:00
|
|
|
const std::list<LOG_INFO>& GetAboutLogData() { return m_LogData; }
|
2010-07-08 10:59:06 +00:00
|
|
|
|
2010-07-07 23:46:44 +00:00
|
|
|
void SetDebug(bool debug);
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-08-03 15:10:42 +00:00
|
|
|
bool IsMenuActive() { return m_MenuActive; }
|
2009-02-10 18:37:48 +00:00
|
|
|
void ShowContextMenu(POINT pos, CMeterWindow* meterWindow);
|
|
|
|
|
2010-11-11 20:24:59 +00:00
|
|
|
const std::wstring& GetTrayExecuteL() { return m_TrayExecuteL; }
|
|
|
|
const std::wstring& GetTrayExecuteR() { return m_TrayExecuteR; }
|
|
|
|
const std::wstring& GetTrayExecuteM() { return m_TrayExecuteM; }
|
|
|
|
const std::wstring& GetTrayExecuteDR() { return m_TrayExecuteDR; }
|
|
|
|
const std::wstring& GetTrayExecuteDL() { return m_TrayExecuteDL; }
|
|
|
|
const std::wstring& GetTrayExecuteDM() { return m_TrayExecuteDM; }
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
BOOL ExecuteBang(const std::wstring& bang, const std::wstring& arg, CMeterWindow* meterWindow);
|
|
|
|
std::wstring ParseCommand(const WCHAR* command, CMeterWindow* meterWindow);
|
|
|
|
void ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow);
|
|
|
|
|
2010-03-29 21:50:05 +00:00
|
|
|
void RefreshAll();
|
|
|
|
|
2011-09-04 07:40:12 +00:00
|
|
|
void LoadTheme(const std::wstring& name);
|
|
|
|
void PreserveSetting(const std::wstring& from, LPCTSTR key, bool replace = true);
|
|
|
|
|
2009-10-17 06:43:18 +00:00
|
|
|
void ClearDeleteLaterList();
|
|
|
|
|
2010-08-03 15:10:42 +00:00
|
|
|
static std::vector<std::wstring> ParseString(LPCTSTR str);
|
2009-07-26 21:08:46 +00:00
|
|
|
static std::wstring ExtractPath(const std::wstring& strFilePath);
|
2009-08-26 17:37:15 +00:00
|
|
|
static void ExpandEnvironmentVariables(std::wstring& strPath);
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2011-08-28 10:58:26 +00:00
|
|
|
friend class CDialogManage;
|
|
|
|
|
2009-02-10 18:37:48 +00:00
|
|
|
private:
|
2011-09-04 18:06:19 +00:00
|
|
|
void ActivateActiveConfigs();
|
2010-11-11 20:24:59 +00:00
|
|
|
void CreateMeterWindow(const std::wstring& path, const std::wstring& config, const std::wstring& iniFile);
|
2009-10-17 06:43:18 +00:00
|
|
|
bool DeleteMeterWindow(CMeterWindow* meterWindow, bool bLater);
|
2010-07-22 00:31:59 +00:00
|
|
|
void WriteActive(const std::wstring& config, int iniIndex);
|
2010-11-11 20:24:59 +00:00
|
|
|
void ScanForConfigs(const std::wstring& path);
|
|
|
|
void ScanForThemes(const std::wstring& path);
|
|
|
|
void ReadGeneralSettings(const std::wstring& iniFile);
|
2011-07-15 16:54:47 +00:00
|
|
|
void SetLoadOrder(int configIndex, int order);
|
2010-03-29 21:50:05 +00:00
|
|
|
int GetLoadOrder(const std::wstring& config);
|
2010-11-11 20:24:59 +00:00
|
|
|
bool SetActiveConfig(const std::wstring& skinName, const std::wstring& skinIni);
|
2010-07-10 12:56:37 +00:00
|
|
|
void UpdateDesktopWorkArea(bool reset);
|
2010-07-18 21:35:52 +00:00
|
|
|
HMENU CreateSkinMenu(CMeterWindow* meterWindow, int index, HMENU configMenu);
|
2009-02-10 18:37:48 +00:00
|
|
|
void ChangeSkinIndex(HMENU subMenu, int index);
|
2010-11-11 20:24:59 +00:00
|
|
|
int ScanForConfigsRecursive(const std::wstring& path, std::wstring base, int index, std::vector<CONFIGMENU>& menu, bool DontRecurse);
|
2011-08-19 03:12:01 +00:00
|
|
|
HMENU CreateConfigMenu(HMENU configMenu, std::vector<CONFIGMENU>& configMenuData);
|
|
|
|
void CreateThemeMenu(HMENU themeMenu);
|
2010-06-23 12:36:39 +00:00
|
|
|
void CreateMonitorMenu(HMENU monitorMenu, CMeterWindow* meterWindow);
|
2010-11-11 20:24:59 +00:00
|
|
|
void CreateDefaultConfigFile(const std::wstring& strFile);
|
2010-07-08 10:59:06 +00:00
|
|
|
void SetLogging(bool logging);
|
2011-05-02 11:58:02 +00:00
|
|
|
void TestSettingsFile(bool bDefaultIniLocation);
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
CTrayWindow* m_TrayWindow;
|
|
|
|
|
2011-04-16 20:05:14 +00:00
|
|
|
std::vector<CONFIG> m_ConfigStrings; // All configs found in the given folder
|
2009-02-10 18:37:48 +00:00
|
|
|
std::vector<CONFIGMENU> m_ConfigMenu;
|
2010-07-17 13:02:34 +00:00
|
|
|
std::multimap<int, int> m_ConfigOrders;
|
2011-04-16 20:05:14 +00:00
|
|
|
std::map<std::wstring, CMeterWindow*> m_Meters; // The meter windows
|
2009-08-12 17:11:52 +00:00
|
|
|
std::vector<std::wstring> m_Themes;
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2011-04-16 20:05:14 +00:00
|
|
|
std::wstring m_Path; // Path to the main folder
|
2009-02-10 18:37:48 +00:00
|
|
|
std::wstring m_IniFile; // The main ini file
|
2011-04-16 20:05:14 +00:00
|
|
|
std::wstring m_StatsFile; // The statistics ini file
|
2009-07-21 12:26:50 +00:00
|
|
|
std::wstring m_LogFile; // The log file
|
2009-02-10 18:37:48 +00:00
|
|
|
std::wstring m_SkinPath; // Path to the folder where the skins are
|
|
|
|
std::wstring m_PluginPath; // Path to the folder where the plugins are
|
2010-11-25 22:00:34 +00:00
|
|
|
std::wstring m_AddonPath; // Path to the folder where the addons are
|
|
|
|
|
|
|
|
std::wstring m_Drive;
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
std::wstring m_StatsDate; // The date when stats gathering started
|
|
|
|
|
|
|
|
std::wstring m_TrayExecuteL;
|
|
|
|
std::wstring m_TrayExecuteR;
|
|
|
|
std::wstring m_TrayExecuteM;
|
|
|
|
std::wstring m_TrayExecuteDL;
|
|
|
|
std::wstring m_TrayExecuteDR;
|
|
|
|
std::wstring m_TrayExecuteDM;
|
|
|
|
|
2011-08-28 10:58:26 +00:00
|
|
|
bool m_DisableVersionCheck;
|
|
|
|
bool m_NewVersion;
|
2010-06-21 16:00:19 +00:00
|
|
|
|
2010-07-17 13:02:34 +00:00
|
|
|
bool m_DesktopWorkAreaChanged;
|
|
|
|
bool m_DesktopWorkAreaType; // If true, DesktopWorkArea is treated as "margin"
|
2010-07-10 12:56:37 +00:00
|
|
|
std::map<UINT, RECT> m_DesktopWorkAreas;
|
|
|
|
std::vector<RECT> m_OldDesktopWorkAreas;
|
2009-02-10 18:37:48 +00:00
|
|
|
|
2010-08-03 15:10:42 +00:00
|
|
|
bool m_MenuActive;
|
|
|
|
|
2010-11-24 15:34:07 +00:00
|
|
|
bool m_DisableRDP;
|
|
|
|
|
2010-11-27 10:57:59 +00:00
|
|
|
bool m_DisableDragging;
|
2010-11-24 15:34:07 +00:00
|
|
|
|
2010-07-07 23:46:44 +00:00
|
|
|
bool m_Logging;
|
|
|
|
|
2010-09-19 09:21:25 +00:00
|
|
|
std::list<LOG_INFO> m_LogData;
|
|
|
|
|
2009-02-10 18:37:48 +00:00
|
|
|
std::wstring m_ConfigEditor;
|
2010-07-07 23:46:44 +00:00
|
|
|
std::wstring m_LogViewer;
|
2009-02-10 18:37:48 +00:00
|
|
|
|
|
|
|
CConfigParser* m_CurrentParser;
|
|
|
|
|
|
|
|
HINSTANCE m_Instance;
|
|
|
|
|
|
|
|
ULONG_PTR m_GDIplusToken;
|
|
|
|
|
2009-10-17 06:43:18 +00:00
|
|
|
std::list<CMeterWindow*> m_DelayDeleteList;
|
|
|
|
|
2009-02-10 18:37:48 +00:00
|
|
|
static bool c_DummyLitestep; // true, if not a Litestep plugin
|
|
|
|
static std::wstring c_CmdLine; // The command line arguments
|
|
|
|
static GlobalConfig c_GlobalConfig;
|
2010-02-13 03:07:34 +00:00
|
|
|
static bool c_Debug;
|
2009-02-10 18:37:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef LIBRARY_EXPORTS
|
|
|
|
#define EXPORT_PLUGIN __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define EXPORT_PLUGIN __declspec(dllimport)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
EXPORT_PLUGIN int initModuleEx(HWND ParentWnd, HINSTANCE dllInst, LPCSTR szPath);
|
|
|
|
EXPORT_PLUGIN void quitModule(HINSTANCE dllInst);
|
|
|
|
EXPORT_PLUGIN void Initialize(bool DummyLS, LPCTSTR CmdLine);
|
2009-10-10 08:20:28 +00:00
|
|
|
EXPORT_PLUGIN void ExecuteBang(LPCTSTR szBang);
|
2009-02-10 18:37:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|