From 27985042841f1ea60156ed532e0b9f57e9c3b369 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 15 Jun 2015 15:52:22 +0000 Subject: MirLua: added options page git-svn-id: http://svn.miranda-ng.org/main/trunk@14179 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_options.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 plugins/MirLua/src/mlua_options.h (limited to 'plugins/MirLua/src/mlua_options.h') diff --git a/plugins/MirLua/src/mlua_options.h b/plugins/MirLua/src/mlua_options.h new file mode 100644 index 0000000000..7311cf5df6 --- /dev/null +++ b/plugins/MirLua/src/mlua_options.h @@ -0,0 +1,29 @@ +#ifndef _LUA_OPTIONS_H_ +#define _LUA_OPTIONS_H_ + +class CLuaOptions : public CDlgBase +{ +private: + CCtrlListView m_scripts; + + void LoadScripts(const TCHAR *scriptDir); + +protected: + void OnInitDialog(); + +public: + CLuaOptions(int idDialog); + + void CreateLink(CCtrlData& ctrl, const char *szSetting, BYTE type, DWORD iValue); + void CreateLink(CCtrlData& ctrl, const char *szSetting, TCHAR *szValue); + + template + __inline void CreateLink(CCtrlData &ctrl, CMOption &option) + { + ctrl.CreateDbLink(new CMOptionLink(option)); + } + + static CDlgBase *CreateOptionsPage() { return new CLuaOptions(IDD_OPTIONS_MAIN); } +}; + +#endif //_LUA_OPTIONS_H_ \ No newline at end of file -- cgit v1.2.3