diff options
author | George Hazan <ghazan@miranda.im> | 2017-07-30 15:37:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-07-30 15:37:50 +0300 |
commit | 4aab3b6bc3d66ade09b25649d389b8aef358bfbd (patch) | |
tree | 08924552eb14460b889c7212617387c1b54d1a57 /plugins/SmileyAdd | |
parent | e3e15b9efbec90cde1bcb74226aaa866820c739e (diff) |
hotkey for SmileyAdd that was removed from tabSRMM
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r-- | plugins/SmileyAdd/src/main.cpp | 13 | ||||
-rw-r--r-- | plugins/SmileyAdd/src/stdafx.h | 1 |
2 files changed, 11 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. #include <m_button.h>
#include <m_message.h>
#include <m_netlib.h>
+#include <m_hotkeys.h>
#include <m_popup.h>
#include <m_icolib.h>
#include <m_genmenu.h>
|