Applied patch [ 597398 ] Generic MDI, wxNotebook based.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 20 Aug 2002 09:09:55 +0000 (09:09 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 20 Aug 2002 09:09:55 +0000 (09:09 +0000)
commitb9f933ab5d4a293790d0f5186c434229678c76ea
tree7c6ab53c9df0576a2e6850de985037f3f4c532a8
parent90b18154c8a72d3f522d3960a70517d40bbf02e0
Applied patch [ 597398 ] Generic MDI, wxNotebook based.
By Hans Van Leemputten (hansvl)

- This patch implements a generic notebook based mdi,
due to that wxMDIChildFrame could not derive from
wxFrame some things in the samples and in the docmdi
classes needed to be adjusted... basically this comes
down to not do (wxFrame *) but instead do
(wxMDIChildFrame *), or store a pointer to the frame in a
wxWindow* instead of a wxFrame variable...

- The main reason wxMDIChildFrame cannot derive from
wxFrame is that it would take to much platform specific
functions to be overwritten (= lot of ifdef's). This then
couldn't be called generic anymore, so that's why we
need to derive from wxPanel...

- Tested on/with:
1. wxMSW (I disabled the MSW MDI implementation to
be able to test it), tested it with the MDI sample,
docvwmdi sample and docview sample and also tested it
with wxWorkshop. (test = compile and run)
2. wxX11, tested with the same set wxWin samples as
the wxMSW test. I also compiled wxWorkshop with it,
but could not run wxWorkshop due to some issue not
related to the MDI implementation.

- How to apply:
* Apply the patch
* move mdig.cpp into wxWindows/src/generic/
* move mdig.h into wxWindows/include/wx/generic/

- Some extra things that still need to be done:
* File lists, project files should be updated to include
mdig.cpp (the patch only change this on wxX11)
* The configuration script should be updated.
* Maybe wxUSE_GENERIC_MDI_ARCHITECTURE also
should be added so it is only included when wanted...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
17 files changed:
configure.in
distrib/msw/cw.rsp
distrib/msw/mac.rsp
distrib/msw/tmake/filelist.txt
docs/msw/install.txt
include/wx/docmdi.h
include/wx/docview.h
include/wx/mdi.h
samples/docvwmdi/docview.cpp
samples/docvwmdi/docview.h
samples/docvwmdi/view.cpp
samples/docvwmdi/view.h
samples/mdi/mdi.cpp
src/msw/joystick.cpp
src/msw/mdi.cpp
src/wxUniv.dsp
src/x11/files.lst