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/RecentContacts/src/RecentContacts.cpp | 2 +- plugins/RecentContacts/src/RecentContacts.h | 85 --------------------------- plugins/RecentContacts/src/options.cpp | 3 +- plugins/RecentContacts/src/stdafx.cpp | 18 ------ plugins/RecentContacts/src/stdafx.cxx | 18 ++++++ plugins/RecentContacts/src/stdafx.h | 84 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 106 deletions(-) delete mode 100644 plugins/RecentContacts/src/RecentContacts.h delete mode 100644 plugins/RecentContacts/src/stdafx.cpp create mode 100644 plugins/RecentContacts/src/stdafx.cxx create mode 100644 plugins/RecentContacts/src/stdafx.h (limited to 'plugins/RecentContacts/src') diff --git a/plugins/RecentContacts/src/RecentContacts.cpp b/plugins/RecentContacts/src/RecentContacts.cpp index 97f0c547b4..f197eca6e6 100644 --- a/plugins/RecentContacts/src/RecentContacts.cpp +++ b/plugins/RecentContacts/src/RecentContacts.cpp @@ -1,5 +1,5 @@ -#include "RecentContacts.h" +#include "stdafx.h" extern int onOptInitialise(WPARAM wParam, LPARAM lParam); diff --git a/plugins/RecentContacts/src/RecentContacts.h b/plugins/RecentContacts/src/RecentContacts.h deleted file mode 100644 index 43a21e8227..0000000000 --- a/plugins/RecentContacts/src/RecentContacts.h +++ /dev/null @@ -1,85 +0,0 @@ -#define _CRT_SECURE_NO_WARNINGS -#define _CRT_NONSTDC_NO_DEPRECATE - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "resource.h" -#include "Version.h" - -#define V_RECENTCONTACTS_TOGGLE_IGNORE "RecentContacts/ToggleIgnore" - -using namespace std; - -void wSetData(char **Data, const char *Value); -void wfree(char **Data); - -static char msLastUC_ShowListName[] = LPGEN("Recent Contacts"); - -static char dbLastUC_ModuleName[] = "RecentContacts"; -static char dbLastUC_LastUsedTimeLo[] = "LastUsedTimeLo"; -static char dbLastUC_LastUsedTimeHi[] = "LastUsedTimeHi"; -static char dbLastUC_WindowPosPrefix[] = "Window"; -static char dbLastUC_DateTimeFormat[] = "DateTimeFormat"; -static char dbLastUC_DateTimeFormatDefault[] = "(%Y-%m-%d %H:%M) "; -static char dbLastUC_MaxShownContacts[] = "MaxShownContacts"; -static char dbLastUC_IgnoreContact[] = "Ignore"; -static char dbLastUC_HideOfflineContacts[] = "HideOfflineContacts"; -static char dbLastUC_WindowAutosize[] = "WindowAutoSize"; - -static char msLastUC_ShowList[] = "RecentContacts/ShowList"; -static char msLastUC_IgnoreOff[] = "RecentContacts/SetIgnoreOff"; -static char msLastUC_IgnoreOn[] = "RecentContacts/SetIgnoreOn"; - -///////////////////////////////////////////////////////////////////////////////////////// - -typedef struct _LastUCOptions -{ - int MaxShownContacts; - int HideOffline; - int WindowAutoSize; - string DateTimeFormat; -} - LastUCOptions; - -extern LastUCOptions LastUCOpt; -//#include "m_tabsrmm.h" -// custom tabSRMM events -#define tabMSG_WINDOW_EVT_CUSTOM_BEFORESEND 1 -struct TABSRMM_SessionInfo { - unsigned int cbSize; - unsigned int evtCode; - HWND hwnd; // handle of the message dialog (tab) - HWND hwndContainer; // handle of the parent container - HWND hwndInput; // handle of the input area (rich edit) - /*struct MessageWindowData*/ void *dat; // the session info - /*struct ContainerWindowData*/ void *pContainer; -}; - - -typedef std::multimap <__time64_t, MCONTACT, std::greater<__time64_t> > cmultimap; -typedef std::pair <__time64_t, MCONTACT> cpair; - -typedef struct LASTUC_DLG_DATA -{ - cmultimap *Contacts; - SIZE WindowMinSize; - RECT ListUCRect; - MCONTACT hContact; -} LASTUC_DLG_DATA; \ No newline at end of file diff --git a/plugins/RecentContacts/src/options.cpp b/plugins/RecentContacts/src/options.cpp index 679e183168..d8f733a3fa 100644 --- a/plugins/RecentContacts/src/options.cpp +++ b/plugins/RecentContacts/src/options.cpp @@ -1,5 +1,4 @@ -#include "RecentContacts.h" -#include "resource.h" +#include "stdafx.h" extern HINSTANCE hInst; void LoadDBSettings(); diff --git a/plugins/RecentContacts/src/stdafx.cpp b/plugins/RecentContacts/src/stdafx.cpp deleted file mode 100644 index 196b0adef0..0000000000 --- a/plugins/RecentContacts/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 "RecentContacts.h" \ No newline at end of file diff --git a/plugins/RecentContacts/src/stdafx.cxx b/plugins/RecentContacts/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/RecentContacts/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/RecentContacts/src/stdafx.h b/plugins/RecentContacts/src/stdafx.h new file mode 100644 index 0000000000..06679f407e --- /dev/null +++ b/plugins/RecentContacts/src/stdafx.h @@ -0,0 +1,84 @@ +#define _CRT_NONSTDC_NO_DEPRECATE + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "resource.h" +#include "Version.h" + +#define V_RECENTCONTACTS_TOGGLE_IGNORE "RecentContacts/ToggleIgnore" + +using namespace std; + +void wSetData(char **Data, const char *Value); +void wfree(char **Data); + +static char msLastUC_ShowListName[] = LPGEN("Recent Contacts"); + +static char dbLastUC_ModuleName[] = "RecentContacts"; +static char dbLastUC_LastUsedTimeLo[] = "LastUsedTimeLo"; +static char dbLastUC_LastUsedTimeHi[] = "LastUsedTimeHi"; +static char dbLastUC_WindowPosPrefix[] = "Window"; +static char dbLastUC_DateTimeFormat[] = "DateTimeFormat"; +static char dbLastUC_DateTimeFormatDefault[] = "(%Y-%m-%d %H:%M) "; +static char dbLastUC_MaxShownContacts[] = "MaxShownContacts"; +static char dbLastUC_IgnoreContact[] = "Ignore"; +static char dbLastUC_HideOfflineContacts[] = "HideOfflineContacts"; +static char dbLastUC_WindowAutosize[] = "WindowAutoSize"; + +static char msLastUC_ShowList[] = "RecentContacts/ShowList"; +static char msLastUC_IgnoreOff[] = "RecentContacts/SetIgnoreOff"; +static char msLastUC_IgnoreOn[] = "RecentContacts/SetIgnoreOn"; + +///////////////////////////////////////////////////////////////////////////////////////// + +typedef struct _LastUCOptions +{ + int MaxShownContacts; + int HideOffline; + int WindowAutoSize; + string DateTimeFormat; +} + LastUCOptions; + +extern LastUCOptions LastUCOpt; +//#include "m_tabsrmm.h" +// custom tabSRMM events +#define tabMSG_WINDOW_EVT_CUSTOM_BEFORESEND 1 +struct TABSRMM_SessionInfo { + unsigned int cbSize; + unsigned int evtCode; + HWND hwnd; // handle of the message dialog (tab) + HWND hwndContainer; // handle of the parent container + HWND hwndInput; // handle of the input area (rich edit) + /*struct MessageWindowData*/ void *dat; // the session info + /*struct ContainerWindowData*/ void *pContainer; +}; + + +typedef std::multimap <__time64_t, MCONTACT, std::greater<__time64_t> > cmultimap; +typedef std::pair <__time64_t, MCONTACT> cpair; + +typedef struct LASTUC_DLG_DATA +{ + cmultimap *Contacts; + SIZE WindowMinSize; + RECT ListUCRect; + MCONTACT hContact; +} LASTUC_DLG_DATA; \ No newline at end of file -- cgit v1.2.3