[BUG_FIXED] Fix the plugins shortcuts not working issue.
Fix the tooltip on toolbar bug for the plugins icons. Signed-off-by: Don HO <don.h@free.fr> git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@510 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
5fbda7b270
commit
bc6e33c78a
@ -281,14 +281,14 @@ void PluginsManager::setMenu(HMENU hMenu, const TCHAR *menuName)
|
|||||||
if (_pluginInfos[i]->_funcItems[j]._pShKey)
|
if (_pluginInfos[i]->_funcItems[j]._pShKey)
|
||||||
{
|
{
|
||||||
ShortcutKey & sKey = *(_pluginInfos[i]->_funcItems[j]._pShKey);
|
ShortcutKey & sKey = *(_pluginInfos[i]->_funcItems[j]._pShKey);
|
||||||
PluginCmdShortcut pcs(Shortcut(itemName.c_str(), sKey._isCtrl, sKey._isAlt, sKey._isShift, sKey._key), (unsigned char)cmdID, _pluginInfos[i]->_moduleName, (unsigned short)j);
|
PluginCmdShortcut pcs(Shortcut(itemName.c_str(), sKey._isCtrl, sKey._isAlt, sKey._isShift, sKey._key), cmdID, _pluginInfos[i]->_moduleName, (unsigned short)j);
|
||||||
pluginCmdSCList.push_back(pcs);
|
pluginCmdSCList.push_back(pcs);
|
||||||
itemName += TEXT("\t");
|
itemName += TEXT("\t");
|
||||||
itemName += pcs.toString();
|
itemName += pcs.toString();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ //no ShortcutKey is provided, add an disabled shortcut (so it can still be mapped, Paramaters class can still index any changes and the toolbar wont funk out
|
{ //no ShortcutKey is provided, add an disabled shortcut (so it can still be mapped, Paramaters class can still index any changes and the toolbar wont funk out
|
||||||
PluginCmdShortcut pcs(Shortcut(itemName.c_str(), false, false, false, 0x00), (unsigned char)cmdID, _pluginInfos[i]->_moduleName, (unsigned short)j); //VK_NULL and everything disabled, the menu name is left alone
|
PluginCmdShortcut pcs(Shortcut(itemName.c_str(), false, false, false, 0x00), cmdID, _pluginInfos[i]->_moduleName, (unsigned short)j); //VK_NULL and everything disabled, the menu name is left alone
|
||||||
pluginCmdSCList.push_back(pcs);
|
pluginCmdSCList.push_back(pcs);
|
||||||
}
|
}
|
||||||
::InsertMenu(_pluginInfos[i]->_pluginMenu, j, MF_BYPOSITION, cmdID, itemName.c_str());
|
::InsertMenu(_pluginInfos[i]->_pluginMenu, j, MF_BYPOSITION, cmdID, itemName.c_str());
|
||||||
|
@ -1636,7 +1636,7 @@ void NppParameters::feedShortcut(TiXmlNode *node)
|
|||||||
int len = (int)_shortcuts.size();
|
int len = (int)_shortcuts.size();
|
||||||
for(int i = 0; i < len; i++)
|
for(int i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
if (_shortcuts[i].getID() == (unsigned short)id)
|
if (_shortcuts[i].getID() == (unsigned long)id)
|
||||||
{ //found our match
|
{ //found our match
|
||||||
getShortcuts(childNode, _shortcuts[i]);
|
getShortcuts(childNode, _shortcuts[i]);
|
||||||
addUserModifiedIndex(i);
|
addUserModifiedIndex(i);
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
#ifndef RESOURCE_H
|
#ifndef RESOURCE_H
|
||||||
#define RESOURCE_H
|
#define RESOURCE_H
|
||||||
|
|
||||||
#define NOTEPAD_PLUS_VERSION TEXT("Notepad++ v5.4.4")
|
#define NOTEPAD_PLUS_VERSION TEXT("Notepad++ v5.4.5")
|
||||||
#define VERSION_VALUE TEXT("5.44\0") // should be X.Y : ie. if VERSION_DIGITALVALUE == 4, 7, 1, 0 , then X = 4, Y = 71
|
#define VERSION_VALUE TEXT("5.45\0") // should be X.Y : ie. if VERSION_DIGITALVALUE == 4, 7, 1, 0 , then X = 4, Y = 71
|
||||||
#define VERSION_DIGITALVALUE 5, 4, 4, 0
|
#define VERSION_DIGITALVALUE 5, 4, 5, 0
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
#define UNICODE_ANSI_MODE TEXT("(UNICODE)")
|
#define UNICODE_ANSI_MODE TEXT("(UNICODE)")
|
||||||
|
Loading…
Reference in New Issue
Block a user