Added FinishAction to the FileView plugin

This commit is contained in:
Brian Ferguson 2013-01-16 15:21:17 -07:00
parent 2fc204c6fa
commit 9ba6e01be0
3 changed files with 11 additions and 2 deletions

View File

@ -167,6 +167,8 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
child->parent->extensions = Tokenize(RmReadString(rm, L"Extensions", L""), L";");
child->parent->wildcardSearch = RmReadString(rm, L"WildcardSearch", L"*");
child->parent->finishAction = RmReadString(rm, L"FinishAction", L"", false);
}
auto iter = std::find(child->parent->children.begin(), child->parent->children.end(), child);
@ -875,6 +877,11 @@ unsigned __stdcall SystemThreadProc(void* pParam)
parent->thread = NULL;
LeaveCriticalSection(&g_CriticalSection);
if (!parent->finishAction.empty())
{
RmExecute(parent->skin, parent->finishAction.c_str());
}
_endthreadex(0);
return 0;
}

View File

@ -111,6 +111,7 @@ struct ParentMeasure
bool showSystem;
bool hideExtension;
std::vector<std::wstring> extensions; // only show these extensions
std::wstring finishAction;
// Internal values
std::vector<ChildMeasure*> children;
@ -143,6 +144,7 @@ struct ParentMeasure
showSystem(false),
hideExtension(false),
extensions(),
finishAction(),
children(NULL),
files(NULL),
skin(NULL),

View File

@ -7,7 +7,7 @@
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,1,0,0
FILEVERSION 1,2,1,0
PRODUCTVERSION PRODUCTVER
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
@ -23,7 +23,7 @@ VS_VERSION_INFO VERSIONINFO
{
BLOCK "040904E4"
{
VALUE "FileVersion", "1.1.0.0"
VALUE "FileVersion", "1.2.0.0"
VALUE "LegalCopyright", "© 2012 - Brian Ferguson"
VALUE "ProductName", "Rainmeter"
#ifdef _WIN64