summaryrefslogtreecommitdiff
path: root/plugins/YAPP/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-14 08:11:57 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-14 08:11:57 +0000
commit809aa14dd2119e7b0de93846eb38bbb83073dad6 (patch)
tree54c400100970481180dcc6908961b2f64dd03155 /plugins/YAPP/src
parent7e5f2445f906ade2533fc3a4b6d14b8da52ec522 (diff)
removed not used headers
m_yapp.h moved to ExtAPI git-svn-id: http://svn.miranda-ng.org/main/trunk@4013 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP/src')
-rw-r--r--plugins/YAPP/src/common.h48
-rw-r--r--plugins/YAPP/src/m_yapp.h29
-rw-r--r--plugins/YAPP/src/message_pump.cpp4
-rw-r--r--plugins/YAPP/src/message_pump.h25
-rw-r--r--plugins/YAPP/src/notify_imp.cpp4
-rw-r--r--plugins/YAPP/src/options.cpp4
-rw-r--r--plugins/YAPP/src/popwin.cpp3
-rw-r--r--plugins/YAPP/src/services.cpp5
-rw-r--r--plugins/YAPP/src/version.h24
-rw-r--r--plugins/YAPP/src/yapp.cpp15
-rw-r--r--plugins/YAPP/src/yapp_history.cpp1
-rw-r--r--plugins/YAPP/src/yapp_history.h2
-rw-r--r--plugins/YAPP/src/yapp_history_dlg.cpp2
13 files changed, 49 insertions, 117 deletions
diff --git a/plugins/YAPP/src/common.h b/plugins/YAPP/src/common.h
index e8aa204340..e4973da944 100644
--- a/plugins/YAPP/src/common.h
+++ b/plugins/YAPP/src/common.h
@@ -26,28 +26,20 @@
#endif
-#include <m_stdhdr.h>
-
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
-// Windows Header Files:
+
#include <windows.h>
#include <commctrl.h>
#include <time.h>
-
-#define MIRANDA_VER 0x0A00
+#include <malloc.h>
#include <newpluginapi.h>
-#include <statusmodes.h>
#include <m_database.h>
#include <m_langpack.h>
#include <m_options.h>
-#include <m_system.h>
-#include <m_system_cpp.h>
-#include <m_idle.h>
#include <m_skin.h>
#include <m_clui.h>
#include <m_clist.h>
-#include <m_utils.h>
#include <m_fontservice.h>
#include <m_avatars.h>
#include <m_popup.h>
@@ -55,6 +47,17 @@
#include <win2k.h>
#include <m_notify.h>
+#include <m_yapp.h>
+#include <m_ieview.h> //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"
#define MODULE "YAPP"
@@ -80,31 +83,6 @@ typedef int (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM);
#endif
-struct PopupData
-{
- int cbSize;
- int flags; // OR of PDF_* flags below
- HANDLE hContact;
- HICON hIcon;
- union {
- char *pszTitle;
- TCHAR *ptzTitle;
- wchar_t *pwzTitle;
- };
- union {
- char *pszText;
- TCHAR *ptzText;
- wchar_t *pwzText;
- };
- COLORREF colorBack; // if colorBack and colorText are equal, defaults will be used
- COLORREF colorText;
- WNDPROC windowProc; // optional custom window procedure
- int timeout; // -1 == infinite, 0 == default, otherwise timeout in seconds
- void *opaque;
-
- void SetIcon(HICON);
-};
-
#define PDF_UNICODE 0x0001
#define PDF_ICOLIB 0x0002
diff --git a/plugins/YAPP/src/m_yapp.h b/plugins/YAPP/src/m_yapp.h
deleted file mode 100644
index 26d9be0e2e..0000000000
--- a/plugins/YAPP/src/m_yapp.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef __m_yapp_h__
-#define __m_yapp_h__
-
-#define NFOPT_POPUP2_BACKCOLOR "Popup2/BackColor"
-#define NFOPT_POPUP2_TEXTCOLOR "Popup2/TextColor"
-#define NFOPT_POPUP2_TIMEOUT "Popup2/Timeout"
-#define NFOPT_POPUP2_LCLICKSVC "Popup2/LClickSvc"
-#define NFOPT_POPUP2_LCLICKCOOKIE "Popup2/LClickCookie"
-#define NFOPT_POPUP2_RCLICKSVC "Popup2/RClickSvc"
-#define NFOPT_POPUP2_RCLICKCOOKIE "Popup2/RClickCookie"
-#define NFOPT_POPUP2_STATUSMODE "Popup2/StatusMode"
-#define NFOPT_POPUP2_PLUGINDATA "Popup2/PluginData"
-#define NFOPT_POPUP2_WNDPROC "Popup2/WndProc"
-
-#define NFOPT_POPUP2_BACKCOLOR_S "Popup2/BackColor/Save"
-#define NFOPT_POPUP2_TEXTCOLOR_S "Popup2/TextColor/Save"
-#define NFOPT_POPUP2_TIMEOUT_S "Popup2/Timeout/Save"
-
-#define MS_POPUP2_SHOW "Popup2/Show"
-#define MS_POPUP2_UPDATE "Popup2/Update"
-#define MS_POPUP2_REMOVE "Popup2/Remove"
-
-#ifndef POPUP2_NOHELPERS
- #define MPopup2Show(a) (CallService(MS_POPUP2_SHOW, 0, (LPARAM)(a)))
- #define MPopup2Update(a) (CallService(MS_POPUP2_UPDATE, 0, (LPARAM)(a)))
- #define MPopup2Remove(a) (CallService(MS_POPUP2_REMOVE, 0, (LPARAM)(a)))
-#endif
-
-#endif // __m_yapp_h__
diff --git a/plugins/YAPP/src/message_pump.cpp b/plugins/YAPP/src/message_pump.cpp
index 421be2d433..3c2d297d92 100644
--- a/plugins/YAPP/src/message_pump.cpp
+++ b/plugins/YAPP/src/message_pump.cpp
@@ -1,8 +1,4 @@
#include "common.h"
-#include "message_pump.h"
-#include "popwin.h"
-#include "services.h"
-#include "options.h"
unsigned message_pump_thread_id = 0;
int num_popups = 0;
diff --git a/plugins/YAPP/src/message_pump.h b/plugins/YAPP/src/message_pump.h
index 70671b157a..6acb371080 100644
--- a/plugins/YAPP/src/message_pump.h
+++ b/plugins/YAPP/src/message_pump.h
@@ -11,6 +11,31 @@ void PostMPMessage(UINT msg, WPARAM, LPARAM);
#define MUM_NMREMOVE (WM_USER + 0x014)
#define MUM_NMAVATAR (WM_USER + 0x015)
+struct PopupData
+{
+ int cbSize;
+ int flags; // OR of PDF_* flags below
+ HANDLE hContact;
+ HICON hIcon;
+ union {
+ char *pszTitle;
+ TCHAR *ptzTitle;
+ wchar_t *pwzTitle;
+ };
+ union {
+ char *pszText;
+ TCHAR *ptzText;
+ wchar_t *pwzText;
+ };
+ COLORREF colorBack; // if colorBack and colorText are equal, defaults will be used
+ COLORREF colorText;
+ WNDPROC windowProc; // optional custom window procedure
+ int timeout; // -1 == infinite, 0 == default, otherwise timeout in seconds
+ void *opaque;
+
+ void SetIcon(HICON);
+};
+
// given a popup data pointer, and a handle to an event, this function
// will post a message to the message queue which will set the hwnd value
// and then set the event...so create an event, call this function and then wait on the event
diff --git a/plugins/YAPP/src/notify_imp.cpp b/plugins/YAPP/src/notify_imp.cpp
index 131df92bf7..be2e14cdc1 100644
--- a/plugins/YAPP/src/notify_imp.cpp
+++ b/plugins/YAPP/src/notify_imp.cpp
@@ -1,8 +1,4 @@
#include "common.h"
-#include "resource.h"
-#include "notify.h"
-#include "message_pump.h"
-#include "m_yapp.h"
HANDLE hhkShow=0, hhkUpdate=0, hhkRemove=0;
diff --git a/plugins/YAPP/src/options.cpp b/plugins/YAPP/src/options.cpp
index f2fafa9aa3..e8f06ceea2 100644
--- a/plugins/YAPP/src/options.cpp
+++ b/plugins/YAPP/src/options.cpp
@@ -1,8 +1,4 @@
#include "common.h"
-#include "options.h"
-#include "resource.h"
-#include "popwin.h"
-#include "services.h"
Options options;
diff --git a/plugins/YAPP/src/popwin.cpp b/plugins/YAPP/src/popwin.cpp
index 3c0c4cd10d..0313ba6f30 100644
--- a/plugins/YAPP/src/popwin.cpp
+++ b/plugins/YAPP/src/popwin.cpp
@@ -1,7 +1,4 @@
#include "common.h"
-#include "popwin.h"
-#include "message_pump.h"
-#include "options.h"
HMODULE hUserDll;
BOOL (WINAPI *MySetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD) = 0;
diff --git a/plugins/YAPP/src/services.cpp b/plugins/YAPP/src/services.cpp
index 372a4db2ce..8d5f962b69 100644
--- a/plugins/YAPP/src/services.cpp
+++ b/plugins/YAPP/src/services.cpp
@@ -1,9 +1,4 @@
#include "common.h"
-#include "services.h"
-#include "popwin.h"
-#include "message_pump.h"
-#include "resource.h"
-#include "yapp_history.h"
HANDLE hMenuShowHistory, hMenuToggleOnOff;
diff --git a/plugins/YAPP/src/version.h b/plugins/YAPP/src/version.h
index 48ea697f99..52c5791da7 100644
--- a/plugins/YAPP/src/version.h
+++ b/plugins/YAPP/src/version.h
@@ -1,24 +1,14 @@
-#ifndef __VERSION_H_INCLUDED
-#define __VERSION_H_INCLUDED
-
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 5
#define __RELEASE_NUM 0
#define __BUILD_NUM 10
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
-#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
-#define __STRINGIFY(x) #x
-#define __VERSION_STRING __STRINGIFY(__FILEVERSION_STRING_DOTS)
-
-#define __DESC "Yet Another Popup Plugin - Provides popup notification window services to other plugins."
-#define __AUTHOR "Scott Ellis"
-#define __AUTHOREMAIL "mail@scottellis.com.au"
-#define __COPYRIGHT "© 2005,2006 Scott Ellis"
-#define __AUTHORWEB "http://miranda-ng.org/"
-
-#define __PLUGIN_NAME "YAPP"
-
-#define __FILENAME "yapp.dll"
-#endif //__VERSION_H_INCLUDED
+#define __PLUGIN_NAME "YAPP"
+#define __FILENAME "YAPP.dll"
+#define __DESCRIPTION "Yet Another Popup Plugin - Provides popup notification window services to other plugins."
+#define __AUTHOR "Scott Ellis"
+#define __AUTHOREMAIL "mail@scottellis.com.au"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2005-2006 Scott Ellis"
diff --git a/plugins/YAPP/src/yapp.cpp b/plugins/YAPP/src/yapp.cpp
index b9aacd198b..cec66a0ee9 100644
--- a/plugins/YAPP/src/yapp.cpp
+++ b/plugins/YAPP/src/yapp.cpp
@@ -2,13 +2,6 @@
//
#include "common.h"
-#include "version.h"
-#include "message_pump.h"
-#include "options.h"
-#include "popwin.h"
-#include "notify.h"
-
-#include "yapp_history.h" //to be able to update the renderer
HMODULE hInst = 0;
@@ -30,17 +23,17 @@ PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
- __DESC,
+ __DESCRIPTION,
__AUTHOR,
__AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- // {EFD15F16-7AE4-40d7-A8E3-A411ED747BD5}
- {0xefd15f16, 0x7ae4, 0x40d7, {0xa8, 0xe3, 0xa4, 0x11, 0xed, 0x74, 0x7b, 0xd5 }}
+ // {EFD15F16-7AE4-40D7-A8E3-A411ED747BD5}
+ {0xefd15f16, 0x7ae4, 0x40d7, {0xa8, 0xe3, 0xa4, 0x11, 0xed, 0x74, 0x7b, 0xd5}}
};
-extern "C" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
+BOOL WINAPI DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
hInst = hModule;
return TRUE;
diff --git a/plugins/YAPP/src/yapp_history.cpp b/plugins/YAPP/src/yapp_history.cpp
index d6b0c4b114..a7cfd70fc6 100644
--- a/plugins/YAPP/src/yapp_history.cpp
+++ b/plugins/YAPP/src/yapp_history.cpp
@@ -1,5 +1,4 @@
#include "common.h"
-#include "yapp_history.h"
PopupHistoryList::PopupHistoryList(int renderer)
{
diff --git a/plugins/YAPP/src/yapp_history.h b/plugins/YAPP/src/yapp_history.h
index d527bc47f4..4927086b21 100644
--- a/plugins/YAPP/src/yapp_history.h
+++ b/plugins/YAPP/src/yapp_history.h
@@ -1,8 +1,6 @@
#ifndef __yapp_history_h__
#define __yapp_history_h__
-#include "m_ieview.h" //need this for special renderers
-
/****HISTORY ++ STUFF ***/
//there's no include file for h++ yet
#ifndef MS_HPP_EG_WINDOW
diff --git a/plugins/YAPP/src/yapp_history_dlg.cpp b/plugins/YAPP/src/yapp_history_dlg.cpp
index 1904243df7..71457acc41 100644
--- a/plugins/YAPP/src/yapp_history_dlg.cpp
+++ b/plugins/YAPP/src/yapp_history_dlg.cpp
@@ -1,6 +1,4 @@
#include "common.h"
-#include "resource.h"
-#include "yapp_history.h"
//************ Some helper resize stuff ******************