Robert Roebling
af110130e6
Optimise internal sorting datastructure
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 12:24:18 +00:00
Robert Roebling
ed903e4242
Renamed HasChildren() to IsContainer(), added GetParent() to wxDataViewModel
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 09:01:52 +00:00
Robert Roebling
ee5aa9d44f
Fix for crash when opening empty node
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 08:23:53 +00:00
Paul Cornett
25d6eb3a77
add missing parens to bitwise expression
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 06:44:02 +00:00
David Elliott
a8780ad5bb
Implement wxWindow::SetCursor to invalidate Cocoa's cursor rects.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 05:40:54 +00:00
David Elliott
e2948f175e
Remove wxStockCursor function that should never have been global.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 04:08:58 +00:00
David Elliott
69659fd770
Rework the wxCusor ctor taking wx stock number to provide as many cursors as
...
possible by using the system cursors first, a set of built-in cursors copied
from wxMac if a system cursor was not found, and a normal cursor otherwise.
Fixes lack of wxCURSOR_HAND and makes the code easier to follow by clearly
showing which cursors are and are not available from each source.
Copyright 2007, Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 04:06:26 +00:00
David Elliott
fe686e5a1f
Rewrite conversion from classic Mac OS 'CURS'-style structures to NSCursor.
...
* Leave data as separate image and mask planes instead of interleaving it
* Specify bytesPerRow to make compatible with 10.4 (Tiger) and higher
* Use endian-independent math.
* Document that the cursor data came from wxMac source.
Copyright 2007, Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 02:12:45 +00:00
Vadim Zeitlin
ce65118e62
make To/From8bit() inline for performance reasons
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 01:10:22 +00:00
Vadim Zeitlin
cdbcd6c12f
rewrite FilterInValue() using iterators, this results iin 12x performance improvement in UTF-8 build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 01:03:33 +00:00
Vadim Zeitlin
c225b981b6
check for setenv first, then putenv as using setenv in wxSetEnv() is much easier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 23:00:09 +00:00
Vadim Zeitlin
c0472c7c9e
added code to free memory allocated in wxSetEnv() when it uses putenv()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 22:58:47 +00:00
David Elliott
c978d28a2a
Strip mnemonics from the label before passing it to Cocoa.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 19:19:52 +00:00
David Elliott
259502c61d
Implement wxCocoa wxRadioBox event.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 18:52:12 +00:00
David Elliott
18359b1945
Make wxRadioButton::SetValue(true) deselect all other wxRadioButton in its group if it is part of a group.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 18:00:32 +00:00
David Elliott
4c1a4c4180
Implement most of wxRadioBox's methods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 17:58:38 +00:00
David Elliott
6420b4c55d
Added include wx/timer.h to non WX_PRECOMP case.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 17:40:42 +00:00
Vadim Zeitlin
6619edf0ea
do platform-specific checks after ensuring that the symbols we use are defined; extract wxGTK-specific checks to wx/gtk/chkconf.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 15:47:11 +00:00
Robert Roebling
cf283a470a
Better sorting example and better default
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 14:03:43 +00:00
Vadim Zeitlin
4f167b46b4
added wxUSE_TASKBARICON; corrected condition for generating the taskbar sample makefile in configure
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 01:02:28 +00:00
Vadim Zeitlin
6f7f0d0a2d
don't assert when right/down cursor arrows are used in an empty tree control with wxTR_HIDE_ROOT style (patch 1756184)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 23:42:58 +00:00
Vadim Zeitlin
5ad2b5ce07
speed up reading wxFileConfig from wxInputStream by factors of 3.5, 20 and 7 for ANSI/wchar_t/UTF-8 builds respectively (replaces patch 1755969)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 23:37:12 +00:00
Vadim Zeitlin
7a3ba5af83
wxGTK/Univ compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 22:01:06 +00:00
Robert Roebling
0be79c8a80
Completed sorting in wxDataViewCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 18:46:28 +00:00
Vadim Zeitlin
01cd7f7575
added documentation of wxUSE_XXX symbols (modified patch 1755127)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 18:09:28 +00:00
Vadim Zeitlin
b1fd5b3506
fix broken wxvscrolledwindowsetrowcount link
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 18:08:54 +00:00
Václav Slavík
775f4c5361
compilation fix for minimal build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 15:02:05 +00:00
Robert Roebling
4508fcd20a
First work at resort with header click
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 14:09:26 +00:00
Robert Roebling
9a45b5d576
Forgot this one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 13:25:38 +00:00
Robert Roebling
ef4279890a
First actual sorting for wxDataViewCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 13:23:57 +00:00
Vadim Zeitlin
e7ff34edfd
removed the hyphen from the new --enable{baseevt,epoll,select}loop options description
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 12:58:28 +00:00
Václav Slavík
a5001e9361
don't use _T() for literals in wxDFB, it uses UTF-8 build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 10:15:42 +00:00
Václav Slavík
66c71d8a3d
use iterators instead of c_str()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-18 09:44:36 +00:00
Vadim Zeitlin
baac339546
added new libraries (patch from Francesco)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 23:04:20 +00:00
Vadim Zeitlin
fc715b5088
added missing libraries to the requirements list
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 22:53:43 +00:00
Vadim Zeitlin
8749ce0a6f
remove references to contrib (patch from Francesco)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 22:51:06 +00:00
Vadim Zeitlin
02b28440a3
check whether the string is non-empty before accessing its first element
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 22:46:02 +00:00
Robert Roebling
55fbde1232
Some code renaming to avoid confusion. Test editable column in sample.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 22:01:47 +00:00
Chris Elliott
f2f1d735ca
svn rather than cvs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 13:25:00 +00:00
Chris Elliott
6865660d5a
svn rather than cvs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 13:24:03 +00:00
Václav Slavík
e93523680b
compilation fix for Borland C++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 11:59:25 +00:00
David Elliott
9ed9755237
Partially implement wxRadioBox for wxCocoa.
...
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 05:41:35 +00:00
David Elliott
b0a207df87
Add a couple of wxAutoNSAutoreleasePool in some key spots where Cocoa itself does a number of autoreleases.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 05:31:49 +00:00
David Elliott
2465458c06
Don't use exceptions to determine lack of a method implementation. Exceptions
...
aren't designed for this in Cocoa. Instead, use respondsToSelector:.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 05:14:36 +00:00
Vadim Zeitlin
d42e12e8dd
remove file containing many obsolete defines, if anyone wants to revive MicroWindows support the MicroWin-specific checks should be added to wx/msw/chkconf.h or wx/msw/microwin/chkconf.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 23:28:15 +00:00
David Elliott
b1c702af6f
Added preliminary documentation about how to write new wxCocoa controls.
...
Basically just a brain dump but it's better than nothing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 23:09:56 +00:00
Vadim Zeitlin
5f6cafd149
test for gettimeofday/ftime even if we don't use wxDateTime -- we still need these functions for wxGetLocalTimeMillis() and wxStopWatch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 21:20:54 +00:00
Vadim Zeitlin
4252569b32
use wxGetLocalTimeMillis() instead of wxDateTime in wxSocketBase::_Wait(), this allows to use sockets without wxUSE_DATETIME
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 21:16:03 +00:00
Vadim Zeitlin
5770bfeb87
compilation fix for wxUSE_LOG==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 21:15:21 +00:00
Vadim Zeitlin
12d0b79493
add wxMilliClockToLong() helper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 21:14:53 +00:00