Robin Dunn
9add93670b
wxMenu::Append (and similar) now return a pointer to the wxMenuItem
...
that was added. Checked on MSW, GTK, and Mac, other port authors
please double check changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-23 18:46:05 +00:00
Ryan Norton
7f71c4c8d3
HID support (preliminary - not added to bakefiles yet)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-23 09:44:05 +00:00
Robin Dunn
e50d5284f9
Moved wxMacGetSystemEncFromFontEnc and wxMacGetFontEncFromSystemEnc to
...
a module that is included in wxBase to prevent linking errors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-23 02:43:29 +00:00
Stefan Csomor
25b1b5668e
font encoding support added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 18:53:46 +00:00
Stefan Csomor
d9d19e7545
setting the default locale during startup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 18:52:11 +00:00
Vadim Zeitlin
af77752fc0
don't crash when restoring focus after showing a modal dialog
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 11:26:20 +00:00
Vadim Zeitlin
368ba124ef
make it possible to restart timer with a simple Start(), as in other ports
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 11:26:15 +00:00
Vadim Zeitlin
c944ce3573
fixed compilation when wxUSE_THREADS == 0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 11:26:10 +00:00
Stefan Csomor
71111c40eb
wchar_t (4 bytes) / unichar (2 bytes) problems first attempt to fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-20 18:22:46 +00:00
David Elliott
02dad85e87
Copied gsockosx.c revision 1.4
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-18 21:51:53 +00:00
Mattia Barbon
e94e2e952b
Handle client data correctly.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-17 22:14:38 +00:00
Robin Dunn
852b118501
Send menu highlight events and fix statusbar to update immediatly when
...
status text is changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-16 01:48:53 +00:00
Robin Dunn
3dfafdb9e6
Send window create events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-16 01:46:18 +00:00
David Elliott
f1ff3d4a3e
Allow Clear() to clear the control even when it is not editable.
...
(patch from Kevin Hock)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-15 20:12:29 +00:00
Julian Smart
6463b9f539
Reverted patch [ 832096 ] Final separation for GUI and console for Open Watcom
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-15 13:49:22 +00:00
David Elliott
ffb649e4c6
* In _GSocket_Get_Mac_Socket(), do not call CFSocketSetSocketFlags to turn
...
off kCFSocketCloseOnInvalidate. Furthermore,
kCFSocketAutomaticallyReenableWriteCallback wasn't part of default flags
but had been erroneously included here.
* Call CFSocketInvalidate() from _GSocket_Diable_Events instead of from
_GSocket_GUI_Destroy_Socket. GSocket calls this from GSocket_close
and so in combination with the above change and the most recent change
to gsocket.c the CFSocket should now be invalidated and closed for all
cases and not just planned shutdown.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-14 02:50:18 +00:00
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