diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/QuickReplies/quickreplies_10.vcxproj | 11 | ||||
-rw-r--r-- | plugins/QuickReplies/quickreplies_10.vcxproj.filters | 3 | ||||
-rw-r--r-- | plugins/QuickReplies/quickreplies_11.vcxproj | 11 | ||||
-rw-r--r-- | plugins/QuickReplies/quickreplies_11.vcxproj.filters | 3 | ||||
-rw-r--r-- | plugins/QuickReplies/res/resources.rc | 11 | ||||
-rw-r--r-- | plugins/QuickReplies/res/version.rc | 109 | ||||
-rw-r--r-- | plugins/QuickReplies/src/common.h | 12 | ||||
-rw-r--r-- | plugins/QuickReplies/src/stdafx.cpp | 18 | ||||
-rw-r--r-- | plugins/QuickReplies/src/version.h | 10 |
9 files changed, 66 insertions, 122 deletions
diff --git a/plugins/QuickReplies/quickreplies_10.vcxproj b/plugins/QuickReplies/quickreplies_10.vcxproj index d959dadf6e..7341042b62 100644 --- a/plugins/QuickReplies/quickreplies_10.vcxproj +++ b/plugins/QuickReplies/quickreplies_10.vcxproj @@ -81,6 +81,8 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -109,6 +111,8 @@ <FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -134,6 +138,8 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -161,6 +167,8 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -187,6 +195,9 @@ <ClCompile Include="src\events.cpp" />
<ClCompile Include="src\options.cpp" />
<ClCompile Include="src\quickreplies.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/QuickReplies/quickreplies_10.vcxproj.filters b/plugins/QuickReplies/quickreplies_10.vcxproj.filters index d53f3be127..9a94be2516 100644 --- a/plugins/QuickReplies/quickreplies_10.vcxproj.filters +++ b/plugins/QuickReplies/quickreplies_10.vcxproj.filters @@ -40,5 +40,8 @@ <ClCompile Include="src\quickreplies.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/QuickReplies/quickreplies_11.vcxproj b/plugins/QuickReplies/quickreplies_11.vcxproj index 73c90d26d8..fa776f2441 100644 --- a/plugins/QuickReplies/quickreplies_11.vcxproj +++ b/plugins/QuickReplies/quickreplies_11.vcxproj @@ -85,6 +85,8 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -113,6 +115,8 @@ <FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -138,6 +142,8 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -165,6 +171,8 @@ <FunctionLevelLinking>true</FunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>common.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -191,6 +199,9 @@ <ClCompile Include="src\events.cpp" />
<ClCompile Include="src\options.cpp" />
<ClCompile Include="src\quickreplies.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/QuickReplies/quickreplies_11.vcxproj.filters b/plugins/QuickReplies/quickreplies_11.vcxproj.filters index d53f3be127..9a94be2516 100644 --- a/plugins/QuickReplies/quickreplies_11.vcxproj.filters +++ b/plugins/QuickReplies/quickreplies_11.vcxproj.filters @@ -40,5 +40,8 @@ <ClCompile Include="src\quickreplies.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/QuickReplies/res/resources.rc b/plugins/QuickReplies/res/resources.rc index 073f722494..93ef364fcc 100644 --- a/plugins/QuickReplies/res/resources.rc +++ b/plugins/QuickReplies/res/resources.rc @@ -75,18 +75,7 @@ END // Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_QICON ICON "qicon.ico"
-#endif // нейтральный resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// русский resources
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
-#ifdef _WIN32
-LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
-#pragma code_page(1251)
-#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/QuickReplies/res/version.rc b/plugins/QuickReplies/res/version.rc index cc6b3bf17a..5bfbab4754 100644 --- a/plugins/QuickReplies/res/version.rc +++ b/plugins/QuickReplies/res/version.rc @@ -4,114 +4,35 @@ #error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED
-#include "..\src\version.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
#include "afxres.h"
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// нейтральный resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
-#ifdef _WIN32
-LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
-#pragma code_page(1251)
-#endif //_WIN32
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
+#include "..\src\version.h"
VS_VERSION_INFO VERSIONINFO
- FILEVERSION __FILEVERSION_STRING
- PRODUCTVERSION __FILEVERSION_STRING
- FILEFLAGSMASK 0x17L
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
+ FILEFLAGSMASK 0x17L
#ifdef _DEBUG
- FILEFLAGS 0x1L
+ FILEFLAGS 0x1L
#else
- FILEFLAGS 0x0L
+ FILEFLAGS 0x0L
#endif
- FILEOS 0x4L
- FILETYPE 0x0L
- FILESUBTYPE 0x0L
+ FILEOS 0x4L
+ FILETYPE 0x0L
+ FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000004b0"
BEGIN
- VALUE "FileDescription", __DESCRIPTION
- VALUE "FileVersion", __VERSION_STRING
- VALUE "InternalName", __INTERNAL_NAME
- VALUE "LegalCopyright", __COPYRIGHT
- VALUE "OriginalFilename", __FILENAME
- VALUE "ProductName", __PLUGIN_NAME
- VALUE "ProductVersion", __VERSION_STRING
+ 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
+ VALUE "Translation", 0x0, 1200
END
END
-
-#endif // нейтральный resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// русский resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
-#ifdef _WIN32
-LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
-#pragma code_page(1251)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE
-BEGIN
- "..\\src\\version.h\0"
-END
-
-2 TEXTINCLUDE
-BEGIN
- "#include ""afxres.h""\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE
-BEGIN
- "\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-#endif // русский resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
-
diff --git a/plugins/QuickReplies/src/common.h b/plugins/QuickReplies/src/common.h index e65994372c..438fe0d388 100644 --- a/plugins/QuickReplies/src/common.h +++ b/plugins/QuickReplies/src/common.h @@ -21,28 +21,22 @@ Boston, MA 02111-1307, USA. #ifndef __QUICK_REPLY_H__
#define __QUICK_REPLY_H__
-#define MIRANDA_VER 0x0A00
-
#include <windows.h>
#include <vector>
-#include <string>
-
-#include "tchar.h"
#include <newpluginapi.h>
#include <m_database.h>
-#include <m_icolib.h>
#include <m_langpack.h>
#include <m_message.h>
#include <m_options.h>
-#include "m_msg_buttonsbar.h"
-#include "m_variables.h"
+#include <m_msg_buttonsbar.h>
+#include <m_variables.h>
#include "resource.h"
#include "version.h"
-#define MODULE_NAME __INTERNAL_NAME
+#define MODULE_NAME "QuickReplies"
#define TEXT_LIMIT 2048
#define IDC_MESSAGE 1002
#define IDC_CHATMESSAGE 1009
diff --git a/plugins/QuickReplies/src/stdafx.cpp b/plugins/QuickReplies/src/stdafx.cpp new file mode 100644 index 0000000000..1976d867da --- /dev/null +++ b/plugins/QuickReplies/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 "common.h"
\ No newline at end of file diff --git a/plugins/QuickReplies/src/version.h b/plugins/QuickReplies/src/version.h index 2836a5922a..d8dd844c18 100644 --- a/plugins/QuickReplies/src/version.h +++ b/plugins/QuickReplies/src/version.h @@ -4,15 +4,9 @@ #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 "Quick Replies"
-#define __INTERNAL_NAME "QuickReplies"
-#define __FILENAME "quickreplies.dll"
+#define __PLUGIN_NAME "Quick replies"
+#define __FILENAME "QuickReplies.dll"
#define __DESCRIPTION "Plugin for quick insert (or sending) pre-defined messages in message input area."
#define __AUTHOR "Unsane"
#define __AUTHOREMAIL ""
|