diff options
| author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-03 10:11:35 +0000 | 
|---|---|---|
| committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-03 10:11:35 +0000 | 
| commit | 9735ce40045bdc429bae8c79a8051af4106d6e49 (patch) | |
| tree | 9072b8f3bd030a22e75d5d6215b65dc0eace81c1 /plugins/OpenFolder/src | |
| parent | 7770aeae9c1872650e6e25c3e3ae9f5f0619a7e3 (diff) | |
added precompiled header
added version info
git-svn-id: http://svn.miranda-ng.org/main/trunk@3861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/OpenFolder/src')
| -rw-r--r-- | plugins/OpenFolder/src/Version.h | 14 | ||||
| -rw-r--r-- | plugins/OpenFolder/src/openFolder.cpp | 27 | ||||
| -rw-r--r-- | plugins/OpenFolder/src/openFolder.h | 12 | ||||
| -rw-r--r-- | plugins/OpenFolder/src/stdafx.cpp | 18 | 
4 files changed, 51 insertions, 20 deletions
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 <windows.h>
  #include <commctrl.h>
 -#include "resource.h"
  #include <newpluginapi.h>
  #include <m_clist.h>
  #include <m_icolib.h>
  #include <m_langpack.h>
 -#include <m_skin.h>
 -#include <m_system.h>
  #include <m_utils.h>
  #include <m_hotkeys.h>
 -#include <m_toptoolbar.h>
  #include <win2k.h>
 +#include <m_toptoolbar.h>
 +
 +#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 <http://www.gnu.org/licenses/>.
 +*/
 +
 +#include "openFolder.h"
\ No newline at end of file  | 
