#pragma once class CMLuaOptionsMain : public CDlgBase { private: CMPlugin &m_plugin; bool isScriptListInit; CCtrlCheck m_popupOnError; CCtrlCheck m_popupOnObsolete; CCtrlListView m_scriptsList; CCtrlButton m_reload; void LoadScripts(); protected: bool OnInitDialog() override; bool OnApply() override; void OnScriptListClick(CCtrlListView::TEventInfo *evt); void OnReload(CCtrlBase*); INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) override; public: CMLuaOptionsMain(CMPlugin &plugin); }; /***********************************************/ class CMLuaEvaluateOptions : public CDlgBase { private: lua_State *L = nullptr; int threadRef = 0; CCtrlEdit m_script; CCtrlEdit m_result; CCtrlCheck m_autoEval; CCtrlButton m_evaluate; protected: bool OnInitDialog() override; bool OnApply() override; void OnAutoEvalChange(CCtrlBase*); void OnEvaluate(CCtrlBase*); public: CMLuaEvaluateOptions(CMPlugin &plugin); ~CMLuaEvaluateOptions(); };