From cda00412ae794fb120caf6bf62a83ba6a8848704 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 1 Aug 2015 21:38:29 +0000 Subject: yapp: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAPP/src/common.h | 75 ----------------------------------- plugins/YAPP/src/icons.cpp | 2 +- plugins/YAPP/src/message_pump.cpp | 2 +- plugins/YAPP/src/notify_imp.cpp | 2 +- plugins/YAPP/src/options.cpp | 2 +- plugins/YAPP/src/popwin.cpp | 2 +- plugins/YAPP/src/services.cpp | 2 +- plugins/YAPP/src/stdafx.cpp | 18 --------- plugins/YAPP/src/stdafx.cxx | 18 +++++++++ plugins/YAPP/src/stdafx.h | 73 ++++++++++++++++++++++++++++++++++ plugins/YAPP/src/yapp.cpp | 2 +- plugins/YAPP/src/yapp_history.cpp | 2 +- plugins/YAPP/src/yapp_history_dlg.cpp | 2 +- 13 files changed, 100 insertions(+), 102 deletions(-) delete mode 100644 plugins/YAPP/src/common.h delete mode 100644 plugins/YAPP/src/stdafx.cpp create mode 100644 plugins/YAPP/src/stdafx.cxx create mode 100644 plugins/YAPP/src/stdafx.h (limited to 'plugins/YAPP/src') diff --git a/plugins/YAPP/src/common.h b/plugins/YAPP/src/common.h deleted file mode 100644 index f1305489f0..0000000000 --- a/plugins/YAPP/src/common.h +++ /dev/null @@ -1,75 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#define _CRT_SECURE_NO_WARNINGS - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include //need this for special renderers - -#include "version.h" -#include "message_pump.h" -#include "options.h" -#include "popwin.h" -#include "notify.h" -#include "services.h" -#include "resource.h" -#include "yapp_history.h" -#include "icons.h" - -#define MODULE "YAPP" - -extern HMODULE hInst; -extern bool bShutdown; - -extern HFONT hFontFirstLine, hFontSecondLine, hFontTime; -extern COLORREF colFirstLine, colSecondLine, colBg, colTime, colBorder, colSidebar, colTitleUnderline; - -extern MNOTIFYLINK *notifyLink; - -// work around a bug in neweventnotify, possibly httpserver -// ignore the address passed to the 'get plugin data' service -extern bool ignore_gpd_passed_addy; - -// win32 defines for mingw version of windows headers :( -#ifndef LVM_SORTITEMSEX -#define LVM_SORTITEMSEX (LVM_FIRST + 81) - -typedef int (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM); - -#define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm) \ - (BOOL)SendMessage((hwndLV), LVM_SORTITEMSEX, (WPARAM)(LPARAM)(_lPrm), (LPARAM)(PFNLVCOMPARE)(_pfnCompare)) -#endif - -#define PDF_UNICODE 0x0001 -#define PDF_ICOLIB 0x0002 - -#define PDF_TCHAR PDF_UNICODE - -void ShowPopup(PopupData &pd_in); \ No newline at end of file diff --git a/plugins/YAPP/src/icons.cpp b/plugins/YAPP/src/icons.cpp index 6c48b95d0c..f9364cf47e 100644 --- a/plugins/YAPP/src/icons.cpp +++ b/plugins/YAPP/src/icons.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" static IconItem iconList[] = { diff --git a/plugins/YAPP/src/message_pump.cpp b/plugins/YAPP/src/message_pump.cpp index 24b034001c..34ff5cc468 100644 --- a/plugins/YAPP/src/message_pump.cpp +++ b/plugins/YAPP/src/message_pump.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" unsigned message_pump_thread_id = 0; int num_popups = 0; diff --git a/plugins/YAPP/src/notify_imp.cpp b/plugins/YAPP/src/notify_imp.cpp index 1af80729c7..aad282b1b4 100644 --- a/plugins/YAPP/src/notify_imp.cpp +++ b/plugins/YAPP/src/notify_imp.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" HANDLE hhkShow=0, hhkUpdate=0, hhkRemove=0; diff --git a/plugins/YAPP/src/options.cpp b/plugins/YAPP/src/options.cpp index 6ebd9ce7f7..90284668a1 100644 --- a/plugins/YAPP/src/options.cpp +++ b/plugins/YAPP/src/options.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" Options options; diff --git a/plugins/YAPP/src/popwin.cpp b/plugins/YAPP/src/popwin.cpp index 4229911018..01ba681cfe 100644 --- a/plugins/YAPP/src/popwin.cpp +++ b/plugins/YAPP/src/popwin.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" #define ID_CLOSETIMER 0x0101 #define ID_MOVETIMER 0x0102 diff --git a/plugins/YAPP/src/services.cpp b/plugins/YAPP/src/services.cpp index e80b50203a..64363b252c 100644 --- a/plugins/YAPP/src/services.cpp +++ b/plugins/YAPP/src/services.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" extern HANDLE hTTButton; extern HGENMENU hMenuRoot, hMenuItem; diff --git a/plugins/YAPP/src/stdafx.cpp b/plugins/YAPP/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/plugins/YAPP/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 "common.h" \ No newline at end of file diff --git a/plugins/YAPP/src/stdafx.cxx b/plugins/YAPP/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/YAPP/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/YAPP/src/stdafx.h b/plugins/YAPP/src/stdafx.h new file mode 100644 index 0000000000..26ec420cc1 --- /dev/null +++ b/plugins/YAPP/src/stdafx.h @@ -0,0 +1,73 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include //need this for special renderers + +#include "version.h" +#include "message_pump.h" +#include "options.h" +#include "popwin.h" +#include "notify.h" +#include "services.h" +#include "resource.h" +#include "yapp_history.h" +#include "icons.h" + +#define MODULE "YAPP" + +extern HMODULE hInst; +extern bool bShutdown; + +extern HFONT hFontFirstLine, hFontSecondLine, hFontTime; +extern COLORREF colFirstLine, colSecondLine, colBg, colTime, colBorder, colSidebar, colTitleUnderline; + +extern MNOTIFYLINK *notifyLink; + +// work around a bug in neweventnotify, possibly httpserver +// ignore the address passed to the 'get plugin data' service +extern bool ignore_gpd_passed_addy; + +// win32 defines for mingw version of windows headers :( +#ifndef LVM_SORTITEMSEX +#define LVM_SORTITEMSEX (LVM_FIRST + 81) + +typedef int (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM); + +#define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm) \ + (BOOL)SendMessage((hwndLV), LVM_SORTITEMSEX, (WPARAM)(LPARAM)(_lPrm), (LPARAM)(PFNLVCOMPARE)(_pfnCompare)) +#endif + +#define PDF_UNICODE 0x0001 +#define PDF_ICOLIB 0x0002 + +#define PDF_TCHAR PDF_UNICODE + +void ShowPopup(PopupData &pd_in); \ No newline at end of file diff --git a/plugins/YAPP/src/yapp.cpp b/plugins/YAPP/src/yapp.cpp index 0db8062c1c..5d20b88e62 100644 --- a/plugins/YAPP/src/yapp.cpp +++ b/plugins/YAPP/src/yapp.cpp @@ -1,7 +1,7 @@ // popups2.cpp : Defines the entry point for the DLL application. // -#include "common.h" +#include "stdafx.h" HMODULE hInst = 0; bool bShutdown = false; diff --git a/plugins/YAPP/src/yapp_history.cpp b/plugins/YAPP/src/yapp_history.cpp index 0b1d534cb0..08ff8f747a 100644 --- a/plugins/YAPP/src/yapp_history.cpp +++ b/plugins/YAPP/src/yapp_history.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" PopupHistoryList::PopupHistoryList(int renderer) { diff --git a/plugins/YAPP/src/yapp_history_dlg.cpp b/plugins/YAPP/src/yapp_history_dlg.cpp index 5f6a95b7c8..640e5c5020 100644 --- a/plugins/YAPP/src/yapp_history_dlg.cpp +++ b/plugins/YAPP/src/yapp_history_dlg.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" //************ Some helper resize stuff ****************** -- cgit v1.2.3