From 920fa4a36aab626f4e8b57776430fa17e1f279bf Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 20 Nov 2006 20:55:32 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11555 --- checkin_notes | 6 ++++++ clientgui/AdvancedFrame.cpp | 37 +++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/checkin_notes b/checkin_notes index baa918837a..81c90d32c2 100755 --- a/checkin_notes +++ b/checkin_notes @@ -12735,3 +12735,9 @@ David 20 Nov 2006 cs_cmdline.C win/ win_service.cpp + +Rom 20 Nov 2006 + - MGR: Move the switch to simple GUI menu item to the View menu. + + clientgui/ + AdvancedFrame.cpp diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index fb4785813f..75d461a669 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -302,14 +302,6 @@ bool CAdvancedFrame::CreateMenu() { // File menu wxMenu *menuFile = new wxMenu; -#ifdef SIMPLEGUI - menuFile->Append( - ID_FILESWITCHGUI, - _("&Switch to Simple View"), - _("Display the simple BOINC graphical interface.") - ); -#endif - #ifdef __WXMAC__ menuFile->Append( ID_FILECLOSEWINDOW, @@ -330,6 +322,17 @@ bool CAdvancedFrame::CreateMenu() { strMenuDescription ); + // View menu + wxMenu *menuView = new wxMenu; + +#ifdef SIMPLEGUI + menuView->Append( + ID_FILESWITCHGUI, + _("&Simple View"), + _("Display the simple BOINC graphical interface.") + ); +#endif + // Tools menu wxMenu *menuTools = new wxMenu; @@ -508,16 +511,14 @@ bool CAdvancedFrame::CreateMenu() { // construct menu m_pMenubar = new wxMenuBar; -#ifdef __WXMAC__ -// WxWidgets automatically prevents the Exit item from showing in the File menu -// because Mac OSX has its Quit item in "BOINCManager" menu, not in File menu. -// Don't show File menu on the Mac unless it has additional items. - if (menuFile->GetMenuItemCount() > 1) -#endif - m_pMenubar->Append( - menuFile, - _("&File") - ); + m_pMenubar->Append( + menuFile, + _("&File") + ); + m_pMenubar->Append( + menuView, + _("&View") + ); m_pMenubar->Append( menuTools, _("&Tools")