summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-20 21:40:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-20 21:40:02 +0300
commit72a8c7e76a3048f733df1bf101ec6547606fdfbe (patch)
treed11c946edc04c5b0ea7c8aebcbdf1a366a9d5f6c /src
parent2f816ea233c40d020d1b63ef2a11ec3b724a710d (diff)
minus ModernOpt
Diffstat (limited to 'src')
-rw-r--r--src/core/stdauth/src/stdafx.h1
-rw-r--r--src/core/stdautoaway/src/stdafx.h1
-rw-r--r--src/core/stdaway/src/sendmsg.cpp26
-rw-r--r--src/core/stdaway/src/stdafx.h1
-rw-r--r--src/core/stdclist/src/clcopts.cpp25
-rw-r--r--src/core/stdclist/src/clistopts.cpp26
-rw-r--r--src/core/stdclist/src/cluiopts.cpp31
-rw-r--r--src/core/stdclist/src/init.cpp10
-rw-r--r--src/core/stdclist/src/stdafx.h1
-rw-r--r--src/core/stdcrypt/src/stdafx.h1
-rw-r--r--src/core/stdemail/src/stdafx.h1
-rw-r--r--src/core/stdfile/src/stdafx.h1
-rw-r--r--src/core/stdhelp/src/stdafx.h1
-rw-r--r--src/core/stdidle/src/idle.cpp25
-rw-r--r--src/core/stdidle/src/stdafx.h1
-rw-r--r--src/core/stdmsg/src/msgoptions.cpp33
-rw-r--r--src/core/stduihist/src/stdafx.h1
-rw-r--r--src/core/stduserinfo/src/stdafx.h1
-rw-r--r--src/core/stduseronline/src/stdafx.h1
-rw-r--r--src/mir_app/res/resource.rc2
-rw-r--r--src/mir_app/src/FontOptions.cpp46
-rw-r--r--src/mir_app/src/FontService.cpp2
-rw-r--r--src/mir_app/src/ignore.cpp17
-rw-r--r--src/mir_app/src/newplugins.cpp3
-rw-r--r--src/mir_app/src/options.cpp22
-rw-r--r--src/mir_app/src/resource.h1
-rw-r--r--src/mir_app/src/stdafx.h1
27 files changed, 4 insertions, 278 deletions
diff --git a/src/core/stdauth/src/stdafx.h b/src/core/stdauth/src/stdafx.h
index 627c26ecd1..353c02d116 100644
--- a/src/core/stdauth/src/stdafx.h
+++ b/src/core/stdauth/src/stdafx.h
@@ -59,7 +59,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_addcontact.h>
#include <m_findadd.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/core/stdautoaway/src/stdafx.h b/src/core/stdautoaway/src/stdafx.h
index 4425a5fd73..c590380a2d 100644
--- a/src/core/stdautoaway/src/stdafx.h
+++ b/src/core/stdautoaway/src/stdafx.h
@@ -58,7 +58,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_awaymsg.h>
#include <m_idle.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/core/stdaway/src/sendmsg.cpp b/src/core/stdaway/src/sendmsg.cpp
index 10a3c1c309..d3013ea14f 100644
--- a/src/core/stdaway/src/sendmsg.cpp
+++ b/src/core/stdaway/src/sendmsg.cpp
@@ -534,31 +534,6 @@ static int AwayMsgOptInitialise(WPARAM wParam, LPARAM)
return 0;
}
-static int AwayMsgSendModernOptInit(WPARAM wParam, LPARAM)
-{
- if (protoModeMsgFlags == 0)
- return 0;
-
- static const int iBoldControls[] =
- {
- IDC_TXT_TITLE1, IDC_TXT_TITLE2, IDC_TXT_TITLE3,
- MODERNOPT_CTRL_LAST
- };
-
- MODERNOPTOBJECT obj = { 0 };
- obj.cbSize = sizeof(obj);
- obj.hInstance = hInst;
- obj.dwFlags = MODEROPT_FLG_TCHAR | MODEROPT_FLG_NORESIZE;
- obj.iSection = MODERNOPT_PAGE_STATUS;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.iBoldControls = (int*)iBoldControls;
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_STATUS);
- obj.pfnDlgProc = DlgProcAwayMsgOpts;
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
- return 0;
-}
-
static int AwayMsgSendAccountsChanged(WPARAM, LPARAM)
{
protoModeMsgFlags = 0;
@@ -581,7 +556,6 @@ static int AwayMsgSendModulesLoaded(WPARAM, LPARAM)
AwayMsgSendAccountsChanged(0, 0);
HookEvent(ME_CLIST_STATUSMODECHANGE, StatusModeChange);
- HookEvent(ME_MODERNOPT_INITIALIZE, AwayMsgSendModernOptInit);
HookEvent(ME_OPT_INITIALISE, AwayMsgOptInitialise);
return 0;
}
diff --git a/src/core/stdaway/src/stdafx.h b/src/core/stdaway/src/stdafx.h
index 5ac853c77c..6ad64d0f36 100644
--- a/src/core/stdaway/src/stdafx.h
+++ b/src/core/stdaway/src/stdafx.h
@@ -58,7 +58,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_awaymsg.h>
#include <m_idle.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include <m_metacontacts.h>
diff --git a/src/core/stdclist/src/clcopts.cpp b/src/core/stdclist/src/clcopts.cpp
index 8468088d51..0beae07eec 100644
--- a/src/core/stdclist/src/clcopts.cpp
+++ b/src/core/stdclist/src/clcopts.cpp
@@ -443,28 +443,3 @@ int ClcOptInit(WPARAM wParam, LPARAM)
Options_AddPage(wParam, &odp);
return 0;
}
-
-int ClcModernOptInit(WPARAM wParam, LPARAM)
-{
- static int iBoldControls[] =
- {
- IDC_TXT_TITLE1, IDC_TXT_TITLE2,
- MODERNOPT_CTRL_LAST
- };
-
- MODERNOPTOBJECT obj = { 0 };
- obj.cbSize = sizeof(obj);
- obj.dwFlags = MODEROPT_FLG_TCHAR;
- obj.hIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
- obj.hInstance = g_hInst;
- obj.iSection = MODERNOPT_PAGE_SKINS;
- obj.iType = MODERNOPT_TYPE_SUBSECTIONPAGE;
- obj.lptzSubsection = LPGENW("Contact list");
- obj.iBoldControls = iBoldControls;
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
-
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_CLCBKG);
- obj.pfnDlgProc = DlgProcClcBkgOpts;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
- return 0;
-}
diff --git a/src/core/stdclist/src/clistopts.cpp b/src/core/stdclist/src/clistopts.cpp
index 55cf7d2c49..8a92ee1146 100644
--- a/src/core/stdclist/src/clistopts.cpp
+++ b/src/core/stdclist/src/clistopts.cpp
@@ -208,29 +208,3 @@ int CListOptInit(WPARAM wParam, LPARAM)
Options_AddPage(wParam, &odp);
return 0;
}
-
-int CListModernOptInit(WPARAM wParam, LPARAM)
-{
- static int iBoldControls[] =
- {
- IDC_TXT_TITLE1, IDC_TXT_TITLE2,
- MODERNOPT_CTRL_LAST
- };
-
- MODERNOPTOBJECT obj = { 0 };
- obj.cbSize = sizeof(obj);
- obj.dwFlags = MODEROPT_FLG_TCHAR | MODEROPT_FLG_NORESIZE;
- obj.hIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
- obj.hInstance = g_hInst;
- obj.iSection = MODERNOPT_PAGE_CLIST;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.iBoldControls = iBoldControls;
- obj.lpzClassicGroup = LPGEN("Contact list");
- obj.lpzClassicPage = "List";
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
-
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_CLIST);
- obj.pfnDlgProc = DlgProcGenOpts;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
- return 0;
-}
diff --git a/src/core/stdclist/src/cluiopts.cpp b/src/core/stdclist/src/cluiopts.cpp
index b4835091e3..e97dcc9667 100644
--- a/src/core/stdclist/src/cluiopts.cpp
+++ b/src/core/stdclist/src/cluiopts.cpp
@@ -331,34 +331,3 @@ int CluiOptInit(WPARAM wParam, LPARAM)
Options_AddPage(wParam, &odp);
return 0;
}
-
-int CluiModernOptInit(WPARAM wParam, LPARAM)
-{
- static int iBoldControls[] =
- {
- IDC_TXT_TITLE1, IDC_TXT_TITLE2, IDC_SHOWSBAR,
- MODERNOPT_CTRL_LAST
- };
-
- MODERNOPTOBJECT obj = { 0 };
-
- obj.cbSize = sizeof(obj);
- obj.dwFlags = MODEROPT_FLG_TCHAR | MODEROPT_FLG_NORESIZE;
- obj.hIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
- obj.hInstance = g_hInst;
- obj.iSection = MODERNOPT_PAGE_CLIST;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.iBoldControls = iBoldControls;
- obj.lpzClassicGroup = LPGEN("Contact list");
- obj.lpzClassicPage = "List";
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
-
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_CLUI);
- obj.pfnDlgProc = DlgProcCluiOpts;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
-
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_SBAR);
- obj.pfnDlgProc = DlgProcSBarOpts;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
- return 0;
-}
diff --git a/src/core/stdclist/src/init.cpp b/src/core/stdclist/src/init.cpp
index 3e0b594684..75caafbfd1 100644
--- a/src/core/stdclist/src/init.cpp
+++ b/src/core/stdclist/src/init.cpp
@@ -91,10 +91,8 @@ static int OnAccountsChanged(WPARAM, LPARAM)
/////////////////////////////////////////////////////////////////////////////////////////
// called when all modules got loaded
-static int OnModernOptsInit(WPARAM wParam, LPARAM lParam);
static int OnModulesLoaded(WPARAM, LPARAM)
{
- HookEvent(ME_MODERNOPT_INITIALIZE, OnModernOptsInit);
RegisterCListFonts();
himlCListClc = Clist_GetImageList();
return 0;
@@ -111,14 +109,6 @@ static int OnOptsInit(WPARAM wParam, LPARAM lParam)
return 0;
}
-static int OnModernOptsInit(WPARAM wParam, LPARAM lParam)
-{
- ClcModernOptInit(wParam, lParam);
- CListModernOptInit(wParam, lParam);
- CluiModernOptInit(wParam, lParam);
- return 0;
-}
-
/////////////////////////////////////////////////////////////////////////////////////////
// menu status services
diff --git a/src/core/stdclist/src/stdafx.h b/src/core/stdclist/src/stdafx.h
index 35286fe2f9..c5b5d0a3a7 100644
--- a/src/core/stdclist/src/stdafx.h
+++ b/src/core/stdclist/src/stdafx.h
@@ -43,7 +43,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_langpack.h>
#include <m_button.h>
#include <m_options.h>
-#include <m_modernopt.h>
#include <m_protosvc.h>
#include <m_utils.h>
#include <m_skin.h>
diff --git a/src/core/stdcrypt/src/stdafx.h b/src/core/stdcrypt/src/stdafx.h
index aa3396790a..1300a88bb4 100644
--- a/src/core/stdcrypt/src/stdafx.h
+++ b/src/core/stdcrypt/src/stdafx.h
@@ -56,7 +56,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_findadd.h>
#include <m_ignore.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include <m_string.h>
#include <m_crypto.h>
diff --git a/src/core/stdemail/src/stdafx.h b/src/core/stdemail/src/stdafx.h
index f97989a83d..a77ba9146e 100644
--- a/src/core/stdemail/src/stdafx.h
+++ b/src/core/stdemail/src/stdafx.h
@@ -57,7 +57,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_findadd.h>
#include <m_email.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/core/stdfile/src/stdafx.h b/src/core/stdfile/src/stdafx.h
index d36254e79a..c9f0c27d3f 100644
--- a/src/core/stdfile/src/stdafx.h
+++ b/src/core/stdfile/src/stdafx.h
@@ -64,7 +64,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_findadd.h>
#include <m_file.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include <m_metacontacts.h>
#include <m_string.h>
diff --git a/src/core/stdhelp/src/stdafx.h b/src/core/stdhelp/src/stdafx.h
index 6ff81726a5..d7dd0726c8 100644
--- a/src/core/stdhelp/src/stdafx.h
+++ b/src/core/stdhelp/src/stdafx.h
@@ -56,7 +56,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_userinfo.h>
#include <m_findadd.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/core/stdidle/src/idle.cpp b/src/core/stdidle/src/idle.cpp
index 8a04285c2b..6176f7baa2 100644
--- a/src/core/stdidle/src/idle.cpp
+++ b/src/core/stdidle/src/idle.cpp
@@ -369,30 +369,6 @@ static INT_PTR IdleGetInfo(WPARAM, LPARAM lParam)
return 0;
}
-static int IdleModernOptInit(WPARAM wParam, LPARAM)
-{
- static const int iBoldControls[] =
- {
- IDC_TXT_TITLE1, IDC_TXT_TITLE2, IDC_TXT_TITLE3,
- MODERNOPT_CTRL_LAST
- };
-
- MODERNOPTOBJECT obj = {0};
- obj.cbSize = sizeof(obj);
- obj.hInstance = hInst;
- obj.dwFlags = MODEROPT_FLG_TCHAR | MODEROPT_FLG_NORESIZE;
- obj.iSection = MODERNOPT_PAGE_STATUS;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.iBoldControls = (int*)iBoldControls;
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_IDLE);
- obj.pfnDlgProc = IdleOptsDlgProc;
-// obj.lpzClassicGroup = "Status";
-// obj.lpzClassicPage = "Messages";
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
- return 0;
-}
-
int LoadIdleModule(void)
{
bModuleInitialized = TRUE;
@@ -401,7 +377,6 @@ int LoadIdleModule(void)
IdleObject_Create(&gIdleObject);
CreateServiceFunction(MS_IDLE_GETIDLEINFO, IdleGetInfo);
HookEvent(ME_OPT_INITIALISE, IdleOptInit);
- HookEvent(ME_MODERNOPT_INITIALIZE, IdleModernOptInit);
return 0;
}
diff --git a/src/core/stdidle/src/stdafx.h b/src/core/stdidle/src/stdafx.h
index ce1877ea9f..920188e6dc 100644
--- a/src/core/stdidle/src/stdafx.h
+++ b/src/core/stdidle/src/stdafx.h
@@ -58,7 +58,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_findadd.h>
#include <m_idle.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/core/stdmsg/src/msgoptions.cpp b/src/core/stdmsg/src/msgoptions.cpp
index 1fdeb19cad..60480f1715 100644
--- a/src/core/stdmsg/src/msgoptions.cpp
+++ b/src/core/stdmsg/src/msgoptions.cpp
@@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "stdafx.h"
#include "m_fontservice.h"
-#include "m_modernopt.h"
int ChatOptionsInitialize(WPARAM);
@@ -637,39 +636,7 @@ static int OptInitialise(WPARAM wParam, LPARAM)
return 0;
}
-static int ModernOptInitialise(WPARAM wParam, LPARAM)
-{
- static int iBoldControls[] =
- {
- IDC_TXT_TITLE1, IDC_TXT_TITLE2, IDC_TXT_TITLE3,
- MODERNOPT_CTRL_LAST
- };
-
- MODERNOPTOBJECT obj = { sizeof(obj) };
- obj.dwFlags = MODEROPT_FLG_TCHAR | MODEROPT_FLG_NORESIZE;
- obj.hIcon = Skin_LoadIcon(SKINICON_EVENT_MESSAGE);
- obj.hInstance = g_hInst;
- obj.iSection = MODERNOPT_PAGE_MSGS;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.iBoldControls = iBoldControls;
- obj.lpzClassicGroup = nullptr;
- obj.lpzClassicPage = "Message Sessions";
- obj.lpzClassicTab = "Messaging";
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
-
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_MSGDLG);
- obj.pfnDlgProc = DlgProcOptions;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
-
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_MSGLOG);
- obj.pfnDlgProc = DlgProcLogOptions;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
-
- return 0;
-}
-
void InitOptions(void)
{
HookEvent(ME_OPT_INITIALISE, OptInitialise);
- HookEvent(ME_MODERNOPT_INITIALIZE, ModernOptInitialise);
}
diff --git a/src/core/stduihist/src/stdafx.h b/src/core/stduihist/src/stdafx.h
index 09a09e1dd2..8acbb3e65c 100644
--- a/src/core/stduihist/src/stdafx.h
+++ b/src/core/stduihist/src/stdafx.h
@@ -57,7 +57,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_history.h>
#include <m_findadd.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/core/stduserinfo/src/stdafx.h b/src/core/stduserinfo/src/stdafx.h
index a7aa8865d7..1267720fd5 100644
--- a/src/core/stduserinfo/src/stdafx.h
+++ b/src/core/stduserinfo/src/stdafx.h
@@ -59,7 +59,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_userinfo.h>
#include <m_findadd.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/core/stduseronline/src/stdafx.h b/src/core/stduseronline/src/stdafx.h
index 87f73876c6..fcb9b4b93c 100644
--- a/src/core/stduseronline/src/stdafx.h
+++ b/src/core/stduseronline/src/stdafx.h
@@ -57,7 +57,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_findadd.h>
#include <m_ignore.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include "version.h"
diff --git a/src/mir_app/res/resource.rc b/src/mir_app/res/resource.rc
index 7b9ac32d40..f95f0b5666 100644
--- a/src/mir_app/res/resource.rc
+++ b/src/mir_app/res/resource.rc
@@ -148,7 +148,6 @@ BEGIN
PUSHBUTTON "Apply",IDC_APPLY,374,283,50,14
CONTROL "Tree1",IDC_PAGETREE,"SysTreeView32",TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_DISABLEDRAGDROP | TVS_SHOWSELALWAYS | TVS_TRACKSELECT | TVS_NOHSCROLL | WS_BORDER | WS_TABSTOP,4,30,102,249
CONTROL "",IDC_TAB,"SysTabControl32",NOT WS_VISIBLE | WS_TABSTOP,111,30,313,249
- CONTROL "Switch to simple options",IDC_MODERN,"Hyperlink",WS_TABSTOP,5,284,102,10,WS_EX_TRANSPARENT
CTEXT "Please select a subentry from the list",IDC_STNOPAGE,111,30,313,251,SS_CENTERIMAGE
END
@@ -165,7 +164,6 @@ BEGIN
PUSHBUTTON "Cancel",IDCANCEL,212,283,50,14
PUSHBUTTON "Apply",IDC_APPLY,267,283,50,14
CONTROL "",IDC_TAB,"SysTabControl32",NOT WS_VISIBLE | WS_TABSTOP,4,32,313,249
- CONTROL "Switch to simple options",IDC_MODERN,"Hyperlink",WS_TABSTOP,347,254,62,10,WS_EX_TRANSPARENT
CTEXT "Please select a subentry from the list",IDC_STNOPAGE,4,30,313,251,SS_CENTERIMAGE
CONTROL "",IDC_PAGETREE,"SysTreeView32",TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_DISABLEDRAGDROP | TVS_SHOWSELALWAYS | TVS_TRACKSELECT | TVS_NOHSCROLL | NOT WS_VISIBLE | WS_BORDER | WS_TABSTOP,347,86,52,137
END
diff --git a/src/mir_app/src/FontOptions.cpp b/src/mir_app/src/FontOptions.cpp
index 1e7452ebd0..de970855bb 100644
--- a/src/mir_app/src/FontOptions.cpp
+++ b/src/mir_app/src/FontOptions.cpp
@@ -1337,49 +1337,3 @@ static INT_PTR CALLBACK DlgProcModernOptions(HWND hwndDlg, UINT msg, WPARAM wPar
}
INT_PTR CALLBACK DlgPluginOpt(HWND, UINT, WPARAM, LPARAM);
-
-int FontsModernOptInit(WPARAM wParam, LPARAM)
-{
- static int iBoldControls[] =
- {
- IDC_TXT_TITLE1, IDC_TXT_TITLE2, IDC_TXT_TITLE3,
- MODERNOPT_CTRL_LAST
- };
-
- MODERNOPTOBJECT obj = {0};
- obj.cbSize = sizeof(obj);
- obj.dwFlags = MODEROPT_FLG_TCHAR|MODEROPT_FLG_NORESIZE;
- obj.hIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
- obj.hInstance = g_hInst;
- obj.iSection = MODERNOPT_PAGE_SKINS;
- obj.iType = MODERNOPT_TYPE_SUBSECTIONPAGE;
- obj.iBoldControls = iBoldControls;
- obj.lptzSubsection = LPGENW("Fonts");
- obj.lpzClassicGroup = "Customize";
- obj.lpzClassicPage = "Fonts";
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
-
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_FONTS);
- obj.pfnDlgProc = DlgProcModernOptions;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
-/*
- obj.iSection = MODERNOPT_PAGE_ACCOUNTS;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_ACCOUNTS);
- obj.pfnDlgProc = AccMgrDlgProc;
- obj.lpzClassicGroup = nullptr;
- obj.lpzClassicPage = "Network";
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
-*/
- obj.iSection = MODERNOPT_PAGE_MODULES;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_MODULES);
- obj.pfnDlgProc = DlgPluginOpt;
- obj.iBoldControls = iBoldControls;
- obj.lpzClassicGroup = nullptr;
- obj.lpzClassicPage = nullptr;
- obj.lpzHelpUrl = "https://wiki.miranda-ng.org/";
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
- return 0;
-}
diff --git a/src/mir_app/src/FontService.cpp b/src/mir_app/src/FontService.cpp
index 4620d8b727..b40410ad6c 100644
--- a/src/mir_app/src/FontService.cpp
+++ b/src/mir_app/src/FontService.cpp
@@ -502,12 +502,10 @@ MIR_APP_DLL(void) KillModuleEffects(int _hLang)
/////////////////////////////////////////////////////////////////////////////////////////
int OptInit(WPARAM, LPARAM);
-int FontsModernOptInit(WPARAM wParam, LPARAM lParam);
static int OnModulesLoaded(WPARAM, LPARAM)
{
HookEvent(ME_OPT_INITIALISE, OptInit);
- HookEvent(ME_MODERNOPT_INITIALIZE, FontsModernOptInit);
return 0;
}
diff --git a/src/mir_app/src/ignore.cpp b/src/mir_app/src/ignore.cpp
index f76856e026..1a212bafa4 100644
--- a/src/mir_app/src/ignore.cpp
+++ b/src/mir_app/src/ignore.cpp
@@ -415,22 +415,6 @@ static int IgnoreAddedNotify(WPARAM, LPARAM lParam)
return 0;
}
-static int iBoldControls[] = { IDC_TXT_TITLE1, IDC_TXT_TITLE2, IDC_TXT_TITLE3, MODERNOPT_CTRL_LAST };
-
-static int IgnoreModernOptInit(WPARAM wParam, LPARAM)
-{
- MODERNOPTOBJECT obj = { sizeof(obj) };
- obj.hInstance = g_hInst;
- obj.dwFlags = MODEROPT_FLG_TCHAR;
- obj.iSection = MODERNOPT_PAGE_IGNORE;
- obj.iType = MODERNOPT_TYPE_SECTIONPAGE;
- obj.iBoldControls = iBoldControls;
- obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_IGNORE);
- obj.pfnDlgProc = DlgProcIgnoreOpts;
- CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj);
- return 0;
-}
-
int LoadIgnoreModule(void)
{
PROTOCOLDESCRIPTOR pd = { 0 };
@@ -449,7 +433,6 @@ int LoadIgnoreModule(void)
CreateServiceFunction(MS_IGNORE_UNIGNORE, Unignore);
HookEvent(ME_DB_EVENT_FILTER_ADD, IgnoreAddedNotify);
- HookEvent(ME_MODERNOPT_INITIALIZE, IgnoreModernOptInit);
HookEvent(ME_OPT_INITIALISE, IgnoreOptInitialise);
return 0;
}
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp
index 57655c2ec9..22bbfb6cb4 100644
--- a/src/mir_app/src/newplugins.cpp
+++ b/src/mir_app/src/newplugins.cpp
@@ -115,7 +115,8 @@ static const MUUID pluginBannedList[] =
{ 0xf0fdf73a, 0x753d, 0x499d, { 0x8d, 0xba, 0x33, 0x6d, 0xb7, 0x9c, 0xdd, 0x41 } }, // advancedautoaway
{ 0xa5bb1b7a, 0xb7cd, 0x4cbb, { 0xa7, 0xdb, 0xce, 0xb4, 0xeb, 0x71, 0xda, 0x49 } }, // keepstatus
{ 0x4b733944, 0x5a70, 0x4b52, { 0xab, 0x2d, 0x68, 0xb1, 0xef, 0x38, 0xff, 0xe8 } }, // startupstatus
- { 0x9d6c3213, 0x02b4, 0x4fe1, { 0x92, 0xe6, 0x52, 0x6d, 0xe1, 0x4f, 0x8d, 0x65 } } // stdchat
+ { 0x9d6c3213, 0x02b4, 0x4fe1, { 0x92, 0xe6, 0x52, 0x6d, 0xe1, 0x4f, 0x8d, 0x65 } }, // stdchat
+ { 0x621f886b, 0xa7f6, 0x457f, { 0x9d, 0x62, 0x8e, 0xe8, 0x4c, 0x27, 0x59, 0x93 } } // modernopt
};
static bool isPluginBanned(const MUUID& u1)
diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp
index 272d8ab216..33962626fb 100644
--- a/src/mir_app/src/options.cpp
+++ b/src/mir_app/src/options.cpp
@@ -373,7 +373,7 @@ class COptionsDlg : public CDlgBase
CCtrlTreeView m_pageTree;
CCtrlCombo m_keywordFilter;
- CCtrlButton m_btnApply, m_btnCancel, m_btnModern;
+ CCtrlButton m_btnApply, m_btnCancel;
COptionsDlg& operator=(const COptionsDlg&);
@@ -715,7 +715,6 @@ public:
CDlgBase(g_hInst, bSinglePage ? IDD_OPTIONSPAGE : IDD_OPTIONS),
m_btnApply(this, IDC_APPLY),
m_btnCancel(this, IDCANCEL),
- m_btnModern(this, IDC_MODERN),
m_pageTree(this, IDC_PAGETREE),
m_keywordFilter(this, IDC_KEYWORD_FILTER),
m_arOpd(10),
@@ -733,14 +732,10 @@ public:
m_btnCancel.OnClick = Callback(this, &COptionsDlg::OnCancel);
m_btnApply.OnClick = Callback(this, &COptionsDlg::btnApply_Click);
- m_btnModern.OnClick = Callback(this, &COptionsDlg::btnModern_Click);
}
virtual void OnInitDialog() override
{
- if (!ServiceExists(MS_MODERNOPT_SHOW))
- ShowWindow(GetDlgItem(m_hwnd, IDC_MODERN), FALSE);
-
Utils_RestoreWindowPositionNoSize(m_hwnd, 0, "Options", "");
Window_SetSkinIcon_IcoLib(m_hwnd, SKINICON_OTHER_OPTIONS);
m_btnApply.Disable();
@@ -853,8 +848,6 @@ public:
DeleteObject(m_hBoldFont);
pOptionsDlg = nullptr;
-
- CallService(MS_MODERNOPT_RESTORE, 0, 0);
}
virtual void OnApply() override
@@ -898,14 +891,6 @@ public:
m_btnApply.Disable();
}
- void btnModern_Click(CCtrlButton*)
- {
- db_set_b(0, "Options", "Expert", 0);
- SaveOptionsTreeState();
- PostMessage(m_hwnd, WM_CLOSE, 0, 0);
- CallService(MS_MODERNOPT_SHOW, 0, 0);
- }
-
void OnOk(void*)
{
if (GetParent(GetFocus()) == GetDlgItem(m_hwnd, IDC_KEYWORD_FILTER))
@@ -1220,10 +1205,7 @@ MIR_APP_DLL(int) Options_AddPage(WPARAM wParam, OPTIONSDIALOGPAGE *odp, int _hLa
static INT_PTR OpenOptionsDialog(WPARAM, LPARAM)
{
- if (pOptionsDlg || !ServiceExists(MS_MODERNOPT_SHOW))
- OpenOptionsNow(0, nullptr, nullptr, nullptr, false);
- else
- CallService(MS_MODERNOPT_SHOW, 0, 0);
+ OpenOptionsNow(0, nullptr, nullptr, nullptr, false);
return 0;
}
diff --git a/src/mir_app/src/resource.h b/src/mir_app/src/resource.h
index 5a56718d2d..4b82aa09b1 100644
--- a/src/mir_app/src/resource.h
+++ b/src/mir_app/src/resource.h
@@ -377,7 +377,6 @@
#define IDC_NEWNAME 1341
#define IDC_MOVE 1342
#define IDC_LEAVE 1343
-#define IDC_MODERN 1346
#define IDC_CATEGORYLIST 1366
#define IDC_LOADICONS 1369
#define IDC_STICONSGROUP 1371
diff --git a/src/mir_app/src/stdafx.h b/src/mir_app/src/stdafx.h
index b9dd68cd02..fa9d38129d 100644
--- a/src/mir_app/src/stdafx.h
+++ b/src/mir_app/src/stdafx.h
@@ -84,7 +84,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_awaymsg.h>
#include <m_ignore.h>
#include <m_icolib.h>
-#include <m_modernopt.h>
#include <m_timezones.h>
#include <m_extraicons.h>
#include <m_xstatus.h>