#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_