David Elliott
5e093a9bb5
Add ProcessPendingEvents to wxApp::Yield which makes the code almost identical
...
to wxMSW's implementation save for using Cocoa instead of MSW.
Add a wxAutoNSAutoreleasePool around wxApp::WakeUpIdle so that calling it from
a thread does not leak the NSEvent.
Add several hundred lines of comments explaining the unique method that
wxCocoa uses to hook the underlying event loop and run loop so that wxCocoa
is able to provide things like wx idle events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 02:13:13 +00:00
Michael Wetherell
a49453dab9
When testing for getpwuid_r and getgrgid_r also check the signature. Solaris
...
7-9 have these with non-POSIX signatures.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 16:34:55 +00:00
Robin Dunn
e388b63f0d
Another typo. I should really wake up before writing...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 16:14:50 +00:00
Robin Dunn
6275bcf28d
fix typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 15:49:30 +00:00
Robin Dunn
86f87473ea
Make event overview doc more clear about instances of wxEvtHandler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 15:47:59 +00:00
David Elliott
e20d0f2a10
Fix crasher caused by wxProcessTerminationEventHandler::OnTerminate killing
...
itself inside the context of wxEvtHandler::ProcessPendingEvents which
still needs itself to be valid because it accesses it's m_eventsLocker.
NOTE: This code is no longer used on trunk and hopefully soon won't be
used in 2.8 either, but at least it doesn't crash now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 09:31:21 +00:00
David Elliott
df13d77add
Revert part of 49140 on the 2.8 branch making it continue to use
...
wxNonControlNSControl where WXNSView would do except that on the 2.8
branch I use a hack to stuff the control label in there since
2.8 has no m_labelOrig field in wxControlBase.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:30:39 +00:00
David Elliott
0d220868d4
Merge 49213/49214 from trunk. Working wxFont implementation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:23:05 +00:00
David Elliott
4ece5784e2
Added include/wx/cocoa/private
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:02:43 +00:00
Robin Dunn
08221a1ddb
Add a section for 2.8.6.1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 00:43:29 +00:00
Robin Dunn
a28e037ad5
Add richtext to CORE_GUI_LIBS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 00:42:43 +00:00
David Elliott
4ec06c2eed
Add const_cast and explain why it's needed.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 22:07:21 +00:00
David Elliott
032f2af9a2
Apply modified patch 1785299 to trunk and 2.8.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 21:52:02 +00:00
Paul Cornett
336fec8f8f
Fix declaration-after-statement compile error, remove C++ comments, remove unused GtkPizzaAdjData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 02:58:17 +00:00
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