From 4177f512d1918ac15642df63607080dad9998c4b Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 7 Mar 2013 05:22:03 +0000 Subject: added precompiled header git-svn-id: http://svn.miranda-ng.org/main/trunk@3910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/QuickReplies/quickreplies_10.vcxproj | 11 +++ .../QuickReplies/quickreplies_10.vcxproj.filters | 3 + plugins/QuickReplies/quickreplies_11.vcxproj | 11 +++ .../QuickReplies/quickreplies_11.vcxproj.filters | 3 + plugins/QuickReplies/res/resources.rc | 11 --- plugins/QuickReplies/res/version.rc | 109 +++------------------ plugins/QuickReplies/src/common.h | 12 +-- plugins/QuickReplies/src/stdafx.cpp | 18 ++++ plugins/QuickReplies/src/version.h | 10 +- 9 files changed, 66 insertions(+), 122 deletions(-) create mode 100644 plugins/QuickReplies/src/stdafx.cpp 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 @@ true Fast Level3 + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -109,6 +111,8 @@ Fast Level3 EditAndContinue + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -134,6 +138,8 @@ true Fast Level3 + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -161,6 +167,8 @@ true Fast Level3 + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -187,6 +195,9 @@ + + Create + 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 @@ Source Files + + Source Files + \ 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 @@ true Fast Level3 + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -113,6 +115,8 @@ Fast Level3 EditAndContinue + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -138,6 +142,8 @@ true Fast Level3 + Use + common.h NDEBUG;%(PreprocessorDefinitions) @@ -165,6 +171,8 @@ true Fast Level3 + Use + common.h _DEBUG;%(PreprocessorDefinitions) @@ -191,6 +199,9 @@ + + Create + 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 @@ Source Files + + Source Files + \ 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 #include -#include - -#include "tchar.h" #include #include -#include #include #include #include -#include "m_msg_buttonsbar.h" -#include "m_variables.h" +#include +#include #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 . +*/ + +#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 "" -- cgit v1.2.3