From: Robert Roebling Date: Sun, 6 Jun 1999 16:07:39 +0000 (+0000) Subject: Corrected hotkeys for MDI menus. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5bd9e5192b0299100b06a1b982d031b87538961b Corrected hotkeys for MDI menus. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/distrib/gtk/copy_src b/distrib/gtk/copy_src index 9b2a9a5d35..9e74b0c908 100755 --- a/distrib/gtk/copy_src +++ b/distrib/gtk/copy_src @@ -15,15 +15,17 @@ echo Base dir.. cd ../.. cp wxGTK.spec ~/wxgtk_dist/wxGTK -cp Makefile ~/wxgtk_dist/wxGTK +cp Makefile.in ~/wxgtk_dist/wxGTK cp configure ~/wxgtk_dist/wxGTK -cp configure.in ~/wxgtk_dist/wxGTK cp config.sub ~/wxgtk_dist/wxGTK cp config.guess ~/wxgtk_dist/wxGTK cp install-sh ~/wxgtk_dist/wxGTK +cp ltconfig ~/wxgtk_dist/wxGTK +cp ltmain.sh ~/wxgtk_dist/wxGTK +cp missing ~/wxgtk_dist/wxGTK cp mkinstalldirs ~/wxgtk_dist/wxGTK -cp template.mak ~/wxgtk_dist/wxGTK cp wx-config.in ~/wxgtk_dist/wxGTK +cp setup.h.in ~/wxgtk_dist/wxGTK echo Docs.. @@ -41,43 +43,42 @@ echo Include dir.. mkdir ~/wxgtk_dist/wxGTK/include cd include -cp install-sh ~/wxgtk_dist/wxGTK/include +cp Makefile.in ~/wxgtk_dist/wxGTK/include mkdir ~/wxgtk_dist/wxGTK/include/wx cd wx -cp install-sh ~/wxgtk_dist/wxGTK/include/wx cp *.h ~/wxgtk_dist/wxGTK/include/wx cp *.cpp ~/wxgtk_dist/wxGTK/include/wx +cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx mkdir ~/wxgtk_dist/wxGTK/include/wx/generic cd generic cp *.h ~/wxgtk_dist/wxGTK/include/wx/generic +cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/generic cd .. mkdir ~/wxgtk_dist/wxGTK/include/wx/unix cd unix cp *.h ~/wxgtk_dist/wxGTK/include/wx/unix +cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/unix cd .. mkdir ~/wxgtk_dist/wxGTK/include/wx/gtk cd gtk cp *.h ~/wxgtk_dist/wxGTK/include/wx/gtk rm ~/wxgtk_dist/wxGTK/include/wx/gtk/setup.h +cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/gtk cd .. mkdir ~/wxgtk_dist/wxGTK/include/wx/protocol cd protocol cp *.h ~/wxgtk_dist/wxGTK/include/wx/protocol +cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/protocol cd .. cd .. cd .. -echo Base lib.. - -mkdir ~/wxgtk_dist/wxGTK/lib -cp ./lib/dummy ~/wxgtk_dist/wxGTK/lib - echo Misc dir.. mkdir ~/wxgtk_dist/wxGTK/misc @@ -87,76 +88,30 @@ mkdir ~/wxgtk_dist/wxGTK/misc/gs_afm cp ./misc/afm/*.afm ~/wxgtk_dist/wxGTK/misc/afm cp ./misc/gs_afm/*.afm ~/wxgtk_dist/wxGTK/misc/gs_afm -echo Setup dir.. - -cd setup -mkdir ~/wxgtk_dist/wxGTK/setup -cp maketmpl.in ~/wxgtk_dist/wxGTK/setup -cp setup.hin ~/wxgtk_dist/wxGTK/setup -cp substit.in ~/wxgtk_dist/wxGTK/setup - -cd general -mkdir ~/wxgtk_dist/wxGTK/setup/general -cp createall ~/wxgtk_dist/wxGTK/setup/general -cp jointar ~/wxgtk_dist/wxGTK/setup/general -cp makeapp ~/wxgtk_dist/wxGTK/setup/general -cp makedirs ~/wxgtk_dist/wxGTK/setup/general -cp makedoc ~/wxgtk_dist/wxGTK/setup/general -cp mygrep ~/wxgtk_dist/wxGTK/setup/general -cp needed ~/wxgtk_dist/wxGTK/setup/general -cd .. - -cd rules -mkdir ~/wxgtk_dist/wxGTK/setup/rules -cp * ~/wxgtk_dist/wxGTK/setup/rules - -cd generic -mkdir ~/wxgtk_dist/wxGTK/setup/rules/generic -cp * ~/wxgtk_dist/wxGTK/setup/rules/generic -cd .. - -cd .. - -cd shared -mkdir ~/wxgtk_dist/wxGTK/setup/shared -cp * ~/wxgtk_dist/wxGTK/setup/shared -cd .. - -cd .. - -echo User dir.. - -cd src -mkdir ~/wxgtk_dist/wxGTK/user -cp Makefile ~/wxgtk_dist/wxGTK/user -cd .. - echo Src dir.. cd src mkdir ~/wxgtk_dist/wxGTK/src -cp Makefile ~/wxgtk_dist/wxGTK/src cp Makefile.in ~/wxgtk_dist/wxGTK/src -cp gtk.inc ~/wxgtk_dist/wxGTK/src + +cd gtk +mkdir ~/wxgtk_dist/wxGTK/src/gtk +cp Makefile.in ~/wxgtk_dist/wxGTK/src/gtk +cp *.xbm ~/wxgtk_dist/wxGTK/src/gtk +cp *.c ~/wxgtk_dist/wxGTK/src/gtk +cp *.inc ~/wxgtk_dist/wxGTK/src/gtk +cp *.cpp ~/wxgtk_dist/wxGTK/src/gtk +cd .. cd common mkdir ~/wxgtk_dist/wxGTK/src/common cp glob.inc ~/wxgtk_dist/wxGTK/src/common cp lexer.l ~/wxgtk_dist/wxGTK/src/common cp parser.y ~/wxgtk_dist/wxGTK/src/common -cp y_tab.c ~/wxgtk_dist/wxGTK/src/common cp extended.c ~/wxgtk_dist/wxGTK/src/common cp *.cpp ~/wxgtk_dist/wxGTK/src/common cd .. -cd gtk -mkdir ~/wxgtk_dist/wxGTK/src/gtk -cp *.xbm ~/wxgtk_dist/wxGTK/src/gtk -cp *.c ~/wxgtk_dist/wxGTK/src/gtk -cp *.inc ~/wxgtk_dist/wxGTK/src/gtk -cp *.cpp ~/wxgtk_dist/wxGTK/src/gtk -cd .. - cd unix mkdir ~/wxgtk_dist/wxGTK/src/unix cp *.cpp ~/wxgtk_dist/wxGTK/src/unix @@ -193,7 +148,7 @@ echo Utils dir.. cd utils mkdir ~/wxgtk_dist/wxGTK/utils -cp Makefile ~/wxgtk_dist/wxGTK/utils +cp Makefile.in ~/wxgtk_dist/wxGTK/utils echo wxGLCanvas.. @@ -312,13 +267,12 @@ echo Samples dir.. cd samples mkdir ~/wxgtk_dist/wxGTK/samples -cp Makefile ~/wxgtk_dist/wxGTK/samples +cp Makefile.in ~/wxgtk_dist/wxGTK/samples echo Minimal sample.. cd minimal mkdir ~/wxgtk_dist/wxGTK/samples/minimal -cp Makefile ~/wxgtk_dist/wxGTK/samples/minimal cp Makefile.in ~/wxgtk_dist/wxGTK/samples/minimal cp minimal.cpp ~/wxgtk_dist/wxGTK/samples/minimal cp mondrian.xpm ~/wxgtk_dist/wxGTK/samples/minimal @@ -328,7 +282,6 @@ echo Bombs sample.. cd bombs mkdir ~/wxgtk_dist/wxGTK/samples/bombs -cp Makefile ~/wxgtk_dist/wxGTK/samples/bombs cp Makefile.in ~/wxgtk_dist/wxGTK/samples/bombs cp *.cpp ~/wxgtk_dist/wxGTK/samples/bombs cp *.h ~/wxgtk_dist/wxGTK/samples/bombs @@ -339,7 +292,6 @@ echo Checklst sample.. cd checklst mkdir ~/wxgtk_dist/wxGTK/samples/checklst -cp Makefile ~/wxgtk_dist/wxGTK/samples/checklst cp Makefile.in ~/wxgtk_dist/wxGTK/samples/checklst cp *.cpp ~/wxgtk_dist/wxGTK/samples/checklst cp *.xpm ~/wxgtk_dist/wxGTK/samples/checklst @@ -349,7 +301,6 @@ echo Config sample.. cd config mkdir ~/wxgtk_dist/wxGTK/samples/config -cp Makefile ~/wxgtk_dist/wxGTK/samples/config cp Makefile.in ~/wxgtk_dist/wxGTK/samples/config cp *.cpp ~/wxgtk_dist/wxGTK/samples/config cd .. @@ -358,7 +309,6 @@ echo Controls sample.. cd controls mkdir ~/wxgtk_dist/wxGTK/samples/controls -cp Makefile ~/wxgtk_dist/wxGTK/samples/controls cp Makefile.in ~/wxgtk_dist/wxGTK/samples/controls cp *.cpp ~/wxgtk_dist/wxGTK/samples/controls cp *.xpm ~/wxgtk_dist/wxGTK/samples/controls @@ -371,7 +321,6 @@ echo Db sample.. cd db mkdir ~/wxgtk_dist/wxGTK/samples/db -cp Makefile ~/wxgtk_dist/wxGTK/samples/db cp Makefile.in ~/wxgtk_dist/wxGTK/samples/db cp *.cpp ~/wxgtk_dist/wxGTK/samples/db cp *.h ~/wxgtk_dist/wxGTK/samples/db @@ -382,7 +331,6 @@ echo DDE sample.. cd dde mkdir ~/wxgtk_dist/wxGTK/samples/dde -cp Makefile ~/wxgtk_dist/wxGTK/samples/dde cp Makefile.in ~/wxgtk_dist/wxGTK/samples/dde cp *.cpp ~/wxgtk_dist/wxGTK/samples/dde cp *.h ~/wxgtk_dist/wxGTK/samples/dde @@ -393,7 +341,6 @@ echo Dialogs sample.. cd dialogs mkdir ~/wxgtk_dist/wxGTK/samples/dialogs -cp Makefile ~/wxgtk_dist/wxGTK/samples/dialogs cp Makefile.in ~/wxgtk_dist/wxGTK/samples/dialogs cp *.cpp ~/wxgtk_dist/wxGTK/samples/dialogs cp *.h ~/wxgtk_dist/wxGTK/samples/dialogs @@ -403,7 +350,6 @@ echo DnD sample.. cd dnd mkdir ~/wxgtk_dist/wxGTK/samples/dnd -cp Makefile ~/wxgtk_dist/wxGTK/samples/dnd cp Makefile.in ~/wxgtk_dist/wxGTK/samples/dnd cp *.cpp ~/wxgtk_dist/wxGTK/samples/dnd cp *.xpm ~/wxgtk_dist/wxGTK/samples/dnd @@ -413,7 +359,6 @@ echo Docview sample.. cd docview mkdir ~/wxgtk_dist/wxGTK/samples/docview -cp Makefile ~/wxgtk_dist/wxGTK/samples/docview cp Makefile.in ~/wxgtk_dist/wxGTK/samples/docview cp *.cpp ~/wxgtk_dist/wxGTK/samples/docview cp *.h ~/wxgtk_dist/wxGTK/samples/docview @@ -424,7 +369,6 @@ echo DocvwMDI sample.. cd docvwmdi mkdir ~/wxgtk_dist/wxGTK/samples/docvwmdi -cp Makefile ~/wxgtk_dist/wxGTK/samples/docvwmdi cp Makefile.in ~/wxgtk_dist/wxGTK/samples/docvwmdi cp *.cpp ~/wxgtk_dist/wxGTK/samples/docvwmdi cp *.h ~/wxgtk_dist/wxGTK/samples/docvwmdi @@ -434,7 +378,6 @@ echo Dynamic sample.. cd dynamic mkdir ~/wxgtk_dist/wxGTK/samples/dynamic -cp Makefile ~/wxgtk_dist/wxGTK/samples/dynamic cp Makefile.in ~/wxgtk_dist/wxGTK/samples/dynamic cp *.cpp ~/wxgtk_dist/wxGTK/samples/dynamic cp *.xpm ~/wxgtk_dist/wxGTK/samples/dynamic @@ -444,7 +387,6 @@ echo Drawing sample.. cd drawing mkdir ~/wxgtk_dist/wxGTK/samples/drawing -cp Makefile ~/wxgtk_dist/wxGTK/samples/drawing cp Makefile.in ~/wxgtk_dist/wxGTK/samples/drawing cp *.cpp ~/wxgtk_dist/wxGTK/samples/drawing cp *.xpm ~/wxgtk_dist/wxGTK/samples/drawing @@ -454,7 +396,6 @@ echo Forty sample.. cd forty mkdir ~/wxgtk_dist/wxGTK/samples/forty -cp Makefile ~/wxgtk_dist/wxGTK/samples/forty cp Makefile.in ~/wxgtk_dist/wxGTK/samples/forty cp *.cpp ~/wxgtk_dist/wxGTK/samples/forty cp *.h ~/wxgtk_dist/wxGTK/samples/forty @@ -466,7 +407,6 @@ echo Fractal sample.. cd fractal mkdir ~/wxgtk_dist/wxGTK/samples/fractal -cp Makefile ~/wxgtk_dist/wxGTK/samples/fractal cp Makefile.in ~/wxgtk_dist/wxGTK/samples/fractal cp *.cpp ~/wxgtk_dist/wxGTK/samples/fractal cd .. @@ -475,7 +415,6 @@ echo Grid sample.. cd grid mkdir ~/wxgtk_dist/wxGTK/samples/grid -cp Makefile ~/wxgtk_dist/wxGTK/samples/grid cp Makefile.in ~/wxgtk_dist/wxGTK/samples/grid cp *.cpp ~/wxgtk_dist/wxGTK/samples/grid cd .. @@ -484,7 +423,6 @@ echo Help sample.. cd help mkdir ~/wxgtk_dist/wxGTK/samples/help -cp Makefile ~/wxgtk_dist/wxGTK/samples/help cp Makefile.in ~/wxgtk_dist/wxGTK/samples/help cp *.cpp ~/wxgtk_dist/wxGTK/samples/help cp *.xpm ~/wxgtk_dist/wxGTK/samples/help @@ -497,7 +435,6 @@ echo Image sample.. cd image mkdir ~/wxgtk_dist/wxGTK/samples/image -cp Makefile ~/wxgtk_dist/wxGTK/samples/image cp Makefile.in ~/wxgtk_dist/wxGTK/samples/image cp *.cpp ~/wxgtk_dist/wxGTK/samples/image cp horse.png ~/wxgtk_dist/wxGTK/samples/image @@ -509,7 +446,6 @@ echo Internat sample.. cd internat mkdir ~/wxgtk_dist/wxGTK/samples/internat -cp Makefile ~/wxgtk_dist/wxGTK/samples/internat cp Makefile.in ~/wxgtk_dist/wxGTK/samples/internat cp *.cpp ~/wxgtk_dist/wxGTK/samples/internat cp *.xpm ~/wxgtk_dist/wxGTK/samples/internat @@ -524,7 +460,6 @@ echo Layout sample.. cd layout mkdir ~/wxgtk_dist/wxGTK/samples/layout -cp Makefile ~/wxgtk_dist/wxGTK/samples/layout cp Makefile.in ~/wxgtk_dist/wxGTK/samples/layout cp *.cpp ~/wxgtk_dist/wxGTK/samples/layout cp *.h ~/wxgtk_dist/wxGTK/samples/layout @@ -534,7 +469,6 @@ echo Listctrl sample.. cd listctrl mkdir ~/wxgtk_dist/wxGTK/samples/listctrl -cp Makefile ~/wxgtk_dist/wxGTK/samples/listctrl cp Makefile.in ~/wxgtk_dist/wxGTK/samples/listctrl cp *.cpp ~/wxgtk_dist/wxGTK/samples/listctrl cp *.h ~/wxgtk_dist/wxGTK/samples/listctrl @@ -548,7 +482,6 @@ echo MDI sample.. cd mdi mkdir ~/wxgtk_dist/wxGTK/samples/mdi -cp Makefile ~/wxgtk_dist/wxGTK/samples/mdi cp Makefile.in ~/wxgtk_dist/wxGTK/samples/mdi cp *.cpp ~/wxgtk_dist/wxGTK/samples/mdi cp *.h ~/wxgtk_dist/wxGTK/samples/mdi @@ -562,7 +495,6 @@ echo Memcheck sample.. cd memcheck mkdir ~/wxgtk_dist/wxGTK/samples/memcheck -cp Makefile ~/wxgtk_dist/wxGTK/samples/memcheck cp Makefile.in ~/wxgtk_dist/wxGTK/samples/memcheck cp *.cpp ~/wxgtk_dist/wxGTK/samples/memcheck cp *.xpm ~/wxgtk_dist/wxGTK/samples/memcheck @@ -572,7 +504,6 @@ echo Minifram sample.. cd minifram mkdir ~/wxgtk_dist/wxGTK/samples/minifram -cp Makefile ~/wxgtk_dist/wxGTK/samples/minifram cp Makefile.in ~/wxgtk_dist/wxGTK/samples/minifram cp *.cpp ~/wxgtk_dist/wxGTK/samples/minifram cp *.h ~/wxgtk_dist/wxGTK/samples/minifram @@ -586,7 +517,6 @@ echo Notebook sample.. cd notebook mkdir ~/wxgtk_dist/wxGTK/samples/notebook -cp Makefile ~/wxgtk_dist/wxGTK/samples/notebook cp Makefile.in ~/wxgtk_dist/wxGTK/samples/notebook cp *.cpp ~/wxgtk_dist/wxGTK/samples/notebook cp *.h ~/wxgtk_dist/wxGTK/samples/notebook @@ -596,7 +526,6 @@ echo PNG sample.. cd png mkdir ~/wxgtk_dist/wxGTK/samples/png -cp Makefile ~/wxgtk_dist/wxGTK/samples/png cp Makefile.in ~/wxgtk_dist/wxGTK/samples/png cp *.cpp ~/wxgtk_dist/wxGTK/samples/png cp *.h ~/wxgtk_dist/wxGTK/samples/png @@ -607,7 +536,6 @@ echo Printing sample.. cd printing mkdir ~/wxgtk_dist/wxGTK/samples/printing -cp Makefile ~/wxgtk_dist/wxGTK/samples/printing cp Makefile.in ~/wxgtk_dist/wxGTK/samples/printing cp *.cpp ~/wxgtk_dist/wxGTK/samples/printing cp *.h ~/wxgtk_dist/wxGTK/samples/printing @@ -618,7 +546,6 @@ echo Proplist sample.. cd proplist mkdir ~/wxgtk_dist/wxGTK/samples/proplist -cp Makefile ~/wxgtk_dist/wxGTK/samples/proplist cp Makefile.in ~/wxgtk_dist/wxGTK/samples/proplist cp *.cpp ~/wxgtk_dist/wxGTK/samples/proplist cp *.h ~/wxgtk_dist/wxGTK/samples/proplist @@ -628,7 +555,6 @@ echo Resource sample.. cd resource mkdir ~/wxgtk_dist/wxGTK/samples/resource -cp Makefile ~/wxgtk_dist/wxGTK/samples/resource cp Makefile.in ~/wxgtk_dist/wxGTK/samples/resource cp *.cpp ~/wxgtk_dist/wxGTK/samples/resource cp *.h ~/wxgtk_dist/wxGTK/samples/resource @@ -639,7 +565,6 @@ echo Sashtest sample.. cd sashtest mkdir ~/wxgtk_dist/wxGTK/samples/sashtest -cp Makefile ~/wxgtk_dist/wxGTK/samples/sashtest cp Makefile.in ~/wxgtk_dist/wxGTK/samples/sashtest cp *.cpp ~/wxgtk_dist/wxGTK/samples/sashtest cp *.h ~/wxgtk_dist/wxGTK/samples/sashtest @@ -649,7 +574,6 @@ echo Scroll sample.. cd sashtest mkdir ~/wxgtk_dist/wxGTK/samples/scroll -cp Makefile ~/wxgtk_dist/wxGTK/samples/scroll cp Makefile.in ~/wxgtk_dist/wxGTK/samples/scroll cp *.cpp ~/wxgtk_dist/wxGTK/samples/scroll cp *.h ~/wxgtk_dist/wxGTK/samples/scroll @@ -659,7 +583,6 @@ echo Splitter sample.. cd splitter mkdir ~/wxgtk_dist/wxGTK/samples/splitter -cp Makefile ~/wxgtk_dist/wxGTK/samples/splitter cp Makefile.in ~/wxgtk_dist/wxGTK/samples/splitter cp *.cpp ~/wxgtk_dist/wxGTK/samples/splitter cd .. @@ -668,17 +591,23 @@ echo Tab sample.. cd tab mkdir ~/wxgtk_dist/wxGTK/samples/tab -cp Makefile ~/wxgtk_dist/wxGTK/samples/tab cp Makefile.in ~/wxgtk_dist/wxGTK/samples/tab cp *.cpp ~/wxgtk_dist/wxGTK/samples/tab cp *.h ~/wxgtk_dist/wxGTK/samples/tab cd .. +echo Text sample.. + +cd text +mkdir ~/wxgtk_dist/wxGTK/samples/text +cp Makefile.in ~/wxgtk_dist/wxGTK/samples/text +cp *.cpp ~/wxgtk_dist/wxGTK/samples/text +cd .. + echo Thread sample.. cd thread mkdir ~/wxgtk_dist/wxGTK/samples/thread -cp Makefile ~/wxgtk_dist/wxGTK/samples/thread cp Makefile.in ~/wxgtk_dist/wxGTK/samples/thread cp *.cpp ~/wxgtk_dist/wxGTK/samples/thread cd .. @@ -687,7 +616,6 @@ echo Toolbar sample.. cd toolbar mkdir ~/wxgtk_dist/wxGTK/samples/toolbar -cp Makefile ~/wxgtk_dist/wxGTK/samples/toolbar cp Makefile.in ~/wxgtk_dist/wxGTK/samples/toolbar cp *.cpp ~/wxgtk_dist/wxGTK/samples/toolbar cp *.h ~/wxgtk_dist/wxGTK/samples/toolbar @@ -701,7 +629,6 @@ echo TreeCtrl sample.. cd treectrl mkdir ~/wxgtk_dist/wxGTK/samples/treectrl -cp Makefile ~/wxgtk_dist/wxGTK/samples/treectrl cp Makefile.in ~/wxgtk_dist/wxGTK/samples/treectrl cp *.cpp ~/wxgtk_dist/wxGTK/samples/treectrl cp *.h ~/wxgtk_dist/wxGTK/samples/treectrl @@ -712,7 +639,6 @@ echo typetest sample.. cd typetest mkdir ~/wxgtk_dist/wxGTK/samples/typetest -cp Makefile ~/wxgtk_dist/wxGTK/samples/typetest cp Makefile.in ~/wxgtk_dist/wxGTK/samples/typetest cp *.cpp ~/wxgtk_dist/wxGTK/samples/typetest cp *.h ~/wxgtk_dist/wxGTK/samples/typetest @@ -723,7 +649,6 @@ echo Validate sample.. cd validate mkdir ~/wxgtk_dist/wxGTK/samples/validate -cp Makefile ~/wxgtk_dist/wxGTK/samples/validate cp Makefile.in ~/wxgtk_dist/wxGTK/samples/validate cp *.cpp ~/wxgtk_dist/wxGTK/samples/validate cp *.h ~/wxgtk_dist/wxGTK/samples/validate @@ -734,7 +659,6 @@ echo wxPoem sample.. cd wxpoem mkdir ~/wxgtk_dist/wxGTK/samples/wxpoem -cp Makefile ~/wxgtk_dist/wxGTK/samples/wxpoem cp Makefile.in ~/wxgtk_dist/wxGTK/samples/wxpoem cp *.cpp ~/wxgtk_dist/wxGTK/samples/wxpoem cp *.h ~/wxgtk_dist/wxGTK/samples/wxpoem @@ -748,7 +672,6 @@ echo wxSocket sample.. cd wxsocket mkdir ~/wxgtk_dist/wxGTK/samples/wxsocket -cp Makefile ~/wxgtk_dist/wxGTK/samples/wxsocket cp Makefile.in ~/wxgtk_dist/wxGTK/samples/wxsocket cp *.cpp ~/wxgtk_dist/wxGTK/samples/wxsocket cp *.xpm ~/wxgtk_dist/wxGTK/samples/wxsocket @@ -760,5 +683,6 @@ cd distrib/gtk cp README.txt ~/wxgtk_dist/wxGTK/utils/wxPython cp Setup ~/wxgtk_dist/wxGTK/utils/wxPython/src +cd .. - +# tar ch | gzip -f9 > wxGTK-2.1.0-b6.tgz diff --git a/include/wx/gtk/menu.h b/include/wx/gtk/menu.h index f571fe084e..f09ee3bc04 100644 --- a/include/wx/gtk/menu.h +++ b/include/wx/gtk/menu.h @@ -92,6 +92,9 @@ public: // implementation only wxList& GetMenus() { return m_menus; } + + void SetInvokingWindow( wxWindow *win ); + void UnsetInvokingWindow( wxWindow *win ); GtkAccelGroup *m_accel; GtkItemFactory *m_factory; diff --git a/include/wx/gtk1/menu.h b/include/wx/gtk1/menu.h index f571fe084e..f09ee3bc04 100644 --- a/include/wx/gtk1/menu.h +++ b/include/wx/gtk1/menu.h @@ -92,6 +92,9 @@ public: // implementation only wxList& GetMenus() { return m_menus; } + + void SetInvokingWindow( wxWindow *win ); + void UnsetInvokingWindow( wxWindow *win ); GtkAccelGroup *m_accel; GtkItemFactory *m_factory; diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index eadb75575f..c33bf7f0cf 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -813,25 +813,6 @@ void wxFrame::OnSize( wxSizeEvent &WXUNUSED(event) ) } } -static void SetInvokingWindow( wxMenu *menu, wxWindow *win ) -{ - menu->SetInvokingWindow( win ); - -#if (GTK_MINOR_VERSION > 0) - /* support for native hot keys */ - gtk_accel_group_attach( menu->m_accel, GTK_OBJECT(win->m_widget)); -#endif - - wxNode *node = menu->GetItems().First(); - while (node) - { - wxMenuItem *menuitem = (wxMenuItem*)node->Data(); - if (menuitem->IsSubMenu()) - SetInvokingWindow( menuitem->GetSubMenu(), win ); - node = node->Next(); - } -} - void wxFrame::SetMenuBar( wxMenuBar *menuBar ) { wxASSERT_MSG( (m_widget != NULL), _T("invalid frame") ); @@ -841,18 +822,7 @@ void wxFrame::SetMenuBar( wxMenuBar *menuBar ) if (m_frameMenuBar) { -#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0) - /* support for native key accelerators indicated by underscroes */ - gtk_accel_group_attach( m_frameMenuBar->m_accel, GTK_OBJECT(m_widget)); -#endif - - wxNode *node = m_frameMenuBar->GetMenus().First(); - while (node) - { - wxMenu *menu = (wxMenu*)node->Data(); - SetInvokingWindow( menu, this ); - node = node->Next(); - } + m_frameMenuBar->SetInvokingWindow( this ); if (m_frameMenuBar->GetParent() != this) { @@ -872,6 +842,8 @@ void wxFrame::SetMenuBar( wxMenuBar *menuBar ) gtk_signal_connect( GTK_OBJECT(menuBar->m_widget), "child_detached", GTK_SIGNAL_FUNC(gtk_menu_detached_callback), (gpointer)this ); } + + m_frameMenuBar->Show( TRUE ); } } diff --git a/src/gtk/mdi.cpp b/src/gtk/mdi.cpp index 766d11f20a..e9acbdf01a 100644 --- a/src/gtk/mdi.cpp +++ b/src/gtk/mdi.cpp @@ -126,21 +126,54 @@ void wxMDIParentFrame::OnInternalIdle() while (node) { wxMDIChildFrame *child_frame = (wxMDIChildFrame *)node->Data(); + wxMenuBar *menu_bar = child_frame->m_menuBar; if (child_frame->m_menuBar) { if (child_frame == active_child_frame) { - gtk_widget_show( child_frame->m_menuBar->m_widget ); - visible_child_menu = TRUE; + if (menu_bar->Show(TRUE)) + { + menu_bar->m_width = m_width; + menu_bar->m_height = wxMENU_HEIGHT; + gtk_myfixed_set_size( GTK_MYFIXED(m_mainWidget), + menu_bar->m_widget, + 0, 0, m_width, wxMENU_HEIGHT ); + menu_bar->SetInvokingWindow( child_frame ); + } + visible_child_menu = TRUE; } else - gtk_widget_hide( child_frame->m_menuBar->m_widget ); + { + if (menu_bar->Show(FALSE)) + { + menu_bar->UnsetInvokingWindow( child_frame ); + } + } } node = node->Next(); } /* show/hide parent menu bar as required */ - if (m_frameMenuBar) m_frameMenuBar->Show( !visible_child_menu ); + if ((m_frameMenuBar) && + (m_frameMenuBar->IsShown() == visible_child_menu)) + { + if (visible_child_menu) + { + m_frameMenuBar->Show( FALSE ); + m_frameMenuBar->UnsetInvokingWindow( this ); + } + else + { + m_frameMenuBar->Show( TRUE ); + m_frameMenuBar->SetInvokingWindow( this ); + + m_frameMenuBar->m_width = m_width; + m_frameMenuBar->m_height = wxMENU_HEIGHT; + gtk_myfixed_set_size( GTK_MYFIXED(m_mainWidget), + m_frameMenuBar->m_widget, + 0, 0, m_width, wxMENU_HEIGHT ); + } + } } void wxMDIParentFrame::GetClientSize(int *width, int *height ) const @@ -260,42 +293,17 @@ void wxMDIChildFrame::AddChild( wxWindow *child ) wxWindow::AddChild( child ); } -static void SetInvokingWindow( wxMenu *menu, wxWindow *win ) -{ - menu->SetInvokingWindow( win ); - wxNode *node = menu->GetItems().First(); - while (node) - { - wxMenuItem *menuitem = (wxMenuItem*)node->Data(); - if (menuitem->IsSubMenu()) - SetInvokingWindow( menuitem->GetSubMenu(), win ); - node = node->Next(); - } -} - void wxMDIChildFrame::SetMenuBar( wxMenuBar *menu_bar ) { + wxASSERT_MSG( m_menuBar == NULL, _T("Only one menubar allowed") ); + m_menuBar = menu_bar; if (m_menuBar) { wxMDIParentFrame *mdi_frame = (wxMDIParentFrame*)m_parent->GetParent(); - if (m_menuBar->GetParent() != this) - { - wxNode *node = m_menuBar->GetMenus().First(); - while (node) - { - wxMenu *menu = (wxMenu*)node->Data(); - SetInvokingWindow( menu, this ); - node = node->Next(); - } - - m_menuBar->SetParent( mdi_frame ); - } - - /* the menu bar of the child window is shown in idle time as needed */ - gtk_widget_hide( m_menuBar->m_widget ); + m_menuBar->SetParent( mdi_frame ); /* insert the invisible menu bar into the _parent_ mdi frame */ gtk_myfixed_put( GTK_MYFIXED(mdi_frame->m_mainWidget), diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index dd9d764291..e2b79dbf82 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -63,8 +63,6 @@ wxMenuBar::wxMenuBar( long style ) } PostCreation(); - - Show( TRUE ); } wxMenuBar::wxMenuBar() @@ -88,8 +86,6 @@ wxMenuBar::wxMenuBar() m_widget = GTK_WIDGET(m_menubar); PostCreation(); - - Show( TRUE ); } wxMenuBar::~wxMenuBar() @@ -97,6 +93,91 @@ wxMenuBar::~wxMenuBar() // how to destroy a GtkItemFactory ? } +static void wxMenubarUnsetInvokingWindow( wxMenu *menu, wxWindow *win ) +{ + menu->SetInvokingWindow( (wxWindow*) NULL ); + +#if (GTK_MINOR_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) top_frame = top_frame->GetParent(); + + /* support for native hot keys */ + gtk_accel_group_detach( menu->m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = menu->GetItems().First(); + while (node) + { + wxMenuItem *menuitem = (wxMenuItem*)node->Data(); + if (menuitem->IsSubMenu()) + wxMenubarUnsetInvokingWindow( menuitem->GetSubMenu(), win ); + node = node->Next(); + } +} + +static void wxMenubarSetInvokingWindow( wxMenu *menu, wxWindow *win ) +{ + menu->SetInvokingWindow( win ); + +#if (GTK_MINOR_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) + top_frame = top_frame->GetParent(); + + /* support for native hot keys */ + gtk_accel_group_attach( menu->m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = menu->GetItems().First(); + while (node) + { + wxMenuItem *menuitem = (wxMenuItem*)node->Data(); + if (menuitem->IsSubMenu()) + wxMenubarSetInvokingWindow( menuitem->GetSubMenu(), win ); + node = node->Next(); + } +} + +void wxMenuBar::SetInvokingWindow( wxWindow *win ) +{ +#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) + top_frame = top_frame->GetParent(); + + /* support for native key accelerators indicated by underscroes */ + gtk_accel_group_attach( m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = m_menus.First(); + while (node) + { + wxMenu *menu = (wxMenu*)node->Data(); + wxMenubarSetInvokingWindow( menu, win ); + node = node->Next(); + } +} + +void wxMenuBar::UnsetInvokingWindow( wxWindow *win ) +{ +#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) + top_frame = top_frame->GetParent(); + + /* support for native key accelerators indicated by underscroes */ + gtk_accel_group_detach( m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = m_menus.First(); + while (node) + { + wxMenu *menu = (wxMenu*)node->Data(); + wxMenubarUnsetInvokingWindow( menu, win ); + node = node->Next(); + } +} + void wxMenuBar::Append( wxMenu *menu, const wxString &title ) { m_menus.Append( menu ); diff --git a/src/gtk1/frame.cpp b/src/gtk1/frame.cpp index eadb75575f..c33bf7f0cf 100644 --- a/src/gtk1/frame.cpp +++ b/src/gtk1/frame.cpp @@ -813,25 +813,6 @@ void wxFrame::OnSize( wxSizeEvent &WXUNUSED(event) ) } } -static void SetInvokingWindow( wxMenu *menu, wxWindow *win ) -{ - menu->SetInvokingWindow( win ); - -#if (GTK_MINOR_VERSION > 0) - /* support for native hot keys */ - gtk_accel_group_attach( menu->m_accel, GTK_OBJECT(win->m_widget)); -#endif - - wxNode *node = menu->GetItems().First(); - while (node) - { - wxMenuItem *menuitem = (wxMenuItem*)node->Data(); - if (menuitem->IsSubMenu()) - SetInvokingWindow( menuitem->GetSubMenu(), win ); - node = node->Next(); - } -} - void wxFrame::SetMenuBar( wxMenuBar *menuBar ) { wxASSERT_MSG( (m_widget != NULL), _T("invalid frame") ); @@ -841,18 +822,7 @@ void wxFrame::SetMenuBar( wxMenuBar *menuBar ) if (m_frameMenuBar) { -#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0) - /* support for native key accelerators indicated by underscroes */ - gtk_accel_group_attach( m_frameMenuBar->m_accel, GTK_OBJECT(m_widget)); -#endif - - wxNode *node = m_frameMenuBar->GetMenus().First(); - while (node) - { - wxMenu *menu = (wxMenu*)node->Data(); - SetInvokingWindow( menu, this ); - node = node->Next(); - } + m_frameMenuBar->SetInvokingWindow( this ); if (m_frameMenuBar->GetParent() != this) { @@ -872,6 +842,8 @@ void wxFrame::SetMenuBar( wxMenuBar *menuBar ) gtk_signal_connect( GTK_OBJECT(menuBar->m_widget), "child_detached", GTK_SIGNAL_FUNC(gtk_menu_detached_callback), (gpointer)this ); } + + m_frameMenuBar->Show( TRUE ); } } diff --git a/src/gtk1/mdi.cpp b/src/gtk1/mdi.cpp index 766d11f20a..e9acbdf01a 100644 --- a/src/gtk1/mdi.cpp +++ b/src/gtk1/mdi.cpp @@ -126,21 +126,54 @@ void wxMDIParentFrame::OnInternalIdle() while (node) { wxMDIChildFrame *child_frame = (wxMDIChildFrame *)node->Data(); + wxMenuBar *menu_bar = child_frame->m_menuBar; if (child_frame->m_menuBar) { if (child_frame == active_child_frame) { - gtk_widget_show( child_frame->m_menuBar->m_widget ); - visible_child_menu = TRUE; + if (menu_bar->Show(TRUE)) + { + menu_bar->m_width = m_width; + menu_bar->m_height = wxMENU_HEIGHT; + gtk_myfixed_set_size( GTK_MYFIXED(m_mainWidget), + menu_bar->m_widget, + 0, 0, m_width, wxMENU_HEIGHT ); + menu_bar->SetInvokingWindow( child_frame ); + } + visible_child_menu = TRUE; } else - gtk_widget_hide( child_frame->m_menuBar->m_widget ); + { + if (menu_bar->Show(FALSE)) + { + menu_bar->UnsetInvokingWindow( child_frame ); + } + } } node = node->Next(); } /* show/hide parent menu bar as required */ - if (m_frameMenuBar) m_frameMenuBar->Show( !visible_child_menu ); + if ((m_frameMenuBar) && + (m_frameMenuBar->IsShown() == visible_child_menu)) + { + if (visible_child_menu) + { + m_frameMenuBar->Show( FALSE ); + m_frameMenuBar->UnsetInvokingWindow( this ); + } + else + { + m_frameMenuBar->Show( TRUE ); + m_frameMenuBar->SetInvokingWindow( this ); + + m_frameMenuBar->m_width = m_width; + m_frameMenuBar->m_height = wxMENU_HEIGHT; + gtk_myfixed_set_size( GTK_MYFIXED(m_mainWidget), + m_frameMenuBar->m_widget, + 0, 0, m_width, wxMENU_HEIGHT ); + } + } } void wxMDIParentFrame::GetClientSize(int *width, int *height ) const @@ -260,42 +293,17 @@ void wxMDIChildFrame::AddChild( wxWindow *child ) wxWindow::AddChild( child ); } -static void SetInvokingWindow( wxMenu *menu, wxWindow *win ) -{ - menu->SetInvokingWindow( win ); - wxNode *node = menu->GetItems().First(); - while (node) - { - wxMenuItem *menuitem = (wxMenuItem*)node->Data(); - if (menuitem->IsSubMenu()) - SetInvokingWindow( menuitem->GetSubMenu(), win ); - node = node->Next(); - } -} - void wxMDIChildFrame::SetMenuBar( wxMenuBar *menu_bar ) { + wxASSERT_MSG( m_menuBar == NULL, _T("Only one menubar allowed") ); + m_menuBar = menu_bar; if (m_menuBar) { wxMDIParentFrame *mdi_frame = (wxMDIParentFrame*)m_parent->GetParent(); - if (m_menuBar->GetParent() != this) - { - wxNode *node = m_menuBar->GetMenus().First(); - while (node) - { - wxMenu *menu = (wxMenu*)node->Data(); - SetInvokingWindow( menu, this ); - node = node->Next(); - } - - m_menuBar->SetParent( mdi_frame ); - } - - /* the menu bar of the child window is shown in idle time as needed */ - gtk_widget_hide( m_menuBar->m_widget ); + m_menuBar->SetParent( mdi_frame ); /* insert the invisible menu bar into the _parent_ mdi frame */ gtk_myfixed_put( GTK_MYFIXED(mdi_frame->m_mainWidget), diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index dd9d764291..e2b79dbf82 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -63,8 +63,6 @@ wxMenuBar::wxMenuBar( long style ) } PostCreation(); - - Show( TRUE ); } wxMenuBar::wxMenuBar() @@ -88,8 +86,6 @@ wxMenuBar::wxMenuBar() m_widget = GTK_WIDGET(m_menubar); PostCreation(); - - Show( TRUE ); } wxMenuBar::~wxMenuBar() @@ -97,6 +93,91 @@ wxMenuBar::~wxMenuBar() // how to destroy a GtkItemFactory ? } +static void wxMenubarUnsetInvokingWindow( wxMenu *menu, wxWindow *win ) +{ + menu->SetInvokingWindow( (wxWindow*) NULL ); + +#if (GTK_MINOR_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) top_frame = top_frame->GetParent(); + + /* support for native hot keys */ + gtk_accel_group_detach( menu->m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = menu->GetItems().First(); + while (node) + { + wxMenuItem *menuitem = (wxMenuItem*)node->Data(); + if (menuitem->IsSubMenu()) + wxMenubarUnsetInvokingWindow( menuitem->GetSubMenu(), win ); + node = node->Next(); + } +} + +static void wxMenubarSetInvokingWindow( wxMenu *menu, wxWindow *win ) +{ + menu->SetInvokingWindow( win ); + +#if (GTK_MINOR_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) + top_frame = top_frame->GetParent(); + + /* support for native hot keys */ + gtk_accel_group_attach( menu->m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = menu->GetItems().First(); + while (node) + { + wxMenuItem *menuitem = (wxMenuItem*)node->Data(); + if (menuitem->IsSubMenu()) + wxMenubarSetInvokingWindow( menuitem->GetSubMenu(), win ); + node = node->Next(); + } +} + +void wxMenuBar::SetInvokingWindow( wxWindow *win ) +{ +#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) + top_frame = top_frame->GetParent(); + + /* support for native key accelerators indicated by underscroes */ + gtk_accel_group_attach( m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = m_menus.First(); + while (node) + { + wxMenu *menu = (wxMenu*)node->Data(); + wxMenubarSetInvokingWindow( menu, win ); + node = node->Next(); + } +} + +void wxMenuBar::UnsetInvokingWindow( wxWindow *win ) +{ +#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0) + wxWindow *top_frame = win; + while (top_frame->GetParent()) + top_frame = top_frame->GetParent(); + + /* support for native key accelerators indicated by underscroes */ + gtk_accel_group_detach( m_accel, GTK_OBJECT(top_frame->m_widget) ); +#endif + + wxNode *node = m_menus.First(); + while (node) + { + wxMenu *menu = (wxMenu*)node->Data(); + wxMenubarUnsetInvokingWindow( menu, win ); + node = node->Next(); + } +} + void wxMenuBar::Append( wxMenu *menu, const wxString &title ) { m_menus.Append( menu );