Vadim Zeitlin
3b0b5f13f5
added support for add/insert/deleting many items at once in wxArray (patch 548050)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-26 21:58:46 +00:00
Vadim Zeitlin
f1322419da
fixes to the new pointer array implementation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-06 16:26:25 +00:00
Julian Smart
75d7ef36eb
Moved typedef to within public block to avoid compile error in VC++
...
(can't access privately declared typedef)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-06 09:34:59 +00:00
Gilles Depeyrot
5a1cad6ea4
wxArray<T> macros have been changed to fix runtime problems under 64 bit
...
architectures. The base class is now implemented once for each needed
primitive type in order to avoid invalid reference casts. Macros are
provided to implement new arrays using these primitive base arrays.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-06 06:31:34 +00:00
Vadim Zeitlin
8de1759c6f
added wxCOMPILE_TIME_ASSERT2() macro allowing to give the unique name to the struct used by wxCOMPILE_TIME_ASSERT() and use it in dynarray.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-07 12:33:40 +00:00
Vadim Zeitlin
17e656b003
fixed passing empty macro argument for VC++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-07 12:08:25 +00:00
Vadim Zeitlin
1a931653f8
cleaned up the arrays declaration macros and added a new SORTED_ARRAY_CMP family; added tests for them to the console sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-06 20:12:24 +00:00
Vadim Zeitlin
903506828b
fixes for the compilation warnings with Sun CC:
...
1. some fixes for "String literal to char * conversion" warnings (many
more left in the *.xpm files)
2. fixes for "assignment of function to extern "C" function"
3. a few other miscellaneous ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-09 12:49:12 +00:00
Ron Lee
88e30f2b71
Don't add -MMD until we are just about ready to build the lib, it messes with
...
configure tests for RH's broken '2.96' compiler, and really doesn't belong
in CFLAGS before then anyway.
Made wxBaseArray dtor always non-virtual.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-18 02:11:19 +00:00
Ron Lee
7631414188
Added WX_DEFINE_*_USER_EXPORTED_ARRAY macros for external dlls.
...
updated debian scripts to build with python2.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-17 11:33:50 +00:00
Julian Smart
0cbff1201a
Added wxUSE_DC_CACHEING and associated code to wxMSW
...
Added EnableCache, CacheEnabled to wxDCBase
Added mask source args to DoBlit, Blit
Added cache testing code to dragimag sample
Added wxSystemOptions, regenerated makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-11 10:07:06 +00:00
Vadim Zeitlin
b54e41c529
1. fixed typo ('&' instead of '|') in wxNotebook
...
2. changed wxTC_MULTILINE to be equal to wxNB_MULTILINE and != 0
3. much more efficient selection handling in virtual wxListCtrl,
we can now select 1000000 items without problems
4. kbd/mouse selection (ctrl/shift handling) fixed in wxListCtrl
5. added wxSortedArray::IndexForInsert() and AddAt(), remove Remove(size_t),
use RemoveAt() instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-07 22:42:35 +00:00
Václav Slavík
5d5b1c0ce0
fixed WX_APPEND_ARRAY and WX_CLEAR_ARRAY when used with dereferenced pointers (*array)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 11:56:20 +00:00
Gilles Depeyrot
03e11df547
modifications for compilation under Mac OS X
...
applied patches extracted from submission by Marc Newsam (tested under Mac OS 9)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-02-15 21:51:14 +00:00
Bryan Petty
f6bcfd974e
merged 2.2 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Vadim Zeitlin
4f6aed9c6a
1. wxDateTimeHolidayAuthority class for calculating the holidays added
...
2. wxCalendarCtrl adjustments and some new features
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-02 23:17:55 +00:00
Vadim Zeitlin
32193feb83
Remove() -> RemoveAt()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-11-18 16:14:10 +00:00
Vadim Zeitlin
f373f19798
bug in wxArray::Remove() fixed (thanks Robert)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-11-18 14:54:02 +00:00
Vadim Zeitlin
8a729bb860
RemoveAt() added to array classes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-11-16 13:28:23 +00:00
Vadim Zeitlin
a497618a56
1. DLL compilation fixes (wrong WXDLLEXPORT placement) in db.h/cpp
...
2. dummy typedef added to gsocket.c - trans unit can't be empty
3. WX_DEFINE_EXPORTED_ARRAY & friends appear
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-10-12 23:57:40 +00:00
Karsten Ballüder
223d09f6b5
replaced T() makro with wxT() due to namespace probs, _T() exists, too
...
fixed compilation problems, mainly in html code
compiles and links fine on Solaris, runs with samples and Mahogany
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-10-08 14:35:56 +00:00
Vadim Zeitlin
e90c1d2a19
many changes; major ones:
...
1. start of !wxUSE_GUI support
2. _T() macro renamed to T()
3. wxConvertWX2MB and MB2WX macro added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-10-04 20:15:38 +00:00
Vadim Zeitlin
0661ec3993
wxCALLBACK added, wxCOMPFUNC_CONV moved to defs.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-10-01 18:27:51 +00:00
Robert Roebling
d422d01eec
Distrib things,
...
Typos in dynarray.h,
Removed C++ comments from code,
Added a few #ifdef wxUSE_XXX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-06 10:10:10 +00:00
Robert Roebling
e70f5e1301
Compile fix for dynarray,
...
Use wxStreams in dialoged,
Small typo in wxApp::OnIdle()
Distrib things,
wxPython makefile corrections (libpy.c and libptr.c missing)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-05 20:38:51 +00:00
David Webster
54da4255a2
*** empty log message ***
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-02 04:44:01 +00:00
David Webster
1777b9bbf4
*** empty log message ***
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-28 03:38:12 +00:00
Vadim Zeitlin
683730003b
WXDLLEXPORTLOCAL removed, WXDLLEXPORT seems to be enough
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 23:59:16 +00:00
Ove Kaaven
9d2f3c71d8
Oh well, I'll just stuff in the rest of the Unicode changes I have made
...
so far here. You may start complaining now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:20:19 +00:00
Julian Smart
a3ef5bf504
Various changes for Salford C++, and commited fileconf.h/fileconf.cpp changes
...
to take out nested classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-16 00:13:58 +00:00
Vadim Zeitlin
3c67202dee
1. NOT_FOUND -> wxNOT_FOUND
...
2. wxString::Left(), Right(), Before(), After() clean up
3. wxLocale updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-14 14:33:56 +00:00
Vadim Zeitlin
2c356747d9
WX_CLEAR_ARRAY() now calls Empty() too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-12 23:37:45 +00:00
Vadim Zeitlin
09d27bb444
wxObjArray fix (part 2)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-09 00:37:15 +00:00
Vadim Zeitlin
2b9bd418c5
added WX_CLEAR_ARRAY() macro to delete all the elements of an array
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-29 16:54:48 +00:00
Vadim Zeitlin
2600d8ee0c
LISTs renamed to OBJARRAYs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-11-24 23:53:19 +00:00
Vadim Zeitlin
fd3f686c27
1. new wxList code
...
2. fixes to allow compilation at -W4 with VisualC++ 6.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-11-24 23:30:50 +00:00
Vadim Zeitlin
3093cef829
wxBaseArray::Shrink() added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-09-18 21:35:44 +00:00
Julian Smart
fbcb41664b
DLL-related changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-09-14 16:37:24 +00:00
Robert Roebling
8fdca65cf2
Removed warnings
...
Added GetCount() to wxList and wxDaynArray
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-09-12 22:11:40 +00:00
Vadim Zeitlin
c86f1403c3
globally renamed uint to size_t. This has _not_ been checked under Windows,
...
although I changed msw files also, so please wait until this evening if you
want to be sure that it compiles. This change should fix 64 bit compilation
problems, but it would be nice to test it...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-08-18 15:36:12 +00:00
Vadim Zeitlin
e99c304810
fixed compilation problems under Windows
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-07-17 08:18:57 +00:00
Vadim Zeitlin
3bfa440288
added sorted arrays: they automatically sort items on insertion (using user
...
provided compare function) and binary search in Index(). Using them in
situations where Index() performance is important brings 30%-40% performance
boost.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-07-16 17:29:46 +00:00
Vadim Zeitlin
3bfaaefe96
Last() function added (the same as Item(Count() - 1))
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-07-08 22:37:57 +00:00
Vadim Zeitlin
1311c7a9bb
wxCHECK/wxCHECK_RET changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-06-22 22:17:39 +00:00
Vadim Zeitlin
bc7665d447
Bool replaced by bool (I hope I got it right this time!)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-06-05 14:46:17 +00:00
Karsten Ballüder
c801d85f15
Initial revision
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-05-20 14:01:55 +00:00