diff options
-rw-r--r-- | plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj | 11 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj.filters | 3 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj | 15 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj.filters | 3 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/res/Version.rc | 6 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/src/TranslitSwitcher.cpp | 3 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/src/TranslitSwitcher.h | 33 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/src/Version.h | 8 | ||||
-rw-r--r-- | plugins/TranslitSwitcher/src/stdafx.cpp | 18 |
9 files changed, 66 insertions, 34 deletions
diff --git a/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj b/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj index ac6c39209d..56e3b04329 100644 --- a/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj +++ b/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj @@ -80,6 +80,8 @@ <WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -102,6 +104,8 @@ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -128,6 +132,8 @@ <FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@@ -157,6 +163,8 @@ <FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@@ -180,6 +188,9 @@ </ItemGroup>
<ItemGroup>
<ClCompile Include="Src\Layoutproc.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="Src\TranslitSwitcher.cpp" />
</ItemGroup>
<ItemGroup>
diff --git a/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj.filters b/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj.filters index 4b7b7aa2a6..48b17414cd 100644 --- a/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj.filters +++ b/plugins/TranslitSwitcher/TranslitSwitcher_10.vcxproj.filters @@ -32,6 +32,9 @@ <ClCompile Include="Src\TranslitSwitcher.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\Resource.rc">
diff --git a/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj b/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj index 1aea178b27..c1e3fe8685 100644 --- a/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj +++ b/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj @@ -84,6 +84,8 @@ <WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -106,6 +108,8 @@ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
@@ -125,13 +129,15 @@ <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@@ -154,13 +160,15 @@ <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<BufferSecurityCheck>false</BufferSecurityCheck>
<FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>TranslitSwitcher.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
@@ -184,6 +192,9 @@ </ItemGroup>
<ItemGroup>
<ClCompile Include="Src\Layoutproc.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="Src\TranslitSwitcher.cpp" />
</ItemGroup>
<ItemGroup>
diff --git a/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj.filters b/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj.filters index 4b7b7aa2a6..48b17414cd 100644 --- a/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj.filters +++ b/plugins/TranslitSwitcher/TranslitSwitcher_11.vcxproj.filters @@ -32,6 +32,9 @@ <ClCompile Include="Src\TranslitSwitcher.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\Resource.rc">
diff --git a/plugins/TranslitSwitcher/res/Version.rc b/plugins/TranslitSwitcher/res/Version.rc index 472bfbfe38..5bfbab4754 100644 --- a/plugins/TranslitSwitcher/res/Version.rc +++ b/plugins/TranslitSwitcher/res/Version.rc @@ -7,10 +7,6 @@ #include "afxres.h"
#include "..\src\version.h"
-#ifdef _WIN32
-LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
-#endif //_WIN32
-
VS_VERSION_INFO VERSIONINFO
FILEVERSION __FILEVERSION_STRING
PRODUCTVERSION __FILEVERSION_STRING
@@ -39,4 +35,4 @@ BEGIN BEGIN
VALUE "Translation", 0x0, 1200
END
-END
\ No newline at end of file +END
diff --git a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp index 48f2111f44..71ea12157a 100644 --- a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp +++ b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp @@ -33,7 +33,8 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- { 0x286947d, 0x3140, 0x4222, { 0xb5, 0xad, 0x2c, 0x92, 0x31, 0x5e, 0x1c, 0x1e } } // {0286947D-3140-4222-B5AD-2C92315E1C1E}
+ // {0286947D-3140-4222-B5AD-2C92315E1C1E}
+ {0x286947d, 0x3140, 0x4222, {0xb5, 0xad, 0x2c, 0x92, 0x31, 0x5e, 0x1c, 0x1e}}
};
static IconItem iconList[] =
diff --git a/plugins/TranslitSwitcher/src/TranslitSwitcher.h b/plugins/TranslitSwitcher/src/TranslitSwitcher.h index e3c84eb0cb..6bcb9dab3b 100644 --- a/plugins/TranslitSwitcher/src/TranslitSwitcher.h +++ b/plugins/TranslitSwitcher/src/TranslitSwitcher.h @@ -17,34 +17,29 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#define MIRANDA_VER 0x0A00
-
-#define _CRT_SECURE_NO_WARNINGS
-
#ifndef __TRANSLITSWIITCHER_H__
#define __TRANSLITSWIITCHER_H__
+#define _CRT_SECURE_NO_WARNINGS
+
#include <windows.h>
#include <commctrl.h>
-#include <richedit.h>
-#include <time.h>
-
-#include "newpluginapi.h"
-#include "m_options.h"
-#include "m_langpack.h"
-#include "m_database.h"
-#include "m_hotkeys.h"
-#include "m_protosvc.h"
-#include "win2k.h"
+
+#include <newpluginapi.h>
+#include <m_langpack.h>
+#include <m_database.h>
+#include <m_hotkeys.h>
+#include <win2k.h>
#include <m_icolib.h>
-#include "m_msg_buttonsbar.h"
-#include "m_popup.h"
+#include <m_popup.h>
+
+#include <m_msg_buttonsbar.h>
+#include <m_smileyadd.h>
+#include <m_ieview.h>
+#include <m_popup2.h>
#include "version.h"
#include "resource.h"
-#include "m_smileyadd.h"
-#include "m_ieview.h"
-#include "m_popup2.h"
#define IDC_MESSAGE 1002
#define IDC_CHATMESSAGE 1009
diff --git a/plugins/TranslitSwitcher/src/Version.h b/plugins/TranslitSwitcher/src/Version.h index 62c32d5a7b..c37a42cc74 100644 --- a/plugins/TranslitSwitcher/src/Version.h +++ b/plugins/TranslitSwitcher/src/Version.h @@ -4,14 +4,8 @@ #define __BUILD_NUM 0
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
-#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
-#define __STRINGIFY_IMPL(x) #x
-#define __STRINGIFY(x) __STRINGIFY_IMPL(x)
-#define __VERSION_STRING __STRINGIFY(__FILEVERSION_DOTS)
-
-#define __PLUGIN_NAME "Switch Layout or Transliterate"
-#define __INTERNAL_NAME "TranslitSwitcher"
+#define __PLUGIN_NAME "Switch layout or transliterate"
#define __FILENAME "TranslitSwitcher.dll"
#define __DESCRIPTION "Allows to switch a layout or transliterate or invert case of the entered text in the message window with SmileyAdd support."
#define __AUTHOR "Mataes, tico-tico, Tim"
diff --git a/plugins/TranslitSwitcher/src/stdafx.cpp b/plugins/TranslitSwitcher/src/stdafx.cpp new file mode 100644 index 0000000000..a3b243ddf5 --- /dev/null +++ b/plugins/TranslitSwitcher/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 "TranslitSwitcher.h"
\ No newline at end of file |