From 4aab3b6bc3d66ade09b25649d389b8aef358bfbd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Jul 2017 15:37:50 +0300 Subject: hotkey for SmileyAdd that was removed from tabSRMM --- plugins/SmileyAdd/src/main.cpp | 13 ++++++++++--- plugins/SmileyAdd/src/stdafx.h | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp index a2d6c704df..a1a49e3a47 100644 --- a/plugins/SmileyAdd/src/main.cpp +++ b/plugins/SmileyAdd/src/main.cpp @@ -67,9 +67,16 @@ static int ModulesLoaded(WPARAM, LPARAM) g_SmileyCategories.AddAllProtocolsAsCategory(); g_SmileyCategories.ClearAndLoadAll(); + HOTKEYDESC desc = { sizeof(desc) }; + desc.pszName = "smileyadd"; + desc.pszSection = MODULENAME; + desc.pszDescription = LPGEN("Smiley selector"); + desc.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, 'E'); + Hotkey_Register(&desc); + ColourID cid = { sizeof(cid) }; strcpy_s(cid.dbSettingsGroup, MODULENAME); - strcpy_s(cid.group, LPGEN("SmileyAdd")); + strcpy_s(cid.group, MODULENAME); strcpy_s(cid.name, LPGEN("Background color")); strcpy_s(cid.setting, "SelWndBkgClr"); cid.defcolour = GetSysColor(COLOR_WINDOW); @@ -96,7 +103,7 @@ extern "C" __declspec(dllexport) int Load(void) InitImageCache(); - Icon_Register(g_hInst, "SmileyAdd", &icon, 1); + Icon_Register(g_hInst, MODULENAME, &icon, 1); g_SmileyCategories.SetSmileyPackStore(&g_SmileyPacks); @@ -117,7 +124,7 @@ extern "C" __declspec(dllexport) int Load(void) HookEvent(ME_MSG_BUTTONPRESSED, SmileyButtonPressed); HookEvent(ME_MSG_TOOLBARLOADED, SmileyButtonCreate); - //create the smiley services + // create the smiley services CreateServiceFunction(MS_SMILEYADD_REPLACESMILEYS, ReplaceSmileysCommand); CreateServiceFunction(MS_SMILEYADD_SHOWSELECTION, ShowSmileySelectionCommand); CreateServiceFunction(MS_SMILEYADD_GETINFO2, GetInfoCommand2); diff --git a/plugins/SmileyAdd/src/stdafx.h b/plugins/SmileyAdd/src/stdafx.h index bcd5f13a2d..0df3e383a1 100644 --- a/plugins/SmileyAdd/src/stdafx.h +++ b/plugins/SmileyAdd/src/stdafx.h @@ -60,6 +60,7 @@ along with this program. If not, see . #include #include #include +#include #include #include #include -- cgit v1.2.3