From cc50b4442a9a0c93d2dc2b8a32fc27327a02b73d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 21 Apr 2016 19:08:01 +0000 Subject: mirlua: cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@16737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_options.cpp | 12 +----------- plugins/MirLua/src/mlua_options.h | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) (limited to 'plugins/MirLua/src') diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp index dce88057d6..0a21f37c46 100644 --- a/plugins/MirLua/src/mlua_options.cpp +++ b/plugins/MirLua/src/mlua_options.cpp @@ -19,7 +19,7 @@ BOOL CCtrlScriptList::OnNotify(int idCtrl, NMHDR *pnmh) /****************************************/ CMLuaOptions::CMLuaOptions(int idDialog) - : CDlgBase(g_hInstance, idDialog), + : CPluginDlgBase(g_hInstance, idDialog, MODULE), m_popupOnError(this, IDC_POPUPONERROR), m_popupOnObsolete(this, IDC_POPUPONOBSOLETE), isScriptListInit(false), m_scripts(this, IDC_SCRIPTS), @@ -32,16 +32,6 @@ CMLuaOptions::CMLuaOptions(int idDialog) m_reload.OnClick = Callback(this, &CMLuaOptions::OnReload); } -void CMLuaOptions::CreateLink(CCtrlData& ctrl, const char *szSetting, BYTE type, DWORD iValue) -{ - ctrl.CreateDbLink(MODULE, szSetting, type, iValue); -} - -void CMLuaOptions::CreateLink(CCtrlData& ctrl, const char *szSetting, TCHAR *szValue) -{ - ctrl.CreateDbLink(MODULE, szSetting, szValue); -} - void CMLuaOptions::LoadScripts() { for (int i = 0; i < g_mLua->Scripts.getCount(); i++) diff --git a/plugins/MirLua/src/mlua_options.h b/plugins/MirLua/src/mlua_options.h index cc4171938f..d78c1a1066 100644 --- a/plugins/MirLua/src/mlua_options.h +++ b/plugins/MirLua/src/mlua_options.h @@ -16,7 +16,7 @@ public: }; -class CMLuaOptions : public CDlgBase +class CMLuaOptions : public CPluginDlgBase { private: CCtrlCheck m_popupOnError; @@ -40,17 +40,7 @@ protected: public: CMLuaOptions(int idDialog); - void CreateLink(CCtrlData& ctrl, const char *szSetting, BYTE type, DWORD iValue); - void CreateLink(CCtrlData& ctrl, const char *szSetting, TCHAR *szValue); - static int OnOptionsInit(WPARAM wParam, LPARAM); - - template - __inline void CreateLink(CCtrlData &ctrl, CMOption &option) - { - ctrl.CreateDbLink(new CMOptionLink(option)); - } - static CDlgBase *CreateOptionsPage() { return new CMLuaOptions(IDD_OPTIONS); } }; -- cgit v1.2.3