diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-20 23:36:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-20 23:36:07 +0300 |
commit | 41ee395da7530c17656bd06f84638ab8d9d3776d (patch) | |
tree | 4f28423e3acb809b9be60f467d7fbca262a612d5 /include | |
parent | e79355b2127afe4cdfe4676e76a165fefe6e6c2a (diff) |
options API unbound from hLangpack and switched to CMPlugin
Diffstat (limited to 'include')
-rw-r--r-- | include/m_options.h | 8 | ||||
-rw-r--r-- | include/newpluginapi.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/m_options.h b/include/m_options.h index 0b2112d1aa..b8e0404425 100644 --- a/include/m_options.h +++ b/include/m_options.h @@ -82,9 +82,9 @@ struct OPTIONSDIALOGPAGE #define PSM_GETBOLDFONT (WM_USER+102) //returns HFONT used for group box titles
-EXTERN_C MIR_APP_DLL(int) Options_AddPage(WPARAM wParam, OPTIONSDIALOGPAGE *odp, int = hLangpack);
+EXTERN_C MIR_APP_DLL(int) Options_AddPage(WPARAM wParam, OPTIONSDIALOGPAGE *odp, int langId);
-EXTERN_C MIR_APP_DLL(void) KillModuleOptions(int _hLang);
+EXTERN_C MIR_APP_DLL(void) KillModuleOptions(int langId);
// The behaviour if the options dialog is already open is that it will just be
// activated, the page won't be changed. This may change in the future.
@@ -95,9 +95,9 @@ EXTERN_C MIR_APP_DLL(void) KillModuleOptions(int _hLang); // Opens the options dialog, optionally at the specified page
// Returns 0 on success, nonzero on failure
-EXTERN_C MIR_APP_DLL(int) Options_Open(const wchar_t *pszGroup, const wchar_t *pszPage = nullptr, const wchar_t *pszTab = nullptr, int = hLangpack);
+EXTERN_C MIR_APP_DLL(int) Options_Open(const wchar_t *pszGroup, const wchar_t *pszPage, const wchar_t *pszTab, int langId);
// Opens the options dialog, with only specified page
-EXTERN_C MIR_APP_DLL(HWND) Options_OpenPage(const wchar_t *pszGroup, const wchar_t *pszPage = nullptr, const wchar_t *pszTab = nullptr, int = hLangpack);
+EXTERN_C MIR_APP_DLL(HWND) Options_OpenPage(const wchar_t *pszGroup, const wchar_t *pszPage, const wchar_t *pszTab, int langId);
#endif //M_OPTIONS_H__
diff --git a/include/newpluginapi.h b/include/newpluginapi.h index ed6d733bcb..bb86189e87 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -193,6 +193,10 @@ public: Icon_RegisterT(m_hInst, szSection, pIcons, _Size, prefix, m_hLang);
}
+ int addOptions(WPARAM wParam, struct OPTIONSDIALOGPAGE *odp);
+ void openOptions(const wchar_t *pszGroup, const wchar_t *pszPage = 0, const wchar_t *pszTab = 0);
+ void openOptionsPage(const wchar_t *pszGroup, const wchar_t *pszPage = 0, const wchar_t *pszTab = 0);
+
int addSound(const char *name, const wchar_t *section, const wchar_t *description, const wchar_t *defaultFile = nullptr);
int addUserInfo(WPARAM wParam, struct OPTIONSDIALOGPAGE *odp);
|