From 7e5f2445f906ade2533fc3a4b6d14b8da52ec522 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 14 Mar 2013 07:25:18 +0000 Subject: added precompiled header added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@4012 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../ZeroNotification/Zero Notification_10.vcxproj | 22 ++- .../Zero Notification_10.vcxproj.filters | 8 +- .../ZeroNotification/Zero Notification_11.vcxproj | 22 ++- .../Zero Notification_11.vcxproj.filters | 8 +- plugins/ZeroNotification/res/Version.rc | 38 +++++ plugins/ZeroNotification/res/ZeroNotify.rc | 104 ++++++++++++++ plugins/ZeroNotification/res/ZeroNotifyW.rc | 154 --------------------- plugins/ZeroNotification/src/common.h | 7 +- plugins/ZeroNotification/src/main.cpp | 49 ++++--- plugins/ZeroNotification/src/stdafx.cpp | 18 +++ plugins/ZeroNotification/src/version.h | 22 +-- 11 files changed, 250 insertions(+), 202 deletions(-) create mode 100644 plugins/ZeroNotification/res/Version.rc create mode 100644 plugins/ZeroNotification/res/ZeroNotify.rc delete mode 100644 plugins/ZeroNotification/res/ZeroNotifyW.rc create mode 100644 plugins/ZeroNotification/src/stdafx.cpp (limited to 'plugins') diff --git a/plugins/ZeroNotification/Zero Notification_10.vcxproj b/plugins/ZeroNotification/Zero Notification_10.vcxproj index 47dbb79ffc..0547ea8f4d 100644 --- a/plugins/ZeroNotification/Zero Notification_10.vcxproj +++ b/plugins/ZeroNotification/Zero Notification_10.vcxproj @@ -72,7 +72,7 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) false true @@ -83,6 +83,8 @@ Level3 EditAndContinue false + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -100,7 +102,7 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) false EnableFastChecks @@ -109,6 +111,8 @@ Fast Level3 false + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -128,7 +132,7 @@ Full OnlyExplicitInline Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false @@ -137,6 +141,8 @@ Fast Level3 true + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -159,7 +165,7 @@ Full OnlyExplicitInline Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false @@ -167,6 +173,8 @@ false Fast Level3 + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -186,6 +194,9 @@ + + Create + @@ -193,7 +204,8 @@ - + + diff --git a/plugins/ZeroNotification/Zero Notification_10.vcxproj.filters b/plugins/ZeroNotification/Zero Notification_10.vcxproj.filters index 95f544a875..b176b4ece1 100644 --- a/plugins/ZeroNotification/Zero Notification_10.vcxproj.filters +++ b/plugins/ZeroNotification/Zero Notification_10.vcxproj.filters @@ -18,6 +18,9 @@ Source Files + + Source Files + @@ -31,7 +34,10 @@ - + + Resource Files + + Resource Files diff --git a/plugins/ZeroNotification/Zero Notification_11.vcxproj b/plugins/ZeroNotification/Zero Notification_11.vcxproj index 9f81dc78fe..1fa9a6380e 100644 --- a/plugins/ZeroNotification/Zero Notification_11.vcxproj +++ b/plugins/ZeroNotification/Zero Notification_11.vcxproj @@ -76,7 +76,7 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) false true @@ -87,6 +87,8 @@ Level3 EditAndContinue false + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -104,7 +106,7 @@ Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) false EnableFastChecks @@ -113,6 +115,8 @@ Fast Level3 false + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -132,7 +136,7 @@ Full OnlyExplicitInline Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false @@ -141,6 +145,8 @@ Fast Level3 true + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -163,7 +169,7 @@ Full OnlyExplicitInline Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + ..\..\include;%(AdditionalIncludeDirectories) WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false @@ -171,6 +177,8 @@ false Fast Level3 + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -190,6 +198,9 @@ + + Create + @@ -197,7 +208,8 @@ - + + diff --git a/plugins/ZeroNotification/Zero Notification_11.vcxproj.filters b/plugins/ZeroNotification/Zero Notification_11.vcxproj.filters index 95f544a875..b176b4ece1 100644 --- a/plugins/ZeroNotification/Zero Notification_11.vcxproj.filters +++ b/plugins/ZeroNotification/Zero Notification_11.vcxproj.filters @@ -18,6 +18,9 @@ Source Files + + Source Files + @@ -31,7 +34,10 @@ - + + Resource Files + + Resource Files diff --git a/plugins/ZeroNotification/res/Version.rc b/plugins/ZeroNotification/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/ZeroNotification/res/Version.rc @@ -0,0 +1,38 @@ +// Microsoft Visual C++ generated resource script. +// +#ifdef APSTUDIO_INVOKED +#error this file is not editable by Microsoft Visual C++ +#endif //APSTUDIO_INVOKED + +#include "afxres.h" +#include "..\src\version.h" + +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/ZeroNotification/res/ZeroNotify.rc b/plugins/ZeroNotification/res/ZeroNotify.rc new file mode 100644 index 0000000000..77e1b839f0 --- /dev/null +++ b/plugins/ZeroNotification/res/ZeroNotify.rc @@ -0,0 +1,104 @@ +// Microsoft Visual C++ generated resource script. +// +#include "..\src\resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "..\\src\\resource.\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_OPT_NOSOUND DIALOG 0, 0, 244, 145 +STYLE DS_SETFONT | DS_CENTER | WS_CHILD +FONT 8, "MS Shell Dlg" +BEGIN + CONTROL "Hide the ""toggle sound"" menu item (requires restart of Miranda)",IDC_HIDEMENU, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,133,234,10 + CONTROL "Tree1",IDC_NOSOUND,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_TABSTOP,4,22,77,105 + CONTROL "Tree1",IDC_NOBLINK,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_TABSTOP,87,22,73,105 + CONTROL "Tree1",IDC_NOCLCBLINK,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_TABSTOP,165,22,73,105 + LTEXT "No sounds when:",IDC_STATIC,4,4,77,8 + LTEXT "No SysTray blink when:",IDC_STATIC,87,4,77,8 + LTEXT "No CLIST blink when:",IDC_STATIC,165,4,73,8 +END + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO +BEGIN + IDD_OPT_NOSOUND, DIALOG + BEGIN + LEFTMARGIN, 4 + RIGHTMARGIN, 238 + TOPMARGIN, 4 + BOTTOMMARGIN, 126 + HORZGUIDE, 109 + HORZGUIDE, 143 + END +END +#endif // APSTUDIO_INVOKED + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/plugins/ZeroNotification/res/ZeroNotifyW.rc b/plugins/ZeroNotification/res/ZeroNotifyW.rc deleted file mode 100644 index 727d4d986d..0000000000 --- a/plugins/ZeroNotification/res/ZeroNotifyW.rc +++ /dev/null @@ -1,154 +0,0 @@ -// Microsoft Visual C++ generated resource script. -// -#include "..\src\resource.h" - -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// -#include "afxres.h" - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// German (Germany) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) -#ifdef _WIN32 -LANGUAGE LANG_GERMAN, SUBLANG_GERMAN -#pragma code_page(1252) -#endif //_WIN32 - -///////////////////////////////////////////////////////////////////////////// -// -// Version -// - -VS_VERSION_INFO VERSIONINFO - FILEVERSION 0,0,0,5 - PRODUCTVERSION 0,0,0,5 - FILEFLAGSMASK 0x17L -#ifdef _DEBUG - FILEFLAGS 0x1L -#else - FILEFLAGS 0x0L -#endif - FILEOS 0x4L - FILETYPE 0x2L - FILESUBTYPE 0x0L -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "080004b0" - BEGIN - VALUE "FileDescription", "Zero Notification Plugin for Miranda NG" - VALUE "FileVersion", "VER_MAJOR.VER_MINOR.VER_RELEASE.VER_BUILD" - VALUE "InternalName", "ZeroNotify" - VALUE "LegalCopyright", "© 2005 bidyut, © 2009 Maat" - VALUE "OriginalFilename", "zeronotifyw.dll" - VALUE "ProductName", "Zero Notification Plugin for Miranda NG" - VALUE "ProductVersion", "0.0.0.5" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x800, 1200 - END -END - -#endif // German (Germany) resources -///////////////////////////////////////////////////////////////////////////// - - -///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -#pragma code_page(1252) -#endif //_WIN32 - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -1 TEXTINCLUDE -BEGIN - "..\\src\\resource.\0" -END - -2 TEXTINCLUDE -BEGIN - "#include ""afxres.h""\r\n" - "\0" -END - -3 TEXTINCLUDE -BEGIN - "\r\n" - "\0" -END - -#endif // APSTUDIO_INVOKED - - -///////////////////////////////////////////////////////////////////////////// -// -// Dialog -// - -IDD_OPT_NOSOUND DIALOG 0, 0, 244, 145 -STYLE DS_SETFONT | DS_CENTER | WS_CHILD -FONT 8, "MS Shell Dlg" -BEGIN - CONTROL "Hide the ""toggle sound"" menu item (requires restart of Miranda)",IDC_HIDEMENU, - "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,133,234,10 - CONTROL "Tree1",IDC_NOSOUND,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_TABSTOP,4,22,77,105 - CONTROL "Tree1",IDC_NOBLINK,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_TABSTOP,87,22,73,105 - CONTROL "Tree1",IDC_NOCLCBLINK,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_NONEVENHEIGHT | WS_BORDER | WS_TABSTOP,165,22,73,105 - LTEXT "No sounds when:",IDC_STATIC,4,4,77,8 - LTEXT "No SysTray blink when:",IDC_STATIC,87,4,77,8 - LTEXT "No CLIST blink when:",IDC_STATIC,165,4,73,8 -END - - -///////////////////////////////////////////////////////////////////////////// -// -// DESIGNINFO -// - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO -BEGIN - IDD_OPT_NOSOUND, DIALOG - BEGIN - LEFTMARGIN, 4 - RIGHTMARGIN, 238 - TOPMARGIN, 4 - BOTTOMMARGIN, 126 - HORZGUIDE, 109 - HORZGUIDE, 143 - END -END -#endif // APSTUDIO_INVOKED - -#endif // English (U.S.) resources -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/plugins/ZeroNotification/src/common.h b/plugins/ZeroNotification/src/common.h index f40e68afb7..f881395cb5 100644 --- a/plugins/ZeroNotification/src/common.h +++ b/plugins/ZeroNotification/src/common.h @@ -1,5 +1,4 @@ #include -#include #include #include @@ -7,9 +6,13 @@ #include #include #include -#include #include +#include "version.h" +#include "resource.h" + +#define MODNAME "ZeroNotify" + #define DEFAULT_NOSOUND 0x00000000 #define DEFAULT_NOBLINK 0x00000000 #define DEFAULT_NOCLCBLINK 0x00000000 diff --git a/plugins/ZeroNotification/src/main.cpp b/plugins/ZeroNotification/src/main.cpp index 0262d6e885..ce1c802618 100644 --- a/plugins/ZeroNotification/src/main.cpp +++ b/plugins/ZeroNotification/src/main.cpp @@ -9,9 +9,7 @@ Miranda can be found here: http://miranda-ng.org/ */ -#include "version.h" #include "common.h" -#include "resource.h" HINSTANCE hInst; @@ -38,15 +36,16 @@ static const struct CheckBoxValues_t statusValues[]={ PLUGININFOEX pluginInfoEx = { sizeof(PLUGININFOEX), - PLUGINNAME, - PLUGIN_MAKE_VERSION(VER_MAJOR, VER_MINOR, VER_RELEASE, VER_BUILD), - DESCRIPTION, - AUTHOR, - "", - COPYRIGHT, - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, - { 0x47d489d3, 0x310d, 0x4ef6, { 0xbd, 0x5, 0x69, 0x9f, 0xff, 0xd5, 0xa4, 0xaa } } // {47D489D3-310D-4ef6-BD05-699FFFD5A4AA} + // {47D489D3-310D-4EF6-BD05-699FFFD5A4AA} + {0x47d489d3, 0x310d, 0x4ef6, {0xbd, 0x5, 0x69, 0x9f, 0xff, 0xd5, 0xa4, 0xaa}} }; extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion) @@ -117,9 +116,9 @@ static int SoundSettingChanged(WPARAM wParam,LPARAM lParam) static int SetNotify(const long status) { - DBWriteContactSettingByte(NULL,"Skin","UseSound", (BYTE) !(DBGetContactSettingDword(NULL,PLUGINNAME_SHORT,"NoSound",DEFAULT_NOSOUND) & status)); - DBWriteContactSettingByte(NULL,"CList","DisableTrayFlash", (BYTE) (DBGetContactSettingDword(NULL,PLUGINNAME_SHORT,"NoBlink",DEFAULT_NOBLINK) & status)); - DBWriteContactSettingByte(NULL,"CList","NoIconBlink", (BYTE) (DBGetContactSettingDword(NULL,PLUGINNAME_SHORT,"NoCLCBlink",DEFAULT_NOCLCBLINK) & status)); + DBWriteContactSettingByte(NULL,"Skin","UseSound", (BYTE) !(DBGetContactSettingDword(NULL, MODNAME, "NoSound",DEFAULT_NOSOUND) & status)); + DBWriteContactSettingByte(NULL,"CList","DisableTrayFlash", (BYTE) (DBGetContactSettingDword(NULL, MODNAME, "NoBlink",DEFAULT_NOBLINK) & status)); + DBWriteContactSettingByte(NULL,"CList","NoIconBlink", (BYTE) (DBGetContactSettingDword(NULL, MODNAME, "NoCLCBlink",DEFAULT_NOCLCBLINK) & status)); UpdateMenuItem(); return 0; @@ -156,11 +155,11 @@ static INT_PTR CALLBACK DlgProcNoSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam SetWindowLongPtr(GetDlgItem(hwndDlg,IDC_NOSOUND),GWL_STYLE,GetWindowLongPtr(GetDlgItem(hwndDlg,IDC_NOSOUND),GWL_STYLE)|TVS_NOHSCROLL|TVS_CHECKBOXES); SetWindowLongPtr(GetDlgItem(hwndDlg,IDC_NOBLINK),GWL_STYLE,GetWindowLongPtr(GetDlgItem(hwndDlg,IDC_NOBLINK),GWL_STYLE)|TVS_NOHSCROLL|TVS_CHECKBOXES); SetWindowLongPtr(GetDlgItem(hwndDlg,IDC_NOCLCBLINK),GWL_STYLE,GetWindowLongPtr(GetDlgItem(hwndDlg,IDC_NOCLCBLINK),GWL_STYLE)|TVS_NOHSCROLL|TVS_CHECKBOXES); - CheckDlgButton(hwndDlg, IDC_HIDEMENU, DBGetContactSettingByte(NULL,PLUGINNAME_SHORT,"HideMenu",1) ? BST_CHECKED : BST_UNCHECKED); + CheckDlgButton(hwndDlg, IDC_HIDEMENU, DBGetContactSettingByte(NULL, MODNAME, "HideMenu",1) ? BST_CHECKED : BST_UNCHECKED); - FillCheckBoxTree(GetDlgItem(hwndDlg,IDC_NOSOUND),statusValues,sizeof(statusValues)/sizeof(statusValues[0]),DBGetContactSettingDword(NULL,PLUGINNAME_SHORT,"NoSound",DEFAULT_NOSOUND)); - FillCheckBoxTree(GetDlgItem(hwndDlg,IDC_NOBLINK),statusValues,sizeof(statusValues)/sizeof(statusValues[0]),DBGetContactSettingDword(NULL,PLUGINNAME_SHORT,"NoBlink",DEFAULT_NOBLINK)); - FillCheckBoxTree(GetDlgItem(hwndDlg,IDC_NOCLCBLINK),statusValues,sizeof(statusValues)/sizeof(statusValues[0]),DBGetContactSettingDword(NULL,PLUGINNAME_SHORT,"NoCLCBlink",DEFAULT_NOCLCBLINK)); + FillCheckBoxTree(GetDlgItem(hwndDlg,IDC_NOSOUND),statusValues,sizeof(statusValues)/sizeof(statusValues[0]),DBGetContactSettingDword(NULL, MODNAME, "NoSound",DEFAULT_NOSOUND)); + FillCheckBoxTree(GetDlgItem(hwndDlg,IDC_NOBLINK),statusValues,sizeof(statusValues)/sizeof(statusValues[0]),DBGetContactSettingDword(NULL, MODNAME, "NoBlink",DEFAULT_NOBLINK)); + FillCheckBoxTree(GetDlgItem(hwndDlg,IDC_NOCLCBLINK),statusValues,sizeof(statusValues)/sizeof(statusValues[0]),DBGetContactSettingDword(NULL, MODNAME, "NoCLCBlink",DEFAULT_NOCLCBLINK)); return TRUE; case WM_COMMAND: SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); @@ -191,11 +190,11 @@ static INT_PTR CALLBACK DlgProcNoSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam case 0: switch (((LPNMHDR)lParam)->code) { case PSN_APPLY: - DBWriteContactSettingByte(NULL,PLUGINNAME_SHORT,"HideMenu",(BYTE)IsDlgButtonChecked(hwndDlg,IDC_HIDEMENU)); + DBWriteContactSettingByte(NULL, MODNAME, "HideMenu",(BYTE)IsDlgButtonChecked(hwndDlg,IDC_HIDEMENU)); - DBWriteContactSettingDword(NULL,PLUGINNAME_SHORT,"NoSound",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOSOUND))); - DBWriteContactSettingDword(NULL,PLUGINNAME_SHORT,"NoBlink",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOBLINK))); - DBWriteContactSettingDword(NULL,PLUGINNAME_SHORT,"NoCLCBlink",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOCLCBLINK))); + DBWriteContactSettingDword(NULL, MODNAME, "NoSound",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOSOUND))); + DBWriteContactSettingDword(NULL, MODNAME, "NoBlink",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOBLINK))); + DBWriteContactSettingDword(NULL, MODNAME, "NoCLCBlink",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOCLCBLINK))); test = DBGetContactSettingWord(NULL,"CList","Status",0); SetNotify(Proto_Status2Flag(DBGetContactSettingWord(NULL,"CList","Status",0))); @@ -239,15 +238,15 @@ extern "C" __declspec(dllexport) int Load(void) mir_getLP(&pluginInfoEx); //The menu item - begin - if (!DBGetContactSettingByte(NULL, PLUGINNAME_SHORT, "HideMenu", 1)) { - hSoundMenu = CreateServiceFunction(PLUGINNAME_SHORT "/MenuCommand", NoSoundMenuCommand); + if (!DBGetContactSettingByte(NULL, MODNAME, "HideMenu", 1)) { + hSoundMenu = CreateServiceFunction(MODNAME "/MenuCommand", NoSoundMenuCommand); CLISTMENUITEM mi = { sizeof(mi) }; mi.position = -0x7FFFFFFF; mi.flags = CMIF_TCHAR; UpdateMenuItem(); - mi.pszService = PLUGINNAME_SHORT "/MenuCommand"; + mi.pszService = MODNAME "/MenuCommand"; noSoundMenu = Menu_AddMainMenuItem(&mi); } //The menu item - end @@ -258,7 +257,7 @@ extern "C" __declspec(dllexport) int Load(void) hEventOptionsInitialize = HookEvent(ME_OPT_INITIALISE, OptionsInitialize); //Uninstall info - DBWriteContactSettingString(NULL, "Uninstall", PLUGINNAME_SHORT, PLUGINNAME_SHORT); + DBWriteContactSettingString(NULL, "Uninstall", MODNAME, MODNAME); return 0; } diff --git a/plugins/ZeroNotification/src/stdafx.cpp b/plugins/ZeroNotification/src/stdafx.cpp new file mode 100644 index 0000000000..1976d867da --- /dev/null +++ b/plugins/ZeroNotification/src/stdafx.cpp @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org) + +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 version 2 +of the License. + +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, see . +*/ + +#include "common.h" \ No newline at end of file diff --git a/plugins/ZeroNotification/src/version.h b/plugins/ZeroNotification/src/version.h index 4678228b05..cb392b4f2f 100644 --- a/plugins/ZeroNotification/src/version.h +++ b/plugins/ZeroNotification/src/version.h @@ -1,10 +1,14 @@ -#define VER_MAJOR 0 -#define VER_MINOR 0 -#define VER_RELEASE 0 -#define VER_BUILD 5 +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 0 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 5 -#define PLUGINNAME_SHORT "ZeroNotify" -#define PLUGINNAME "Zero Notifications" -#define DESCRIPTION "Adds options to automatically disable notifications when a protocol is in a certain status." -#define AUTHOR "bidyut (<0.0.0.5), Maat" -#define COPYRIGHT "© 2005 bidyut, © 2009 Maat" +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Zero notifications" +#define __FILENAME "ZeroNotify.dll" +#define __DESCRIPTION "Adds options to automatically disable notifications when a protocol is in a certain status." +#define __AUTHOR "bidyut, Maat" +#define __AUTHOREMAIL "" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2005 bidyut, 2009 Maat" -- cgit v1.2.3