summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-20 23:36:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-20 23:36:07 +0300
commit41ee395da7530c17656bd06f84638ab8d9d3776d (patch)
tree4f28423e3acb809b9be60f467d7fbca262a612d5 /plugins/Scriver
parente79355b2127afe4cdfe4676e76a165fefe6e6c2a (diff)
options API unbound from hLangpack and switched to CMPlugin
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/msgoptions.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp
index 30d35d39cf..c3af02c3b5 100644
--- a/plugins/Scriver/src/msgoptions.cpp
+++ b/plugins/Scriver/src/msgoptions.cpp
@@ -706,7 +706,7 @@ public:
case WM_COMMAND:
switch (LOWORD(wParam)) {
case IDC_FONTSCOLORS:
- Options_Open(L"Customize", L"Fonts and colors");
+ g_plugin.openOptions(L"Customize", L"Fonts and colors");
break;
case IDC_LOADUNREAD:
@@ -966,23 +966,23 @@ int OptInitialise(WPARAM wParam, LPARAM)
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_MSGDLG);
odp.pfnDlgProc = DlgProcOptions;
odp.szTab.a = LPGEN("General");
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_MSGTABS);
odp.pfnDlgProc = DlgProcTabsOptions;
odp.szTab.a = LPGEN("Tabs");
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_LAYOUT);
odp.pfnDlgProc = DlgProcLayoutOptions;
odp.szTab.a = LPGEN("Layout");
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
odp.pszTemplate = nullptr;
odp.pfnDlgProc = nullptr;
odp.pDialog = new CLogOptionsDlg();
odp.szTab.a = LPGEN("Event log");
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
odp.pDialog = nullptr;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS1);
@@ -990,18 +990,18 @@ int OptInitialise(WPARAM wParam, LPARAM)
odp.szGroup.a = LPGEN("Message sessions");
odp.szTitle.a = LPGEN("Group chats");
odp.szTab.a = LPGEN("General");
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS2);
odp.pfnDlgProc = DlgProcOptions2;
odp.szTab.a = LPGEN("Event log");
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_MSGTYPE);
odp.szTitle.a = LPGEN("Typing notify");
odp.pfnDlgProc = DlgProcTypeOptions;
odp.szTab.a = nullptr;
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
if (g_dat.popupInstalled) {
odp.position = 910000002;
@@ -1011,7 +1011,7 @@ int OptInitialise(WPARAM wParam, LPARAM)
odp.szGroup.a = LPGEN("Popups");
odp.pfnDlgProc = DlgProcOptionsPopup;
odp.flags = ODPF_BOLDGROUPS;
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
}
return 0;
}