mirror of https://github.com/BOINC/boinc.git
MGR: Add Control-Shift_E shortcut (Command-Shift-E on Mac) to show Event Log in Simple View, for the convenience of tech suppport volunteers
This commit is contained in:
parent
c8b8c6155f
commit
f4b57b4024
|
@ -6187,3 +6187,10 @@ David 16 Oct 2012
|
||||||
stage_file (new)
|
stage_file (new)
|
||||||
sched/
|
sched/
|
||||||
credit.cpp
|
credit.cpp
|
||||||
|
|
||||||
|
Charlie 17 Oct 2012
|
||||||
|
- MGR: Add Control-Shift_E shortcut (Command-Shift-E on Mac) to show Event
|
||||||
|
Log in Simple View, for the convenience of tech suppport volunteers.
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
sg_BoincSimpleFrame.cpp,.h
|
||||||
|
|
|
@ -74,6 +74,7 @@ BEGIN_EVENT_TABLE(CSimpleFrame, CBOINCBaseFrame)
|
||||||
EVT_MENU(ID_HELPBOINCMANAGER, CSimpleFrame::OnHelpBOINC)
|
EVT_MENU(ID_HELPBOINCMANAGER, CSimpleFrame::OnHelpBOINC)
|
||||||
EVT_MENU(ID_HELPBOINCWEBSITE, CSimpleFrame::OnHelpBOINC)
|
EVT_MENU(ID_HELPBOINCWEBSITE, CSimpleFrame::OnHelpBOINC)
|
||||||
EVT_MENU(wxID_ABOUT, CSimpleFrame::OnHelpAbout)
|
EVT_MENU(wxID_ABOUT, CSimpleFrame::OnHelpAbout)
|
||||||
|
EVT_MENU(ID_EVENTLOG, CSimpleFrame::OnEventLog)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
|
@ -271,6 +272,11 @@ CSimpleFrame::CSimpleFrame(wxString title, wxIcon* icon, wxIcon* icon32, wxPoint
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_Shortcuts[0].Set(wxACCEL_NORMAL, WXK_HELP, ID_HELPBOINCMANAGER);
|
m_Shortcuts[0].Set(wxACCEL_NORMAL, WXK_HELP, ID_HELPBOINCMANAGER);
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
m_Shortcuts[1].Set(wxACCEL_CMD|wxACCEL_SHIFT, (int)'E', ID_EVENTLOG);
|
||||||
|
#else
|
||||||
|
m_Shortcuts[1].Set(wxACCEL_CTRL|wxACCEL_SHIFT, (int)'E', ID_EVENTLOG);
|
||||||
|
#endif
|
||||||
m_pAccelTable = new wxAcceleratorTable(2, m_Shortcuts);
|
m_pAccelTable = new wxAcceleratorTable(2, m_Shortcuts);
|
||||||
|
|
||||||
SetAcceleratorTable(*m_pAccelTable);
|
SetAcceleratorTable(*m_pAccelTable);
|
||||||
|
@ -670,6 +676,15 @@ void CSimpleFrame::OnConnect(CFrameEvent& WXUNUSED(event)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CSimpleFrame::OnEventLog(wxCommandEvent& WXUNUSED(event)) {
|
||||||
|
wxLogTrace(wxT("Function Start/End"), wxT("CSimpleFrame::OnEventLog - Function Begin"));
|
||||||
|
|
||||||
|
wxGetApp().DisplayEventLog();
|
||||||
|
|
||||||
|
wxLogTrace(wxT("Function Start/End"), wxT("CSimpleFrame::OnEventLog - Function End"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(CSimpleGUIPanel, wxPanel)
|
IMPLEMENT_DYNAMIC_CLASS(CSimpleGUIPanel, wxPanel)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(CSimpleGUIPanel, wxPanel)
|
BEGIN_EVENT_TABLE(CSimpleGUIPanel, wxPanel)
|
||||||
|
|
|
@ -124,7 +124,8 @@ public:
|
||||||
void OnReloadSkin( CFrameEvent& event );
|
void OnReloadSkin( CFrameEvent& event );
|
||||||
void OnRefreshView( CFrameEvent& event );
|
void OnRefreshView( CFrameEvent& event );
|
||||||
void OnNotification( CFrameEvent& event );
|
void OnNotification( CFrameEvent& event );
|
||||||
|
void OnEventLog(wxCommandEvent& event);
|
||||||
|
|
||||||
void SetMsgsDlgOpen(CDlgMessages* newDlgPtr) { dlgMsgsPtr = newDlgPtr; }
|
void SetMsgsDlgOpen(CDlgMessages* newDlgPtr) { dlgMsgsPtr = newDlgPtr; }
|
||||||
bool isMessagesDlgOpen() { return (dlgMsgsPtr != NULL); }
|
bool isMessagesDlgOpen() { return (dlgMsgsPtr != NULL); }
|
||||||
|
|
||||||
|
@ -136,7 +137,7 @@ protected:
|
||||||
|
|
||||||
wxMenuBar* m_pMenubar;
|
wxMenuBar* m_pMenubar;
|
||||||
wxMenu* m_pSubmenuSkins;
|
wxMenu* m_pSubmenuSkins;
|
||||||
wxAcceleratorEntry m_Shortcuts[1];
|
wxAcceleratorEntry m_Shortcuts[2];
|
||||||
wxAcceleratorTable* m_pAccelTable;
|
wxAcceleratorTable* m_pAccelTable;
|
||||||
|
|
||||||
CSimpleGUIPanel* m_pBackgroundPanel;
|
CSimpleGUIPanel* m_pBackgroundPanel;
|
||||||
|
|
Loading…
Reference in New Issue