From e70263fa09e2b16cd0ab8d45c6cf16e5b9788944 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 6 Jun 2012 19:46:34 +0000 Subject: fixed plugin info plusified AssocMgr plugin git-svn-id: http://svn.miranda-ng.org/main/trunk@334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Alarms/Version.h | 20 +++++++++++++++++ plugins/Alarms/Version.rc | 38 ++++++++++++++++++++++++++++++++ plugins/Alarms/alarms.cpp | 16 ++++++-------- plugins/Alarms/alarms_10.vcxproj | 2 ++ plugins/Alarms/alarms_10.vcxproj.filters | 6 +++++ plugins/Alarms/common.h | 1 + 6 files changed, 74 insertions(+), 9 deletions(-) create mode 100644 plugins/Alarms/Version.h create mode 100644 plugins/Alarms/Version.rc (limited to 'plugins/Alarms') diff --git a/plugins/Alarms/Version.h b/plugins/Alarms/Version.h new file mode 100644 index 0000000000..45934bc715 --- /dev/null +++ b/plugins/Alarms/Version.h @@ -0,0 +1,20 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 4 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 5 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM +#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM + +#define __STRINGIFY_IMPL(x) #x +#define __STRINGIFY(x) __STRINGIFY_IMPL(x) +#define __VERSION_STRING __STRINGIFY(__FILEVERSION_DOTS) + +#define __PLUGIN_NAME "Alarms" +#define __INTERNAL_NAME "Alarms" +#define __FILENAME "Alarms.dll" +#define __DESCRIPTION "Set once-off, daily, weekly and weekday alarms." +#define __AUTHOR "Scott Ellis" +#define __AUTHOREMAIL "mail@scottellis.com.au" +#define __AUTHORWEB "http://www.scottellis.com.au" +#define __COPYRIGHT "© 2005 Scott Ellis" diff --git a/plugins/Alarms/Version.rc b/plugins/Alarms/Version.rc new file mode 100644 index 0000000000..e637f0cb33 --- /dev/null +++ b/plugins/Alarms/Version.rc @@ -0,0 +1,38 @@ +// Microsoft Visual C++ generated resource script. +// +#include "afxres.h" +#include "version.h" + +#ifdef _WIN32 +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +#endif //_WIN32 + +VS_VERSION_INFO VERSIONINFO + FILEVERSION __FILEVERSION_STRING + PRODUCTVERSION __FILEVERSION_STRING + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "FileDescription", __DESCRIPTION + VALUE "InternalName", __PLUGIN_NAME + VALUE "LegalCopyright", __COPYRIGHT + VALUE "OriginalFilename", __FILENAME + VALUE "ProductName", __PLUGIN_NAME + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END +END diff --git a/plugins/Alarms/alarms.cpp b/plugins/Alarms/alarms.cpp index 626b917178..79cea6c27f 100644 --- a/plugins/Alarms/alarms.cpp +++ b/plugins/Alarms/alarms.cpp @@ -33,13 +33,13 @@ WNDPROC old_clist_wndproc; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), - "Alarms", - PLUGIN_MAKE_VERSION(0,4,0,5), - "Set once-off, daily, weekly and weekday alarms.", - "Scott Ellis", - "mail@scottellis.com.au", - "© 2005 Scott Ellis", - "http://www.scottellis.com.au", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, //not transient 0, //doesn't replace anything built-in { 0x4dd7762b, 0xd612, 0x4f84, { 0xaa, 0x86, 0x6, 0x8f, 0x17, 0x85, 0x9b, 0x6d } } // {4DD7762B-D612-4f84-AA86-068F17859B6D} @@ -62,8 +62,6 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) return interfaces; } - - static int CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) { diff --git a/plugins/Alarms/alarms_10.vcxproj b/plugins/Alarms/alarms_10.vcxproj index 0e4120925a..64a896c41e 100644 --- a/plugins/Alarms/alarms_10.vcxproj +++ b/plugins/Alarms/alarms_10.vcxproj @@ -204,6 +204,7 @@ + @@ -214,6 +215,7 @@ + diff --git a/plugins/Alarms/alarms_10.vcxproj.filters b/plugins/Alarms/alarms_10.vcxproj.filters index 67fab38b2d..113441daf8 100644 --- a/plugins/Alarms/alarms_10.vcxproj.filters +++ b/plugins/Alarms/alarms_10.vcxproj.filters @@ -71,6 +71,9 @@ Header Files + + Header Files + @@ -93,5 +96,8 @@ Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/Alarms/common.h b/plugins/Alarms/common.h index 0186d87228..d675ab1bf1 100644 --- a/plugins/Alarms/common.h +++ b/plugins/Alarms/common.h @@ -15,6 +15,7 @@ #include #include "resource.h" +#include "version.h" #include #include -- cgit v1.2.3