summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Clist_modern/clist_modern_10.vcxproj2
-rw-r--r--plugins/Clist_modern/clist_modern_10.vcxproj.filters6
-rw-r--r--plugins/Clist_modern/clist_modern_12.vcxproj2
-rw-r--r--plugins/Clist_modern/clist_modern_12.vcxproj.filters6
-rw-r--r--plugins/Clist_modern/src/hdr/modern_popup.h48
-rw-r--r--plugins/Clist_modern/src/modern_popup.cpp94
6 files changed, 0 insertions, 158 deletions
diff --git a/plugins/Clist_modern/clist_modern_10.vcxproj b/plugins/Clist_modern/clist_modern_10.vcxproj
index ceaf1a1ce4..913d6a7da2 100644
--- a/plugins/Clist_modern/clist_modern_10.vcxproj
+++ b/plugins/Clist_modern/clist_modern_10.vcxproj
@@ -231,7 +231,6 @@
<ClCompile Include="src\modern_keyboard.cpp" />
<ClCompile Include="src\modern_log.cpp" />
<ClCompile Include="src\modern_newrowopts.cpp" />
- <ClCompile Include="src\modern_popup.cpp" />
<ClCompile Include="src\modern_row.cpp" />
<ClCompile Include="src\modern_rowheight_funcs.cpp" />
<ClCompile Include="src\modern_rowtemplateopt.cpp" />
@@ -263,7 +262,6 @@
<ClInclude Include="src\hdr\modern_image_array.h" />
<ClInclude Include="src\hdr\modern_layered_window_engine.h" />
<ClInclude Include="src\hdr\modern_log.h" />
- <ClInclude Include="src\hdr\modern_popup.h" />
<ClInclude Include="src\hdr\modern_row.h" />
<ClInclude Include="src\hdr\modern_rowheight_funcs.h" />
<ClInclude Include="src\hdr\modern_skinengine.h" />
diff --git a/plugins/Clist_modern/clist_modern_10.vcxproj.filters b/plugins/Clist_modern/clist_modern_10.vcxproj.filters
index 11837b85ab..5cb386c380 100644
--- a/plugins/Clist_modern/clist_modern_10.vcxproj.filters
+++ b/plugins/Clist_modern/clist_modern_10.vcxproj.filters
@@ -105,9 +105,6 @@
<ClCompile Include="src\modern_newrowopts.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="src\modern_popup.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="src\modern_row.cpp">
<Filter>Source Files</Filter>
</ClCompile>
@@ -215,9 +212,6 @@
<ClInclude Include="src\hdr\modern_log.h">
<Filter>Header Files</Filter>
</ClInclude>
- <ClInclude Include="src\hdr\modern_popup.h">
- <Filter>Header Files</Filter>
- </ClInclude>
<ClInclude Include="src\hdr\modern_row.h">
<Filter>Header Files</Filter>
</ClInclude>
diff --git a/plugins/Clist_modern/clist_modern_12.vcxproj b/plugins/Clist_modern/clist_modern_12.vcxproj
index 8a8ee34f16..7647dcb8ec 100644
--- a/plugins/Clist_modern/clist_modern_12.vcxproj
+++ b/plugins/Clist_modern/clist_modern_12.vcxproj
@@ -234,7 +234,6 @@
<ClCompile Include="src\modern_keyboard.cpp" />
<ClCompile Include="src\modern_log.cpp" />
<ClCompile Include="src\modern_newrowopts.cpp" />
- <ClCompile Include="src\modern_popup.cpp" />
<ClCompile Include="src\modern_row.cpp" />
<ClCompile Include="src\modern_rowheight_funcs.cpp" />
<ClCompile Include="src\modern_rowtemplateopt.cpp" />
@@ -266,7 +265,6 @@
<ClInclude Include="src\hdr\modern_image_array.h" />
<ClInclude Include="src\hdr\modern_layered_window_engine.h" />
<ClInclude Include="src\hdr\modern_log.h" />
- <ClInclude Include="src\hdr\modern_popup.h" />
<ClInclude Include="src\hdr\modern_row.h" />
<ClInclude Include="src\hdr\modern_rowheight_funcs.h" />
<ClInclude Include="src\hdr\modern_skinengine.h" />
diff --git a/plugins/Clist_modern/clist_modern_12.vcxproj.filters b/plugins/Clist_modern/clist_modern_12.vcxproj.filters
index 9a339b4a26..d92ed72044 100644
--- a/plugins/Clist_modern/clist_modern_12.vcxproj.filters
+++ b/plugins/Clist_modern/clist_modern_12.vcxproj.filters
@@ -105,9 +105,6 @@
<ClCompile Include="src\modern_newrowopts.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="src\modern_popup.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="src\modern_row.cpp">
<Filter>Source Files</Filter>
</ClCompile>
@@ -215,9 +212,6 @@
<ClInclude Include="src\hdr\modern_log.h">
<Filter>Header Files</Filter>
</ClInclude>
- <ClInclude Include="src\hdr\modern_popup.h">
- <Filter>Header Files</Filter>
- </ClInclude>
<ClInclude Include="src\hdr\modern_row.h">
<Filter>Header Files</Filter>
</ClInclude>
diff --git a/plugins/Clist_modern/src/hdr/modern_popup.h b/plugins/Clist_modern/src/hdr/modern_popup.h
deleted file mode 100644
index d333ab1e36..0000000000
--- a/plugins/Clist_modern/src/hdr/modern_popup.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
-Copyright (C) 2005 Ricardo Pescuma Domenecci
-
-This is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public
-License as published by the Free Software Foundation; either
-version 2 of the License, or (at your option) any later version.
-
-This 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
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with this file; see the file license.txt. If
-not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.
-*/
-
-#pragma once
-
-#ifndef __POPUP_H__
-# define __POPUP_H__
-
-#include <m_popup.h>
-
-extern BOOL EnablePopups;
-
-
-#define POPUP_TYPE_NORMAL 0
-#define POPUP_TYPE_TEST 1
-#define POPUP_TYPE_ERROR 2
-
-// Show an popup
-void ShowPopup(const char *title, const char *description, int type);
-
-// Show an error popup
-void ShowErrPopup(const char *title, const char *description);
-
-// Show an trace popup
-void ShowTracePopup(const char *text);
-
-
-
-
-
-
-#endif // __POPUP_H__
diff --git a/plugins/Clist_modern/src/modern_popup.cpp b/plugins/Clist_modern/src/modern_popup.cpp
deleted file mode 100644
index 30b554ed00..0000000000
--- a/plugins/Clist_modern/src/modern_popup.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
-Copyright (C) 2005 Ricardo Pescuma Domenecci
-
-This is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public
-License as published by the Free Software Foundation; either
-version 2 of the License, or (at your option) any later version.
-
-This 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
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with this file; see the file license.txt. If
-not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.
-*/
-
-#include "hdr/modern_commonheaders.h"
-#include "hdr/modern_popup.h"
-
-BOOL EnablePopups = FALSE;
-
-static LRESULT CALLBACK DumbPopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
-
-// Show an error popup
-void ShowErrPopup(const char *title, const char *description)
-{
- ShowPopup(title == NULL ? "Modern Contact List Error" : title, description, POPUP_TYPE_ERROR);
-}
-
-// Show an trace popup
-void ShowTracePopup(const char *text)
-{
-#ifdef _DEBUG
- static int num = 0;
- char tmp[1024];
-
- mir_snprintf(tmp, SIZEOF(tmp), "CM TRACE %d: %s", num, text);
- TRACE(tmp);
- TRACE("\n");
- num++;
-
- ShowPopup(tmp, "", POPUP_TYPE_NORMAL);
-#endif
-}
-
-
-// Show an popup
-void ShowPopup(const char *title, const char *description, int type)
-{
- if (!ServiceExists(MS_POPUP_ADDPOPUP) || !EnablePopups)
- return;
-
- // Make popup
- POPUPDATA ppd = { 0 };
- ppd.lchIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA);
-
- strncpy(ppd.lpzContactName, title == NULL ? "Modern Contact List" : title, SIZEOF(ppd.lpzContactName)-1);
- ppd.lpzContactName[SIZEOF(ppd.lpzContactName)-1] = '\0';
-
- if (description != NULL) {
- strncpy(ppd.lpzText, description, SIZEOF(ppd.lpzText)-1);
- ppd.lpzText[SIZEOF(ppd.lpzText)-1] = '\0';
- }
-
- if (type != POPUP_TYPE_NORMAL && type != POPUP_TYPE_TEST) {
- ppd.colorBack = -1;
- ppd.colorText = RGB(255,255,255);
- }
-
- ppd.PluginWindowProc = DumbPopupDlgProc;
- PUAddPopup(&ppd);
-}
-
-// Handle to popup events
-static LRESULT CALLBACK DumbPopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
-{
- switch(message) {
- case WM_COMMAND:
- PUDeletePopup(hWnd);
- return TRUE;
-
- case WM_CONTEXTMENU:
- PUDeletePopup(hWnd);
- return TRUE;
-
- case UM_FREEPLUGINDATA:
- return TRUE;
- }
-
- return DefWindowProc(hWnd, message, wParam, lParam);
-}