Skins are now read from the My Documents by default.

Added the revision number to the about dialog (use UpdateRevision.py to update it).
Added a check to the startup which verifies that the rainmeter.ini is writable.
The skin folder can be opened from the context menu.
This commit is contained in:
Kimmo Pekkola
2009-07-24 07:56:37 +00:00
parent c1ecbb8374
commit a7c6c939ac
30 changed files with 249 additions and 82 deletions

View File

@ -99,14 +99,6 @@ enum BANGCOMMAND
BANG_PLUGIN
};
enum PATH_FOLDER
{
PATH_FOLDER_INI,
PATH_FOLDER_SKINS,
PATH_FOLDER_CURRENT_SKIN,
PATH_FOLDER_PLUGIN
};
typedef struct
{
int count; //Number of monitors
@ -124,7 +116,7 @@ class CMeter;
class CMeterWindow
{
public:
CMeterWindow(std::wstring& config, std::wstring& iniFile);
CMeterWindow(std::wstring& path, std::wstring& config, std::wstring& iniFile);
~CMeterWindow();
int Initialize(CRainmeter& Rainmeter);
@ -177,6 +169,8 @@ public:
LRESULT OnCopyData(WPARAM wParam, LPARAM lParam);
std::wstring MakePathAbsolute(std::wstring path);
protected:
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
@ -303,7 +297,8 @@ private:
std::list<CMeasure*> m_Measures; // All the measures
std::list<CMeter*> m_Meters; // All the meters
std::wstring m_SkinName; // Name of the current skin folder
std::wstring m_SkinPath; // Path of the skin folder
std::wstring m_SkinName; // Name of the current skin folder
std::wstring m_SkinIniFile; // Name of the current skin iniFile
std::wstring m_ConfigEditor;