From 4a966be3c32e745b2567e51c27766942f798f77d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 26 Jul 2015 12:33:08 +0000 Subject: common projects git-svn-id: http://svn.miranda-ng.org/main/trunk@14724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SeenPlugin/seenplugin.vcxproj | 28 +++ plugins/SeenPlugin/seenplugin.vcxproj.filters | 4 + plugins/SeenPlugin/seenplugin_10.vcxproj | 213 ---------------------- plugins/SeenPlugin/seenplugin_10.vcxproj.filters | 65 ------- plugins/SeenPlugin/seenplugin_12.vcxproj | 216 ----------------------- plugins/SeenPlugin/seenplugin_12.vcxproj.filters | 65 ------- plugins/SeenPlugin/seenplugin_14.vcxproj | 216 ----------------------- plugins/SeenPlugin/seenplugin_14.vcxproj.filters | 65 ------- plugins/SeenPlugin/src/file.cpp | 2 +- plugins/SeenPlugin/src/history.cpp | 2 +- plugins/SeenPlugin/src/main.cpp | 2 +- plugins/SeenPlugin/src/menu.cpp | 2 +- plugins/SeenPlugin/src/missed.cpp | 2 +- plugins/SeenPlugin/src/options.cpp | 2 +- plugins/SeenPlugin/src/seen.h | 135 -------------- plugins/SeenPlugin/src/stdafx.cpp | 18 -- plugins/SeenPlugin/src/stdafx.cxx | 18 ++ plugins/SeenPlugin/src/stdafx.h | 134 ++++++++++++++ plugins/SeenPlugin/src/userinfo.cpp | 2 +- plugins/SeenPlugin/src/utils.cpp | 2 +- 20 files changed, 192 insertions(+), 1001 deletions(-) create mode 100644 plugins/SeenPlugin/seenplugin.vcxproj create mode 100644 plugins/SeenPlugin/seenplugin.vcxproj.filters delete mode 100644 plugins/SeenPlugin/seenplugin_10.vcxproj delete mode 100644 plugins/SeenPlugin/seenplugin_10.vcxproj.filters delete mode 100644 plugins/SeenPlugin/seenplugin_12.vcxproj delete mode 100644 plugins/SeenPlugin/seenplugin_12.vcxproj.filters delete mode 100644 plugins/SeenPlugin/seenplugin_14.vcxproj delete mode 100644 plugins/SeenPlugin/seenplugin_14.vcxproj.filters delete mode 100644 plugins/SeenPlugin/src/seen.h delete mode 100644 plugins/SeenPlugin/src/stdafx.cpp create mode 100644 plugins/SeenPlugin/src/stdafx.cxx create mode 100644 plugins/SeenPlugin/src/stdafx.h (limited to 'plugins/SeenPlugin') diff --git a/plugins/SeenPlugin/seenplugin.vcxproj b/plugins/SeenPlugin/seenplugin.vcxproj new file mode 100644 index 0000000000..3d67de59b4 --- /dev/null +++ b/plugins/SeenPlugin/seenplugin.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + SeenPlugin + {EFD45F48-63D5-48AE-96CD-8ADB3545A4EE} + + + + + \ No newline at end of file diff --git a/plugins/SeenPlugin/seenplugin.vcxproj.filters b/plugins/SeenPlugin/seenplugin.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/SeenPlugin/seenplugin.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/SeenPlugin/seenplugin_10.vcxproj b/plugins/SeenPlugin/seenplugin_10.vcxproj deleted file mode 100644 index d49dee1e6e..0000000000 --- a/plugins/SeenPlugin/seenplugin_10.vcxproj +++ /dev/null @@ -1,213 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SeenPlugin - {EFD45F48-63D5-48AE-96CD-8ADB3545A4EE} - - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - - - DynamicLibrary - true - Unicode - - - DynamicLibrary - Unicode - true - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.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 - Level3 - Use - seen.h - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - true - Windows - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Level3 - Use - seen.h - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - true - Windows - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - seen.h - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin10\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - seen.h - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin10\lib - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/SeenPlugin/seenplugin_10.vcxproj.filters b/plugins/SeenPlugin/seenplugin_10.vcxproj.filters deleted file mode 100644 index 2ed0201869..0000000000 --- a/plugins/SeenPlugin/seenplugin_10.vcxproj.filters +++ /dev/null @@ -1,65 +0,0 @@ - - - - - {89af4e67-032f-4900-b14d-1d956b6c376d} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {1f155b67-4f4e-4b49-a10e-6a0588c62a69} - h;hpp;hxx;hm;inl - - - {a800d3aa-15e0-4d7d-8b9f-99dfd4112d8e} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/SeenPlugin/seenplugin_12.vcxproj b/plugins/SeenPlugin/seenplugin_12.vcxproj deleted file mode 100644 index 2acf949330..0000000000 --- a/plugins/SeenPlugin/seenplugin_12.vcxproj +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SeenPlugin - {EFD45F48-63D5-48AE-96CD-8ADB3545A4EE} - - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - true - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.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 - Level3 - Use - seen.h - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - true - Windows - $(ProfileDir)..\..\bin12\lib - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Level3 - Use - seen.h - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - true - Windows - $(ProfileDir)..\..\bin12\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - seen.h - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin12\lib - false - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - seen.h - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin12\lib - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/SeenPlugin/seenplugin_12.vcxproj.filters b/plugins/SeenPlugin/seenplugin_12.vcxproj.filters deleted file mode 100644 index 2ed0201869..0000000000 --- a/plugins/SeenPlugin/seenplugin_12.vcxproj.filters +++ /dev/null @@ -1,65 +0,0 @@ - - - - - {89af4e67-032f-4900-b14d-1d956b6c376d} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {1f155b67-4f4e-4b49-a10e-6a0588c62a69} - h;hpp;hxx;hm;inl - - - {a800d3aa-15e0-4d7d-8b9f-99dfd4112d8e} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/SeenPlugin/seenplugin_14.vcxproj b/plugins/SeenPlugin/seenplugin_14.vcxproj deleted file mode 100644 index 61c45edb86..0000000000 --- a/plugins/SeenPlugin/seenplugin_14.vcxproj +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SeenPlugin - {EFD45F48-63D5-48AE-96CD-8ADB3545A4EE} - - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - true - Unicode - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.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 - Level3 - Use - seen.h - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - true - Windows - $(ProfileDir)..\..\bin14\lib - - - - - Full - OnlyExplicitInline - Size - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - true - Level3 - Use - seen.h - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - true - Windows - $(ProfileDir)..\..\bin14\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - seen.h - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin14\lib - false - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - seen.h - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - ws2_32.lib;comctl32.lib;winmm.lib;%(AdditionalDependencies) - true - 0x67400000 - false - $(IntDir)$(TargetName).lib - Windows - $(ProfileDir)..\..\bin14\lib - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/SeenPlugin/seenplugin_14.vcxproj.filters b/plugins/SeenPlugin/seenplugin_14.vcxproj.filters deleted file mode 100644 index 2ed0201869..0000000000 --- a/plugins/SeenPlugin/seenplugin_14.vcxproj.filters +++ /dev/null @@ -1,65 +0,0 @@ - - - - - {89af4e67-032f-4900-b14d-1d956b6c376d} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {1f155b67-4f4e-4b49-a10e-6a0588c62a69} - h;hpp;hxx;hm;inl - - - {a800d3aa-15e0-4d7d-8b9f-99dfd4112d8e} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/SeenPlugin/src/file.cpp b/plugins/SeenPlugin/src/file.cpp index 0721abf96f..fccd0ca9e6 100644 --- a/plugins/SeenPlugin/src/file.cpp +++ b/plugins/SeenPlugin/src/file.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" BOOL g_bFileActive; static TCHAR *g_ptszFileStamp, *g_ptszFileName; diff --git a/plugins/SeenPlugin/src/history.cpp b/plugins/SeenPlugin/src/history.cpp index db02da5045..2c5c60c8d2 100644 --- a/plugins/SeenPlugin/src/history.cpp +++ b/plugins/SeenPlugin/src/history.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" static MWindowList hWindowList; diff --git a/plugins/SeenPlugin/src/main.cpp b/plugins/SeenPlugin/src/main.cpp index 67055107bd..84af665552 100644 --- a/plugins/SeenPlugin/src/main.cpp +++ b/plugins/SeenPlugin/src/main.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" CLIST_INTERFACE *pcli; HINSTANCE hInstance; diff --git a/plugins/SeenPlugin/src/menu.cpp b/plugins/SeenPlugin/src/menu.cpp index e0ecfe71e7..9bd1c79b98 100644 --- a/plugins/SeenPlugin/src/menu.cpp +++ b/plugins/SeenPlugin/src/menu.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" HANDLE hLSUserDet = NULL; HGENMENU hmenuitem = NULL; diff --git a/plugins/SeenPlugin/src/missed.cpp b/plugins/SeenPlugin/src/missed.cpp index f3f18587c6..d407c5e24d 100644 --- a/plugins/SeenPlugin/src/missed.cpp +++ b/plugins/SeenPlugin/src/missed.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" MISSEDCONTACTS mcs; diff --git a/plugins/SeenPlugin/src/options.cpp b/plugins/SeenPlugin/src/options.cpp index 8bb34912f8..4d1db993c4 100644 --- a/plugins/SeenPlugin/src/options.cpp +++ b/plugins/SeenPlugin/src/options.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" #define VARIABLE_LIST "%s \n%%Y: \t %s \n%%y: \t %s \n%%m: \t %s \n%%E: \t %s \n%%e: \t %s \n%%d: \t %s \n%%W: \t %s \n%%w: \t %s \n\n%s \n%%H: \t %s \n%%h: \t %s \n%%p: \t %s \n%%M: \t %s \n%%S: \t %s \n\n%s \n%%n: \t %s \n%%N: \t %s \n%%u: \t %s \n%%G: \t %s \n%%s: \t %s \n%%T: \t %s \n%%o: \t %s \n%%i: \t %s \n%%r: \t %s \n%%C: \t %s \n%%P: \t %s \n%%A:\t %s\n\n%s \n%%t: \t %s \n%%b: \t %s\n\n%s\t%s \"#\" %s\n\t%s %s", Translate("-- Date --"), Translate("year (4 digits)"), Translate("year (2 digits)"), Translate("month"), Translate("name of month"), Translate("short name of month"), Translate("day"), Translate("weekday (full)"), Translate("weekday (abbreviated)"), Translate("-- Time --"), Translate("hours (24)"), Translate("hours (12)"), Translate("AM/PM"), Translate("minutes"), Translate("seconds"), Translate("-- User --"), Translate("username"), Translate("nick"), Translate("UIN/handle"), Translate("Group"), Translate("Status"), Translate("Status message"), Translate("Old status"), Translate("external IP"), Translate("internal IP"),Translate("Client info"),Translate("Protocol"), Translate("Account"),Translate("-- Format --"), Translate("tabulator"), Translate("line break"), Translate("Note:"),Translate("Use"),Translate("for empty string"),Translate("instead of"),Translate("") diff --git a/plugins/SeenPlugin/src/seen.h b/plugins/SeenPlugin/src/seen.h deleted file mode 100644 index 6808ca7683..0000000000 --- a/plugins/SeenPlugin/src/seen.h +++ /dev/null @@ -1,135 +0,0 @@ -/* -"Last Seen mod" plugin for Miranda IM -Copyright ( C ) 2002-03 micron-x -Copyright ( C ) 2005-07 Y.B. - -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 ETDT_ENABLE 0x00000002 -#define ETDT_USETABTEXTURE 0x00000004 -#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE) - -#define _CRT_SECURE_NO_WARNINGS -#define _CRT_NON_CONFORMING_SWPRINTFS - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "resource.h" -#include "version.h" - -WCHAR *any_to_IdleNotidleUnknown(MCONTACT hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen); -WCHAR *any_to_Idle(MCONTACT hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen); - -#define NUM100NANOSEC 116444736000000000 - -#define S_MOD "SeenModule" - -//#define UM_CHECKHOOKS (WM_USER+1) - -#define debug(a) MessageBox(NULL,a,_T("Debug"),MB_OK) - -#define IDI_USERDETAILS 160 -#define IDI_DOWNARROW 264 -#define IDI_RECVMSG 136 - -#define ICON_OFFLINE 13 -#define ICON_ONLINE 14 -#define ICON_AWAY 15 -#define ICON_NA 16 -#define ICON_OCC 17 -#define ICON_DND 18 -#define ICON_FREE 19 -#define ICON_INVIS 20 - -#define WM_REFRESH_UI (WM_USER+10) - -#define DEFAULT_MENUSTAMP _T("%d.%m.%Y - %H:%M [%s]") -#define DEFAULT_POPUPSTAMP TranslateT("%n is %s (%u)") -#define DEFAULT_POPUPSTAMPTEXT TranslateT("%i(%r)%bWas %o") -#define DEFAULT_USERSTAMP TranslateT("Name:%t%N%bStatus:%t%s%bDay:%t%d.%m.%Y%bTime:%t%H:%M:%S%bPrevious Status:%t%o%b%b%P ID:%t%u%bExternal IP:%t%i%bInternal IP:%t%r%bClient ID: %t%C%b%bStatus Message:%t%T") -#define DEFAULT_FILESTAMP _T("%d.%m.%Y %H:%M:%S%t%n%t%s%t%u%t%r | %i%t%N") -#define DEFAULT_FILENAME _T("%miranda_logpath%\\LastSeen\\%P.txt") -#define DEFAULT_HISTORYSTAMP _T("%d.%m.%Y - %H:%M [%s]") -#define DEFAULT_WATCHEDPROTOCOLS "" - -typedef struct{ - int count; - WPARAM wpcontact[1024]; - BYTE times[1024]; -} MISSEDCONTACTS; - -int IsWatchedProtocol(const char* szProto); -TCHAR *ParseString(TCHAR*, MCONTACT, BYTE); -void GetColorsFromDWord(LPCOLORREF First, LPCOLORREF Second, DWORD colDword); -DWORD GetDWordFromColors(COLORREF First, COLORREF Second); -int OptionsInit(WPARAM,LPARAM); -int UserinfoInit(WPARAM,LPARAM); -void InitMenuitem(void); -int UpdateValues(WPARAM, LPARAM); -int ModeChange(WPARAM,LPARAM); -void SetOffline(void); -int ModeChange_mo(WPARAM,LPARAM); -int CheckIfOnline(void); -void ShowHistory(MCONTACT hContact, BYTE isAlert); - -void InitFileOutput(void); -void UninitFileOutput(void); - -struct logthread_info -{ - MCONTACT hContact; - char sProtoName[MAXMODULELABELLENGTH]; - WORD currStatus; -}; - -extern HINSTANCE hInstance; -extern DWORD StatusColors15bits[]; -extern BOOL includeIdle; -extern HANDLE ehmissed, ehuserinfo, ehmissed_proto; -extern MWindowList g_pUserInfo; -extern HGENMENU hmenuitem; -extern DWORD dwmirver; - -extern BOOL g_bFileActive; - -void LoadWatchedProtos(); -void UnloadWatchedProtos(); -extern LIST arWatchedProtos; - -extern LIST arContacts; -extern mir_cs csContacts; diff --git a/plugins/SeenPlugin/src/stdafx.cpp b/plugins/SeenPlugin/src/stdafx.cpp deleted file mode 100644 index 0464d03bfc..0000000000 --- a/plugins/SeenPlugin/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 "seen.h" \ No newline at end of file diff --git a/plugins/SeenPlugin/src/stdafx.cxx b/plugins/SeenPlugin/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/SeenPlugin/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/SeenPlugin/src/stdafx.h b/plugins/SeenPlugin/src/stdafx.h new file mode 100644 index 0000000000..4b703c9eb2 --- /dev/null +++ b/plugins/SeenPlugin/src/stdafx.h @@ -0,0 +1,134 @@ +/* +"Last Seen mod" plugin for Miranda IM +Copyright ( C ) 2002-03 micron-x +Copyright ( C ) 2005-07 Y.B. + +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 ETDT_ENABLE 0x00000002 +#define ETDT_USETABTEXTURE 0x00000004 +#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE) + +#define _CRT_NON_CONFORMING_SWPRINTFS + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "resource.h" +#include "version.h" + +WCHAR *any_to_IdleNotidleUnknown(MCONTACT hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen); +WCHAR *any_to_Idle(MCONTACT hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen); + +#define NUM100NANOSEC 116444736000000000 + +#define S_MOD "SeenModule" + +//#define UM_CHECKHOOKS (WM_USER+1) + +#define debug(a) MessageBox(NULL,a,_T("Debug"),MB_OK) + +#define IDI_USERDETAILS 160 +#define IDI_DOWNARROW 264 +#define IDI_RECVMSG 136 + +#define ICON_OFFLINE 13 +#define ICON_ONLINE 14 +#define ICON_AWAY 15 +#define ICON_NA 16 +#define ICON_OCC 17 +#define ICON_DND 18 +#define ICON_FREE 19 +#define ICON_INVIS 20 + +#define WM_REFRESH_UI (WM_USER+10) + +#define DEFAULT_MENUSTAMP _T("%d.%m.%Y - %H:%M [%s]") +#define DEFAULT_POPUPSTAMP TranslateT("%n is %s (%u)") +#define DEFAULT_POPUPSTAMPTEXT TranslateT("%i(%r)%bWas %o") +#define DEFAULT_USERSTAMP TranslateT("Name:%t%N%bStatus:%t%s%bDay:%t%d.%m.%Y%bTime:%t%H:%M:%S%bPrevious Status:%t%o%b%b%P ID:%t%u%bExternal IP:%t%i%bInternal IP:%t%r%bClient ID: %t%C%b%bStatus Message:%t%T") +#define DEFAULT_FILESTAMP _T("%d.%m.%Y %H:%M:%S%t%n%t%s%t%u%t%r | %i%t%N") +#define DEFAULT_FILENAME _T("%miranda_logpath%\\LastSeen\\%P.txt") +#define DEFAULT_HISTORYSTAMP _T("%d.%m.%Y - %H:%M [%s]") +#define DEFAULT_WATCHEDPROTOCOLS "" + +typedef struct{ + int count; + WPARAM wpcontact[1024]; + BYTE times[1024]; +} MISSEDCONTACTS; + +int IsWatchedProtocol(const char* szProto); +TCHAR *ParseString(TCHAR*, MCONTACT, BYTE); +void GetColorsFromDWord(LPCOLORREF First, LPCOLORREF Second, DWORD colDword); +DWORD GetDWordFromColors(COLORREF First, COLORREF Second); +int OptionsInit(WPARAM,LPARAM); +int UserinfoInit(WPARAM,LPARAM); +void InitMenuitem(void); +int UpdateValues(WPARAM, LPARAM); +int ModeChange(WPARAM,LPARAM); +void SetOffline(void); +int ModeChange_mo(WPARAM,LPARAM); +int CheckIfOnline(void); +void ShowHistory(MCONTACT hContact, BYTE isAlert); + +void InitFileOutput(void); +void UninitFileOutput(void); + +struct logthread_info +{ + MCONTACT hContact; + char sProtoName[MAXMODULELABELLENGTH]; + WORD currStatus; +}; + +extern HINSTANCE hInstance; +extern DWORD StatusColors15bits[]; +extern BOOL includeIdle; +extern HANDLE ehmissed, ehuserinfo, ehmissed_proto; +extern MWindowList g_pUserInfo; +extern HGENMENU hmenuitem; +extern DWORD dwmirver; + +extern BOOL g_bFileActive; + +void LoadWatchedProtos(); +void UnloadWatchedProtos(); +extern LIST arWatchedProtos; + +extern LIST arContacts; +extern mir_cs csContacts; diff --git a/plugins/SeenPlugin/src/userinfo.cpp b/plugins/SeenPlugin/src/userinfo.cpp index 197d2d290c..dc94193927 100644 --- a/plugins/SeenPlugin/src/userinfo.cpp +++ b/plugins/SeenPlugin/src/userinfo.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" LRESULT CALLBACK EditProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam) { diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index 306d133dac..e57c451cd4 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "seen.h" +#include "stdafx.h" void FileWrite(MCONTACT); void HistoryWrite(MCONTACT hcontact); -- cgit v1.2.3