summaryrefslogtreecommitdiff
path: root/plugins/Popup/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-03 16:05:14 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-03 16:05:14 +0000
commit954ed085481b2e878959e442772ecc5978a1d8d8 (patch)
tree3977b170d710ba459b6b5fe05b1a85a9b254f96b /plugins/Popup/src
parent3cc4e30e93e129328339c4a91630a9a651be38a8 (diff)
removed not used headers
git-svn-id: http://svn.miranda-ng.org/main/trunk@3875 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src')
-rw-r--r--plugins/Popup/src/avatars_flash.cpp25
-rw-r--r--plugins/Popup/src/config.cpp15
-rw-r--r--plugins/Popup/src/font.h2
-rw-r--r--plugins/Popup/src/headers.cpp25
-rw-r--r--plugins/Popup/src/headers.h199
-rw-r--r--plugins/Popup/src/m_hpp.h11
-rw-r--r--plugins/Popup/src/main.cpp42
-rw-r--r--plugins/Popup/src/services.cpp4
-rw-r--r--plugins/Popup/src/version.h74
9 files changed, 129 insertions, 268 deletions
diff --git a/plugins/Popup/src/avatars_flash.cpp b/plugins/Popup/src/avatars_flash.cpp
deleted file mode 100644
index 7741b9494f..0000000000
--- a/plugins/Popup/src/avatars_flash.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-Popup Plus plugin for Miranda IM
-
-Copyright © 2002 Luca Santarelli,
- © 2004-2007 Victor Pavlychko
- © 2010 MPK
- © 2010 Merlin_de
-
-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.
-*/
-
-#include "headers.h"
-
diff --git a/plugins/Popup/src/config.cpp b/plugins/Popup/src/config.cpp
index 450c2367a3..1b0ecaee13 100644
--- a/plugins/Popup/src/config.cpp
+++ b/plugins/Popup/src/config.cpp
@@ -51,14 +51,15 @@ POPUPOPTIONS PopUpOptions;
PLUGININFOEX pluginInfoEx =
{
sizeof(PLUGININFOEX),
- POPUP_DISPLAYNAME,
- PLUGIN_MAKE_VERSION(__MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM),
- POPUP_DESCRIPTION,
- POPUP_AUTHOR,
- POPUP_EMAIL,
- POPUP_COPYRIGHT,
- POPUP_WEBPAGE,
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
+ // {26A9125D-7863-4E01-AF0E-D14EF95C5054}
{0x26a9125d, 0x7863, 0x4e01, {0xaf, 0xe, 0xd1, 0x4e, 0xf9, 0x5c, 0x50, 0x54}}
};
diff --git a/plugins/Popup/src/font.h b/plugins/Popup/src/font.h
index 784118d366..13674ddd2b 100644
--- a/plugins/Popup/src/font.h
+++ b/plugins/Popup/src/font.h
@@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//basic constants for all popup plugins
#define PU_FNT_AND_COLOR "Popups" //common main group for customice\font&color
-#define PU_FNT_AND_COLOR_DB PU_COMMONMODUL //use eg strcpy(fid.dbSettingsGroup, PU_FNT_GROUP_DB);
+#define PU_FNT_AND_COLOR_DB MODULNAME //use eg strcpy(fid.dbSettingsGroup, PU_FNT_GROUP_DB);
#define PU_FNT_PREFIX "fnt%s" //use eg mir_snprintf(fid.prefix, sizeof(fid.prefix), PU_FNT_PREFIX, PU_FNT_NAME_....);
#define PU_FNT_NAME_TITLE "Title" //use eg lstrcpy(fid.name, _T(FNT_NAME_....)) for FontIDT
diff --git a/plugins/Popup/src/headers.cpp b/plugins/Popup/src/headers.cpp
deleted file mode 100644
index 7741b9494f..0000000000
--- a/plugins/Popup/src/headers.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-Popup Plus plugin for Miranda IM
-
-Copyright © 2002 Luca Santarelli,
- © 2004-2007 Victor Pavlychko
- © 2010 MPK
- © 2010 Merlin_de
-
-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.
-*/
-
-#include "headers.h"
-
diff --git a/plugins/Popup/src/headers.h b/plugins/Popup/src/headers.h
index 3575b8c3c7..4c85cd85d7 100644
--- a/plugins/Popup/src/headers.h
+++ b/plugins/Popup/src/headers.h
@@ -46,122 +46,89 @@ http://miranda-ng.org/distr/
#ifndef HEADERS_H
#define HEADERS_H
- // disable security warnings about "*_s" functions
- #define _CRT_SECURE_NO_DEPRECATE
-
- // disable warnings about underscore in stdc functions
- #pragma warning(disable: 4996)
-
- #define _WIN32_WINNT 0x0501
- #define WINVER 0x0500
- #define OEMRESOURCE
-
- #include <windows.h>
- #include <windowsx.h>
- #include <winuser.h>
-
- //Standard headers
- #include <stdlib.h>
- #include <stdio.h>
- #include <time.h>
- #include <malloc.h>
-
- //Windows headers
- #include <process.h>
- #include <commctrl.h>
- #include <commdlg.h>
-
-#ifdef ComboBox_SelectItemData
- // use Workaround for MS bug ComboBox_SelectItemData;
- #undef ComboBox_SelectItemData
-#endif
-
- //Resources
- #include "resource.h"
-
- #define NOWIN2K
- #define MIRANDA_VER 0x0A00
-
- //Miranda API (see Miranda svn)
- #include <newpluginapi.h>
- #include <win2k.h>
- #include <m_system.h>
- #include <m_clui.h>
- #include <m_clist.h>
- #include <m_options.h>
- #include <m_skin.h>
- #include <m_langpack.h>
- #include <m_database.h>
- #undef DBGetContactSettingString
- #include <m_protocols.h>
- #include <m_protosvc.h>
- #include <m_utils.h>
- #include <m_button.h>
- #include <m_message.h>
- #include <m_userinfo.h>
- #include <m_addcontact.h>
- #include <m_png.h>
- #include <m_clc.h>
- #include <m_icolib.h>
- #include <m_hotkeys.h>
- #include <m_fontservice.h>
- #include <m_avatars.h>
- #include <m_metacontacts.h>
- #include <m_extraicons.h>
-
- #include <m_system_cpp.h>
-
-
- // API for 3rd party plugins (\include_API folder)
- // this folder contain always the latest API
- #include <m_folders.h>
- #include <m_ieview.h>
- #include <m_smileyadd.h>
- #ifndef MTEXT_NOHELPERS
- #define MTEXT_NOHELPERS
- #endif // MTEXT_NOHELPERS
- #include <m_text.h>
- #include <m_toptoolbar.h>
- #include <m_popup.h> //core define see miranda\include\
-
- // API for 3rd party plugins (.\api folder)
- // this folder contain spetial edition API (not latest API !!!)
- #include "m_mathmodule.h"
- #include "m_popup2.h"
-
- //PopUp common handlers
- #include "defs.h"
- #include "version.h"
- #include "config.h"
- #include "common.h"
- #include "def_settings.h"
- #include "opttree.h"
- #include "opt_gen.h"
- #include "opt_skins.h"
- #include "opt_contacts.h"
- #include "opt_adv.h"
- #include "m_hpp.h"
- #include "history.h"
- #include "services.h"
- #include "srmm_menu.h"
- #include "bitmap_funcs.h"
- #include "icons.h"
- #include "font.h"
- #include "formula.h"
- #include "skin.h"
- #include "popup_thread.h"
- #include "actions.h"
- #include "notifications.h"
- #include "opt_class.h"
- #include "popup_wnd2.h"
- #include "effects.h"
-
- #include "avatars.h"
- #include "avatars_simple.h"
- #include "avatars_flash.h"
- #include "avatars_gif.h"
-
- #include "popup_gdiplus.h"
+// disable security warnings about "*_s" functions
+#define _CRT_SECURE_NO_DEPRECATE
+
+#define _WIN32_WINNT 0x0501
+#define WINVER 0x0500
+#define OEMRESOURCE
+
+#include <windows.h>
+#include <windowsx.h>
+#include <time.h>
+#include <process.h>
+#include <commctrl.h>
+
+#include <newpluginapi.h>
+#include <win2k.h>
+#include <m_clui.h>
+#include <m_clist.h>
+#include <m_options.h>
+#include <m_skin.h>
+#include <m_langpack.h>
+#include <m_database.h>
+#undef DBGetContactSettingString
+#include <m_protosvc.h>
+#include <m_button.h>
+#include <m_message.h>
+#include <m_userinfo.h>
+#include <m_addcontact.h>
+#include <m_png.h>
+#include <m_clc.h>
+#include <m_icolib.h>
+#include <m_hotkeys.h>
+#include <m_fontservice.h>
+#include <m_avatars.h>
+#include <m_extraicons.h>
+#include <m_popup.h>
+
+#include <m_metacontacts.h>
+#include <m_folders.h>
+#include <m_ieview.h>
+#include <m_smileyadd.h>
+#ifndef MTEXT_NOHELPERS
+ #define MTEXT_NOHELPERS
+#endif // MTEXT_NOHELPERS
+#include <m_text.h>
+#include <m_toptoolbar.h>
+#include <m_popup2.h>
+#include <m_hpp.h>
+
+#include "resource.h"
+#include "defs.h"
+#include "version.h"
+#include "config.h"
+#include "common.h"
+#include "def_settings.h"
+#include "opttree.h"
+#include "opt_gen.h"
+#include "opt_skins.h"
+#include "opt_contacts.h"
+#include "opt_adv.h"
+#include "history.h"
+#include "services.h"
+#include "srmm_menu.h"
+#include "bitmap_funcs.h"
+#include "icons.h"
+#include "font.h"
+#include "formula.h"
+#include "skin.h"
+#include "popup_thread.h"
+#include "actions.h"
+#include "notifications.h"
+#include "opt_class.h"
+#include "popup_wnd2.h"
+#include "effects.h"
+#include "avatars.h"
+#include "avatars_simple.h"
+#include "avatars_flash.h"
+#include "avatars_gif.h"
+#include "popup_gdiplus.h"
+
+#define PU_MODULCLASS "PopUpCLASS" //temp DB modul for this plugin
+#define MODULNAME "PopUp"
+#define MODULNAME_LONG "Popup Plus" //dont use "PopUp Plus" coz notify register use "Popup Plus"
+#define MODULNAME_PLU "PopUps"
INT_PTR svcEnableDisableMenuCommand(WPARAM, LPARAM);
diff --git a/plugins/Popup/src/m_hpp.h b/plugins/Popup/src/m_hpp.h
deleted file mode 100644
index 169b666209..0000000000
--- a/plugins/Popup/src/m_hpp.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef __m_hhp__
-#define __m_hhp__
-
-#define MS_HPP_GETVERSION "History++/GetVersion"
-
-#define MS_HPP_EG_WINDOW "History++/ExtGrid/NewWindow"
-#define MS_HPP_EG_EVENT "History++/ExtGrid/Event"
-#define MS_HPP_EG_NAVIGATE "History++/ExtGrid/Navigate"
-#define MS_HPP_EG_OPTIONSCHANGED "History++/ExtGrid/OptionsChanged"
-
-#endif // __m_hhp__
diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp
index edd2caf603..88cf04ceb4 100644
--- a/plugins/Popup/src/main.cpp
+++ b/plugins/Popup/src/main.cpp
@@ -389,37 +389,37 @@ MIRAPI int Load(void)
//Service Functions
CreateServiceFunction(MS_POPUP_ADDPOPUP, PopUp_AddPopUp);
- CreateServiceFunction(MS_POPUP_ADDPOPUPEX, PopUp_AddPopUpEx);
- CreateServiceFunction(MS_POPUP_ADDPOPUPW, PopUp_AddPopUpW);
- CreateServiceFunction(MS_POPUP_ADDPOPUP2, PopUp_AddPopUp2);
+ CreateServiceFunction(MS_POPUP_ADDPOPUPEX, PopUp_AddPopUpEx);
+ CreateServiceFunction(MS_POPUP_ADDPOPUPW, PopUp_AddPopUpW);
+ CreateServiceFunction(MS_POPUP_ADDPOPUP2, PopUp_AddPopUp2);
- CreateServiceFunction(MS_POPUP_CHANGETEXT, PopUp_ChangeText);
- CreateServiceFunction(MS_POPUP_CHANGETEXTW, PopUp_ChangeTextW);
- CreateServiceFunction(MS_POPUP_CHANGE, PopUp_Change);
- CreateServiceFunction(MS_POPUP_CHANGEW, PopUp_ChangeW);
- CreateServiceFunction(MS_POPUP_CHANGEPOPUP2, PopUp_Change2);
+ CreateServiceFunction(MS_POPUP_CHANGETEXT, PopUp_ChangeText);
+ CreateServiceFunction(MS_POPUP_CHANGETEXTW, PopUp_ChangeTextW);
+ CreateServiceFunction(MS_POPUP_CHANGE, PopUp_Change);
+ CreateServiceFunction(MS_POPUP_CHANGEW, PopUp_ChangeW);
+ CreateServiceFunction(MS_POPUP_CHANGEPOPUP2, PopUp_Change2);
- CreateServiceFunction(MS_POPUP_GETCONTACT, PopUp_GetContact);
- CreateServiceFunction(MS_POPUP_GETPLUGINDATA, PopUp_GetPluginData);
- CreateServiceFunction(MS_POPUP_ISSECONDLINESHOWN, PopUp_IsSecondLineShown);
+ CreateServiceFunction(MS_POPUP_GETCONTACT, PopUp_GetContact);
+ CreateServiceFunction(MS_POPUP_GETPLUGINDATA, PopUp_GetPluginData);
+ CreateServiceFunction(MS_POPUP_ISSECONDLINESHOWN, PopUp_IsSecondLineShown);
- CreateServiceFunction(MS_POPUP_SHOWMESSAGE, PopUp_ShowMessage);
- CreateServiceFunction(MS_POPUP_SHOWMESSAGEW, PopUp_ShowMessageW);
- CreateServiceFunction(MS_POPUP_QUERY, PopUp_Query);
+ CreateServiceFunction(MS_POPUP_SHOWMESSAGE, PopUp_ShowMessage);
+ CreateServiceFunction(MS_POPUP_SHOWMESSAGEW, PopUp_ShowMessageW);
+ CreateServiceFunction(MS_POPUP_QUERY, PopUp_Query);
- CreateServiceFunction(MS_POPUP_REGISTERACTIONS, PopUp_RegisterActions);
- CreateServiceFunction(MS_POPUP_REGISTERNOTIFICATION, PopUp_RegisterNotification);
+ CreateServiceFunction(MS_POPUP_REGISTERACTIONS, PopUp_RegisterActions);
+ CreateServiceFunction(MS_POPUP_REGISTERNOTIFICATION, PopUp_RegisterNotification);
- CreateServiceFunction(MS_POPUP_UNHOOKEVENTASYNC, PopUp_UnhookEventAsync);
+ CreateServiceFunction(MS_POPUP_UNHOOKEVENTASYNC, PopUp_UnhookEventAsync);
- CreateServiceFunction(MS_POPUP_REGISTERVFX, PopUp_RegisterVfx);
+ CreateServiceFunction(MS_POPUP_REGISTERVFX, PopUp_RegisterVfx);
- CreateServiceFunction(MS_POPUP_REGISTERCLASS, PopUp_RegisterPopupClass);
- CreateServiceFunction(MS_POPUP_ADDPOPUPCLASS, PopUp_CreateClassPopup);
+ CreateServiceFunction(MS_POPUP_REGISTERCLASS, PopUp_RegisterPopupClass);
+ CreateServiceFunction(MS_POPUP_ADDPOPUPCLASS, PopUp_CreateClassPopup);
//load icons / create hook
InitIcons();
- HookEvent(ME_SKIN2_ICONSCHANGED,IconsChanged);
+ HookEvent(ME_SKIN2_ICONSCHANGED, IconsChanged);
//add menu items
InitMenuItems();
diff --git a/plugins/Popup/src/services.cpp b/plugins/Popup/src/services.cpp
index 858f990aae..e085c1f4ad 100644
--- a/plugins/Popup/src/services.cpp
+++ b/plugins/Popup/src/services.cpp
@@ -257,11 +257,11 @@ INT_PTR PopUp_AddPopUp2(WPARAM wParam, LPARAM lParam)
if (!PopUpOptions.ModuleIsEnabled)
return -1;
#ifdef _DEBUG
- itoa(PopUpOptions.DisableWhenFullscreen,temp,10);
+ _itoa(PopUpOptions.DisableWhenFullscreen,temp,10);
OutputDebugStringA("PopUpOptions.DisableWhenFullscreen: \t");
OutputDebugStringA(temp);
OutputDebugStringA("\n");
- itoa(bShowMode,temp,10);
+ _itoa(bShowMode,temp,10);
OutputDebugStringA("bShowMode: \t");
OutputDebugStringA(temp);
OutputDebugStringA("\n");
diff --git a/plugins/Popup/src/version.h b/plugins/Popup/src/version.h
index 64a7771ea6..116ad90225 100644
--- a/plugins/Popup/src/version.h
+++ b/plugins/Popup/src/version.h
@@ -1,60 +1,14 @@
-/*
-Popup Plus plugin for Miranda IM
-
-Copyright � 2002 Luca Santarelli,
- � 2004-2007 Victor Pavlychko
- � 2010 MPK
- � 2010 Merlin_de
-
-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.
-*/
- #define PU_COMMONMODUL "PopUp" //common DB modul name for all Popup plugins
- #define PU_MODULNAME "PopUpPlus" //DB modul for this plugin
- #define PU_MODULCLASS "PopUpCLASS" //temp DB modul for this plugin
- #define MODULNAME "PopUp"
- #define MODULNAME_LONG "Popup Plus" //dont use "PopUp Plus" coz notify register use "Popup Plus"
- #define MODULNAME_PLU "PopUps"
-
- #define POPUP_FILENAME "PopUp.dll"
- #define POPUP_DISPLAYNAME "PopUp Plus"
- #define __FLVersionURL "http://miranda-ng.org/"
- #define __FLVersionPrefix "<span class=\"fileNameHeader\">PopUp Plus (Unicode) "
- #define __FLUpdateURL "http://miranda-ng.org/distr/x32/Plugins/popup.zip" //.zip
- #define __BetaUpdateURL ""
-
- #define __BetaVersionURL "http://miranda-ng.org/"
- #define __BetaVersionPrefix "beta: "
- #define __BetaChangelogURL "http://miranda-ng.org/"
-
- #define __MAJOR_VERSION 2
- #define __MINOR_VERSION 1
- #define __RELEASE_NUM 1
- #define __BUILD_NUM 6
-
- #define __STRINGIFY(x) #x
- #define __STRINGIFY2(x) __STRINGIFY(x)
- #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
- #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
-
- #define __VERSION_STRING __STRINGIFY2(__FILEVERSION_STRING)
- #define __VERSION_STRING_DOT __STRINGIFY2(__FILEVERSION_STRING_DOTS)
-
- #define POPUP_DESCRIPTION "Provides popup notification services for different plugins."
- #define POPUP_AUTHOR "MPK, Merlin_de (Luca Santarelli, Victor Pavlychko)"
- #define POPUP_EMAIL "mp-king@web.de"
- #define POPUP_COPYRIGHT "�2002 Luca Santarelli, �2004-2007 Victor Pavlychko, �2010 MPK, Merlin_de"
- #define POPUP_WEBPAGE "http://miranda-ng.org/"
- #define POPUP_PID 0x12a3fdbdecd273ee67dbc4d6d00e9268
-
+#define __MAJOR_VERSION 2
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 1
+#define __BUILD_NUM 6
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "PopUp plus"
+#define __FILENAME "PopUp.dll"
+#define __DESCRIPTION "Provides popup notification services for different plugins."
+#define __AUTHOR "MPK, Merlin_de (Luca Santarelli, Victor Pavlychko)"
+#define __AUTHOREMAIL "mp-king@web.de"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2002 Luca Santarelli, 2004-2007 Victor Pavlychko, 2010 MPK, Merlin_de"