MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / ask_replacement_message

Method ask_replacement_message

src/ui/DownloadDictionariesDialog.cpp:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107void DownloadDictionariesDialog::indicate_that_saving_might_be_needed() { m_check_if_saving_is_needed = true; }
108
109LRESULT DownloadDictionariesDialog::ask_replacement_message(const wchar_t *dic_name) {
110 auto [name,_] = apply_alias(dic_name, m_settings.data.language_name_style);
111 return MessageBox(_hParent, wstring_printf(rc_str(IDS_DICT_PS_EXISTS_BODY).c_str(), name.c_str()).c_str(), rc_str(IDS_DICT_EXISTS_HEADER).c_str(), MB_YESNO);
112}
113
114static std::wstring get_temp_path() {
115 std::vector<wchar_t> temp_path_buf(MAX_PATH);

Callers

nothing calls this directly

Calls 4

apply_aliasFunction · 0.85
wstring_printfFunction · 0.85
rc_strFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected