From 78b9cb478a8aec236007c330f2d3ebfbf0df25a4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 25 Jul 2015 19:42:32 +0000 Subject: mydetails: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14703 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/mydetails.vcxproj | 40 +++++ plugins/MyDetails/mydetails.vcxproj.filters | 4 + plugins/MyDetails/mydetails_10.vcxproj | 222 ------------------------ plugins/MyDetails/mydetails_10.vcxproj.filters | 77 --------- plugins/MyDetails/mydetails_12.vcxproj | 225 ------------------------- plugins/MyDetails/mydetails_12.vcxproj.filters | 77 --------- plugins/MyDetails/mydetails_14.vcxproj | 225 ------------------------- plugins/MyDetails/mydetails_14.vcxproj.filters | 77 --------- plugins/MyDetails/src/commons.h | 93 ---------- plugins/MyDetails/src/data.cpp | 2 +- plugins/MyDetails/src/frame.cpp | 2 +- plugins/MyDetails/src/mydetails.cpp | 2 +- plugins/MyDetails/src/options.cpp | 2 +- plugins/MyDetails/src/services.cpp | 2 +- plugins/MyDetails/src/stdafx.cpp | 18 -- plugins/MyDetails/src/stdafx.cxx | 18 ++ plugins/MyDetails/src/stdafx.h | 91 ++++++++++ 17 files changed, 158 insertions(+), 1019 deletions(-) create mode 100644 plugins/MyDetails/mydetails.vcxproj create mode 100644 plugins/MyDetails/mydetails.vcxproj.filters delete mode 100644 plugins/MyDetails/mydetails_10.vcxproj delete mode 100644 plugins/MyDetails/mydetails_10.vcxproj.filters delete mode 100644 plugins/MyDetails/mydetails_12.vcxproj delete mode 100644 plugins/MyDetails/mydetails_12.vcxproj.filters delete mode 100644 plugins/MyDetails/mydetails_14.vcxproj delete mode 100644 plugins/MyDetails/mydetails_14.vcxproj.filters delete mode 100644 plugins/MyDetails/src/commons.h delete mode 100644 plugins/MyDetails/src/stdafx.cpp create mode 100644 plugins/MyDetails/src/stdafx.cxx create mode 100644 plugins/MyDetails/src/stdafx.h (limited to 'plugins/MyDetails') diff --git a/plugins/MyDetails/mydetails.vcxproj b/plugins/MyDetails/mydetails.vcxproj new file mode 100644 index 0000000000..d4d7256a9e --- /dev/null +++ b/plugins/MyDetails/mydetails.vcxproj @@ -0,0 +1,40 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {A4855451-6447-437C-B024-B36C3C7901EA} + MyDetails + + + + + + + NotUsing + + + NotUsing + + + + + + + \ No newline at end of file diff --git a/plugins/MyDetails/mydetails.vcxproj.filters b/plugins/MyDetails/mydetails.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/MyDetails/mydetails.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/MyDetails/mydetails_10.vcxproj b/plugins/MyDetails/mydetails_10.vcxproj deleted file mode 100644 index e0e2d8135c..0000000000 --- a/plugins/MyDetails/mydetails_10.vcxproj +++ /dev/null @@ -1,222 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {A4855451-6447-437C-B024-B36C3C7901EA} - MyDetails - - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - true - - - - - - - - - - - - - - - - - - - <_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 - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Use - commons.h - Level3 - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - true - true - true - Windows - false - 0x3EC10000 - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Use - commons.h - Level3 - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - true - true - true - Windows - false - 0x3EC10000 - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - Use - commons.h - Level3 - EditAndContinue - false - - - comctl32.lib;%(AdditionalDependencies) - true - 0x3EC10000 - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - Windows - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - Use - commons.h - Level3 - false - - - comctl32.lib;%(AdditionalDependencies) - true - 0x3EC10000 - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - Windows - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - - - NotUsing - - - NotUsing - - - - Create - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/MyDetails/mydetails_10.vcxproj.filters b/plugins/MyDetails/mydetails_10.vcxproj.filters deleted file mode 100644 index bd0d8fb06f..0000000000 --- a/plugins/MyDetails/mydetails_10.vcxproj.filters +++ /dev/null @@ -1,77 +0,0 @@ - - - - - {043e56e0-6a69-472b-bd0b-375360dd329e} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {e2888571-a12b-416f-9245-17cad51a70f7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - {b006457e-4f3c-4df9-b9c8-9d2e25add272} - h;hpp;hxx;hm;inl - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Resource Files - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - \ No newline at end of file diff --git a/plugins/MyDetails/mydetails_12.vcxproj b/plugins/MyDetails/mydetails_12.vcxproj deleted file mode 100644 index 968f507f0a..0000000000 --- a/plugins/MyDetails/mydetails_12.vcxproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {A4855451-6447-437C-B024-B36C3C7901EA} - MyDetails - - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - true - 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 - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Use - commons.h - Level4 - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - true - true - true - Windows - false - 0x3EC10000 - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Use - commons.h - Level4 - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - true - true - true - Windows - false - 0x3EC10000 - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - Use - commons.h - Level4 - EditAndContinue - false - - - comctl32.lib;%(AdditionalDependencies) - true - 0x3EC10000 - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - Windows - false - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - Use - commons.h - Level4 - false - - - comctl32.lib;%(AdditionalDependencies) - true - 0x3EC10000 - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - Windows - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - - - NotUsing - - - NotUsing - - - - Create - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/MyDetails/mydetails_12.vcxproj.filters b/plugins/MyDetails/mydetails_12.vcxproj.filters deleted file mode 100644 index bd0d8fb06f..0000000000 --- a/plugins/MyDetails/mydetails_12.vcxproj.filters +++ /dev/null @@ -1,77 +0,0 @@ - - - - - {043e56e0-6a69-472b-bd0b-375360dd329e} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {e2888571-a12b-416f-9245-17cad51a70f7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - {b006457e-4f3c-4df9-b9c8-9d2e25add272} - h;hpp;hxx;hm;inl - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Resource Files - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - \ No newline at end of file diff --git a/plugins/MyDetails/mydetails_14.vcxproj b/plugins/MyDetails/mydetails_14.vcxproj deleted file mode 100644 index 08af3bbbe3..0000000000 --- a/plugins/MyDetails/mydetails_14.vcxproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {A4855451-6447-437C-B024-B36C3C7901EA} - MyDetails - - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - true - v140_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 - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Use - commons.h - Level4 - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin14\lib - true - true - true - Windows - false - 0x3EC10000 - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Use - commons.h - Level4 - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin14\lib - true - true - true - Windows - false - 0x3EC10000 - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - Use - commons.h - Level4 - EditAndContinue - false - - - comctl32.lib;%(AdditionalDependencies) - true - 0x3EC10000 - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin14\lib - Windows - false - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - Use - commons.h - Level4 - false - - - comctl32.lib;%(AdditionalDependencies) - true - 0x3EC10000 - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin14\lib - Windows - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include;..\..\include\msapi - - - - - - - NotUsing - - - NotUsing - - - - Create - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/MyDetails/mydetails_14.vcxproj.filters b/plugins/MyDetails/mydetails_14.vcxproj.filters deleted file mode 100644 index bd0d8fb06f..0000000000 --- a/plugins/MyDetails/mydetails_14.vcxproj.filters +++ /dev/null @@ -1,77 +0,0 @@ - - - - - {043e56e0-6a69-472b-bd0b-375360dd329e} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {e2888571-a12b-416f-9245-17cad51a70f7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - {b006457e-4f3c-4df9-b9c8-9d2e25add272} - h;hpp;hxx;hm;inl - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Resource Files - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - \ No newline at end of file diff --git a/plugins/MyDetails/src/commons.h b/plugins/MyDetails/src/commons.h deleted file mode 100644 index afefec9dd1..0000000000 --- a/plugins/MyDetails/src/commons.h +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright (C) 2005 Ricardo Pescuma Domenecci - -This is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public -License as published by the Free Software Foundation; either -version 2 of the License, or (at your option) any later version. - -This 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 -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with this file; see the file license.txt. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. -*/ - - -#ifndef __COMMONS_H__ -# define __COMMONS_H__ - -#define _CRT_SECURE_NO_WARNINGS - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "../utils/mir_smileys.h" -#include "../utils/mir_options.h" - -#include "resource.h" -#include "Version.h" -#include "data.h" -#include "options.h" -#include "frame.h" - -#define MODULE_NAME "MyDetails" - -#define SETTING_FRAME_VISIBLE "FrameVisible" -#define SETTING_DEFAULT_NICK "DefaultNick" - -extern HINSTANCE hInst; -extern bool g_bFramesExist, g_bAvsExist; - -#define PS_GETMYNICKNAMEMAXLENGTH "/GetMyNicknameMaxLength" - -INT_PTR PluginCommand_SetMyNicknameUI(WPARAM wParam, LPARAM lParam); -INT_PTR PluginCommand_SetMyNickname(WPARAM wParam, LPARAM lParam); -INT_PTR PluginCommand_GetMyNickname(WPARAM wParam, LPARAM lParam); -INT_PTR PluginCommand_SetMyAvatarUI(WPARAM wParam, LPARAM lParam); -INT_PTR PluginCommand_SetMyAvatar(WPARAM wParam, LPARAM lParam); -INT_PTR PluginCommand_GetMyAvatar(WPARAM wParam, LPARAM lParam); -INT_PTR PluginCommand_SetMyStatusMessageUI(WPARAM wParam, LPARAM lParam); -INT_PTR PluginCommand_CycleThroughtProtocols(WPARAM wParam, LPARAM lParam); - -// Helper -static __inline int DRAW_TEXT(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat, const char *protocol) -{ - if (!opts.replace_smileys) - return DrawText(hDC, lpString, nCount, lpRect, uFormat); - - return Smileys_DrawText(hDC, lpString, nCount, lpRect, uFormat | (opts.resize_smileys ? DT_RESIZE_SMILEYS : 0), - opts.use_contact_list_smileys ? "clist" : protocol, NULL); -} - -#endif // __COMMONS_H__ diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index fe22fe135b..aaaa94358e 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -17,7 +17,7 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commons.h" +#include "stdafx.h" static char *StatusModeToDbSetting(int status, const char *suffix); diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index 52cc6a52ce..f54aa50a94 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -17,7 +17,7 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commons.h" +#include "stdafx.h" // Prototypes ///////////////////////////////////////////////////////////////////////////////////// diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp index bd24408f56..acbe1d5887 100644 --- a/plugins/MyDetails/src/mydetails.cpp +++ b/plugins/MyDetails/src/mydetails.cpp @@ -17,7 +17,7 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commons.h" +#include "stdafx.h" CLIST_INTERFACE *pcli; HINSTANCE hInst; diff --git a/plugins/MyDetails/src/options.cpp b/plugins/MyDetails/src/options.cpp index 826454adc1..0bc92981c0 100644 --- a/plugins/MyDetails/src/options.cpp +++ b/plugins/MyDetails/src/options.cpp @@ -18,7 +18,7 @@ Boston, MA 02111-1307, USA. */ -#include "commons.h" +#include "stdafx.h" // Prototypes ///////////////////////////////////////////////////////////////////////////////////// diff --git a/plugins/MyDetails/src/services.cpp b/plugins/MyDetails/src/services.cpp index 99410d8c8e..726ae3c5c0 100644 --- a/plugins/MyDetails/src/services.cpp +++ b/plugins/MyDetails/src/services.cpp @@ -17,7 +17,7 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commons.h" +#include "stdafx.h" static long nickname_dialog_open; static HWND hwndSetNickname; diff --git a/plugins/MyDetails/src/stdafx.cpp b/plugins/MyDetails/src/stdafx.cpp deleted file mode 100644 index f1efa4b606..0000000000 --- a/plugins/MyDetails/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 "commons.h" diff --git a/plugins/MyDetails/src/stdafx.cxx b/plugins/MyDetails/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/MyDetails/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/MyDetails/src/stdafx.h b/plugins/MyDetails/src/stdafx.h new file mode 100644 index 0000000000..e73d40175c --- /dev/null +++ b/plugins/MyDetails/src/stdafx.h @@ -0,0 +1,91 @@ +/* +Copyright (C) 2005 Ricardo Pescuma Domenecci + +This is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This 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 +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with this file; see the file license.txt. If +not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. +*/ + + +#ifndef __COMMONS_H__ +# define __COMMONS_H__ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "../utils/mir_smileys.h" +#include "../utils/mir_options.h" + +#include "resource.h" +#include "Version.h" +#include "data.h" +#include "options.h" +#include "frame.h" + +#define MODULE_NAME "MyDetails" + +#define SETTING_FRAME_VISIBLE "FrameVisible" +#define SETTING_DEFAULT_NICK "DefaultNick" + +extern HINSTANCE hInst; +extern bool g_bFramesExist, g_bAvsExist; + +#define PS_GETMYNICKNAMEMAXLENGTH "/GetMyNicknameMaxLength" + +INT_PTR PluginCommand_SetMyNicknameUI(WPARAM wParam, LPARAM lParam); +INT_PTR PluginCommand_SetMyNickname(WPARAM wParam, LPARAM lParam); +INT_PTR PluginCommand_GetMyNickname(WPARAM wParam, LPARAM lParam); +INT_PTR PluginCommand_SetMyAvatarUI(WPARAM wParam, LPARAM lParam); +INT_PTR PluginCommand_SetMyAvatar(WPARAM wParam, LPARAM lParam); +INT_PTR PluginCommand_GetMyAvatar(WPARAM wParam, LPARAM lParam); +INT_PTR PluginCommand_SetMyStatusMessageUI(WPARAM wParam, LPARAM lParam); +INT_PTR PluginCommand_CycleThroughtProtocols(WPARAM wParam, LPARAM lParam); + +// Helper +static __inline int DRAW_TEXT(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat, const char *protocol) +{ + if (!opts.replace_smileys) + return DrawText(hDC, lpString, nCount, lpRect, uFormat); + + return Smileys_DrawText(hDC, lpString, nCount, lpRect, uFormat | (opts.resize_smileys ? DT_RESIZE_SMILEYS : 0), + opts.use_contact_list_smileys ? "clist" : protocol, NULL); +} + +#endif // __COMMONS_H__ -- cgit v1.2.3