diff options
Diffstat (limited to 'plugins/MirLua/src/mlua_options.h')
-rw-r--r-- | plugins/MirLua/src/mlua_options.h | 29 |
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 |