Vadim Zeitlin
4dd10327d2
added wxSizerItem::AssignXXX() methods replacing the old SetXXX() but freeing the current item contents (modified patch 1687785)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 19:57:23 +00:00
Vadim Zeitlin
c1dc9f8394
removed WXWIN_COMPATIBILITY_2_4 from common and wxMSW files (patch 1675546)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-07 11:35:04 +00:00
Vadim Zeitlin
f9b5691a1b
added const overload of GetChildren()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-08 14:27:25 +00:00
Vadim Zeitlin
a56a1234a5
removed wxABI_TESTS, they're irrelvant in 2.9
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-31 03:40:59 +00:00
Vadim Zeitlin
ccee328e0b
Added wxSizerFlags::Top() and Bottom()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-31 03:26:31 +00:00
Vadim Zeitlin
d95527de9a
added wxSizerFlags::Shaped() and FixedMinSize() methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-14 16:52:55 +00:00
Vadim Zeitlin
98018a4b05
limit TLW size to display size in wxSizer::Fit() instead of doing it in wxTLW::GetMaxSize(), this allows creating or manually resizing TLWs to be larger than the display while still avoiding making them too big by default
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-23 17:50:52 +00:00
Włodzimierz Skiba
ce7208d49d
Minor header cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 11:56:12 +00:00
Paul Cornett
50961a3571
and more inlines called before defined
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-11 02:41:07 +00:00
Vadim Zeitlin
97ebfd549b
added more helper functions for setting borders in wxSizerFlags
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 21:11:37 +00:00
Vadim Zeitlin
2be7beda2d
added wxSizerFlags::GetDefaultBorder()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 19:32:46 +00:00
Vadim Zeitlin
d3c7fc996a
mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Vadim Zeitlin
ca8d899fcb
small cleanup, removed unused headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 12:12:24 +00:00
Vadim Zeitlin
e8cfff879e
added wxSizer::Get/SetContainingWindow()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 12:05:49 +00:00
Robert Roebling
eae0338fcb
Commited patch for wxSizer::Replace()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-03 11:48:49 +00:00
Vadim Zeitlin
7e2b786046
override all Detach() overloads in wxStaticBoxSizer to avoid virtual function hiding warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-29 12:12:23 +00:00
Vadim Zeitlin
649cfca1ce
don't include statbox.h from the header, move wxStaticBoxSizer dtor to .cpp file instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-29 09:58:53 +00:00
Włodzimierz Skiba
f8ba4cb61a
Use complete class for delete of the class.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-29 06:48:01 +00:00
Vadim Zeitlin
e978011a40
delete the associated wxStaticBox in wxStaticBoxSizer dtor (patch 1473769)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 17:24:12 +00:00
Włodzimierz Skiba
6a9e54bdff
Better backward compatibility and deprecation markup for interface deprecated in comments.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 11:13:03 +00:00
Vadim Zeitlin
c86fd3a793
undeprecated wxSizerItem::IsShown() undoing last change to wx/sizer.h: turns out we do need this logic in a few places
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 15:25:22 +00:00
Vadim Zeitlin
f303d69f93
deprecated wxSizerItem::IsShown() because it doesn't really make sense for the sizers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-08 22:22:51 +00:00
Vadim Zeitlin
1737dac20a
fix SetUserData() to delete the correct pointer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-09 12:27:49 +00:00
Robin Dunn
e8c1be041f
Added wxSizerItem::SetUserData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-06 04:46:38 +00:00
David Surovell
ddfcd9aae4
fix binary math in alignment flag assignment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-06 16:34:30 +00:00
Vadim Zeitlin
6ffc9aa8a4
fixed typo in previous commit which, instead of fixing the bug in wxSizerflags::Align(), made it worse
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-06 12:33:24 +00:00
Vadim Zeitlin
00dc67b891
fixed bug in wxSizerFlags::Align/Expand() methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-29 23:05:50 +00:00
Vadim Zeitlin
92b0cd9eb0
don't put borders by default between sizer elements on smartphones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 14:32:53 +00:00
Mattia Barbon
f499ca450c
Remove now unused header. Forward declaration is enough for wxBookCtrl and wxNotebook.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 14:24:00 +00:00
Vadim Zeitlin
fbfb8bcc3f
added missing consts and pass objects by const reference instead of by value (patch 1205869)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 21:43:15 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
David Elliott
3a5910cbe9
Blind bug fix to bug reported by Angel Kry.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-23 05:12:12 +00:00
Vadim Zeitlin
50c06297bd
added wxSizerSpacer and modified wxSizerItem to contain a pointer to either
...
wxWindow, wxSizer or wxSizerSpacer (instead of containing either a pointer or
just wxSize for spacers) and implement IsShown() and Show() by forwarding it
to the appropriate pointer: this means that now you can directly hide/show
windows/sizers/spacers instead of having to pass by containing sizers
Show(child) method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 21:17:38 +00:00
Vadim Zeitlin
e72ac08291
added wxSizerFlags::Left/Right()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-11 01:55:23 +00:00
Robin Dunn
718903fe64
wxStdButtonSizer Finalise --> Realize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-18 17:49:03 +00:00
Włodzimierz Skiba
450a1593ef
Code cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-24 13:17:05 +00:00
Vadim Zeitlin
6c1635b598
added wxStaticBoxSizer ctor creating a new static box
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-21 20:56:39 +00:00
Włodzimierz Skiba
6b5c476168
Pasting typo fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-03 07:22:48 +00:00
Włodzimierz Skiba
974c2a5904
Incomplete (PalmOS) setup compatibility.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-03 07:03:31 +00:00
Robert Roebling
b181a50500
Allow to set the various buttons explicitly (and
...
not through IDs) in the wxStdButtonSizer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-01 17:26:30 +00:00
Robert Roebling
acf2ac3757
Applied modified form of the StdButtonSize patch.
...
Tested on GTK2, MSW and Mac.
Adapted various generic dialogs to stretch the
button sizer so that the buttons don't end
up centered but right aligned.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-31 18:57:25 +00:00
Włodzimierz Skiba
61c083e781
wxBookCtrl->wxBookCtrlBase. wxBookCtrl is now most suitable book for given platform. Samples adjustement.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-23 11:45:07 +00:00
Włodzimierz Skiba
56eee37fc8
wxSizer::Add/Insert now returns pointer to wxSizerItem added and wxSizerItem contains access to its area [Patch #1042571 with minimal tweaks]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-09 18:33:00 +00:00
Włodzimierz Skiba
9f13661f8b
Parts of wxSizer::Show() extracted into wxSizer::GetItem() (together with documentation).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 18:58:52 +00:00
Vadim Zeitlin
5f813ad662
added wxSizerFlags
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-17 21:42:38 +00:00
Vadim Zeitlin
8e32ea1c8d
made all Add/Insert/Prepend methods inline
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-17 15:06:53 +00:00
Vadim Zeitlin
436ae7cf35
forward all wxSizer::Add/Prepend/Insert() to a virtual Insert(wxSizerItem) function, all the others made non virtual
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-17 13:25:20 +00:00
Włodzimierz Skiba
f5e0b4bc7c
wxChoicebook generic implementation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 11:29:15 +00:00
Włodzimierz Skiba
8b2bac626c
Recursive wxSizer::Show for subsizer and return value if element was found.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-13 13:46:45 +00:00
Włodzimierz Skiba
c845a1975a
Missed include due to wxBookCtrlSizer existence.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-08 06:26:28 +00:00
Dimitri Schoolwerth
749bb9f129
added shortcut functions AddSpacer and AddStretchSpacer (plus Prepend and Insert variants)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 16:37:48 +00:00
Václav Slavík
446e5259d7
DLL export fixes (patch 991760)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-15 20:51:44 +00:00
Robin Dunn
ba763a45d8
Optimized sizers to not call CalcMin more often than neccessary
...
Window items added with wxFIXED_MINSIZE flag will set the window's
minsize to its curent size.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 20:13:27 +00:00
Václav Slavík
adbf2d732f
deprecated wxBookCtrlSizer and wxNotebookSizer, they are no longer needed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 11:58:06 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
eb2a7883df
show/hide static box when the wxStaticBoxSizer is shown/hidden (replaces patch 897020)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 22:26:09 +00:00
Robin Dunn
1eba219387
Added wxSizerItem::SetMinSize that calls m_window->SetSizeHints if not
...
wxFIXED_MINSIZE, SetInitSize and SetItemMinSize uses SetMinSize, and
fixed [ 934651 ] sizeritem's 'minsize' value has no effect in xrc resources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 23:45:21 +00:00
Robin Dunn
fc1fcd0edc
Added accessors for m_rowHeights, m_colWidths
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 06:42:23 +00:00
Robin Dunn
1621c234d1
Calling sizerItem->SetWindow shoudl set the minsize too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-07 07:04:55 +00:00
Robin Dunn
20b35a6916
Added wxGridBagSizer, a grid sizer where item positions can be
...
specified and row/col spanning is allowed.
Updated docs, the layout sample, files.bkl, and updated makefiles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 01:31:44 +00:00
Vadim Zeitlin
ade4eb65af
added wxBookCtrlSizer; derive wxNotebookSizer from it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-21 23:09:35 +00:00
Václav Slavík
1202890513
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Stefan Csomor
4393b50ccd
fixing xti problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-30 17:55:53 +00:00
Julian Smart
aa5973eef4
Copyright correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-21 15:30:17 +00:00
Julian Smart
a4ab8ed5ff
Copyright correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-21 15:24:24 +00:00
Vadim Zeitlin
e8800dcfa7
added proportion parameter to wxFlexGridSizer::AddGrowableRow/Col()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-27 11:55:26 +00:00
Vadim Zeitlin
5d76f46282
added support for non flexible (in one direction only) flexible sizers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-26 00:04:24 +00:00
Vadim Zeitlin
e0d8fb4572
restored int (instea of size_t) in Remove() and Detach(); TRUE/FALSE -> true/false
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-25 12:50:32 +00:00
David Webster
dc259b7926
TRUE not true, FALSE not false
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-20 21:22:43 +00:00
Ron Lee
9cbee2ceee
Improved const correctness.
...
Clear wxWindow containing sizer on Remove( index ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-13 19:31:37 +00:00
Ron Lee
12a3f2275c
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
2003-01-07 10:22:07 +00:00
Vadim Zeitlin
22f3361e1c
use DECLARE_NO_COPY_CLASS() where applicable (patch 633384)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-02 23:38:11 +00:00
Ron Lee
96fdbb60f1
Ok, so we don't need the extra bool at all, we can just zero the sizer
...
pointer in wxSizerItem. :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-30 15:26:47 +00:00
Ron Lee
00976fe56b
Add wxSizer::Detach so we can detach child sizers without deletion.
...
Updated wxSizer docs for this and a couple of other missing/outdated
things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-30 13:02:15 +00:00
Julian Smart
b657b4c986
Added missing SetOrientation accessor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-14 09:29:02 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Gilles Depeyrot
af49c4b8a2
disable use of #pragma interface under Mac OS X
...
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Vadim Zeitlin
0ca5105b34
don't crash in wx(Flex)GridSizer with division by 0, assert instead; also factored out a lot of duplicated code in a single function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-29 21:48:32 +00:00
Vadim Zeitlin
e5251d4f78
fixes to the sizers behaviour necessary to make the log dialog work again
...
(thanks to Dimitri) and a few updates to the docs after the recent changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-13 20:21:20 +00:00
Ron Lee
566d84a7c3
Added knowledge of virtual size to wx(Scrolled)Windows, they can now
...
manage their own scrollbars with the help of a sizer or other user
clues (SetVirtualSizeHints) without the need for an ancillary container.
Added SetSizerAndFit convenience method.
SetSizer now enables/disables AutoLayout automagically.
Logic bugfix for scrollsub sample.
Syntax bugfix in parser.y.
Compiler warning fix in textctrl.cpp.
Modified Files:
docs/latex/wx/scrolwin.tex docs/latex/wx/sizer.tex
docs/latex/wx/window.tex include/wx/scrolwin.h
include/wx/sizer.h include/wx/window.h
include/wx/generic/scrolwin.h include/wx/gtk/scrolwin.h
samples/scrollsub/scrollsub.cpp src/common/parser.y
src/common/sizer.cpp src/common/wincmn.cpp
src/generic/scrlwing.cpp src/gtk/scrolwin.cpp
src/msw/textctrl.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-19 22:12:38 +00:00
Robert Roebling
84f7908b99
Applied patch from SF on menu command not blocked
...
if they are disabled but still emitted by an
accelerator
First attempt at adding wxSizer::Clear(). Further
testing pending :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-13 16:21:04 +00:00
Robin Dunn
2aab8f16ac
Added wxClientDataContainer to wxSizer, so sizers can now do OOR in
...
wxPython too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-21 03:56:07 +00:00
Vadim Zeitlin
1e6feb95a7
first pass of wxUniv merge - nothing works, most parts don't even compile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-26 20:59:19 +00:00
George Tasker
65ba4113c6
Fixes ::Fit() and ::SetSizeHints() to keep the dialog sized so that it will not grow outside the display area of the screen. NEcessary to fix the problems seen in wxAnyChoiceDialog() derived classes where the dialog grows too big to see the top or bottom of the dialog
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-25 16:08:22 +00:00
Robert Roebling
df5ddbca48
Added wxFileName.
...
Small fix for log error messages on startup.
Added missing accessor to wxSizer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-28 00:00:32 +00:00
Bryan Petty
f6bcfd974e
merged 2.2 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Robert Roebling
f35aa3daa3
Added wxSizer::Insert()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-16 16:37:08 +00:00
Robert Roebling
aaf6c39ae6
Added a few modifiers to wxSiserItem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-14 19:26:06 +00:00
Václav Slavík
65e4f9b986
wxNotebookSizer surrounder by wxUSE_NOTEBOOK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-13 16:52:18 +00:00
Robert Roebling
83edc0a574
Added wxNotebookSizer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-11 15:07:14 +00:00
Robin Dunn
be2577e4e6
wxSizer patches by Alexander Smishlajev <als@turnhere.com>
...
Adds some wxALIGN_* flags to increase ability to position item
within its allotted space.
Adds wxSHAPED flag that enforces proportional resizing on growable
items.
Adds a sample and updated documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-11-09 23:02:41 +00:00
Robin Dunn
0c0d686fe5
Added userData to wxSizerItems and other things to make sizers more
...
usable/overrideable from wxPython.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-09-20 03:12:49 +00:00
Robert Roebling
42b4e99e9a
Added Prepend() and Remove() methods to wxSizer,
...
Corrected a stupid bug in it,
Freshed up wxPropertyXXX to make use of the icons
in the dialogs.
Made wxBmpButton inherit from wxButton. Grumble.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-16 20:17:48 +00:00
Robert Roebling
27ea1d8aae
Added wxStaticBoxSizer,
...
Makefile updates,
Improved look of wxGenericPageSetupDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-13 17:32:30 +00:00
Robert Roebling
92afa2b150
Did somework on the generic dialogs,
...
Renamed wxBox -> wxBoxSizer
Removed old dialog layout code,
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-11 11:53:40 +00:00
Robert Roebling
3417c2cd3d
Replaced old wxSizer,
...
Converted two of wxGTK's standard dialogs to use them,
Applied two fixes to wxDC code,
Made wxRadiobox a little smaller,
Added sizer.h to wx.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-09 17:00:51 +00:00
Robert Roebling
d597fcb781
Completed wxBox,
...
Changed a few defines in defs.h, most importantly,
wxCENTRE is now 1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-09 11:27:37 +00:00
Robert Roebling
61d514bb2f
Finished porting Robin's wxSizers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-08 21:09:59 +00:00
Robert Roebling
c62ac5b6e4
Added wxNewSizer and wxBorderNewSizer with sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-08 16:45:57 +00:00