summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_options.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-15 15:52:22 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-15 15:52:22 +0000
commit27985042841f1ea60156ed532e0b9f57e9c3b369 (patch)
treedfb25c2cbdb9b1d8896ce47d9620dd9a569ecf0b /plugins/MirLua/src/mlua_options.h
parentff55088a637a2716d1ab950b42b992cce78f4f6b (diff)
MirLua: added options page
git-svn-id: http://svn.miranda-ng.org/main/trunk@14179 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_options.h')
-rw-r--r--plugins/MirLua/src/mlua_options.h29
1 files changed, 29 insertions, 0 deletions
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<class T>
+ __inline void CreateLink(CCtrlData &ctrl, CMOption<T> &option)
+ {
+ ctrl.CreateDbLink(new CMOptionLink<T>(option));
+ }
+
+ static CDlgBase *CreateOptionsPage() { return new CLuaOptions(IDD_OPTIONS_MAIN); }
+};
+
+#endif //_LUA_OPTIONS_H_ \ No newline at end of file