Commit Graph

39947 Commits

Author SHA1 Message Date
Benjamin Williams
1bf86c4b18 check if pane still exists before closing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-16 16:33:05 +00:00
David Elliott
e4d2c5d6fd Don't force the child's m_isShown state to match that of the parent in CocoaAddChild.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-14 04:44:54 +00:00
David Elliott
f11da5baf1 Implement creation of wxFont from wxNativeFontInfo.
Implement all of the getters to return the fields from the wxNativeFontInfo
contained in the wxFontRefData.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-13 08:47:38 +00:00
David Elliott
065fe5b7e2 Replace most of the fields in wxFontRefData with one wxNativeFontInfo.
Done on both trunk and 2.8.  Because the data members line up perfectly
and because I did not add nor remove any methods the ABI is (surprisingly)
not effected by this change.
The GetNativeFontInfo call now works.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-13 08:30:59 +00:00
David Elliott
605d362b4f Move wxCocoa's wxFontRefData from the header to the implementation file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-13 07:18:04 +00:00
David Elliott
a5e02a1fae Rename src/cocoa/font.cpp to font.mm in both trunk and 2.8 branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-13 06:58:26 +00:00
David Elliott
8392d7bdf7 Use WXNSView just like wxWindow does when creating a wxControl. There are
already wxControl subclasses such as wxStaticBox not using primary views which
derive from NSControl so wxControl has to support this already.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-12 20:27:02 +00:00
Julian Smart
2eef38b7d6 Warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-12 20:04:49 +00:00
David Elliott
a43a0ae686 Implement wxWindow::GetTextExtent to use wxDC to at least return something
reasonable rather than leaving uninitialized garbage values unchanged.

Fix wxWindow::DoSetVirtualSize so that the underlying Cocoa view always
takes up at least as much area as its enclosing clip view.  In particular,
wxDefaultCoord was not being handled, resulting in -1 size components.

Together, these make the generic wxListCtrl mostly usable.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-12 19:17:45 +00:00
Chris Elliott
de850acd75 update souce of wxart2d
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-10 10:52:12 +00:00
Benjamin Williams
8bc47fe436 added DockFixed() pane option; doc updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-10 10:23:48 +00:00
Robin Dunn
2ccf76cd1f Give wxMac's wxStaticBox an AcceptsFocus method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-09 16:03:38 +00:00
Stefan Csomor
0f876f047a removing interference between two layering fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-09 15:29:50 +00:00
Benjamin Williams
1149bfedc9 in LoadPerspective, if pane wasn't found, just skip it instead of bailing out
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-09 07:22:11 +00:00
Robin Dunn
a2d954469d On Mac the first visible line needs to be recalculated after the Scroll because it can be set
to the wrong value in Scroll because of the paint event generated by the Update() there.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-08 22:28:33 +00:00
Robin Dunn
5a82f10e3b Added missing wxPython event binders for the notebook tab events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-08 22:16:00 +00:00
Vadim Zeitlin
c438e941c4 use wxFD_XXX constants instead of wxXXX in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-08 11:35:32 +00:00
Julian Smart
697060e3e0 Corrected typo affecting outline level reading
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-07 14:12:33 +00:00
Julian Smart
9ee6506afd Added missing URL attribute testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-07 14:09:59 +00:00
Julian Smart
f89920b9b5 Fixed dangling pointer bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-06 09:02:42 +00:00
Václav Slavík
b59815009e fixed WX_CLEAR_HASH_SET to compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-05 22:42:35 +00:00
Robin Dunn
e95746d5bd bump subrelease number
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-05 20:48:00 +00:00
Chris Elliott
51f7a64ca7 add missing inc files docsrc.rsp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 15:52:36 +00:00
Stefan Csomor
b94f04c563 supporting failed data conversions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 12:01:15 +00:00
Stefan Csomor
9295dc1092 make conversion fail safe on OS X (japanese to mac roman ascii conversions lead to a crash)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 10:10:06 +00:00
Stefan Csomor
9493740d71 compile error in non-quartz builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 07:40:04 +00:00
Stefan Csomor
9ad88af224 icns support from resources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 07:32:09 +00:00
Stefan Csomor
00ae2ece4a adding PICT support in Quartz - whose native metafile format is PDF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 07:30:43 +00:00
Stefan Csomor
2c59ab92e0 adding PICT support in Quartz - whose native metafile format is PDF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 07:29:24 +00:00
Stefan Csomor
308cdd25d5 moving tooltip implementation into private header, allowing for easier reuse
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 07:27:44 +00:00
Stefan Csomor
fa30edf36f moving tooltip implementation into private header, allowing for easier reuse
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 07:26:40 +00:00
Stefan Csomor
df12d367e3 Hide toplevel window in order to avoid erratic redraws of zombie windows on mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 07:25:26 +00:00
Stefan Csomor
64b9adaeda fixing utf16 recognition, as this always conforms to public-plain-text the sequence needs to be inverted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-04 04:58:35 +00:00
Vadim Zeitlin
f8e0186b73 fix range used for native volume in Set/GetVolume()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-03 22:36:29 +00:00
Vadim Zeitlin
3486da5d11 look for message catalogs also directly under prefix in GetMsgCatalogSubdirs() as we used to do in 2.6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-03 21:45:33 +00:00
Michael Wetherell
e48dd4e3ae Define CPPUNIT_STD_NEED_ALLOCATOR to 0 if it is undefined as we compile
with -Wundef.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-02 14:56:53 +00:00
Vadim Zeitlin
1573c16360 don't leak wxFileType returned from GetFileTypeFromExtension(); fix compilation with wxUSE_MIMETYPE==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-02 11:25:29 +00:00
Michael Wetherell
52c5891fa3 Code around a bug in getgrgid_r which I've just noticed exists in some
versions of glibc but not others. It fails to return a value through its last
parameter.  getpwuid_r doesn't seem to have the same bug, but avoid its last
parameter too as a bit of defensive programming.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-01 21:25:08 +00:00
Benjamin Williams
85aabfa200 better child focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-01 16:02:22 +00:00
Vadim Zeitlin
f9d8aad8f4 don't crash in GetAsDOS() if the time is not in time_t range (bug 1804421)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-30 20:37:29 +00:00
Stefan Csomor
7daa1d24b7 making sure we only have single selection (1802048)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-30 19:57:39 +00:00
Vadim Zeitlin
b0feee41b2 fix DrawLine() and DrawPolygon() which were totally broken for GTK1 since rev 36998
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-29 23:10:35 +00:00
Vadim Zeitlin
0f6089b1b7 backport WX_ASSERT_SIZET_EQUAL from trunk, use it to fix compilation of the test on 64 bit platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-28 22:15:08 +00:00
Robert Roebling
d1cc3f3463 Backport DoDrawArc fix (close it)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-28 06:58:48 +00:00
Robert Roebling
6d330872cb [ 1803350 ] Wrong top-level window positioning on scrolled window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-27 20:29:59 +00:00
Václav Slavík
6cfb0d7d5f use Assign to copy wxLists, operator= is broken (and can't be fixed in 2.8 in binary compatible way, because it's inline
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-27 15:19:26 +00:00
Julian Smart
34b7782e3b Added forward declaration for wxWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-26 06:40:58 +00:00
Robin Dunn
0403841aa3 Don't use the WXK_NUMPAD_* values for the EVT_CHAR events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-25 23:14:44 +00:00
Robin Dunn
fc75d58855 don't overdo the clipping otherwise we truncate descenders in the header label on OS X
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-25 23:13:21 +00:00
Chris Elliott
005a65170e 2.8.6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-25 07:59:25 +00:00