From 9735ce40045bdc429bae8c79a8051af4106d6e49 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 3 Mar 2013 10:11:35 +0000 Subject: added precompiled header added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/OpenFolder/openFolder_10.vcxproj | 13 ++++++++ plugins/OpenFolder/openFolder_10.vcxproj.filters | 9 ++++++ plugins/OpenFolder/openFolder_11.vcxproj | 13 ++++++++ plugins/OpenFolder/openFolder_11.vcxproj.filters | 9 ++++++ plugins/OpenFolder/res/Version.rc | 38 ++++++++++++++++++++++++ plugins/OpenFolder/src/Version.h | 14 +++++++++ plugins/OpenFolder/src/openFolder.cpp | 27 +++++++++-------- plugins/OpenFolder/src/openFolder.h | 12 ++++---- plugins/OpenFolder/src/stdafx.cpp | 18 +++++++++++ 9 files changed, 133 insertions(+), 20 deletions(-) create mode 100644 plugins/OpenFolder/res/Version.rc create mode 100644 plugins/OpenFolder/src/Version.h create mode 100644 plugins/OpenFolder/src/stdafx.cpp (limited to 'plugins/OpenFolder') diff --git a/plugins/OpenFolder/openFolder_10.vcxproj b/plugins/OpenFolder/openFolder_10.vcxproj index fd606e5cb3..686bac5ee2 100644 --- a/plugins/OpenFolder/openFolder_10.vcxproj +++ b/plugins/OpenFolder/openFolder_10.vcxproj @@ -80,6 +80,8 @@ Level3 EditAndContinue false + Use + openFolder.h _DEBUG;%(PreprocessorDefinitions) @@ -102,6 +104,8 @@ MultiThreadedDebugDLL Level3 false + Use + openFolder.h _DEBUG;%(PreprocessorDefinitions) @@ -126,6 +130,8 @@ Level3 Size false + Use + openFolder.h NDEBUG;%(PreprocessorDefinitions) @@ -153,6 +159,8 @@ Level3 Size false + Use + openFolder.h NDEBUG;%(PreprocessorDefinitions) @@ -171,13 +179,18 @@ + + Create + + + diff --git a/plugins/OpenFolder/openFolder_10.vcxproj.filters b/plugins/OpenFolder/openFolder_10.vcxproj.filters index 730e3a5a42..aec0411277 100644 --- a/plugins/OpenFolder/openFolder_10.vcxproj.filters +++ b/plugins/OpenFolder/openFolder_10.vcxproj.filters @@ -21,15 +21,24 @@ Header Files + + Header Files + Resource Files + + Resource Files + Source Files + + Source Files + \ No newline at end of file diff --git a/plugins/OpenFolder/openFolder_11.vcxproj b/plugins/OpenFolder/openFolder_11.vcxproj index baadf659ee..b604e15390 100644 --- a/plugins/OpenFolder/openFolder_11.vcxproj +++ b/plugins/OpenFolder/openFolder_11.vcxproj @@ -84,6 +84,8 @@ Level3 EditAndContinue false + Use + openFolder.h _DEBUG;%(PreprocessorDefinitions) @@ -106,6 +108,8 @@ MultiThreadedDebugDLL Level3 false + Use + openFolder.h _DEBUG;%(PreprocessorDefinitions) @@ -130,6 +134,8 @@ Level3 Size false + Use + openFolder.h NDEBUG;%(PreprocessorDefinitions) @@ -157,6 +163,8 @@ Level3 Size false + Use + openFolder.h NDEBUG;%(PreprocessorDefinitions) @@ -175,13 +183,18 @@ + + Create + + + diff --git a/plugins/OpenFolder/openFolder_11.vcxproj.filters b/plugins/OpenFolder/openFolder_11.vcxproj.filters index 730e3a5a42..aec0411277 100644 --- a/plugins/OpenFolder/openFolder_11.vcxproj.filters +++ b/plugins/OpenFolder/openFolder_11.vcxproj.filters @@ -21,15 +21,24 @@ Header Files + + Header Files + Resource Files + + Resource Files + Source Files + + Source Files + \ No newline at end of file diff --git a/plugins/OpenFolder/res/Version.rc b/plugins/OpenFolder/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/OpenFolder/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/OpenFolder/src/Version.h b/plugins/OpenFolder/src/Version.h new file mode 100644 index 0000000000..df9dce8720 --- /dev/null +++ b/plugins/OpenFolder/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 1 +#define __MINOR_VERSION 1 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 0 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Open Miranda folder" +#define __FILENAME "OpenFolder.dll" +#define __DESCRIPTION "Adds a menu/toobar item which opens the main Miranda NG folder." +#define __AUTHOR "jarvis, Kreisquadratur" +#define __AUTHOREMAIL "jarvis@jabber.cz, djui@kreisquadratur.de" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2008 jarvis, © 2004 Kreisquadratur" diff --git a/plugins/OpenFolder/src/openFolder.cpp b/plugins/OpenFolder/src/openFolder.cpp index cb80d357dc..e04d199764 100644 --- a/plugins/OpenFolder/src/openFolder.cpp +++ b/plugins/OpenFolder/src/openFolder.cpp @@ -6,21 +6,22 @@ HANDLE hServiceOpenFolder, hButtonTopToolbar; PLUGININFOEX pluginInfoEx = { - sizeof( PLUGININFOEX ), - "Open Miranda Folder", - OPENFOLDER_VERSION, - OPENFOLDER_DESCRIPTION, - "jarvis, Kreisquadratur", - "jarvis@jabber.cz, djui@kreisquadratur.de", - "© 2008 jarvis, © 2004 Kreisquadratur", - "http://miranda-ng.org/", - UNICODE_AWARE, //not transient - { 0x10896143, 0x7249, 0x4b36, { 0xa4, 0x8, 0x65, 0x1, 0xa6, 0xb6, 0x3, 0x5a } } // {10896143-7249-4b36-A408-6501A6B6035A} + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + // {10896143-7249-4B36-A408-6501A6B6035A} + {0x10896143, 0x7249, 0x4b36, {0xa4, 0x8, 0x65, 0x1, 0xa6, 0xb6, 0x3, 0x5a}} }; static IconItem icon = { LPGEN("Open Folder"), "open", IDI_FOLDER }; -BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { hInst = hinstDLL; return TRUE; @@ -57,14 +58,14 @@ static int ToptoolBarHook(WPARAM wParam, LPARAM lParam) static int ModulesLoaded(WPARAM wParam, LPARAM lParam) { - HookEvent(ME_TTB_MODULELOADED,ToptoolBarHook); + HookEvent(ME_TTB_MODULELOADED, ToptoolBarHook); // icolib (0.7+) Icon_Register(hInst, LPGEN("Open Folder"), &icon, 1, OPENFOLDER_MODULE_NAME); // hotkeys service (0.8+) HOTKEYDESC hotkey = { 0 }; - hotkey.cbSize = sizeof( hotkey ); + hotkey.cbSize = sizeof(hotkey); hotkey.dwFlags = HKD_TCHAR; hotkey.pszName = "Open Folder"; hotkey.ptszDescription = LPGENT("Open Folder"); diff --git a/plugins/OpenFolder/src/openFolder.h b/plugins/OpenFolder/src/openFolder.h index ad5d7222e7..dc4b22df18 100644 --- a/plugins/OpenFolder/src/openFolder.h +++ b/plugins/OpenFolder/src/openFolder.h @@ -1,21 +1,19 @@ #include #include -#include "resource.h" #include #include #include #include -#include -#include #include #include -#include #include +#include + +#include "resource.h" +#include "Version.h" + #define MS_OPENFOLDER_OPEN "openFolder/Open" -#define OPENFOLDER_VERSION PLUGIN_MAKE_VERSION( 1, 1, 0, 0 ) -#define OPENFOLDER_DESCRIPTION "Adds a menu/toobar item which opens the main Miranda NG folder." -//#define OPENFOLDER_DB_MODULENAME "openFolder" #define OPENFOLDER_MODULE_NAME "openfolder" diff --git a/plugins/OpenFolder/src/stdafx.cpp b/plugins/OpenFolder/src/stdafx.cpp new file mode 100644 index 0000000000..fb0f05ab49 --- /dev/null +++ b/plugins/OpenFolder/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 "openFolder.h" \ No newline at end of file -- cgit v1.2.3