summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TipperYM/src')
-rw-r--r--plugins/TipperYM/src/bitmap_func.cpp3
-rw-r--r--plugins/TipperYM/src/common.h26
-rw-r--r--plugins/TipperYM/src/message_pump.cpp5
-rw-r--r--plugins/TipperYM/src/mir_smileys.cpp2
-rw-r--r--plugins/TipperYM/src/options.cpp10
-rw-r--r--plugins/TipperYM/src/options.h5
-rw-r--r--plugins/TipperYM/src/popwin.cpp9
-rw-r--r--plugins/TipperYM/src/popwin.h2
-rw-r--r--plugins/TipperYM/src/preset_items.cpp1
-rw-r--r--plugins/TipperYM/src/preset_items.h2
-rw-r--r--plugins/TipperYM/src/skin_parser.cpp4
-rw-r--r--plugins/TipperYM/src/str_utils.cpp1
-rw-r--r--plugins/TipperYM/src/subst.cpp4
-rw-r--r--plugins/TipperYM/src/subst.h3
-rw-r--r--plugins/TipperYM/src/tipper.cpp24
-rw-r--r--plugins/TipperYM/src/translations.cpp4
-rw-r--r--plugins/TipperYM/src/version.h16
17 files changed, 42 insertions, 79 deletions
diff --git a/plugins/TipperYM/src/bitmap_func.cpp b/plugins/TipperYM/src/bitmap_func.cpp
index 4e747fb90a..a1001173ae 100644
--- a/plugins/TipperYM/src/bitmap_func.cpp
+++ b/plugins/TipperYM/src/bitmap_func.cpp
@@ -19,9 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "options.h"
-#include "bitmap_func.h"
-#include "message_pump.h"
TOOLTIPSKIN skin = {0};
diff --git a/plugins/TipperYM/src/common.h b/plugins/TipperYM/src/common.h
index bbecc49386..1224719520 100644
--- a/plugins/TipperYM/src/common.h
+++ b/plugins/TipperYM/src/common.h
@@ -38,12 +38,8 @@ Boston, MA 02111-1307, USA.
#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
#endif
-#define MIRANDA_VER 0x0A00
-
#define _CRT_SECURE_NO_WARNINGS
-#include <m_stdhdr.h>
-
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
@@ -52,6 +48,7 @@ Boston, MA 02111-1307, USA.
#include <time.h>
#include <windowsx.h>
+#include <m_stdhdr.h>
#include <win2k.h>
#include <newpluginapi.h>
#include <statusmodes.h>
@@ -79,7 +76,6 @@ Boston, MA 02111-1307, USA.
#include <m_xstatus.h>
#include <m_icq.h>
-#include "resource.h"
#include "m_tipper.h"
#include "m_fingerprint.h"
#include "m_flags.h"
@@ -87,7 +83,20 @@ Boston, MA 02111-1307, USA.
#include "m_metacontacts.h"
#include "m_variables.h"
#include "m_smileyadd.h"
+#include "m_gender.h"
+#include "resource.h"
+#include "version.h"
+#include "message_pump.h"
+#include "mir_smileys.h"
+#include "popwin.h"
+#include "skin_parser.h"
+#include "bitmap_func.h"
+#include "options.h"
+#include "str_utils.h"
+#include "subst.h"
+#include "preset_items.h"
+#include "translations.h"
#define MODULE "Tipper"
#define MODULE_ITEMS "Tipper_Items"
@@ -101,4 +110,9 @@ extern COLORREF colTitle, colLabels, colBg, colValues;
extern int iCodePage;
extern char szMetaModuleName[256];
-extern FI_INTERFACE *fii; \ No newline at end of file
+extern FI_INTERFACE *fii;
+
+extern TOOLTIPSKIN skin;
+extern TCHAR SKIN_FOLDER[256];
+
+extern int ReloadFont(WPARAM wParam, LPARAM lParam);
diff --git a/plugins/TipperYM/src/message_pump.cpp b/plugins/TipperYM/src/message_pump.cpp
index db57fadf07..5980612f49 100644
--- a/plugins/TipperYM/src/message_pump.cpp
+++ b/plugins/TipperYM/src/message_pump.cpp
@@ -19,11 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "message_pump.h"
-#include "popwin.h"
-#include "options.h"
-#include "str_utils.h"
-#include "subst.h"
BOOL (WINAPI *MySetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD) = 0;
BOOL (WINAPI *MyUpdateLayeredWindow)(HWND hwnd, HDC hdcDST, POINT *pptDst, SIZE *psize, HDC hdcSrc, POINT *pptSrc, COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags) = 0;
diff --git a/plugins/TipperYM/src/mir_smileys.cpp b/plugins/TipperYM/src/mir_smileys.cpp
index 1a26a370dd..c42af4a871 100644
--- a/plugins/TipperYM/src/mir_smileys.cpp
+++ b/plugins/TipperYM/src/mir_smileys.cpp
@@ -19,8 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "options.h"
-#include "mir_smileys.h"
int InitTipperSmileys()
{
diff --git a/plugins/TipperYM/src/options.cpp b/plugins/TipperYM/src/options.cpp
index 0dfb831bc9..ed38a434ca 100644
--- a/plugins/TipperYM/src/options.cpp
+++ b/plugins/TipperYM/src/options.cpp
@@ -19,20 +19,10 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "options.h"
-#include "popwin.h"
-#include "str_utils.h"
-#include "message_pump.h"
-#include "preset_items.h"
-#include "skin_parser.h"
OPTIONS opt;
ICONSTATE exIcons[EXICONS_COUNT];
-extern TOOLTIPSKIN skin;
-extern int ReloadFont(WPARAM wParam, LPARAM lParam);
-
-
extern int IsTrayProto(const TCHAR *swzProto, BOOL bExtendedTip)
{
if (swzProto == NULL)
diff --git a/plugins/TipperYM/src/options.h b/plugins/TipperYM/src/options.h
index 52411110fb..86276ae026 100644
--- a/plugins/TipperYM/src/options.h
+++ b/plugins/TipperYM/src/options.h
@@ -21,11 +21,6 @@ Boston, MA 02111-1307, USA.
#ifndef _OPTIONS_INC
#define _OPTIONS_INC
-#include "translations.h"
-#include "popwin.h"
-#include "bitmap_func.h"
-#include "skin_parser.h"
-
#define WMU_ENABLE_LIST_BUTTONS (WM_USER + 0x030)
#define WMU_ENABLE_MODULE_ENTRY (WM_USER + 0x031)
diff --git a/plugins/TipperYM/src/popwin.cpp b/plugins/TipperYM/src/popwin.cpp
index 808f1a7698..c3ed182e2b 100644
--- a/plugins/TipperYM/src/popwin.cpp
+++ b/plugins/TipperYM/src/popwin.cpp
@@ -19,15 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "subst.h"
-#include "popwin.h"
-#include "message_pump.h"
-#include "str_utils.h"
-#include "bitmap_func.h"
-#include "translations.h"
-#include "m_gender.h"
-
-extern TOOLTIPSKIN skin;
__inline void AddRow(PopupWindowData *pwd, TCHAR *swzLabel, TCHAR *swzValue, char *szProto, bool bParseSmileys, bool bNewline, bool bLineAbove, bool bIsTitle = false, HICON hIcon = NULL)
{
diff --git a/plugins/TipperYM/src/popwin.h b/plugins/TipperYM/src/popwin.h
index b7ba674b08..81d36b0210 100644
--- a/plugins/TipperYM/src/popwin.h
+++ b/plugins/TipperYM/src/popwin.h
@@ -21,8 +21,6 @@ Boston, MA 02111-1307, USA.
#ifndef _POPWIN_INC
#define _POPWIN_INC
-#include "mir_smileys.h"
-
#define POP_WIN_CLASS _T(MODULE) _T("MimTTClass")
#define PUM_GETHEIGHT (WM_USER + 0x020)
diff --git a/plugins/TipperYM/src/preset_items.cpp b/plugins/TipperYM/src/preset_items.cpp
index 629a747a28..c9308cb141 100644
--- a/plugins/TipperYM/src/preset_items.cpp
+++ b/plugins/TipperYM/src/preset_items.cpp
@@ -19,7 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "preset_items.h"
PRESETITEM presetItems[] =
{
diff --git a/plugins/TipperYM/src/preset_items.h b/plugins/TipperYM/src/preset_items.h
index 5055db3dee..8b07f0069c 100644
--- a/plugins/TipperYM/src/preset_items.h
+++ b/plugins/TipperYM/src/preset_items.h
@@ -21,8 +21,6 @@ Boston, MA 02111-1307, USA.
#ifndef _PRESETITEMS_INC
#define _PRESETITEMS_INC
-#include "options.h"
-
#define MAX_PRESET_SUBST_COUNT 3
typedef struct {
diff --git a/plugins/TipperYM/src/skin_parser.cpp b/plugins/TipperYM/src/skin_parser.cpp
index 3c851e0039..439b1a2b44 100644
--- a/plugins/TipperYM/src/skin_parser.cpp
+++ b/plugins/TipperYM/src/skin_parser.cpp
@@ -19,10 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "options.h"
-#include "str_utils.h"
-
-extern TCHAR SKIN_FOLDER[256];
int RefreshSkinList(HWND hwndDlg)
{
diff --git a/plugins/TipperYM/src/str_utils.cpp b/plugins/TipperYM/src/str_utils.cpp
index 112cc2678b..2189b34312 100644
--- a/plugins/TipperYM/src/str_utils.cpp
+++ b/plugins/TipperYM/src/str_utils.cpp
@@ -19,7 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "str_utils.h"
int iCodePage = CP_ACP;
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp
index 6d439f8bec..60f42074ad 100644
--- a/plugins/TipperYM/src/subst.cpp
+++ b/plugins/TipperYM/src/subst.cpp
@@ -19,10 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "subst.h"
-#include "str_utils.h"
-#include "popwin.h"
-
int ProtoServiceExists(const char *szModule, const char *szService)
{
diff --git a/plugins/TipperYM/src/subst.h b/plugins/TipperYM/src/subst.h
index 41f66f871a..fdc0b73320 100644
--- a/plugins/TipperYM/src/subst.h
+++ b/plugins/TipperYM/src/subst.h
@@ -21,9 +21,6 @@ Boston, MA 02111-1307, USA.
#ifndef _SUBST_INC
#define _SUBST_INC
-#include "options.h"
-#include "translations.h"
-
bool GetLabelText(HANDLE hContact, const DISPLAYITEM &di, TCHAR *buff, int iBufflen);
bool GetValueText(HANDLE hContact, const DISPLAYITEM &di, TCHAR *buff, int iBufflen);
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp
index a661c24705..bd583e1cfb 100644
--- a/plugins/TipperYM/src/tipper.cpp
+++ b/plugins/TipperYM/src/tipper.cpp
@@ -19,12 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "version.h"
-#include "message_pump.h"
-#include "options.h"
-#include "popwin.h"
-#include "skin_parser.h"
-#include "str_utils.h"
HMODULE hInst;
@@ -50,19 +44,19 @@ int hLangpack;
PLUGININFOEX pluginInfoEx =
{
sizeof(PLUGININFOEX),
- "Tipper",
- __VERSION_DWORD,
- "Tool Tip notification windows.",
- "Scott Ellis, yaho",
- "yaho@miranda-easy.net",
- "© 2005-2007 Scott Ellis, 2007-2011 Jan Holub",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // {8392DF1D-9090-4f8e-9DF6-2FE058EDD800}
+ // {8392DF1D-9090-4F8E-9DF6-2FE058EDD800}
{0x8392df1d, 0x9090, 0x4f8e, {0x9d, 0xf6, 0x2f, 0xe0, 0x58, 0xed, 0xd8, 0x00}}
};
-extern "C" bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
hInst = hinstDLL;
return TRUE;
diff --git a/plugins/TipperYM/src/translations.cpp b/plugins/TipperYM/src/translations.cpp
index df31e48e09..fcbe097981 100644
--- a/plugins/TipperYM/src/translations.cpp
+++ b/plugins/TipperYM/src/translations.cpp
@@ -19,9 +19,6 @@ Boston, MA 02111-1307, USA.
*/
#include "common.h"
-#include "translations.h"
-#include "subst.h"
-#include "str_utils.h"
int iTransFuncsCount = 0;
DBVTranslation *translations = 0;
@@ -29,7 +26,6 @@ DBVTranslation *translations = 0;
DWORD dwNextFuncId;
HANDLE hServiceAdd;
-
void AddTranslation(DBVTranslation *newTrans)
{
iTransFuncsCount++;
diff --git a/plugins/TipperYM/src/version.h b/plugins/TipperYM/src/version.h
index c71b187bc0..512bea4c5a 100644
--- a/plugins/TipperYM/src/version.h
+++ b/plugins/TipperYM/src/version.h
@@ -1,4 +1,14 @@
-#define __FILEVERSION_STRING 2,1,0,4
-#define __VERSION_STRING "2.1.0.4"
-#define __VERSION_DWORD PLUGIN_MAKE_VERSION(2, 1, 0, 4)
+#define __MAJOR_VERSION 2
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 4
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Tipper"
+#define __FILENAME "Tipper.dll"
+#define __DESCRIPTION "Tool Tip notification windows."
+#define __AUTHOR "Scott Ellis, yaho"
+#define __AUTHOREMAIL "yaho@miranda-easy.net"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2005-2007 Scott Ellis, 2007-2011 Jan Holub"