From e7c68ba44e35f115654f6f082565ee5ddf2b51c6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 27 Apr 2015 20:56:43 +0000 Subject: CyrTranslit - unified project git-svn-id: http://svn.miranda-ng.org/main/trunk@13209 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CyrTranslit/CyrTranslit.vcxproj | 33 ++++ plugins/CyrTranslit/CyrTranslit.vcxproj.filters | 4 + plugins/CyrTranslit/CyrTranslit_10.vcxproj | 193 -------------------- plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters | 59 ------- plugins/CyrTranslit/CyrTranslit_12.vcxproj | 196 --------------------- plugins/CyrTranslit/CyrTranslit_12.vcxproj.filters | 59 ------- plugins/CyrTranslit/src/MirandaContact.cpp | 6 +- plugins/CyrTranslit/src/MirandaContact.h | 2 +- plugins/CyrTranslit/src/TransliterationMap.cpp | 2 +- plugins/CyrTranslit/src/TransliterationMap.h | 2 +- .../CyrTranslit/src/TransliterationProtocol.cpp | 8 +- plugins/CyrTranslit/src/TransliterationProtocol.h | 2 +- plugins/CyrTranslit/src/main.cpp | 6 +- plugins/CyrTranslit/src/plugin.h | 34 ---- plugins/CyrTranslit/src/stdafx.cpp | 18 -- plugins/CyrTranslit/src/stdafx.cxx | 18 ++ plugins/CyrTranslit/src/stdafx.h | 32 ++++ 17 files changed, 101 insertions(+), 573 deletions(-) create mode 100644 plugins/CyrTranslit/CyrTranslit.vcxproj create mode 100644 plugins/CyrTranslit/CyrTranslit.vcxproj.filters delete mode 100644 plugins/CyrTranslit/CyrTranslit_10.vcxproj delete mode 100644 plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters delete mode 100644 plugins/CyrTranslit/CyrTranslit_12.vcxproj delete mode 100644 plugins/CyrTranslit/CyrTranslit_12.vcxproj.filters delete mode 100644 plugins/CyrTranslit/src/plugin.h delete mode 100644 plugins/CyrTranslit/src/stdafx.cpp create mode 100644 plugins/CyrTranslit/src/stdafx.cxx create mode 100644 plugins/CyrTranslit/src/stdafx.h (limited to 'plugins/CyrTranslit') diff --git a/plugins/CyrTranslit/CyrTranslit.vcxproj b/plugins/CyrTranslit/CyrTranslit.vcxproj new file mode 100644 index 0000000000..f0a0f99997 --- /dev/null +++ b/plugins/CyrTranslit/CyrTranslit.vcxproj @@ -0,0 +1,33 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + CyrTranslit + {0BB52326-02D5-4698-A180-24078DA5DA0E} + + + + + + + Sync + + + \ No newline at end of file diff --git a/plugins/CyrTranslit/CyrTranslit.vcxproj.filters b/plugins/CyrTranslit/CyrTranslit.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/CyrTranslit/CyrTranslit.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/CyrTranslit/CyrTranslit_10.vcxproj b/plugins/CyrTranslit/CyrTranslit_10.vcxproj deleted file mode 100644 index ac6dd14524..0000000000 --- a/plugins/CyrTranslit/CyrTranslit_10.vcxproj +++ /dev/null @@ -1,193 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - CyrTranslit - {0BB52326-02D5-4698-A180-24078DA5DA0E} - - - - DynamicLibrary - MultiByte - true - - - DynamicLibrary - MultiByte - true - - - DynamicLibrary - MultiByte - - - DynamicLibrary - MultiByte - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - ..\..\include;%(AdditionalIncludeDirectories) - Use - plugin.h - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - - - - - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - ..\..\include;%(AdditionalIncludeDirectories) - Use - plugin.h - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - - - - - Full - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - ..\..\include;%(AdditionalIncludeDirectories) - Size - Use - plugin.h - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Full - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - ..\..\include;%(AdditionalIncludeDirectories) - Size - Use - plugin.h - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - - - Create - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters b/plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters deleted file mode 100644 index 00812bb0dd..0000000000 --- a/plugins/CyrTranslit/CyrTranslit_10.vcxproj.filters +++ /dev/null @@ -1,59 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/CyrTranslit/CyrTranslit_12.vcxproj b/plugins/CyrTranslit/CyrTranslit_12.vcxproj deleted file mode 100644 index a84b80b947..0000000000 --- a/plugins/CyrTranslit/CyrTranslit_12.vcxproj +++ /dev/null @@ -1,196 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - CyrTranslit - {0BB52326-02D5-4698-A180-24078DA5DA0E} - - - - DynamicLibrary - MultiByte - true - v120_xp - - - DynamicLibrary - MultiByte - true - v120_xp - - - DynamicLibrary - MultiByte - v120_xp - - - DynamicLibrary - MultiByte - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - ..\..\include;%(AdditionalIncludeDirectories) - Use - plugin.h - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - false - - - - - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - ..\..\include;%(AdditionalIncludeDirectories) - Use - plugin.h - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - - - Full - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - ..\..\include;%(AdditionalIncludeDirectories) - Size - Use - plugin.h - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - - - Full - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - ..\..\include;%(AdditionalIncludeDirectories) - Size - Use - plugin.h - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - - - - - Create - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/CyrTranslit/CyrTranslit_12.vcxproj.filters b/plugins/CyrTranslit/CyrTranslit_12.vcxproj.filters deleted file mode 100644 index 00812bb0dd..0000000000 --- a/plugins/CyrTranslit/CyrTranslit_12.vcxproj.filters +++ /dev/null @@ -1,59 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/CyrTranslit/src/MirandaContact.cpp b/plugins/CyrTranslit/src/MirandaContact.cpp index 3114a0b4e2..80baac3387 100644 --- a/plugins/CyrTranslit/src/MirandaContact.cpp +++ b/plugins/CyrTranslit/src/MirandaContact.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "plugin.h" +#include "stdafx.h" namespace CyrTranslit { @@ -78,7 +78,7 @@ void MirandaContact::addMenuItem() //------------------------------------------------------------------------------ -INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam) +INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM) { MCONTACT hContact = MCONTACT(wParam); if (!CallService(MS_DB_CONTACT_IS, wParam, 0)) @@ -90,7 +90,7 @@ INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam) //------------------------------------------------------------------------------ -int MirandaContact::onPreBuildContactMenu(WPARAM wParam, LPARAM lParam) +int MirandaContact::onPreBuildContactMenu(WPARAM wParam, LPARAM) { if (!hTransliterateCmdMenuItem) return 0; MCONTACT hContact = MCONTACT(wParam); diff --git a/plugins/CyrTranslit/src/MirandaContact.h b/plugins/CyrTranslit/src/MirandaContact.h index c963ae6c3a..4760d8f836 100644 --- a/plugins/CyrTranslit/src/MirandaContact.h +++ b/plugins/CyrTranslit/src/MirandaContact.h @@ -19,7 +19,7 @@ #pragma once -#include "plugin.h" +#include "stdafx.h" namespace CyrTranslit { diff --git a/plugins/CyrTranslit/src/TransliterationMap.cpp b/plugins/CyrTranslit/src/TransliterationMap.cpp index 99919a5960..f9ac320f44 100644 --- a/plugins/CyrTranslit/src/TransliterationMap.cpp +++ b/plugins/CyrTranslit/src/TransliterationMap.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "plugin.h" +#include "stdafx.h" namespace CyrTranslit { diff --git a/plugins/CyrTranslit/src/TransliterationMap.h b/plugins/CyrTranslit/src/TransliterationMap.h index 596e9d3e8f..960cb6ceac 100644 --- a/plugins/CyrTranslit/src/TransliterationMap.h +++ b/plugins/CyrTranslit/src/TransliterationMap.h @@ -19,7 +19,7 @@ #pragma once -#include "plugin.h" +#include "stdafx.h" namespace CyrTranslit { diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp index dc75e17dbf..c4d6649f2c 100644 --- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp +++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "plugin.h" +#include "stdafx.h" namespace CyrTranslit { @@ -37,7 +37,7 @@ void TransliterationProtocol::initialize() } //------------------------------------------------------------------------------ -void TransliterationProtocol::TranslateMessageUTF(WPARAM wParam, LPARAM lParam) +void TransliterationProtocol::TranslateMessageUTF(WPARAM, LPARAM lParam) { CCSDATA *ccs = reinterpret_cast(lParam); @@ -55,7 +55,7 @@ void TransliterationProtocol::TranslateMessageUTF(WPARAM wParam, LPARAM lParam) strcpy(reinterpret_cast(ccs->lParam), txtUTF.c_str()); } -void TransliterationProtocol::TranslateMessageW(WPARAM wParam, LPARAM lParam) +void TransliterationProtocol::TranslateMessageW(WPARAM, LPARAM lParam) { CCSDATA *ccs = reinterpret_cast(lParam); @@ -75,7 +75,7 @@ void TransliterationProtocol::TranslateMessageW(WPARAM wParam, LPARAM lParam) wcscpy(reinterpret_cast(ccs->lParam + txtAlen), txtW.c_str()); } -void TransliterationProtocol::TranslateMessageA(WPARAM wParam, LPARAM lParam) +void TransliterationProtocol::TranslateMessageA(WPARAM, LPARAM lParam) { CCSDATA *ccs = reinterpret_cast(lParam); diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.h b/plugins/CyrTranslit/src/TransliterationProtocol.h index 2f746a64b8..08cb715447 100644 --- a/plugins/CyrTranslit/src/TransliterationProtocol.h +++ b/plugins/CyrTranslit/src/TransliterationProtocol.h @@ -19,7 +19,7 @@ #pragma once -#include "plugin.h" +#include "stdafx.h" namespace CyrTranslit { diff --git a/plugins/CyrTranslit/src/main.cpp b/plugins/CyrTranslit/src/main.cpp index 589d406e0f..5f8b499f08 100644 --- a/plugins/CyrTranslit/src/main.cpp +++ b/plugins/CyrTranslit/src/main.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "plugin.h" +#include "stdafx.h" HINSTANCE hInst; int hLangpack = 0; @@ -37,7 +37,7 @@ PLUGININFOEX pluginInfoEx={ //------------------------------------------------------------------------------ -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) { hInst = hinstDLL; return TRUE; @@ -45,7 +45,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) //------------------------------------------------------------------------------ -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfoEx; } diff --git a/plugins/CyrTranslit/src/plugin.h b/plugins/CyrTranslit/src/plugin.h deleted file mode 100644 index f6503b8140..0000000000 --- a/plugins/CyrTranslit/src/plugin.h +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Plugin.H: Main common header of MirandaIM plugin - * Copyright 2009 Valeriy V. Vyshnyak. - * - * 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; either version 2 - * of the License, or (at your option) any later version. - * - * 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, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#define _CRT_SECURE_NO_WARNINGS - -#include -#include - -#include -#include -#include -#include -#include - -#include "version.h" -#include "MirandaContact.h" -#include "TransliterationMap.h" -#include "TransliterationProtocol.h" diff --git a/plugins/CyrTranslit/src/stdafx.cpp b/plugins/CyrTranslit/src/stdafx.cpp deleted file mode 100644 index eca86509fa..0000000000 --- a/plugins/CyrTranslit/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 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 "plugin.h" \ No newline at end of file diff --git a/plugins/CyrTranslit/src/stdafx.cxx b/plugins/CyrTranslit/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/CyrTranslit/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 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 "stdafx.h" \ No newline at end of file diff --git a/plugins/CyrTranslit/src/stdafx.h b/plugins/CyrTranslit/src/stdafx.h new file mode 100644 index 0000000000..40f1692b52 --- /dev/null +++ b/plugins/CyrTranslit/src/stdafx.h @@ -0,0 +1,32 @@ +/** + * Plugin.H: Main common header of MirandaIM plugin + * Copyright 2009 Valeriy V. Vyshnyak. + * + * 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; either version 2 + * of the License, or (at your option) any later version. + * + * 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#include +#include + +#include +#include +#include +#include +#include + +#include "version.h" +#include "MirandaContact.h" +#include "TransliterationMap.h" +#include "TransliterationProtocol.h" -- cgit v1.2.3