wxWidgets/samples/docvwmdi
Julian Smart b9f933ab5d 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
2002-08-20 09:09:55 +00:00
..
.cvsignore store CodeWarrior 5.3 projects as xml instead of binary projects 2001-12-02 18:11:49 +00:00
chart.ico
doc.cpp patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
doc.h patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
doc.ico
docview.cpp Applied patch [ 597398 ] Generic MDI, wxNotebook based. 2002-08-20 09:09:55 +00:00
docview.def
docview.h Applied patch [ 597398 ] Generic MDI, wxNotebook based. 2002-08-20 09:09:55 +00:00
docview.rc
docvwmdi.dsp Updated VC++ files 2002-01-18 14:33:01 +00:00
docvwmdi.pro 1. new samples proejct files for VC++ 2001-10-10 00:34:22 +00:00
docvwmdiM5.xml updated CodeWarrior 5.3 exported xml projects 2002-04-07 18:28:15 +00:00
makefile.b32
makefile.bcc
makefile.dos
makefile.g95
Makefile.in inserted @IF_GNU_MAKE@ to allow building with other make versions 2002-01-25 11:31:21 +00:00
makefile.unx replaced "CC = gcc" and even stranger "CPP = gcc -g" (huh?) with 2001-11-28 18:10:15 +00:00
makefile.vc
makefile.wat
notepad.ico
view.cpp Applied patch [ 597398 ] Generic MDI, wxNotebook based. 2002-08-20 09:09:55 +00:00
view.h Applied patch [ 597398 ] Generic MDI, wxNotebook based. 2002-08-20 09:09:55 +00:00