From c88da6458529946933cb458bc79f5484a70899cc Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 2 Mar 2013 19:12:12 +0000 Subject: removed not used headers added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3851 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NoHistory/NoHistory_10.vcxproj | 67 +++++++------------------- plugins/NoHistory/NoHistory_10.vcxproj.filters | 23 ++++----- plugins/NoHistory/NoHistory_11.vcxproj | 67 +++++++------------------- plugins/NoHistory/NoHistory_11.vcxproj.filters | 23 ++++----- plugins/NoHistory/res/NoHistory.rc | 33 +++++-------- plugins/NoHistory/res/Version.rc | 38 +++++++++++++++ plugins/NoHistory/res/private.rc | 35 -------------- plugins/NoHistory/res/resource.rc | 2 - plugins/NoHistory/src/Version.h | 14 ++++++ plugins/NoHistory/src/common.h | 14 ++---- plugins/NoHistory/src/dllmain.cpp | 31 +++++------- plugins/NoHistory/src/icons.cpp | 2 - plugins/NoHistory/src/options.cpp | 3 -- plugins/NoHistory/src/private.h | 24 --------- 14 files changed, 134 insertions(+), 242 deletions(-) create mode 100644 plugins/NoHistory/res/Version.rc delete mode 100644 plugins/NoHistory/res/private.rc delete mode 100644 plugins/NoHistory/res/resource.rc create mode 100644 plugins/NoHistory/src/Version.h delete mode 100644 plugins/NoHistory/src/private.h diff --git a/plugins/NoHistory/NoHistory_10.vcxproj b/plugins/NoHistory/NoHistory_10.vcxproj index 8e15e8b938..c687f3775a 100644 --- a/plugins/NoHistory/NoHistory_10.vcxproj +++ b/plugins/NoHistory/NoHistory_10.vcxproj @@ -21,8 +21,6 @@ NoHistory {ABF05E2C-C335-4BD1-8C3E-4C63285362CF} - NoHistory - Win32Proj @@ -65,24 +63,17 @@ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)\Plugins\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - false $(SolutionDir)$(Configuration)64\Plugins\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)64\Plugins\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - false - true - true - false - false - true - true + true Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -96,8 +87,6 @@ Comctl32.lib;%(AdditionalDependencies) Windows - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin10\lib false @@ -105,24 +94,22 @@ ..\..\include\msapi + _DEBUG;%(PreprocessorDefinitions) Full Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false - MultiThreadedDLL false Fast - false Use common.h Level3 - ProgramDatabase 4996;%(DisableSpecificWarnings) OnlyExplicitInline @@ -131,8 +118,6 @@ Windows true true - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin10\lib false @@ -141,31 +126,26 @@ ..\..\include\msapi + NDEBUG;%(PreprocessorDefinitions) - - X64 - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN64;_DEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL Use common.h Level3 - ProgramDatabase 4996;%(DisableSpecificWarnings) false Comctl32.lib;%(AdditionalDependencies) Windows - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin10\lib false @@ -173,27 +153,22 @@ ..\..\include\msapi + _DEBUG;%(PreprocessorDefinitions) - - X64 - Full Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN64;NDEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false - MultiThreadedDLL false Fast - false Use common.h Level3 - ProgramDatabase 4996;%(DisableSpecificWarnings) OnlyExplicitInline @@ -202,8 +177,6 @@ Windows true true - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin10\lib false @@ -212,17 +185,9 @@ ..\..\include\msapi + NDEBUG;%(PreprocessorDefinitions) - - - true - - - true - - - Create @@ -235,8 +200,12 @@ - + + + + + diff --git a/plugins/NoHistory/NoHistory_10.vcxproj.filters b/plugins/NoHistory/NoHistory_10.vcxproj.filters index 410d909093..950287abcb 100644 --- a/plugins/NoHistory/NoHistory_10.vcxproj.filters +++ b/plugins/NoHistory/NoHistory_10.vcxproj.filters @@ -14,17 +14,6 @@ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - Resource Files - - - Resource Files - - - Resource Files - - Source Files @@ -49,11 +38,19 @@ Header Files - + Header Files - + Header Files + + + Resource Files + + + Resource Files + + \ No newline at end of file diff --git a/plugins/NoHistory/NoHistory_11.vcxproj b/plugins/NoHistory/NoHistory_11.vcxproj index d3eb68dc0c..588f310ff4 100644 --- a/plugins/NoHistory/NoHistory_11.vcxproj +++ b/plugins/NoHistory/NoHistory_11.vcxproj @@ -21,8 +21,6 @@ NoHistory {ABF05E2C-C335-4BD1-8C3E-4C63285362CF} - NoHistory - Win32Proj @@ -69,24 +67,17 @@ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)\Plugins\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - false $(SolutionDir)$(Configuration)64\Plugins\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ $(SolutionDir)$(Configuration)64\Plugins\ $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - false - true - true - false - false - true - true + true Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -100,8 +91,6 @@ Comctl32.lib;%(AdditionalDependencies) Windows - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin11\lib false @@ -109,24 +98,22 @@ ..\..\include\msapi + _DEBUG;%(PreprocessorDefinitions) Full Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false - MultiThreadedDLL false Fast - false Use common.h Level3 - ProgramDatabase 4996;%(DisableSpecificWarnings) OnlyExplicitInline @@ -135,8 +122,6 @@ Windows true true - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin11\lib false @@ -145,31 +130,26 @@ ..\..\include\msapi + NDEBUG;%(PreprocessorDefinitions) - - X64 - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN64;_DEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL Use common.h Level3 - ProgramDatabase 4996;%(DisableSpecificWarnings) false Comctl32.lib;%(AdditionalDependencies) Windows - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin11\lib false @@ -177,27 +157,22 @@ ..\..\include\msapi + _DEBUG;%(PreprocessorDefinitions) - - X64 - Full Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - WIN64;NDEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + ..\..\include;%(AdditionalIncludeDirectories) + WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true false - MultiThreadedDLL false Fast - false Use common.h Level3 - ProgramDatabase 4996;%(DisableSpecificWarnings) OnlyExplicitInline @@ -206,8 +181,6 @@ Windows true true - - $(IntDir)$(TargetName).lib $(ProfileDir)..\..\bin11\lib false @@ -216,17 +189,9 @@ ..\..\include\msapi + NDEBUG;%(PreprocessorDefinitions) - - - true - - - true - - - Create @@ -239,8 +204,12 @@ - + + + + + diff --git a/plugins/NoHistory/NoHistory_11.vcxproj.filters b/plugins/NoHistory/NoHistory_11.vcxproj.filters index 410d909093..950287abcb 100644 --- a/plugins/NoHistory/NoHistory_11.vcxproj.filters +++ b/plugins/NoHistory/NoHistory_11.vcxproj.filters @@ -14,17 +14,6 @@ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - Resource Files - - - Resource Files - - - Resource Files - - Source Files @@ -49,11 +38,19 @@ Header Files - + Header Files - + Header Files + + + Resource Files + + + Resource Files + + \ No newline at end of file diff --git a/plugins/NoHistory/res/NoHistory.rc b/plugins/NoHistory/res/NoHistory.rc index d24f904c35..eb90de88bb 100644 --- a/plugins/NoHistory/res/NoHistory.rc +++ b/plugins/NoHistory/res/NoHistory.rc @@ -27,21 +27,10 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. -IDI_HKEEP ICON DISCARDABLE "history_enabled.ico" -IDI_HREMOVE ICON DISCARDABLE "history_disabled.ico" -IDI_HCLEAR ICON DISCARDABLE "history_clear.ico" -#endif // Neutral (Default) resources -///////////////////////////////////////////////////////////////////////////// - +IDI_HKEEP ICON "history_enabled.ico" +IDI_HREMOVE ICON "history_disabled.ico" +IDI_HCLEAR ICON "history_clear.ico" -///////////////////////////////////////////////////////////////////////////// -// English (Australia) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS -#pragma code_page(1252) -#endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// @@ -49,19 +38,19 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS // TEXTINCLUDE // -1 TEXTINCLUDE MOVEABLE PURE +1 TEXTINCLUDE BEGIN - "resource.h\0" + "..\\src\\resource.h\0" END -3 TEXTINCLUDE MOVEABLE PURE +2 TEXTINCLUDE BEGIN - "\r\0" + "#include ""afxres.h""\r\0" END -2 TEXTINCLUDE MOVEABLE PURE +3 TEXTINCLUDE BEGIN - "#include ""afxres.h""\r\0" + "\r\0" END #endif // APSTUDIO_INVOKED @@ -94,7 +83,7 @@ END // #ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO MOVEABLE PURE +GUIDELINES DESIGNINFO BEGIN IDD_OPT, DIALOG BEGIN @@ -108,7 +97,7 @@ BEGIN END #endif // APSTUDIO_INVOKED -#endif // English (Australia) resources +#endif // Neutral (Default) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/plugins/NoHistory/res/Version.rc b/plugins/NoHistory/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/NoHistory/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/NoHistory/res/private.rc b/plugins/NoHistory/res/private.rc deleted file mode 100644 index 0cf871117d..0000000000 --- a/plugins/NoHistory/res/private.rc +++ /dev/null @@ -1,35 +0,0 @@ -/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ -/* DO NOT EDIT! */ - -#include "..\src\private.h" -#include "afxres.h" -// -// TO CHANGE VERSION INFORMATION, EDIT PROJECT OPTIONS... -// -1 VERSIONINFO -FILEVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD -PRODUCTVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD -FILETYPE VFT_DLL -{ - BLOCK "StringFileInfo" - { - BLOCK "0C0904E4" - { - VALUE "CompanyName", COMPANY_NAME - VALUE "FileVersion", FILE_VERSION - VALUE "FileDescription", FILE_DESCRIPTION - VALUE "InternalName", INTERNAL_NAME - VALUE "LegalCopyright", LEGAL_COPYRIGHT - VALUE "LegalTrademarks", LEGAL_TRADEMARKS - VALUE "OriginalFilename", ORIGINAL_FILENAME - VALUE "ProductName", PRODUCT_NAME - VALUE "ProductVersion", PRODUCT_VERSION - } - } - BLOCK "VarFileInfo" - { - VALUE "Translation", 0x0C09, 1252 - } -} - - diff --git a/plugins/NoHistory/res/resource.rc b/plugins/NoHistory/res/resource.rc deleted file mode 100644 index 12fdadcee4..0000000000 --- a/plugins/NoHistory/res/resource.rc +++ /dev/null @@ -1,2 +0,0 @@ -#include "NoHistory.rc" -#include "private.rc" diff --git a/plugins/NoHistory/src/Version.h b/plugins/NoHistory/src/Version.h new file mode 100644 index 0000000000..880fcd526d --- /dev/null +++ b/plugins/NoHistory/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 2 +#define __RELEASE_NUM 3 +#define __BUILD_NUM 0 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "NoHistory" +#define __FILENAME "NoHistory.dll" +#define __DESCRIPTION "Prevent miranda from storing any history." +#define __AUTHOR "Scott Ellis, NightFox" +#define __AUTHOREMAIL "mail@scottellis.com.au; nightfox@myied.org" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2005 Scott Ellis, 2010 NightFox" diff --git a/plugins/NoHistory/src/common.h b/plugins/NoHistory/src/common.h index 123dd68f46..d00d444593 100644 --- a/plugins/NoHistory/src/common.h +++ b/plugins/NoHistory/src/common.h @@ -1,19 +1,14 @@ -#define MIRANDA_VER 0x800 - #ifndef _COMMON_INC #define _COMMON_INC #define _WIN32_WINNT 0x0501 #define _WIN32_IE 0x0500 -#include - #include #include #include #include -#include #include #include #include @@ -24,17 +19,16 @@ #include #include -#include +#include "resource.h" +#include "icons.h" +#include "options.h" +#include "Version.h" #define MODULE "NoHistory" #define DBSETTING_REMOVE "RemoveHistory" extern HINSTANCE hInst; -#ifndef MIID_NOHISTORY -#define MIID_NOHISTORY {0xe9ba130e, 0x9927, 0x4469, { 0xb6, 0x19, 0x95, 0x61, 0xa8, 0xc0, 0x57, 0xa7}} -#endif - #endif diff --git a/plugins/NoHistory/src/dllmain.cpp b/plugins/NoHistory/src/dllmain.cpp index 013767b46f..dfa1b2c124 100644 --- a/plugins/NoHistory/src/dllmain.cpp +++ b/plugins/NoHistory/src/dllmain.cpp @@ -1,15 +1,5 @@ -/* Replace "dll.h" with the name of your header */ #include "common.h" -#include "private.h" -#include "resource.h" -#include "icons.h" -#include "options.h" -#include - -/////////////////////////////////////////////// -// Common Plugin Stuff -/////////////////////////////////////////////// HINSTANCE hInst; int hLangpack = 0; @@ -39,18 +29,19 @@ EventListNode *event_list = 0; PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), - MODULE, - PLUGIN_MAKE_VERSION(VER_MAJOR, VER_MINOR, VER_RELEASE, VER_BUILD), - DESC_STRING, - "Scott Ellis, NightFox", - "mail@scottellis.com.au; nightfox@myied.org", - "© 2005 Scott Ellis; NightFox 2010", - "http://www.scottellis.com.au/", - UNICODE_AWARE, //not transient - { 0xb25e8c7b, 0x292b, 0x495a, { 0x9f, 0xb8, 0xa4, 0xc3, 0xd4, 0xee, 0xb0, 0x4b } } // {B25E8C7B-292B-495a-9FB8-A4C3D4EEB04B} + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + // {B25E8C7B-292B-495A-9FB8-A4C3D4EEB04B} + {0xb25e8c7b, 0x292b, 0x495a, {0x9f, 0xb8, 0xa4, 0xc3, 0xd4, 0xee, 0xb0, 0x4b}} }; -extern "C" BOOL APIENTRY DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { hInst = hinstDLL; return TRUE; diff --git a/plugins/NoHistory/src/icons.cpp b/plugins/NoHistory/src/icons.cpp index f823517f11..1caba1122e 100644 --- a/plugins/NoHistory/src/icons.cpp +++ b/plugins/NoHistory/src/icons.cpp @@ -1,6 +1,4 @@ #include "common.h" -#include "icons.h" -#include "resource.h" HICON hIconRemove, hIconKeep, hIconClear; diff --git a/plugins/NoHistory/src/options.cpp b/plugins/NoHistory/src/options.cpp index 6f5f043f17..5f9c256492 100644 --- a/plugins/NoHistory/src/options.cpp +++ b/plugins/NoHistory/src/options.cpp @@ -1,7 +1,4 @@ #include "common.h" -#include "options.h" -#include "resource.h" -#include "icons.h" static void SetListGroupIcons(HWND hwndList,HANDLE hFirstItem,HANDLE hParentItem,int *groupChildCount) { diff --git a/plugins/NoHistory/src/private.h b/plugins/NoHistory/src/private.h deleted file mode 100644 index 535dd34c5f..0000000000 --- a/plugins/NoHistory/src/private.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef _PRIVATE_H -#define _PRIVATE_H - -/* VERSION DEFINITIONS */ -#define VER_MAJOR 0 -#define VER_MINOR 2 -#define VER_RELEASE 3 -#define VER_BUILD 0 - -#define __STRINGIZE(x) #x -#define VER_STRING __STRINGIZE( VER_MAJOR.VER_MINOR.VER_RELEASE.VER_BUILD ) - -#define DESC_STRING "Prevent miranda from storing any history" -#define COMPANY_NAME "" -#define FILE_VERSION VER_STRING -#define FILE_DESCRIPTION DESC_STRING -#define INTERNAL_NAME "" -#define LEGAL_COPYRIGHT "© Scott Ellis 2005; NightFox 2010" -#define LEGAL_TRADEMARKS "" -#define ORIGINAL_FILENAME "no_history.dll" -#define PRODUCT_NAME DESC_STRING -#define PRODUCT_VERSION VER_STRING - -#endif /*OTR_PRIVATE_H*/ -- cgit v1.2.3