diff options
Diffstat (limited to 'plugins/Clist_nicer')
-rw-r--r-- | plugins/Clist_nicer/res/resource.rc | 40 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/clistmenus.cpp | 321 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/clistmod.cpp | 8 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/resource.h | 1 |
4 files changed, 0 insertions, 370 deletions
diff --git a/plugins/Clist_nicer/res/resource.rc b/plugins/Clist_nicer/res/resource.rc index 8077d53857..5f1474bf7d 100644 --- a/plugins/Clist_nicer/res/resource.rc +++ b/plugins/Clist_nicer/res/resource.rc @@ -443,42 +443,6 @@ BEGIN PUSHBUTTON "Export to skin file",IDC_EXPORT,19,229,125,15
END
-IDD_QUICKIGNORE DIALOGEX 0, 0, 357, 247
-STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Dialog"
-FONT 8, "MS Shell Dlg", 0, 0, 0x1
-BEGIN
- GROUPBOX "Ignore these events",IDC_STATIC,7,3,197,85
- CONTROL "Messages",IDC_IGN_MSGEVENTS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,14,106,11
- CONTROL "Incoming file transfers",IDC_IGN_FILEEVENTS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,26,106,11
- CONTROL "URL events",IDC_IGN_URLEVENTS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,38,106,11
- CONTROL "Suppress auth requests",IDC_IGN_AUTH,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,50,182,11
- CONTROL "Suppress added notifications",IDC_IGN_ADD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,62,182,11
- CONTROL "Suppress online notifications",IDC_IGN_ONLINE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,74,182,11
- PUSHBUTTON "Ignore all",IDC_IGN_ALL,129,11,71,15
- PUSHBUTTON "Ignore none",IDC_IGN_NONE,129,33,71,15
- GROUPBOX "Visibility",IDC_STATIC,7,89,197,35
- CONTROL "Appear always online",IDC_IGN_ALWAYSONLINE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,98,182,11
- CONTROL "Appear always offline (block contact)",IDC_IGN_ALWAYSOFFLINE,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,111,182,11
- GROUPBOX "Other",IDC_STATIC,7,125,197,96
- CONTROL "Hide this contact from the list",IDC_HIDECONTACT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,18,132,182,14
- LTEXT "To show a previously hidden contact, navigate to Options -> Contacts -> Ignore, search the contact in the list and tick the checkbox next to its name.",IDC_STATIC,18,146,182,34
- GROUPBOX "Display options",IDC_STATIC,209,3,143,218
- CONTROL "Show contact with priority",IDC_IGN_PRIORITY,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,219,13,127,11
- LTEXT "Show avatar:",IDC_STATIC,225,28,94,11
- COMBOBOX IDC_AVATARDISPMODE,219,38,127,56,CBS_DROPDOWNLIST | CBS_SORT | WS_DISABLED | WS_VSCROLL | WS_TABSTOP
- LTEXT "Show 2nd line:",IDC_STATIC,225,54,94,11
- COMBOBOX IDC_SECONDLINEMODE,219,64,127,56,CBS_DROPDOWNLIST | CBS_SORT | WS_DISABLED | WS_VSCROLL | WS_TABSTOP
- CONTROL "",IDC_IGN_ADDPERMANENTLY,"MButtonClass",WS_TABSTOP,95,202,106,15,WS_EX_NOACTIVATE | 0x10000000L
- PUSHBUTTON "OK",IDOK,211,228,65,14
- PUSHBUTTON "Cancel",IDCANCEL,284,228,65,14
- CONTROL "Draw overlay icon on avatar",IDC_OVERLAYICON,"Button",BS_AUTO3STATE | WS_TABSTOP,219,82,127,10
- CONTROL "Show local time",IDC_SHOWLOCALTIME1,"Button",BS_AUTO3STATE | WS_TABSTOP,219,94,127,10
- CONTROL "",IDC_DSP_LOADDEFAULT,"MButtonClass",WS_TABSTOP,213,202,135,15,WS_EX_NOACTIVATE | 0x10000000L
-END
-
-
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
@@ -647,10 +611,6 @@ BEGIN IDD_OPT, DIALOG
BEGIN
END
-
- IDD_QUICKIGNORE, DIALOG
- BEGIN
- END
END
#endif // APSTUDIO_INVOKED
diff --git a/plugins/Clist_nicer/src/clistmenus.cpp b/plugins/Clist_nicer/src/clistmenus.cpp index cc366e053c..e0aba7057a 100644 --- a/plugins/Clist_nicer/src/clistmenus.cpp +++ b/plugins/Clist_nicer/src/clistmenus.cpp @@ -45,331 +45,10 @@ INT_PTR CloseAction(WPARAM, LPARAM) return 0;
}
-static MWindowList hWindowListIGN = nullptr;
-
-// dialog procedure for handling the contact ignore dialog (available from the contact menu
-static INT_PTR CALLBACK IgnoreDialogProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
-{
- MCONTACT hContact = (MCONTACT)GetWindowLongPtr(hWnd, GWLP_USERDATA);
-
- switch (msg) {
- case WM_INITDIALOG:
- {
- DWORD dwMask;
- ClcContact *contact = nullptr;
- int pCaps;
- HWND hwndAdd;
-
- hContact = lParam;
- SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR)hContact);
- dwMask = db_get_dw(hContact, "Ignore", "Mask1", 0);
- SendMessage(hWnd, WM_USER + 100, hContact, dwMask);
- SendMessage(hWnd, WM_USER + 120, 0, 0);
- TranslateDialogDefault(hWnd);
- hwndAdd = GetDlgItem(hWnd, IDC_IGN_ADDPERMANENTLY); // CreateWindowEx(0, L"CLCButtonClass", L"FOO", WS_VISIBLE | BS_PUSHBUTTON | WS_CHILD | WS_TABSTOP, 200, 276, 106, 24, hWnd, (HMENU)IDC_IGN_ADDPERMANENTLY, g_plugin.getInst(), NULL);
- CustomizeButton(hwndAdd, false, true, false);
-
- SendMessage(hwndAdd, BM_SETIMAGE, IMAGE_ICON, (LPARAM)Skin_LoadIcon(SKINICON_OTHER_ADDCONTACT));
- SetWindowText(hwndAdd, TranslateT("Add permanently"));
- EnableWindow(hwndAdd, g_plugin.getByte(hContact, "NotOnList"));
-
- hwndAdd = GetDlgItem(hWnd, IDC_DSP_LOADDEFAULT); // CreateWindowEx(0, L"CLCButtonClass", L"FOO", WS_VISIBLE | BS_PUSHBUTTON | WS_CHILD | WS_TABSTOP, 200, 276, 106, 24, hWnd, (HMENU)IDC_IGN_ADDPERMANENTLY, g_plugin.getInst(), NULL);
- CustomizeButton(hwndAdd, false, true, false);
-
- SendMessage(hwndAdd, BM_SETIMAGE, IMAGE_ICON, (LPARAM)Skin_LoadIcon(SKINICON_OTHER_DELETE));
- SetWindowText(hwndAdd, TranslateT("Revert to default"));
- EnableWindow(hwndAdd, TRUE);
-
- SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Default (global setting)"));
- SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Show always when available"));
- SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Hide always"));
-
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Default (global setting)"));
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Never"));
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Always"));
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("When space is available"));
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("When needed by status message"));
-
- if (cfg::clcdat) {
- Clist_FindItem(g_clistApi.hwndContactTree, cfg::clcdat, hContact, &contact);
- if (contact && contact->type != CLCIT_CONTACT) {
- DestroyWindow(hWnd);
- return FALSE;
- }
- else {
- wchar_t szTitle[512];
- DWORD dwFlags = g_plugin.getDword(hContact, "CLN_Flags");
- BYTE bSecondLine = g_plugin.getByte(hContact, "CLN_2ndline", -1);
-
- mir_snwprintf(szTitle, TranslateT("Contact list display and ignore options for %s"), contact ? contact->szText : Clist_GetContactDisplayName(hContact));
-
- SetWindowText(hWnd, szTitle);
- Window_SetSkinIcon_IcoLib(hWnd, SKINICON_OTHER_MIRANDA);
- pCaps = CallProtoService(contact ? contact->pce->szProto : GetContactProto(hContact), PS_GETCAPS, PFLAGNUM_1, 0);
- Utils::enableDlgControl(hWnd, IDC_IGN_ALWAYSONLINE, pCaps & PF1_INVISLIST ? TRUE : FALSE);
- Utils::enableDlgControl(hWnd, IDC_IGN_ALWAYSOFFLINE, pCaps & PF1_VISLIST ? TRUE : FALSE);
- CheckDlgButton(hWnd, IDC_IGN_PRIORITY, g_plugin.getByte(hContact, "Priority") ? BST_CHECKED : BST_UNCHECKED);
- Utils::enableDlgControl(hWnd, IDC_IGN_PRIORITY, TRUE);
- Utils::enableDlgControl(hWnd, IDC_AVATARDISPMODE, TRUE);
- Utils::enableDlgControl(hWnd, IDC_SECONDLINEMODE, TRUE);
- if (dwFlags & ECF_FORCEAVATAR)
- SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_SETCURSEL, 1, 0);
- else if (dwFlags & ECF_HIDEAVATAR)
- SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_SETCURSEL, 2, 0);
- else
- SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_SETCURSEL, 0, 0);
-
- if (dwFlags & ECF_FORCEOVERLAY)
- CheckDlgButton(hWnd, IDC_OVERLAYICON, BST_CHECKED);
- else if (dwFlags & ECF_HIDEOVERLAY)
- CheckDlgButton(hWnd, IDC_OVERLAYICON, BST_UNCHECKED);
- else
- CheckDlgButton(hWnd, IDC_OVERLAYICON, BST_INDETERMINATE);
-
- if (dwFlags & ECF_FORCELOCALTIME)
- CheckDlgButton(hWnd, IDC_SHOWLOCALTIME1, BST_CHECKED);
- else if (dwFlags & ECF_HIDELOCALTIME)
- CheckDlgButton(hWnd, IDC_SHOWLOCALTIME1, BST_UNCHECKED);
- else
- CheckDlgButton(hWnd, IDC_SHOWLOCALTIME1, BST_INDETERMINATE);
-
- if (bSecondLine == 0xff)
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_SETCURSEL, 0, 0);
- else
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_SETCURSEL, (WPARAM)(bSecondLine + 1), 0);
- }
- }
- WindowList_Add(hWindowListIGN, hWnd, hContact);
- ShowWindow(hWnd, SW_SHOWNORMAL);
- }
- return TRUE;
-
- case WM_COMMAND:
- switch (LOWORD(wParam)) {
- case IDC_IGN_PRIORITY:
- SendMessage(g_clistApi.hwndContactTree, CLM_TOGGLEPRIORITYCONTACT, hContact, 0);
- return 0;
-
- case IDC_IGN_ALL:
- SendMessage(hWnd, WM_USER + 100, hContact, (LPARAM)0xffffffff);
- return 0;
-
- case IDC_IGN_NONE:
- SendMessage(hWnd, WM_USER + 100, hContact, 0);
- return 0;
-
- case IDC_IGN_ALWAYSONLINE:
- if (IsDlgButtonChecked(hWnd, IDC_IGN_ALWAYSONLINE))
- CheckDlgButton(hWnd, IDC_IGN_ALWAYSOFFLINE, BST_UNCHECKED);
- break;
-
- case IDC_IGN_ALWAYSOFFLINE:
- if (IsDlgButtonChecked(hWnd, IDC_IGN_ALWAYSOFFLINE))
- CheckDlgButton(hWnd, IDC_IGN_ALWAYSONLINE, BST_UNCHECKED);
- break;
-
- case IDC_HIDECONTACT:
- g_plugin.setByte(hContact, "Hidden", (BYTE)(IsDlgButtonChecked(hWnd, IDC_HIDECONTACT) ? 1 : 0));
- break;
-
- case IDC_IGN_ADDPERMANENTLY:
- Contact_Add(hContact, hWnd);
- Utils::enableDlgControl(hWnd, IDC_IGN_ADDPERMANENTLY, g_plugin.getByte(hContact, "NotOnList"));
- break;
-
- case IDC_DSP_LOADDEFAULT:
- SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_SETCURSEL, 0, 0);
- SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_SETCURSEL, 0, 0);
- CheckDlgButton(hWnd, IDC_OVERLAYICON, BST_INDETERMINATE);
- CheckDlgButton(hWnd, IDC_LOCALTIME, BST_INDETERMINATE);
- break;
-
- case IDOK:
- {
- DWORD newMask = 0;
- ClcContact *contact = nullptr;
-
- SendMessage(hWnd, WM_USER + 110, 0, (LPARAM)&newMask);
- db_set_dw(hContact, "Ignore", "Mask1", newMask);
- SendMessage(hWnd, WM_USER + 130, 0, 0);
-
- if (cfg::clcdat) {
- LRESULT iSel = SendDlgItemMessage(hWnd, IDC_AVATARDISPMODE, CB_GETCURSEL, 0, 0);
- DWORD dwFlags = g_plugin.getDword(hContact, "CLN_Flags"), dwXMask = 0;
- LRESULT checked = 0;
-
- Clist_FindItem(g_clistApi.hwndContactTree, cfg::clcdat, hContact, &contact);
- if (iSel != CB_ERR) {
- dwFlags &= ~(ECF_FORCEAVATAR | ECF_HIDEAVATAR);
-
- if (iSel == 1)
- dwFlags |= ECF_FORCEAVATAR;
- else if (iSel == 2)
- dwFlags |= ECF_HIDEAVATAR;
- if (contact)
- LoadAvatarForContact(contact);
- }
-
- dwFlags &= ~(ECF_FORCEOVERLAY | ECF_HIDEOVERLAY | ECF_FORCELOCALTIME | ECF_HIDELOCALTIME);
-
- checked = IsDlgButtonChecked(hWnd, IDC_OVERLAYICON);
- if (checked == BST_CHECKED)
- dwFlags |= ECF_FORCEOVERLAY;
- else if (checked == BST_UNCHECKED)
- dwFlags |= ECF_HIDEOVERLAY;
-
- checked = IsDlgButtonChecked(hWnd, IDC_SHOWLOCALTIME1);
- if (checked == BST_CHECKED)
- dwFlags |= ECF_FORCELOCALTIME;
- else if (checked == BST_UNCHECKED)
- dwFlags |= ECF_HIDELOCALTIME;
-
- g_plugin.setDword(hContact, "CLN_Flags", dwFlags);
-
- if ((iSel = SendDlgItemMessage(hWnd, IDC_SECONDLINEMODE, CB_GETCURSEL, 0, 0)) != CB_ERR) {
- if (iSel == 0) {
- g_plugin.delSetting(hContact, "CLN_2ndline");
- if (contact)
- contact->bSecondLine = cfg::dat.dualRowMode;
- }
- else {
- g_plugin.setByte(hContact, "CLN_2ndline", (BYTE)(iSel - 1));
- if (contact)
- contact->bSecondLine = (BYTE)(iSel - 1);
- }
- }
- g_plugin.setDword(hContact, "CLN_xmask", dwXMask);
- if (contact) {
- if (contact->pExtra)
- contact->pExtra->dwDFlags = dwFlags;
- }
- else {
- TExtraCache *p = cfg::getCache(hContact, nullptr);
- if (p)
- p->dwDFlags = dwFlags;
- }
- g_plugin.setByte(hContact, "Priority", (BYTE)(IsDlgButtonChecked(hWnd, IDC_IGN_PRIORITY) ? 1 : 0));
- Clist_Broadcast(CLM_AUTOREBUILD, 0, 0);
- }
- }
- case IDCANCEL:
- DestroyWindow(hWnd);
- break;
- }
- break;
-
- case WM_USER + 100: // fill dialog (wParam = hContact, lParam = mask)
- CheckDlgButton(hWnd, IDC_IGN_MSGEVENTS, lParam & (1 << (IGNOREEVENT_MESSAGE - 1)) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hWnd, IDC_IGN_FILEEVENTS, lParam & (1 << (IGNOREEVENT_FILE - 1)) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hWnd, IDC_IGN_URLEVENTS, lParam & (1 << (IGNOREEVENT_URL - 1)) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hWnd, IDC_IGN_AUTH, lParam & (1 << (IGNOREEVENT_AUTHORIZATION - 1)) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hWnd, IDC_IGN_ADD, lParam & (1 << (IGNOREEVENT_YOUWEREADDED - 1)) ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hWnd, IDC_IGN_ONLINE, lParam & (1 << (IGNOREEVENT_USERONLINE - 1)) ? BST_CHECKED : BST_UNCHECKED);
- return 0;
-
- case WM_USER + 110: // retrieve value
- {
- DWORD *dwNewMask = (DWORD *)lParam, dwMask = 0;
- dwMask = (IsDlgButtonChecked(hWnd, IDC_IGN_MSGEVENTS) ? (1 << (IGNOREEVENT_MESSAGE - 1)) : 0) |
- (IsDlgButtonChecked(hWnd, IDC_IGN_FILEEVENTS) ? (1 << (IGNOREEVENT_FILE - 1)) : 0) |
- (IsDlgButtonChecked(hWnd, IDC_IGN_URLEVENTS) ? (1 << (IGNOREEVENT_URL - 1)) : 0) |
- (IsDlgButtonChecked(hWnd, IDC_IGN_AUTH) ? (1 << (IGNOREEVENT_AUTHORIZATION - 1)) : 0) |
- (IsDlgButtonChecked(hWnd, IDC_IGN_ADD) ? (1 << (IGNOREEVENT_YOUWEREADDED - 1)) : 0) |
- (IsDlgButtonChecked(hWnd, IDC_IGN_ONLINE) ? (1 << (IGNOREEVENT_USERONLINE - 1)) : 0);
-
- if (dwNewMask)
- *dwNewMask = dwMask;
- }
- return 0;
-
- case WM_USER + 120: // set visibility status
- {
- ClcContact *contact = nullptr;
- if (Clist_FindItem(g_clistApi.hwndContactTree, cfg::clcdat, hContact, &contact)) {
- if (contact) {
- WORD wApparentMode = db_get_w(contact->hContact, contact->pce->szProto, "ApparentMode", 0);
-
- CheckDlgButton(hWnd, IDC_IGN_ALWAYSOFFLINE, wApparentMode == ID_STATUS_OFFLINE ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hWnd, IDC_IGN_ALWAYSONLINE, wApparentMode == ID_STATUS_ONLINE ? BST_CHECKED : BST_UNCHECKED);
- }
- }
- }
- return 0;
-
- case WM_USER + 130: // update apparent mode
- {
- ClcContact *contact = nullptr;
- if (Clist_FindItem(g_clistApi.hwndContactTree, cfg::clcdat, hContact, &contact)) {
- if (contact) {
- WORD wApparentMode = 0;
-
- if (IsDlgButtonChecked(hWnd, IDC_IGN_ALWAYSONLINE))
- wApparentMode = ID_STATUS_ONLINE;
- else if (IsDlgButtonChecked(hWnd, IDC_IGN_ALWAYSOFFLINE))
- wApparentMode = ID_STATUS_OFFLINE;
-
- ProtoChainSend(hContact, PSS_SETAPPARENTMODE, (WPARAM)wApparentMode, 0);
- SendMessage(hWnd, WM_USER + 120, 0, 0);
- }
- }
- }
- return 0;
-
- case WM_DESTROY:
- SetWindowLongPtr(hWnd, GWLP_USERDATA, 0);
- WindowList_Remove(hWindowListIGN, hWnd);
- break;
- }
- return FALSE;
-}
-
-/*
- * service function: Open ignore settings dialog for the contact handle in wParam
- * (clist_nicer+ specific service)
- *
- * Servicename = CList/SetContactIgnore
- *
- * ensure that dialog is only opened once (the dialog proc saves the window handle of an open dialog
- * of this type to the contacts database record).
- *
- * if dialog is already open, focus it.
- */
-
-static INT_PTR SetContactIgnore(WPARAM wParam, LPARAM)
-{
- HWND hWnd = nullptr;
-
- if (hWindowListIGN == nullptr)
- hWindowListIGN = WindowList_Create();
-
- hWnd = WindowList_Find(hWindowListIGN, wParam);
- if (wParam) {
- if (hWnd == nullptr)
- CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_QUICKIGNORE), nullptr, IgnoreDialogProc, (LPARAM)wParam);
- else if (IsWindow(hWnd))
- SetFocus(hWnd);
- }
- return 0;
-}
-
int InitCustomMenus(void)
{
InitIconLibMenuIcons();
CreateServiceFunction("CloseAction", CloseAction);
- CreateServiceFunction("CList/SetContactIgnore", SetContactIgnore);
-
- CMenuItem mi(&g_plugin);
- SET_UID(mi, 0xe3b08c6f, 0x8a01, 0x4c94, 0xb3, 0xf5, 0x9d, 0x38, 0x6, 0x63, 0x7a, 0xa9);
- mi.position = 200000;
- mi.pszService = "CList/SetContactIgnore";
- mi.hIcolibItem = iconItem[0].hIcolib;
- mi.name.a = LPGEN("&Contact list settings...");
- Menu_AddContactMenuItem(&mi);
return 0;
}
-
-void UninitCustomMenus(void)
-{
- WindowList_Destroy(hWindowListIGN);
-}
diff --git a/plugins/Clist_nicer/src/clistmod.cpp b/plugins/Clist_nicer/src/clistmod.cpp index bde5b10618..d4c08d0897 100644 --- a/plugins/Clist_nicer/src/clistmod.cpp +++ b/plugins/Clist_nicer/src/clistmod.cpp @@ -25,7 +25,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
int InitCustomMenus(void);
-void UninitCustomMenus(void);
INT_PTR GetContactStatusMessage(WPARAM wParam, LPARAM lParam);
@@ -57,15 +56,8 @@ int IconFromStatusMode(const char *szProto, int status, MCONTACT hContact) return coreCli.pfnIconFromStatusMode(szFinalProto, finalStatus, hContact);
}
-static int ContactListShutdownProc(WPARAM, LPARAM)
-{
- UninitCustomMenus();
- return 0;
-}
-
int LoadContactListModule(void)
{
- HookEvent(ME_SYSTEM_SHUTDOWN, ContactListShutdownProc);
CreateServiceFunction(MS_CLIST_GETSTATUSMODE, GetStatusMode);
hSvc_GetContactStatusMsg = CreateServiceFunction("CList/GetContactStatusMsg", GetContactStatusMessage);
diff --git a/plugins/Clist_nicer/src/resource.h b/plugins/Clist_nicer/src/resource.h index dba210f3bb..57072d9256 100644 --- a/plugins/Clist_nicer/src/resource.h +++ b/plugins/Clist_nicer/src/resource.h @@ -4,7 +4,6 @@ //
#define IDD_OPT_VIEWMODES 1
#define IDD_OPT_SKIN 4
-#define IDD_QUICKIGNORE 5
#define IDD_OPT 6
#define IDD_EXCEPTION 20
#define IDD_OPT_CLIST 126
|