diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-25 21:10:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-25 21:10:19 +0300 |
commit | 51209173e695d6e866018df19588c5474c9a6848 (patch) | |
tree | 242503d244cf2ee4c6ad0437f8ead345c2db3da4 /plugins/HistoryStats/src | |
parent | 8a94f931881a33809c300a5504fec6f5fa47533d (diff) |
we don't translate options inside plugin
Diffstat (limited to 'plugins/HistoryStats/src')
-rw-r--r-- | plugins/HistoryStats/src/main.cpp | 15 | ||||
-rw-r--r-- | plugins/HistoryStats/src/mu_common.cpp | 19 | ||||
-rw-r--r-- | plugins/HistoryStats/src/mu_common.h | 9 | ||||
-rw-r--r-- | plugins/HistoryStats/src/version.h | 2 |
4 files changed, 7 insertions, 38 deletions
diff --git a/plugins/HistoryStats/src/main.cpp b/plugins/HistoryStats/src/main.cpp index 320f309065..ea7bc5ea82 100644 --- a/plugins/HistoryStats/src/main.cpp +++ b/plugins/HistoryStats/src/main.cpp @@ -336,15 +336,12 @@ void AddContactMenu() static int EventOptInitialise(WPARAM wParam, LPARAM)
{
- mu::opt::addPage(
- wParam,
- TranslateT("History"),
- TranslateT("Statistics"),
- nullptr,
- DlgOption::staticDlgProc,
- MAKEINTRESOURCEA(IDD_OPTIONS),
- g_plugin.getInst());
-
+ OPTIONSDIALOGPAGE odp = {};
+ odp.szGroup.a = LPGEN("History");
+ odp.szTitle.a = LPGEN("Statistics");
+ odp.pfnDlgProc = DlgOption::staticDlgProc;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
+ g_plugin.addOptions(wParam, &odp);
return 0;
}
diff --git a/plugins/HistoryStats/src/mu_common.cpp b/plugins/HistoryStats/src/mu_common.cpp index 06ffb1e051..f9283bf433 100644 --- a/plugins/HistoryStats/src/mu_common.cpp +++ b/plugins/HistoryStats/src/mu_common.cpp @@ -73,25 +73,6 @@ namespace mu }
/*
- * opt
- */
-
- namespace opt
- {
- void addPage(WPARAM addInfo, const wchar_t* pszGroup, const wchar_t* pszTitle, const wchar_t* pszTab, DLGPROC pfnDlgProc, const char* pszTemplate, HINSTANCE hInstance, DWORD flags /* = ODPF_BOLDGROUPS */)
- {
- OPTIONSDIALOGPAGE odp = {};
- odp.szTitle.w = const_cast<wchar_t*>(pszTitle);
- odp.pfnDlgProc = pfnDlgProc;
- odp.pszTemplate = const_cast<char*>(pszTemplate);
- odp.szGroup.w = const_cast<wchar_t*>(pszGroup);
- odp.flags = flags | ODPF_UNICODE;
- odp.szTab.w = const_cast<wchar_t*>(pszTab);
- g_plugin.addOptions(addInfo, &odp);
- }
- }
-
- /*
* protosvc
*/
diff --git a/plugins/HistoryStats/src/mu_common.h b/plugins/HistoryStats/src/mu_common.h index 875fbfa01d..f8f9f7923c 100644 --- a/plugins/HistoryStats/src/mu_common.h +++ b/plugins/HistoryStats/src/mu_common.h @@ -29,15 +29,6 @@ namespace mu }
/*
- * opt
- */
-
- namespace opt
- {
- void addPage(WPARAM addInfo, const wchar_t* pszGroup, const wchar_t* pszTitle, const wchar_t* pszTab, DLGPROC pfnDlgProc, const char* pszTemplate, HINSTANCE hInstance, DWORD flags = ODPF_BOLDGROUPS);
- }
-
- /*
* protosvc
*/
diff --git a/plugins/HistoryStats/src/version.h b/plugins/HistoryStats/src/version.h index a4cbbb7f7b..56a3720299 100644 --- a/plugins/HistoryStats/src/version.h +++ b/plugins/HistoryStats/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 2
#define __RELEASE_NUM 1
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#include <stdver.h>
|