From a42cae3b61b4696346033cbc257198f2708af486 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 14 Mar 2013 12:56:15 +0000 Subject: added precompiled header added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@4023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WhoUsesMyFiles/res/Version.rc | 38 ++++++++++++++++++ plugins/WhoUsesMyFiles/res/resource.rc | 54 ++++++-------------------- plugins/WhoUsesMyFiles/src/Version.h | 14 +++++++ plugins/WhoUsesMyFiles/src/resizer.cpp | 1 - plugins/WhoUsesMyFiles/src/stdafx.cpp | 18 +++++++++ plugins/WhoUsesMyFiles/src/wumf.cpp | 3 +- plugins/WhoUsesMyFiles/src/wumf.h | 22 +++++------ plugins/WhoUsesMyFiles/src/wumfplug.cpp | 14 +++---- plugins/WhoUsesMyFiles/wumf_10.vcxproj | 29 ++++++++++---- plugins/WhoUsesMyFiles/wumf_10.vcxproj.filters | 17 ++++++-- plugins/WhoUsesMyFiles/wumf_11.vcxproj | 21 ++++++++-- plugins/WhoUsesMyFiles/wumf_11.vcxproj.filters | 9 +++++ 12 files changed, 160 insertions(+), 80 deletions(-) create mode 100644 plugins/WhoUsesMyFiles/res/Version.rc create mode 100644 plugins/WhoUsesMyFiles/src/Version.h create mode 100644 plugins/WhoUsesMyFiles/src/stdafx.cpp diff --git a/plugins/WhoUsesMyFiles/res/Version.rc b/plugins/WhoUsesMyFiles/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/WhoUsesMyFiles/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/WhoUsesMyFiles/res/resource.rc b/plugins/WhoUsesMyFiles/res/resource.rc index a0333d96ef..c244c87231 100644 --- a/plugins/WhoUsesMyFiles/res/resource.rc +++ b/plugins/WhoUsesMyFiles/res/resource.rc @@ -13,12 +13,12 @@ #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// -// Russian resources +// English (U.S.) resources -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS) +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #ifdef _WIN32 -LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT -#pragma code_page(1251) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// @@ -39,44 +39,6 @@ BEGIN 200,WS_EX_CLIENTEDGE END - -///////////////////////////////////////////////////////////////////////////// -// -// DESIGNINFO -// - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO DISCARDABLE -BEGIN - IDD_CONNLIST, DIALOG - BEGIN - LEFTMARGIN, 4 - RIGHTMARGIN, 326 - TOPMARGIN, 4 - BOTTOMMARGIN, 226 - END -END -#endif // APSTUDIO_INVOKED - - -#endif // Russian 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 - -///////////////////////////////////////////////////////////////////////////// -// -// Dialog -// - IDD_OPTIONS DIALOGEX 0, 0, 330, 246 STYLE DS_MODALFRAME | DS_FIXEDSYS | WS_CHILD EXSTYLE WS_EX_CONTEXTHELP | WS_EX_CONTROLPARENT @@ -142,6 +104,14 @@ END #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO BEGIN + IDD_CONNLIST, DIALOG + BEGIN + LEFTMARGIN, 4 + RIGHTMARGIN, 326 + TOPMARGIN, 4 + BOTTOMMARGIN, 226 + END + IDD_OPTIONS, DIALOG BEGIN RIGHTMARGIN, 320 diff --git a/plugins/WhoUsesMyFiles/src/Version.h b/plugins/WhoUsesMyFiles/src/Version.h new file mode 100644 index 0000000000..803deaecb5 --- /dev/null +++ b/plugins/WhoUsesMyFiles/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 1 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 1 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Who Use My Files" +#define __FILENAME "WhoUsesMyFiles.dll" +#define __DESCRIPTION "Scans for network users of your shared files and notify you with popups." +#define __AUTHOR "Nikolay Redko" +#define __AUTHOREMAIL "nike000@users.sf.net" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2003 Nike" diff --git a/plugins/WhoUsesMyFiles/src/resizer.cpp b/plugins/WhoUsesMyFiles/src/resizer.cpp index 4fc7906441..17121b1e9f 100644 --- a/plugins/WhoUsesMyFiles/src/resizer.cpp +++ b/plugins/WhoUsesMyFiles/src/resizer.cpp @@ -1,5 +1,4 @@ #include "wumf.h" -#pragma hdrstop typedef struct { DWORD helpID; diff --git a/plugins/WhoUsesMyFiles/src/stdafx.cpp b/plugins/WhoUsesMyFiles/src/stdafx.cpp new file mode 100644 index 0000000000..d0b1b5a1f0 --- /dev/null +++ b/plugins/WhoUsesMyFiles/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 "wumf.h" \ No newline at end of file diff --git a/plugins/WhoUsesMyFiles/src/wumf.cpp b/plugins/WhoUsesMyFiles/src/wumf.cpp index 8eeb2308e0..4deb46a1b6 100644 --- a/plugins/WhoUsesMyFiles/src/wumf.cpp +++ b/plugins/WhoUsesMyFiles/src/wumf.cpp @@ -1,9 +1,10 @@ +#include "wumf.h" + #define MAX_CHARS 4096 #define WS_WINDOW_STYLE WS_OVERLAPPED #define NAME "WUMF" #define WM_MYCMD 0x0401 -#include "wumf.h" static PWumf list = NULL; static PWumf lst = NULL; diff --git a/plugins/WhoUsesMyFiles/src/wumf.h b/plugins/WhoUsesMyFiles/src/wumf.h index 331fa48eef..f817d6dbf9 100644 --- a/plugins/WhoUsesMyFiles/src/wumf.h +++ b/plugins/WhoUsesMyFiles/src/wumf.h @@ -1,25 +1,21 @@ #define _CRT_SECURE_NO_WARNINGS #include -#include #include -#include +#include #include -#include "newpluginapi.h" -#include "m_system.h" -#include "m_options.h" -#include "m_langpack.h" -#include "m_clui.h" -#include "m_clist.h" -#include "m_database.h" -#include "m_utils.h" -#include "m_skin.h" -#include "m_popup.h" +#include +#include +#include +#include +#include +#include -#include "m_toptoolbar.h" +#include #include "resource.h" +#include "Version.h" #define ModuleName "WUMF Plugin" diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp index b4af03a16b..9dd9c58c93 100644 --- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp +++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp @@ -8,13 +8,13 @@ HWND hDlg; static PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), - "WUMF: Who Use My Files?", - PLUGIN_MAKE_VERSION(0,1,0,1), - "Scans for network users of your shared files and notify you with popups. Uses PopUps Interoperability by Luca Santarelli. PopUps plugin must be activated!", - "Nikolay Redko", - "nike000@users.sf.net", - "© 2003 Nike. Freeware. Please mail me all bugs & your suggestions.", - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, // {80DCA515-973A-4A7E-8B85-5D8EC88FC5A7} {0x80dca515, 0x973a, 0x4a7e, {0x8b, 0x85, 0x5d, 0x8e, 0xc8, 0x8f, 0xc5, 0xa7}} diff --git a/plugins/WhoUsesMyFiles/wumf_10.vcxproj b/plugins/WhoUsesMyFiles/wumf_10.vcxproj index deb509dcca..7b37a26c10 100644 --- a/plugins/WhoUsesMyFiles/wumf_10.vcxproj +++ b/plugins/WhoUsesMyFiles/wumf_10.vcxproj @@ -79,14 +79,16 @@ EditAndContinue ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) true Windows $(IntDir)$(TargetName).lib false $(ProfileDir)..\..\bin10\lib + netapi32.lib;%(AdditionalDependencies) ..\..\include\msapi @@ -102,9 +104,11 @@ Level3 ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) + netapi32.lib;%(AdditionalDependencies) true Windows $(IntDir)$(TargetName).lib @@ -126,9 +130,11 @@ OnlyExplicitInline Size false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) + netapi32.lib;%(AdditionalDependencies) true Windows true @@ -153,9 +159,11 @@ OnlyExplicitInline Size false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) + netapi32.lib;%(AdditionalDependencies) true Windows true @@ -172,16 +180,21 @@ + + - - - - + + + + Create + + + diff --git a/plugins/WhoUsesMyFiles/wumf_10.vcxproj.filters b/plugins/WhoUsesMyFiles/wumf_10.vcxproj.filters index 0715f41ff1..b280af44ec 100644 --- a/plugins/WhoUsesMyFiles/wumf_10.vcxproj.filters +++ b/plugins/WhoUsesMyFiles/wumf_10.vcxproj.filters @@ -21,23 +21,32 @@ Header Files + + Header Files + Resource Files + + Resource Files + - + + Source Files + + Source Files - + Source Files - + Source Files - + Source Files diff --git a/plugins/WhoUsesMyFiles/wumf_11.vcxproj b/plugins/WhoUsesMyFiles/wumf_11.vcxproj index ff5bfc0617..6b2f4b4c72 100644 --- a/plugins/WhoUsesMyFiles/wumf_11.vcxproj +++ b/plugins/WhoUsesMyFiles/wumf_11.vcxproj @@ -83,14 +83,16 @@ EditAndContinue ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) true Windows $(IntDir)$(TargetName).lib false $(ProfileDir)..\..\bin11\lib + netapi32.lib;%(AdditionalDependencies) ..\..\include\msapi @@ -106,9 +108,11 @@ Level3 ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) + netapi32.lib;%(AdditionalDependencies) true Windows $(IntDir)$(TargetName).lib @@ -130,9 +134,11 @@ OnlyExplicitInline Size false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) + netapi32.lib;%(AdditionalDependencies) true Windows true @@ -157,9 +163,11 @@ OnlyExplicitInline Size false + Use + wumf.h - user32.lib;netapi32.lib;comdlg32.lib;shlwapi.lib;%(AdditionalDependencies) + netapi32.lib;%(AdditionalDependencies) true Windows true @@ -176,14 +184,19 @@ + + + + Create + diff --git a/plugins/WhoUsesMyFiles/wumf_11.vcxproj.filters b/plugins/WhoUsesMyFiles/wumf_11.vcxproj.filters index 85033f9eec..b280af44ec 100644 --- a/plugins/WhoUsesMyFiles/wumf_11.vcxproj.filters +++ b/plugins/WhoUsesMyFiles/wumf_11.vcxproj.filters @@ -21,11 +21,17 @@ Header Files + + Header Files + Resource Files + + Resource Files + @@ -40,5 +46,8 @@ Source Files + + Source Files + \ No newline at end of file -- cgit v1.2.3