diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-21 19:08:01 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-21 19:08:01 +0000 |
commit | cc50b4442a9a0c93d2dc2b8a32fc27327a02b73d (patch) | |
tree | 98d03197a451c875f664f36947804731dbb1c414 | |
parent | 66bdd13c2e359a0450b4c3f484c95a11224b5222 (diff) |
mirlua: cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/MirLua/src/mlua_options.cpp | 12 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua_options.h | 12 |
2 files changed, 2 insertions, 22 deletions
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<class T>
- __inline void CreateLink(CCtrlData &ctrl, CMOption<T> &option)
- {
- ctrl.CreateDbLink(new CMOptionLink<T>(option));
- }
-
static CDlgBase *CreateOptionsPage() { return new CMLuaOptions(IDD_OPTIONS); }
};
|