diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-04-04 09:44:12 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-04-04 09:44:12 +0000 |
commit | 32089106fa10eba08e946693cb2939a4ab293f77 (patch) | |
tree | 102d714e16eb4d5c8da2a6a34d497ad10724c35f /plugins/MirLua/src/mlua_options.cpp | |
parent | e1110157f8c2989a58aa12ddeef91669525d188f (diff) |
MirLua:
- no need to copy pointer data in MT
- project cleanup
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16584 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_options.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_options.cpp | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp index e7f3ef729f..dce88057d6 100644 --- a/plugins/MirLua/src/mlua_options.cpp +++ b/plugins/MirLua/src/mlua_options.cpp @@ -42,19 +42,6 @@ void CMLuaOptions::CreateLink(CCtrlData& ctrl, const char *szSetting, TCHAR *szV ctrl.CreateDbLink(MODULE, szSetting, szValue);
}
-int CMLuaOptions::OnOptionsInit(WPARAM wParam, LPARAM)
-{
- OPTIONSDIALOGPAGE odp = { 0 };
- odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR | ODPF_DONTTRANSLATE;
- odp.ptszGroup = LPGENT("Services");
- odp.ptszTitle = _T(MODULE);
- odp.ptszTab = LPGENT("Scripts");
- odp.pDialog = CMLuaOptions::CreateOptionsPage();
- Options_AddPage(wParam, &odp);
-
- return 0;
-}
-
void CMLuaOptions::LoadScripts()
{
for (int i = 0; i < g_mLua->Scripts.getCount(); i++)
@@ -175,4 +162,19 @@ void CMLuaOptions::OnReload(CCtrlBase*) g_mLua->Load();
LoadScripts();
isScriptListInit = true;
+}
+
+/****************************************/
+
+int CMLuaOptions::OnOptionsInit(WPARAM wParam, LPARAM)
+{
+ OPTIONSDIALOGPAGE odp = { 0 };
+ odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR | ODPF_DONTTRANSLATE;
+ odp.ptszGroup = LPGENT("Services");
+ odp.ptszTitle = _T("Lua");
+ odp.ptszTab = LPGENT("Scripts");
+ odp.pDialog = CMLuaOptions::CreateOptionsPage();
+ Options_AddPage(wParam, &odp);
+
+ return 0;
}
\ No newline at end of file |