summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/mlua_options.cpp18
-rw-r--r--plugins/MirLua/src/mlua_options.h16
2 files changed, 1 insertions, 33 deletions
diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp
index 9a4438d408..2a7d141e41 100644
--- a/plugins/MirLua/src/mlua_options.cpp
+++ b/plugins/MirLua/src/mlua_options.cpp
@@ -1,23 +1,5 @@
#include "stdafx.h"
-CCtrlScriptList::CCtrlScriptList(CDlgBase* dlg, int ctrlId)
- : CCtrlListView(dlg, ctrlId)
-{
-}
-
-BOOL CCtrlScriptList::OnNotify(int idCtrl, NMHDR *pnmh)
-{
- if (pnmh->code == NM_CLICK)
- {
- TEventInfo evt = { this, pnmh };
- OnClick(&evt);
- return TRUE;
- }
- return CCtrlListView::OnNotify(idCtrl, pnmh);
-}
-
-/****************************************/
-
CMLuaOptions::CMLuaOptions(int idDialog)
: CPluginDlgBase(g_hInstance, idDialog, MODULE),
m_popupOnError(this, IDC_POPUPONERROR),
diff --git a/plugins/MirLua/src/mlua_options.h b/plugins/MirLua/src/mlua_options.h
index 5d36188604..a8168d70da 100644
--- a/plugins/MirLua/src/mlua_options.h
+++ b/plugins/MirLua/src/mlua_options.h
@@ -3,20 +3,6 @@
#include <m_gui.h>
-class CCtrlScriptList : public CCtrlListView
-{
-private:
- typedef CCtrlListView CSuper;
-
-protected:
- BOOL OnNotify(int idCtrl, NMHDR *pnmh);
-
-public:
- CCtrlScriptList(CDlgBase* dlg, int ctrlId);
-
- CCallback<TEventInfo> OnClick;
-};
-
class CMLuaOptions : public CPluginDlgBase
{
private:
@@ -24,7 +10,7 @@ private:
CCtrlCheck m_popupOnObsolete;
bool isScriptListInit;
- CCtrlScriptList m_scripts;
+ CCtrlListView m_scripts;
CCtrlButton m_reload;
void LoadScripts();