Commit Graph

15354 Commits

Author SHA1 Message Date
Robin Dunn
1ebfafde51 Keep track of the initial size that the window was created with, and
when the window is added to a sizer use that size with SetSizeHints.
This is to fix problems resulting from the previous change where
SetSizeHints was called with the initial size from CreateBase.

Also, Patch [ 934677 ] wxWindowBase::DoGetBestSize() should exclude hidden windows


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 22:40:14 +00:00
Stefan Csomor
dd05f81195 removing resource based implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 17:31:35 +00:00
David Elliott
70cbdccac9 Quick hack removing wxDIALOG_MODAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 16:26:24 +00:00
David Elliott
2c326adae6 Quick hack to rid the code of wxDIALOG_MODAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 16:03:53 +00:00
Vadim Zeitlin
570384d865 don't use wxDIALOG_MODAL any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 07:02:36 +00:00
David Elliott
327940530c wxASSERT_MSG instead of wxASSERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 06:00:13 +00:00
Robin Dunn
71a0c62f2f If the icon is smaller than the allotted space then center it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:59:30 +00:00
David Elliott
dc5bcaefb5 Cocoa_drawRect: Set m_updateRegion using the NSRect or if possible (Panther)
using the array from [NSView -getRectsBeingDrawn:count:]


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:56:52 +00:00
David Elliott
e9ec987a36 Added wxRegion construction from an NSRect or an array of NSRects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:53:50 +00:00
Robin Dunn
dbe839cc25 Compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:41:52 +00:00
David Elliott
90c108964c Rework modal dialog code to not depend on now obsolete wxDIALOG_MODAL flag.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:39:43 +00:00
Robin Dunn
ec8c39ed09 Ensure PostCreation is always called, so the widget will be shown properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:19:41 +00:00
Robin Dunn
9357a69fb6 Fix for #933359
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:17:49 +00:00
David Elliott
8f6a082bff new wxRegionRefData has size=1 so rects=malloc(sizeof(BOX))
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 20:46:15 +00:00
David Elliott
53dbce2338 wxCocoa: wxRegion using wxRegionGeneric
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 19:45:02 +00:00
David Elliott
4c3c384448 Added wxRegionGeneric and wxRegionIteratorGeneric using X.org code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 19:38:24 +00:00
David Elliott
be134f052b #import <AppKit/NSCell.h>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 14:24:18 +00:00
David Elliott
360f42623d Change <class PixelData> to <typename PixelData> (2.95 compile fix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 14:20:05 +00:00
David Elliott
c0ccf6a9a3 s/m_clientData/m_itemClientData/ so it doesn't conflict with wxEvtHandler union
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 14:16:48 +00:00
David Elliott
e76d459d94 Make ObjcRelease() return void like [NSObject -release] not type id.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 13:40:08 +00:00
Vadim Zeitlin
f76858d8f1 don't use WS_POPUP under CE for normal windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 12:26:10 +00:00
Vadim Zeitlin
b7deb0be17 removed old eVC project files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 12:25:21 +00:00
Vadim Zeitlin
072c5412c2 removed m_bestSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 12:25:05 +00:00
Vadim Zeitlin
e8ba218b1f added DoDrawRoundedRectangle() implementation (patch 931364)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 11:23:44 +00:00
Julian Smart
781bdbb410 Only call Select within SetString when internal data has been restored,
else assert results if the item was selected


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 10:29:55 +00:00
Stefan Csomor
143d08f8f4 all databrowser implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 10:23:37 +00:00
Stefan Csomor
f1d527c1ad switching to native focus handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 05:25:54 +00:00
Stefan Csomor
92a7272fdb fixing right click
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 05:21:31 +00:00
Stefan Csomor
d85611ba84 mouse handling changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 05:19:35 +00:00
Stefan Csomor
bdf956fb42 recursive tab processing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 05:16:03 +00:00
Stefan Csomor
4c37f1248b switching to CreateXXX methods for Controls and to Hit Event Processing, thus supporting full keyboard access mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 05:14:14 +00:00
Roger Gammans
13f6e9e8e1 * fix bug where editing of the bootom and right most cell is not
corectly completed.
 * Some tidying of end edit code paths. (such as in AutoSizeRowOrCol)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-12 19:59:46 +00:00
Robert Roebling
e5aa8b8171 eVC 3.0 doesn't like WS_CAPTION. I imagine that
eVC 4.0 just ignores it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-12 15:37:17 +00:00
Robert Roebling
c1edc08df3 eVC 3.0 doesn't know ExitProcess() but _exit() is OK.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-12 10:35:04 +00:00
Robert Roebling
d9397a05a3 eVC++ 3.0 doesn't know WS_THICKFRAME
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-12 10:33:55 +00:00
David Elliott
af8491078d Change m_windowCurrent to m_currentNSWindow such that m_currentNSWindow is
never used directly but only to look up the associated wxCocoaNSWindow.
If the wxCocoaNSWindow cannot be found later in UpdateMenuBar then it's
likely been destroyed but no crash will result as before.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-12 04:58:32 +00:00
Václav Slavík
37c2a8dab0 don't use strcpy to copy between overlapping strings, it's undefined operation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 21:36:06 +00:00
Václav Slavík
e7a0050ff5 added more styles (patch 933354)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 20:59:39 +00:00
Václav Slavík
a84e46f231 stream classes docs and code fixes (part of patch 924438)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 20:58:56 +00:00
Václav Slavík
4c68a10264 improvements to zlib streams (patch 929416):
1. CanHandleGZip static method
2. code cleanup
3. 2.4 compatibility mode


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 19:34:56 +00:00
Václav Slavík
a1c7668e50 added wxTE_AUTO_SCROLL and wxTE_NO_VSCROLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 19:11:27 +00:00
David Elliott
894d6c9abd Use wxAutoNSAutoreleasePool when destroying wxIconRefData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 17:59:43 +00:00
Stefan Csomor
2877659b05 fixing target determination for compositing windows, but we don't always get proper highlights for target windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 15:17:57 +00:00
Vadim Zeitlin
b19dae2c04 in wxGetFontEncFromCharSet(): map only DEFAULT_CHARSET to wxFONTENCODING_SYSTEM (but not all the others); also handle SYMBOL_CHARSET separately
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 10:55:55 +00:00
Vadim Zeitlin
24056b9e28 serialize wxNativeEncodingInfo using font names, not numbers which are subject to change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 10:50:22 +00:00
Vadim Zeitlin
910b9fc5c0 added GetEncodingFromName(); documented it and rearranged the methods in alphaabetical order
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 10:40:04 +00:00
Václav Slavík
635f33cedd fixed wxMBConv::cMB2WC and cWC2MB to check for conversion failure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 09:47:31 +00:00
Dimitri Schoolwerth
98773c1c8b applied patch #933086: "scrollbar stops compilation due to missing header"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 07:26:39 +00:00
David Elliott
5ea738ffd1 Yield changes:
1. Rework the loop using wxAutoNSAutoreleasePool such that each iteration
   (get/send event) is done within the context of an NSAutoreleasePool.
2. Use nil instead of [NSDate distantPast] (means the same thing)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 04:09:20 +00:00
David Elliott
1b1f8b2d8b Add wxAutoNSAutoreleasePool to drawing methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 04:06:26 +00:00