parent
63ba30cfe1
commit
f7fcab4c21
|
@ -592,6 +592,17 @@ The comments are here for explanation, it's not necessary to translate them.
|
||||||
<ScintillaCommandsTab name="Scintilla commands"/>
|
<ScintillaCommandsTab name="Scintilla commands"/>
|
||||||
<ConflictInfoOk name="No shortcut conflicts for this item."/>
|
<ConflictInfoOk name="No shortcut conflicts for this item."/>
|
||||||
<ConflictInfoEditing name="No conflicts . . ."/>
|
<ConflictInfoEditing name="No conflicts . . ."/>
|
||||||
|
<WindowCategory name="Window"/>
|
||||||
|
<FileCategory name="File"/>
|
||||||
|
<EditCategory name="Edit"/>
|
||||||
|
<SearchCategory name="Search"/>
|
||||||
|
<ViewCategory name="View"/>
|
||||||
|
<FormatCategory name="Format"/>
|
||||||
|
<LangCategory name="Lang"/>
|
||||||
|
<AboutCategory name="About"/>
|
||||||
|
<SettingCategory name="Setting"/>
|
||||||
|
<ToolCategory name="Tool"/>
|
||||||
|
<ExecuteCategory name="Execute"/>
|
||||||
<MainCommandNames>
|
<MainCommandNames>
|
||||||
<Item id="41019" name="Open containing folder in Explorer"/>
|
<Item id="41019" name="Open containing folder in Explorer"/>
|
||||||
<Item id="41020" name="Open containing folder in Command Prompt"/>
|
<Item id="41020" name="Open containing folder in Command Prompt"/>
|
||||||
|
|
|
@ -536,6 +536,17 @@
|
||||||
<ScintillaCommandsTab name="Scintilla commands"/>
|
<ScintillaCommandsTab name="Scintilla commands"/>
|
||||||
<ConflictInfoOk name="No shortcut conflicts for this item."/>
|
<ConflictInfoOk name="No shortcut conflicts for this item."/>
|
||||||
<ConflictInfoEditing name="No conflicts . . ."/>
|
<ConflictInfoEditing name="No conflicts . . ."/>
|
||||||
|
<WindowCategory name="Window"/>
|
||||||
|
<FileCategory name="File"/>
|
||||||
|
<EditCategory name="Edit"/>
|
||||||
|
<SearchCategory name="Search"/>
|
||||||
|
<ViewCategory name="View"/>
|
||||||
|
<FormatCategory name="Format"/>
|
||||||
|
<LangCategory name="Lang"/>
|
||||||
|
<AboutCategory name="About"/>
|
||||||
|
<SettingCategory name="Setting"/>
|
||||||
|
<ToolCategory name="Tool"/>
|
||||||
|
<ExecuteCategory name="Execute"/>
|
||||||
<MainCommandNames>
|
<MainCommandNames>
|
||||||
<Item id="41019" name="Open containing folder in Explorer"/>
|
<Item id="41019" name="Open containing folder in Explorer"/>
|
||||||
<Item id="41020" name="Open containing folder in Command Prompt"/>
|
<Item id="41020" name="Open containing folder in Command Prompt"/>
|
||||||
|
|
|
@ -287,6 +287,7 @@ void ShortcutMapper::fillOutBabyGrid()
|
||||||
{
|
{
|
||||||
case STATE_MENU:
|
case STATE_MENU:
|
||||||
{
|
{
|
||||||
|
NativeLangSpeaker* nativeLangSpeaker = NppParameters::getInstance().getNativeLangSpeaker();
|
||||||
vector<CommandShortcut> & cshortcuts = nppParam.getUserShortcuts();
|
vector<CommandShortcut> & cshortcuts = nppParam.getUserShortcuts();
|
||||||
cs_index = 1;
|
cs_index = 1;
|
||||||
for (size_t i = 0; i < nbItems; ++i)
|
for (size_t i = 0; i < nbItems; ++i)
|
||||||
|
@ -299,7 +300,11 @@ void ShortcutMapper::fillOutBabyGrid()
|
||||||
_babygrid.setText(cs_index, 1, cshortcuts[i].getName());
|
_babygrid.setText(cs_index, 1, cshortcuts[i].getName());
|
||||||
if (cshortcuts[i].isEnabled()) //avoid empty strings for better performance
|
if (cshortcuts[i].isEnabled()) //avoid empty strings for better performance
|
||||||
_babygrid.setText(cs_index, 2, cshortcuts[i].toString().c_str());
|
_babygrid.setText(cs_index, 2, cshortcuts[i].toString().c_str());
|
||||||
_babygrid.setText(cs_index, 3, cshortcuts[i].getCategory());
|
|
||||||
|
const TCHAR* category = cshortcuts[i].getCategory();
|
||||||
|
generic_string categoryStr = nativeLangSpeaker->getShortcutMapperLangStr((std::string(wstring2string(category, CP_UTF8)) + "Category").c_str(), category);
|
||||||
|
_babygrid.setText(cs_index, 3, categoryStr.c_str());
|
||||||
|
|
||||||
if (isMarker)
|
if (isMarker)
|
||||||
isMarker = _babygrid.setMarker(false);
|
isMarker = _babygrid.setMarker(false);
|
||||||
_shortcutIndex.push_back(i);
|
_shortcutIndex.push_back(i);
|
||||||
|
|
Loading…
Reference in New Issue