From fe46ed0171aacb41a76764f01b2b60abb98fcb60 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 1 Aug 2015 20:59:52 +0000 Subject: WhenWasIt: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14801 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WhenWasIt/WhenWasIt.vcxproj | 28 +++ plugins/WhenWasIt/WhenWasIt.vcxproj.filters | 4 + plugins/WhenWasIt/WhenWasIt_10.vcxproj | 222 ------------------------ plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters | 98 ----------- plugins/WhenWasIt/WhenWasIt_12.vcxproj | 225 ------------------------- plugins/WhenWasIt/WhenWasIt_12.vcxproj.filters | 98 ----------- plugins/WhenWasIt/WhenWasIt_14.vcxproj | 225 ------------------------- plugins/WhenWasIt/WhenWasIt_14.vcxproj.filters | 98 ----------- plugins/WhenWasIt/src/WhenWasIt.cpp | 2 +- plugins/WhenWasIt/src/birthdays.cpp | 2 +- plugins/WhenWasIt/src/commonheaders.h | 96 ----------- plugins/WhenWasIt/src/date_utils.cpp | 2 +- plugins/WhenWasIt/src/dlg_handlers.cpp | 2 +- plugins/WhenWasIt/src/events.cpp | 2 +- plugins/WhenWasIt/src/hooked_events.cpp | 2 +- plugins/WhenWasIt/src/icons.cpp | 2 +- plugins/WhenWasIt/src/notifiers.cpp | 2 +- plugins/WhenWasIt/src/services.cpp | 2 +- plugins/WhenWasIt/src/stdafx.cpp | 18 -- plugins/WhenWasIt/src/stdafx.cxx | 18 ++ plugins/WhenWasIt/src/stdafx.h | 95 +++++++++++ plugins/WhenWasIt/src/utils.cpp | 2 +- 22 files changed, 155 insertions(+), 1090 deletions(-) create mode 100644 plugins/WhenWasIt/WhenWasIt.vcxproj create mode 100644 plugins/WhenWasIt/WhenWasIt.vcxproj.filters delete mode 100644 plugins/WhenWasIt/WhenWasIt_10.vcxproj delete mode 100644 plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters delete mode 100644 plugins/WhenWasIt/WhenWasIt_12.vcxproj delete mode 100644 plugins/WhenWasIt/WhenWasIt_12.vcxproj.filters delete mode 100644 plugins/WhenWasIt/WhenWasIt_14.vcxproj delete mode 100644 plugins/WhenWasIt/WhenWasIt_14.vcxproj.filters delete mode 100644 plugins/WhenWasIt/src/commonheaders.h delete mode 100644 plugins/WhenWasIt/src/stdafx.cpp create mode 100644 plugins/WhenWasIt/src/stdafx.cxx create mode 100644 plugins/WhenWasIt/src/stdafx.h (limited to 'plugins') diff --git a/plugins/WhenWasIt/WhenWasIt.vcxproj b/plugins/WhenWasIt/WhenWasIt.vcxproj new file mode 100644 index 0000000000..c20aa74326 --- /dev/null +++ b/plugins/WhenWasIt/WhenWasIt.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + WhenWasIt + {63E05ECA-0A63-479E-86BD-2CAF53869BDA} + + + + + \ No newline at end of file diff --git a/plugins/WhenWasIt/WhenWasIt.vcxproj.filters b/plugins/WhenWasIt/WhenWasIt.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/WhenWasIt/WhenWasIt.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/WhenWasIt/WhenWasIt_10.vcxproj b/plugins/WhenWasIt/WhenWasIt_10.vcxproj deleted file mode 100644 index a17b388a6a..0000000000 --- a/plugins/WhenWasIt/WhenWasIt_10.vcxproj +++ /dev/null @@ -1,222 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - WhenWasIt - {63E05ECA-0A63-479E-86BD-2CAF53869BDA} - - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - true - - - - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - Windows - 0x2F400000 - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - Level3 - ProgramDatabase - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - Windows - true - true - 0x2F400000 - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Full - OnlyExplicitInline - Size - Level3 - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - true - $(IntDir)$(TargetName).lib - true - Windows - 0x2F400000 - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Disabled - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - Windows - 0x2F400000 - false - true - $(ProfileDir)..\..\bin10\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters b/plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters deleted file mode 100644 index 2ccc920e34..0000000000 --- a/plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters +++ /dev/null @@ -1,98 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/WhenWasIt/WhenWasIt_12.vcxproj b/plugins/WhenWasIt/WhenWasIt_12.vcxproj deleted file mode 100644 index 43c65253d4..0000000000 --- a/plugins/WhenWasIt/WhenWasIt_12.vcxproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - WhenWasIt - {63E05ECA-0A63-479E-86BD-2CAF53869BDA} - - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - true - - - - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - Windows - 0x2F400000 - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - Level3 - ProgramDatabase - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - Windows - true - true - 0x2F400000 - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin12\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Full - OnlyExplicitInline - Size - Level3 - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - true - $(IntDir)$(TargetName).lib - true - Windows - 0x2F400000 - false - $(ProfileDir)..\..\bin12\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Disabled - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - Windows - 0x2F400000 - false - true - $(ProfileDir)..\..\bin12\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/WhenWasIt/WhenWasIt_12.vcxproj.filters b/plugins/WhenWasIt/WhenWasIt_12.vcxproj.filters deleted file mode 100644 index 2ccc920e34..0000000000 --- a/plugins/WhenWasIt/WhenWasIt_12.vcxproj.filters +++ /dev/null @@ -1,98 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/WhenWasIt/WhenWasIt_14.vcxproj b/plugins/WhenWasIt/WhenWasIt_14.vcxproj deleted file mode 100644 index cb6ef8d9c0..0000000000 --- a/plugins/WhenWasIt/WhenWasIt_14.vcxproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - WhenWasIt - {63E05ECA-0A63-479E-86BD-2CAF53869BDA} - - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - true - - - - Disabled - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - Windows - 0x2F400000 - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin14\lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Full - OnlyExplicitInline - Size - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - Level3 - ProgramDatabase - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - Windows - true - true - 0x2F400000 - false - $(IntDir)$(TargetName).lib - $(ProfileDir)..\..\bin14\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Full - OnlyExplicitInline - Size - Level3 - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - true - true - $(IntDir)$(TargetName).lib - true - Windows - 0x2F400000 - false - $(ProfileDir)..\..\bin14\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Disabled - Use - commonheaders.h - false - - - comctl32.lib;%(AdditionalDependencies) - $(IntDir)$(TargetName).lib - Windows - 0x2F400000 - false - true - $(ProfileDir)..\..\bin14\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/WhenWasIt/WhenWasIt_14.vcxproj.filters b/plugins/WhenWasIt/WhenWasIt_14.vcxproj.filters deleted file mode 100644 index 2ccc920e34..0000000000 --- a/plugins/WhenWasIt/WhenWasIt_14.vcxproj.filters +++ /dev/null @@ -1,98 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/WhenWasIt/src/WhenWasIt.cpp b/plugins/WhenWasIt/src/WhenWasIt.cpp index f6f2f739ad..bb900196e6 100644 --- a/plugins/WhenWasIt/src/WhenWasIt.cpp +++ b/plugins/WhenWasIt/src/WhenWasIt.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 "commonheaders.h" +#include "stdafx.h" char ModuleName[] = "WhenWasIt"; HINSTANCE hInstance; diff --git a/plugins/WhenWasIt/src/birthdays.cpp b/plugins/WhenWasIt/src/birthdays.cpp index cf8e4c65ed..78e128130c 100644 --- a/plugins/WhenWasIt/src/birthdays.cpp +++ b/plugins/WhenWasIt/src/birthdays.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 "commonheaders.h" +#include "stdafx.h" CBirthdays &birthdays = CBirthdays(); diff --git a/plugins/WhenWasIt/src/commonheaders.h b/plugins/WhenWasIt/src/commonheaders.h deleted file mode 100644 index 39d5161d8c..0000000000 --- a/plugins/WhenWasIt/src/commonheaders.h +++ /dev/null @@ -1,96 +0,0 @@ -/* -WhenWasIt (birthday reminder) plugin for Miranda IM - -Copyright © 2006-2011 Cristian Libotean - -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. -*/ - -#ifndef M_WWI_COMMONHEADERS_H -#define M_WWI_COMMONHEADERS_H - -#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 -#include - -#include "icons.h" -#include "resource.h" -#include "version.h" -#include "utils.h" -#include "date_utils.h" -#include "services.h" -#include "hooked_events.h" -#include "notifiers.h" -#include "birthdays.h" -#include "dlg_handlers.h" -#include "events.h" - -extern char ModuleName[]; -extern HINSTANCE hInstance; -extern HWND hBirthdaysDlg; -extern HWND hUpcomingDlg; -extern MWindowList hAddBirthdayWndsList; - -struct CommonData{ - DWORD foreground; - DWORD background; - int checkInterval; - int daysInAdvance; - int popupTimeout; - int popupTimeoutToday; - int bUsePopups; - int bUseDialog; - int bIgnoreSubcontacts; - int cShowAgeMode; - int bNoBirthdaysPopup; - int cSoundNearDays; - int cDefaultModule; - int lPopupClick; - int rPopupClick; - int bOncePerDay; - int cDlgTimeout; - int notifyFor; - int daysAfter; - int bOpenInBackground; -}; - -extern CommonData commonData; - -#endif //M_WWI_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/WhenWasIt/src/date_utils.cpp b/plugins/WhenWasIt/src/date_utils.cpp index 4e0cabacc2..cb2f47ebe2 100644 --- a/plugins/WhenWasIt/src/date_utils.cpp +++ b/plugins/WhenWasIt/src/date_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 "commonheaders.h" +#include "stdafx.h" time_t Today() { diff --git a/plugins/WhenWasIt/src/dlg_handlers.cpp b/plugins/WhenWasIt/src/dlg_handlers.cpp index 899904ccb4..9e1209d1a1 100644 --- a/plugins/WhenWasIt/src/dlg_handlers.cpp +++ b/plugins/WhenWasIt/src/dlg_handlers.cpp @@ -19,7 +19,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 "commonheaders.h" +#include "stdafx.h" #define COLOR_USERINFO RGB(138, 190, 160) #define COLOR_MBIRTHDAY RGB(222, 222, 88) diff --git a/plugins/WhenWasIt/src/events.cpp b/plugins/WhenWasIt/src/events.cpp index 794f748596..63828b0422 100644 --- a/plugins/WhenWasIt/src/events.cpp +++ b/plugins/WhenWasIt/src/events.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 "commonheaders.h" +#include "stdafx.h" HANDLE heContactSendMessage; diff --git a/plugins/WhenWasIt/src/hooked_events.cpp b/plugins/WhenWasIt/src/hooked_events.cpp index ebc715a279..83d2904a90 100644 --- a/plugins/WhenWasIt/src/hooked_events.cpp +++ b/plugins/WhenWasIt/src/hooked_events.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 "commonheaders.h" +#include "stdafx.h" #define DATE_CHANGE_CHECK_INTERVAL 20 diff --git a/plugins/WhenWasIt/src/icons.cpp b/plugins/WhenWasIt/src/icons.cpp index 98760e03c6..13a2e17350 100644 --- a/plugins/WhenWasIt/src/icons.cpp +++ b/plugins/WhenWasIt/src/icons.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 "commonheaders.h" +#include "stdafx.h" HANDLE hCheckMenu, hListMenu, hAddBirthdayContact, hRefreshUserDetails; HANDLE hImportBirthdays, hExportBirthdays; diff --git a/plugins/WhenWasIt/src/notifiers.cpp b/plugins/WhenWasIt/src/notifiers.cpp index 4f2412143d..4844dcece1 100644 --- a/plugins/WhenWasIt/src/notifiers.cpp +++ b/plugins/WhenWasIt/src/notifiers.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 "commonheaders.h" +#include "stdafx.h" void FillPopupData(POPUPDATAT &pd, int dtb) { diff --git a/plugins/WhenWasIt/src/services.cpp b/plugins/WhenWasIt/src/services.cpp index 2130782dec..f38ba2acd6 100644 --- a/plugins/WhenWasIt/src/services.cpp +++ b/plugins/WhenWasIt/src/services.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 "commonheaders.h" +#include "stdafx.h" #define COMMENT_CHAR '#' diff --git a/plugins/WhenWasIt/src/stdafx.cpp b/plugins/WhenWasIt/src/stdafx.cpp deleted file mode 100644 index 048b14e9d2..0000000000 --- a/plugins/WhenWasIt/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 "commonheaders.h" \ No newline at end of file diff --git a/plugins/WhenWasIt/src/stdafx.cxx b/plugins/WhenWasIt/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/WhenWasIt/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/WhenWasIt/src/stdafx.h b/plugins/WhenWasIt/src/stdafx.h new file mode 100644 index 0000000000..2a0760b1e1 --- /dev/null +++ b/plugins/WhenWasIt/src/stdafx.h @@ -0,0 +1,95 @@ +/* +WhenWasIt (birthday reminder) plugin for Miranda IM + +Copyright © 2006-2011 Cristian Libotean + +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. +*/ + +#ifndef M_WWI_COMMONHEADERS_H +#define M_WWI_COMMONHEADERS_H + +#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 +#include + +#include "icons.h" +#include "resource.h" +#include "version.h" +#include "utils.h" +#include "date_utils.h" +#include "services.h" +#include "hooked_events.h" +#include "notifiers.h" +#include "birthdays.h" +#include "dlg_handlers.h" +#include "events.h" + +extern char ModuleName[]; +extern HINSTANCE hInstance; +extern HWND hBirthdaysDlg; +extern HWND hUpcomingDlg; +extern MWindowList hAddBirthdayWndsList; + +struct CommonData{ + DWORD foreground; + DWORD background; + int checkInterval; + int daysInAdvance; + int popupTimeout; + int popupTimeoutToday; + int bUsePopups; + int bUseDialog; + int bIgnoreSubcontacts; + int cShowAgeMode; + int bNoBirthdaysPopup; + int cSoundNearDays; + int cDefaultModule; + int lPopupClick; + int rPopupClick; + int bOncePerDay; + int cDlgTimeout; + int notifyFor; + int daysAfter; + int bOpenInBackground; +}; + +extern CommonData commonData; + +#endif //M_WWI_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/WhenWasIt/src/utils.cpp b/plugins/WhenWasIt/src/utils.cpp index 8c396b757f..3bfa1843f2 100644 --- a/plugins/WhenWasIt/src/utils.cpp +++ b/plugins/WhenWasIt/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 "commonheaders.h" +#include "stdafx.h" int LogInit() { -- cgit v1.2.3