Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv30216/src/gui
Modified Files:
wxMainFrame.cpp
Log Message:
renamed modules menu to tools menu
Index: wxMainFrame.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMainFrame.cpp,v
retrieving revision 1.159
retrieving revision 1.160
diff -b -u -2 -r1.159 -r1.160
--- wxMainFrame.cpp 14 Sep 2002 22:07:46 -0000 1.159
+++ wxMainFrame.cpp 8 Oct 2002 15:22:30 -0000 1.160
@@ -1141,13 +1141,24 @@
wxMainFrame::MakeModulesMenu(void)
{
- wxMenuBar *menuBar = GetMenuBar();
- if(! m_ModulesMenu)
+ if ( !m_ModulesMenu )
{
+ wxMenuBar *menuBar = GetMenuBar();
+ wxCHECK_RET( menuBar, _T("no menu bar in the main frame?") );
+
// create the modules menu:
- m_ModulesMenu = new wxMenu("", wxMENU_TEAROFF);
+ m_ModulesMenu = new wxMenu(_T(""), wxMENU_TEAROFF);
+
int pos = menuBar->GetMenuCount();
- wxASSERT(pos > 1);
- // pos is the Help menu, so insert at pos-1:
- menuBar->Insert(pos-1, m_ModulesMenu, _("&Plugins"));
+ wxASSERT_MSG(pos > 1, _T("no menus in the main frame menubar?") );
+
+ // and insert it just before the Help menu which is the last one
+ pos--;
+
+#ifdef DEBUG
+ // (and before the debug menu which is the last one before "Help")
+ pos--;
+#endif // DEBUG
+
+ menuBar->Insert(pos, m_ModulesMenu, _("&Tools"));
}
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates