diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-25 09:23:44 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-25 09:23:44 +0000 |
commit | 6613345b8d2a3aaf95cb1947863496bb91bdebc4 (patch) | |
tree | ca3b389dd3417b6017f8bc2eed7462b1c7d251cc /plugins/MirLua/src/mlua_options.h | |
parent | 4a06760bfa858838bd71219c9e2541ab71b34126 (diff) |
MirLua: added open button in script list
git-svn-id: http://svn.miranda-ng.org/main/trunk@14373 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_options.h')
-rw-r--r-- | plugins/MirLua/src/mlua_options.h | 20 |
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 |