Deprecated wxSizer::Remove( wxWindow* ), s/Remove/Detach/ in most places.
authorRon Lee <ron@debian.org>
Tue, 7 Jan 2003 10:22:07 +0000 (10:22 +0000)
committerRon Lee <ron@debian.org>
Tue, 7 Jan 2003 10:22:07 +0000 (10:22 +0000)
commit12a3f2275c94a345cf83abf5151db68391859623
tree646805403b0028a44545ce433f3c5324928b99e7
parentdb50ec5a50cc5ec605c0a1d7c50ecc62307f0066
Deprecated wxSizer::Remove( wxWindow* ), s/Remove/Detach/ in most places.

Made wxSizer child list typesafe.  I've not added the wxList implicit
conversion kludge yet, let's see who complains first perhaps..

Deprecated wxSizer::{G,S}etOption in favour of {G,S}etProportion in line
with the parameter name change in the docs.

Added {G,S}etSpacer consistent with the accessors for windows/sizers.

Made all wxSizer index parameters size_t -- we support no sensible
interpretation for negative indexes in them.  Hopefully this will
cause no real problems, but code doing (eg. Remove( 0 )) will need
to change to use 0u to resolve the ambiguity with overloaded members.
This is probably a Good Thing though, ymmv.

s/FALSE/false/g ; s/TRUE/true/g ; s/wxASSERT/wxASSERT_MSG/g in sizer.{cpp,h}

Fixed (I hope) the brokenness in wxSizer::Show -- I have no code to test
this yet, so it's a blind change, but spacers should now be hidden correctly
instead of ignored, and it should be properly reversable over multiple
calls now too.

removed pointless private scoping around DECLARE_CLASS macros.

Replace 0's I added previously with NULL -- not like that will end the
email thread either..

Added Add( wxSizerItem * ) & co.  There are probably a couple of other
places we can usefully do something like this too.  Stopped short of
refactoring everything to raise some issues about sizer method recursion
on -dev.

Updated wxSizer docs some more, they are still incomplete but getting
better.

wrapped KeyCode in wxDEPRECATED, converted all (gtk build) instances
to GetKeyCode.  There may be a few left for other ports.

Fixed a couple of other random compile warnings along the way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
37 files changed:
contrib/samples/mmedia/mmboard.cpp
contrib/src/fl/gcupdatesmgr.cpp
contrib/src/gizmos/multicell.cpp
docs/latex/wx/sizer.tex
include/wx/event.h
include/wx/sizer.h
samples/checklst/checklst.cpp
samples/opengl/cube/cube.cpp
samples/thread/thread.cpp
samples/widgets/button.cpp
samples/widgets/combobox.cpp
samples/widgets/gauge.cpp
samples/widgets/listbox.cpp
samples/widgets/notebook.cpp
samples/widgets/radiobox.cpp
samples/widgets/slider.cpp
samples/widgets/spinbtn.cpp
samples/widgets/textctrl.cpp
src/common/event.cpp
src/common/prntbase.cpp
src/common/sizer.cpp
src/common/valtext.cpp
src/common/wincmn.cpp
src/generic/calctrl.cpp
src/generic/grid.cpp
src/generic/listctrl.cpp
src/generic/logg.cpp
src/generic/proplist.cpp
src/generic/treectlg.cpp
src/gtk/combobox.cpp
src/gtk/scrolwin.cpp
src/gtk/spinctrl.cpp
src/gtk/textctrl.cpp
src/gtk1/combobox.cpp
src/gtk1/scrolwin.cpp
src/gtk1/spinctrl.cpp
src/gtk1/textctrl.cpp