diff options
Diffstat (limited to 'plugins/OpenFolder')
-rw-r--r-- | plugins/OpenFolder/openFolder_10.vcxproj | 13 | ||||
-rw-r--r-- | plugins/OpenFolder/openFolder_10.vcxproj.filters | 9 | ||||
-rw-r--r-- | plugins/OpenFolder/openFolder_11.vcxproj | 13 | ||||
-rw-r--r-- | plugins/OpenFolder/openFolder_11.vcxproj.filters | 9 | ||||
-rw-r--r-- | plugins/OpenFolder/res/Version.rc | 38 | ||||
-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 |
9 files changed, 133 insertions, 20 deletions
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 @@ <WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -102,6 +104,8 @@ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -126,6 +130,8 @@ <WarningLevel>Level3</WarningLevel>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -153,6 +159,8 @@ <WarningLevel>Level3</WarningLevel>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -171,13 +179,18 @@ </ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="src\openFolder.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\openFolder.h" />
<ClInclude Include="src\resource.h" />
+ <ClInclude Include="src\Version.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
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 @@ <ClInclude Include="src\resource.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\openFolder.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project>
\ 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 @@ <WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -106,6 +108,8 @@ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -130,6 +134,8 @@ <WarningLevel>Level3</WarningLevel>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -157,6 +163,8 @@ <WarningLevel>Level3</WarningLevel>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>openFolder.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -175,13 +183,18 @@ </ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="src\openFolder.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\openFolder.h" />
<ClInclude Include="src\resource.h" />
+ <ClInclude Include="src\Version.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
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 @@ <ClInclude Include="src\resource.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\openFolder.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project>
\ 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 <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 |