summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_options.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mlua_options.h')
-rw-r--r--plugins/MirLua/src/mlua_options.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua_options.h b/plugins/MirLua/src/mlua_options.h
index 4972656260..f6fd0db164 100644
--- a/plugins/MirLua/src/mlua_options.h
+++ b/plugins/MirLua/src/mlua_options.h
@@ -1,11 +1,26 @@
#ifndef _LUA_OPTIONS_H_
#define _LUA_OPTIONS_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 CLuaOptions : public CDlgBase
{
private:
bool isScriptListInit;
- CCtrlListView m_scripts;
+ CCtrlScriptList m_scripts;
CCtrlButton m_reload;
void LoadScripts(const TCHAR *scriptDir, int iGroup = -1);
@@ -15,6 +30,7 @@ protected:
void OnInitDialog();
void OnApply();
+ void OnScriptListClick(CCtrlListView::TEventInfo *evt);
void OnReload(CCtrlBase*);
INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam);
@@ -33,7 +49,7 @@ public:
ctrl.CreateDbLink(new CMOptionLink<T>(option));
}
- static CDlgBase *CreateOptionsPage() { return new CLuaOptions(IDD_OPTIONS_MAIN); }
+ static CDlgBase *CreateOptionsPage() { return new CLuaOptions(IDD_OPTIONS); }
};
#endif //_LUA_OPTIONS_H_ \ No newline at end of file