From 6519378609ad60abeff0d43531ed88d499a43528 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Wed, 6 Nov 2024 21:40:53 +0300 Subject: Remove hardcoded hotkeys from button's names --- src/core/stdmsg/src/msgs.cpp | 18 +++++++++--------- src/mir_app/src/srmm_base.cpp | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index 4aeaaf4f15..9f3f58a893 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -351,7 +351,7 @@ int RegisterToolbarIcons(WPARAM, LPARAM) bbd.dwDefPos = 40; bbd.hIcon = Skin_GetIconHandle(SKINICON_OTHER_HISTORY); bbd.pwszText = LPGENW("&History"); - bbd.pwszTooltip = LPGENW("View user's history (Ctrl+H)"); + bbd.pwszTooltip = LPGENW("View user's history"); g_plugin.addButton(&bbd); // format buttons @@ -360,21 +360,21 @@ int RegisterToolbarIcons(WPARAM, LPARAM) bbd.dwDefPos = 10; bbd.hIcon = g_plugin.getIconHandle(IDI_BBOLD); bbd.pwszText = LPGENW("&Bold"); - bbd.pwszTooltip = LPGENW("Make the text bold (Ctrl+B)"); + bbd.pwszTooltip = LPGENW("Make the text bold"); g_plugin.addButton(&bbd); bbd.dwButtonID = IDC_SRMM_ITALICS; bbd.dwDefPos = 15; bbd.hIcon = g_plugin.getIconHandle(IDI_BITALICS); bbd.pwszText = LPGENW("&Italic"); - bbd.pwszTooltip = LPGENW("Make the text italicized (Ctrl+I)"); + bbd.pwszTooltip = LPGENW("Make the text italicized"); g_plugin.addButton(&bbd); bbd.dwButtonID = IDC_SRMM_UNDERLINE; bbd.dwDefPos = 20; bbd.hIcon = g_plugin.getIconHandle(IDI_BUNDERLINE); bbd.pwszText = LPGENW("&Underline"); - bbd.pwszTooltip = LPGENW("Make the text underlined (Ctrl+U)"); + bbd.pwszTooltip = LPGENW("Make the text underlined"); g_plugin.addButton(&bbd); bbd.dwButtonID = IDC_SRMM_STRIKEOUT; @@ -388,14 +388,14 @@ int RegisterToolbarIcons(WPARAM, LPARAM) bbd.dwDefPos = 30; bbd.hIcon = g_plugin.getIconHandle(IDI_COLOR); bbd.pwszText = LPGENW("&Color"); - bbd.pwszTooltip = LPGENW("Select a foreground color for the text (Ctrl+K)"); + bbd.pwszTooltip = LPGENW("Select a foreground color for the text"); g_plugin.addButton(&bbd); bbd.dwButtonID = IDC_SRMM_BKGCOLOR; bbd.dwDefPos = 35; bbd.hIcon = g_plugin.getIconHandle(IDI_BKGCOLOR); bbd.pwszText = LPGENW("&Background color"); - bbd.pwszTooltip = LPGENW("Select a background color for the text (Ctrl+L)"); + bbd.pwszTooltip = LPGENW("Select a background color for the text"); g_plugin.addButton(&bbd); // chat buttons @@ -404,21 +404,21 @@ int RegisterToolbarIcons(WPARAM, LPARAM) bbd.dwDefPos = 30; bbd.hIcon = g_plugin.getIconHandle(IDI_TOPICBUT); bbd.pwszText = LPGENW("&Room settings"); - bbd.pwszTooltip = LPGENW("Control this room (Ctrl+O)"); + bbd.pwszTooltip = LPGENW("Control this room"); g_plugin.addButton(&bbd); bbd.dwButtonID = IDC_SRMM_SHOWNICKLIST; bbd.dwDefPos = 20; bbd.hIcon = g_plugin.getIconHandle(IDI_NICKLIST); bbd.pwszText = LPGENW("&Show/hide nick list"); - bbd.pwszTooltip = LPGENW("Show/hide the nick list (Ctrl+N)"); + bbd.pwszTooltip = LPGENW("Show/hide the nick list"); g_plugin.addButton(&bbd); bbd.dwButtonID = IDC_SRMM_FILTER; bbd.dwDefPos = 10; bbd.hIcon = g_plugin.getIconHandle(IDI_FILTER); bbd.pwszText = LPGENW("&Filter"); - bbd.pwszTooltip = LPGENW("Enable/disable the event filter (Ctrl+F)"); + bbd.pwszTooltip = LPGENW("Enable/disable the event filter"); g_plugin.addButton(&bbd); return 0; } diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 700026399d..1ae20570e6 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -871,8 +871,8 @@ void CSrmmBaseDialog::UpdateFilterButton() Chat_SetFilters(m_si); m_btnFilter.SendMsg(BUTTONADDTOOLTIP, (WPARAM)(m_bFilterEnabled - ? TranslateT("Disable the event filter (Ctrl+F)") - : TranslateT("Enable the event filter (Ctrl+F)")), BATF_UNICODE); + ? TranslateT("Disable the event filter") + : TranslateT("Enable the event filter")), BATF_UNICODE); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3