David Elliott
fda20787fc
* _GSocket_Enable_Events() and _GSocket_Disable_Events() now call
...
CFRunLoopAddSource() and CFRunLoopRemoveSource() respectively. They
no longer call CFSocketEnableCallbacks or CFSocketDisableCallbacks.
* In _GSocket_Get_Mac_Socket() no longer disable callbacks and also do not
add the runloop source which combined with the above change has the
same effect as before.
* In _GSocket_GUI_Destroy_Socket() do not remove the runloop source because
_GSocket_Disable_Events() should have and even if it didn't Mac OS X
will clean it up in CFSocketInvalidate()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-14 02:17:16 +00:00
Julian Smart
1169a91932
Applied patch [ 832096 ] Final separation for GUI and console for Open Watcom
...
(Watcom compiler doesn't like ctor implementation in headers)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 15:33:01 +00:00
Ryan Norton
15c2acd23d
Added/Fixed some things in wxGetKeyState
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-28 22:46:08 +00:00
David Elliott
a38b65ab35
* Implemented according to Apple CFSocket documentation:
...
kCFSocketConnectCallBack: Called in response to a successful connect() and
of course applies to client sockets only. Fails assertion if received
from a server socket. Calls GSocket's Detected_Write otherwise.
kCFSocketReadCallBack: Called whenever data is available to read or in
the event that a new connection is waiting to be accepted. Call's
GSocket's Detected_Read.
kCFSocketWriteCallBack: Called whenever data can be written to kernel buffer.
Call's GSocket's Detected_Write
* Added ALL_CALLBACK_TYPES macro which specifies all of the above three.
* Added (by virtue of ALL_CALLBACK_TYPES) the kCFSocketConnectCallBack to
the calls to CFSocketCreateWithNative and CFSocketDisableCallBacks during
GUI socket data creation.
* Use the default flags for CFSocket which automatically reenable the
callbacks, but continue to disable close of fd on CFSocket invalidation.
Eventually, GSocket should allow the GUI implementation to override close
so that we can avoid calling the > 10.2 CFSocketSetSocketFlags function.
* CFRelease the socket after invalidating it (fixes memory leak)
* When adding/removing callbacks use kCFSocketReadCallBack for server
GSOCK_CONNECTION and kCFSocketConnectCallback for client.
* When adding/removing callbacks GSOCK_LOST should do the same thing as
GSOCK_INPUT (Thanks Kevin Hock)
* When enabling events, do not enable kCFSocketConnectCallBack for servers.
It should never be called anyway since connect() should never be used
on a server socket.
* When disabling events, disable ALL_CALLBACK_TYPES.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-24 04:04:40 +00:00
Julian Smart
1066fece29
MOre wxUSE_... fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 19:42:05 +00:00
Julian Smart
35eace3ae6
Added wxUSE_TOOLBAR, wxUSE_STATUSBAR tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 12:39:33 +00:00
Ryan Norton
0643659a4e
Commented out WXK_CONTROL....
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 18:22:49 +00:00
Ryan Norton
104cdef643
TODO note :)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 23:39:44 +00:00
Ryan Norton
6ed892f3f2
wxGetKeyState as per feature request :).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 23:35:21 +00:00
Gilles Depeyrot
e13854762b
GSocket (Generic Socket) Mac OS X mach-o part by Brian Victor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 11:05:48 +00:00
Dimitri Schoolwerth
a449f8407b
Applied fix for patch #846732 'filedalog long filename support'. File dialog now returns ':' separated paths again with Classic/Carbon builds. The fix is attached to the same patch.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-12 02:19:00 +00:00
Julian Smart
aad6765cbd
Applied patch [ 828303 ] Slight wxColour cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 10:10:40 +00:00
Julian Smart
95c430aa2e
Aplied patch [ 816113 ] Inconsistent GetCharWidth over platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 09:05:48 +00:00
Gilles Depeyrot
878973f1fa
applied SourceForge patch # 854330 for Filedialog Unicode fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-07 21:20:35 +00:00
Gilles Depeyrot
bc93670d3b
corrected Unicode conversion when replacing shared library extension with ".rsrc"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-07 21:11:49 +00:00
Dimitri Schoolwerth
56fc3fa5b3
Fixed possible usage of uninitialized variable.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-28 22:46:27 +00:00
Dimitri Schoolwerth
685a634c8d
Fixed signed/unsigned warning (GetCount() returns size_t, not int); Slight cosmetic cleanup.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-27 12:09:08 +00:00
Dimitri Schoolwerth
e64313babf
Applied patch #809919 (Allows wxMac threads to run at fullspeed).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-24 20:53:35 +00:00
Dimitri Schoolwerth
e128397f93
Applied patch #809019 (Adds embedded/plugin capabilities to wxMac).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-24 14:25:05 +00:00
Gilles Depeyrot
de127c699b
applied SF patch #846738 mousewheel support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-23 12:06:18 +00:00
Mattia Barbon
f148f2bac3
Avoid double free in wxComboBox::SetClientObject.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-23 08:17:57 +00:00
Gilles Depeyrot
a4f5b9b9a3
applied SF patch #846732 file dialog long filename support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-21 21:01:03 +00:00
Dimitri Schoolwerth
1e1cc1ce95
Implemented missing pure virt functions (stub functions for now).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 19:29:20 +00:00
Dimitri Schoolwerth
5ea02ed5df
Don't leave behind trails from glowing OS X button (By extending invisible button border).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-18 17:52:25 +00:00
Stefan Csomor
ffcd519515
after rearrangement to-Page got lost
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-07 10:23:13 +00:00
Vadim Zeitlin
727953356d
removed calls to wxWindowBase::InitBase(), it is called from the ctor anyhow (and so was called twice)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-30 23:08:39 +00:00
Stefan Csomor
be6628ce35
string conversion bug fixed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-22 17:10:20 +00:00
Stefan Csomor
46e2a2e7f6
fix for unicode build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-22 17:08:54 +00:00
Gilles Depeyrot
33f39af3b0
applied SF patch # 826838 to fix removal of -psn_* command line argument
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-21 20:22:34 +00:00
Vadim Zeitlin
564a150b1f
replaced all occurences of wxColourDatabase::FindColour() with Find(); minor code cleanup here and there
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-18 23:51:01 +00:00
Vadim Zeitlin
f4992e37c0
removed the weird m_style which was never initialized GTK and duplicated m_windowStyle under Mac/MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-15 22:45:23 +00:00
Stefan Csomor
de0bc93298
bug fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-15 19:23:52 +00:00
Stefan Csomor
8aa701edbb
newlines conversions streamlined
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-10 04:26:45 +00:00
Stefan Csomor
fa9f937f05
applied bug fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-04 08:26:05 +00:00
Stefan Csomor
9c9ceb4820
fixed typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-30 15:52:50 +00:00
Vadim Zeitlin
8941fa8806
added 3-state checkboxes (patch 813790)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-28 00:23:08 +00:00
Vadim Zeitlin
dd435a79ed
removed wxApp::Initialized() (replaced with a dummy version in wxApp itself); wxApp in wxGTK now uses wxEvtLoop too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-27 13:47:46 +00:00
Vadim Zeitlin
fcb35beb94
compilation fixes after making wxFontRefData private (added wxFont::GetMacXXX())
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 23:10:35 +00:00
Vadim Zeitlin
3bf5a59b5e
pointer returned by GetNativeFontInfo() is now const and must not be deleted (replaces patch 810192)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 01:23:37 +00:00
Vadim Zeitlin
e441e1f4e8
made wxNO_FULL_REPAINT_ON_RESIZE default, added wxFULL_REPAINT_ON_RESIZE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:26:40 +00:00
Vadim Zeitlin
3a9fa0d6b5
added wxTextCtrl::MarkDirty()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 00:09:18 +00:00
Vadim Zeitlin
050ffabbc3
compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 17:22:23 +00:00
Vadim Zeitlin
b12ce1d388
compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 16:39:51 +00:00
Vadim Zeitlin
a6fc611aa1
removed mark #pragmas
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 16:24:38 +00:00
Vadim Zeitlin
de5eec8ebb
compilation fix for xlc
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 15:38:43 +00:00
Vadim Zeitlin
af34705c34
made globals static to avoid linking problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 15:37:07 +00:00
Stefan Csomor
01c185668f
support for true two button mouse under OSX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 12:37:53 +00:00
Stefan Csomor
8f793b407c
turning on old quit apple event handling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 12:19:19 +00:00
Stefan Csomor
f81c1056ab
moved drawing to isvisible branch only
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 11:50:18 +00:00
Vadim Zeitlin
a47ae718e2
warnings fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 00:28:05 +00:00