Merge pull request #3409 from sepalani/r_menu_code

RegisterView: View code menu added
This commit is contained in:
skidau 2016-01-02 11:40:02 +11:00
commit 066af14272
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,7 @@ enum
{
IDM_WATCHADDRESS,
IDM_VIEWMEMORY,
IDM_VIEWCODE
};
static const char *special_reg_names[] = {
@ -268,6 +269,7 @@ void CRegisterView::OnMouseDownR(wxGridEvent& event)
wxMenu menu;
menu.Append(IDM_WATCHADDRESS, _("Add to &watch"));
menu.Append(IDM_VIEWMEMORY, _("View &memory"));
menu.Append(IDM_VIEWCODE, _("View &code"));
PopupMenu(&menu);
}
@ -291,6 +293,10 @@ void CRegisterView::OnPopupMenu(wxCommandEvent& event)
memory_window->JumpToAddress(m_selectedAddress);
Refresh();
break;
case IDM_VIEWCODE:
code_window->JumpToAddress(m_selectedAddress);
Refresh();
break;
}
event.Skip();
}