summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_options.h
blob: 2e3b4ff7f70c06fe1a5918f8ca9cec7873b954ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _LUA_OPTIONS_H_
#define _LUA_OPTIONS_H_

class CMLuaOptions : public CPluginDlgBase
{
private:
	CMLua *m_mLua;
	bool isScriptListInit;
	
	CCtrlCheck m_popupOnError;
	CCtrlCheck m_popupOnObsolete;

	CCtrlListView m_scripts;
	CCtrlButton m_reload;

	void LoadScripts();

protected:
	void OnInitDialog();
	void OnApply();

	void OnScriptListClick(CCtrlListView::TEventInfo *evt);
	void OnReload(CCtrlBase*);

	INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam);

public:
	CMLuaOptions(CMLua *mLua);
};

#endif //_LUA_OPTIONS_H_