Commit Graph

70 Commits

Author SHA1 Message Date
Mattia Barbon
728c62b66d Fixed wrong wxList<T>::compatibility_iterator::GetPrevious.
Added operator== and != for compatibility_iterator.
  Removed deprecation warning of wxStringList: until wxPathList
is changed not to use wxStringList, having the warning is just
annoying.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-24 19:33:59 +00:00
Vadim Zeitlin
cd989b24ae suppress warning about not being able to generate copy ctor/operator=()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 23:16:57 +00:00
Mattia Barbon
69b9f4cca4 wxUSE_STL=1 compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 22:42:12 +00:00
Vadim Zeitlin
137b730319 compatibiltiy functions should be inline, we don't want to take space hit for using them nor speed hit for the user code!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 19:56:46 +00:00
Vadim Zeitlin
6de4403884 define a special PTR version of LIST macros which should be used if you want operator->()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 19:52:00 +00:00
Václav Slavík
ff98bd681d dll compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 15:38:19 +00:00
Mattia Barbon
335991afa5 Move #inclusion of wx/msw/winundef.h for MinGW to afterstd.h.
Fix WX_DEFINE_TYPEARRAY assert to refer to base array's elemnt type
rather than to void*.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-13 20:07:45 +00:00
Mattia Barbon
fd82f4e6e9 Readd wxStringList::Add when wxUSE_STL=1, for compatibility with
wxUSE_STL=0. Fixed wxPathList double-free reported by Devid Elliot.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-12 20:34:34 +00:00
Julian Smart
5e9670446a Further WinCE mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 11:15:59 +00:00
Mattia Barbon
375894195f More MSVC fixes .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 22:24:26 +00:00
Mattia Barbon
df5168c427 Added --use-stl to cnfigure, wxUSE_STL to setup0.h
Moved wx/datetime.inl contents to wx/datetime.h and removed
inline redefinition hack.
  Implemented STL-like interface on top of wxList/wxArray, when wxUSE_STL=0.
  Implemented wxList-like and wxArray interfaces on top of std::list and
std::vector, when wxUSE_STL=1.
  Added arrstr.h, moved wxArrayString declaration there; string.h
#includes arrstr.h only if WXWIN_COMPATIBILITY_2_4 is enabled.
  Added WX_CLEAR_HASH_MAP, WX_CLEAR_HASH_TABLE, WX_CLEAR_LIST macros,
to clear a wxHashMap, wxHashTable, wxList containing pointers: deletes
pointers and makes container zero-sized.
  When wxUSE_STL=1, wxStringList works like a std::list<wxString>.
  Made wxBase compile when wxUSE_STL=1.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 19:52:35 +00:00
Mattia Barbon
f526f7526b Quick and dirty fix for building with COMPATIBILITY_2_4 off.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 17:11:19 +00:00
Vadim Zeitlin
bddd7a8d89 renamed WXDLLEXPORT_BASE/CORE to WXDLLIMPEXP_BASE/CORE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:59:24 +00:00
Vadim Zeitlin
886dd7d28e fixes needed for separate DLL build to work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:41:23 +00:00
Julian Smart
371a5b4e62 Removed erroneous copyright names and corrected licence spelling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 10:34:04 +00:00
Ron Lee
b1d4dd7add Split this out from other changes to keep things sane..
wxDeprecated KeyCode.
wxDeprecated old wxList compat methods.
Replaced a large number of them in the gtk build already, but there are
still plenty more so feel free to help nuke them as you find them.
s/^I/    / and s/TRUE/true/ etc. a couple of these too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-13 05:17:41 +00:00
Vadim Zeitlin
2b5f62a0b2 merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Gilles Depeyrot
af49c4b8a2 disable use of #pragma interface under Mac OS X
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Vadim Zeitlin
b79a8705e6 added wxList::IsEmpty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-15 19:38:46 +00:00
Gilles Depeyrot
f2af4afb82 corrected warnings when compiling with -Wall -W
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-08 14:00:23 +00:00
Robert Roebling
890f8a7c00 Applied wxList::Prepend() patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-23 18:58:25 +00:00
Vadim Zeitlin
fbfb3fb3c7 AIX compilation fixes from Paul Thiessen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-15 15:11:06 +00:00
Vadim Zeitlin
f98bd52a3e added wxRTTI macros to wxList and wxStringList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-06 01:38:08 +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
Gilles Depeyrot
799ea01170 implement out-of-line destructors where needed instead of using __DARWIN__
specific conditional compilation


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-07 21:52:28 +00:00
Gilles Depeyrot
ea48aff392 added missing virtual for overidden function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-06 14:12:11 +00:00
Ron Lee
0b9ab0bd82 Added new dynamic loading classes. (which handle proper
wxRTTI and wxModule initialisation and unloading)
Removed serialisation code from wxObject and elsewhere.
Added USER_EXPORTED hash and list macros.
Added *_PLUGGABLE_CLASS defines for exporting dynamic wxObjects
from dlls.

 ----------------------------------------------------------------------
 Modified Files:
 	Makefile.in configure configure.in setup.h.in debian/changelog
 	distrib/msw/tmake/filelist.txt include/wx/defs.h
 	include/wx/docview.h include/wx/dynlib.h include/wx/fileconf.h
 	include/wx/hash.h include/wx/list.h include/wx/module.h
 	include/wx/object.h include/wx/resource.h include/wx/stream.h
 	include/wx/gtk/setup0.h include/wx/msw/setup0.h src/files.lst
 	src/wxBase.dsp src/wxUniv.dsp src/wxWindows.dsp
 	src/common/dynlib.cpp src/common/filename.cpp
 	src/common/module.cpp src/common/object.cpp
 	src/common/stream.cpp src/gtk/files.lst src/mac/files.lst
 	src/mgl/files.lst src/mgl/makefile.wat src/motif/files.lst
 	src/msw/dialup.cpp src/msw/files.lst src/msw/helpchm.cpp
 	src/msw/makefile.b32 src/msw/makefile.bcc src/msw/makefile.dos
 	src/msw/makefile.g95 src/msw/makefile.sc src/msw/makefile.vc
 	src/msw/makefile.wat src/os2/files.lst src/univ/files.lst
 Added Files:
 	include/wx/dynload.h src/common/dynload.cpp
 Removed Files:
 	include/wx/objstrm.h include/wx/serbase.h
 	src/common/objstrm.cpp src/common/serbase.cpp
 	utils/serialize/.cvsignore utils/serialize/makefile.b32
 	utils/serialize/sercore.cpp utils/serialize/sercore.h
 	utils/serialize/serctrl.cpp utils/serialize/serctrl.h
 	utils/serialize/serext.cpp utils/serialize/serext.h
 	utils/serialize/sergdi.cpp utils/serialize/sergdi.h
 	utils/serialize/sermain.cpp utils/serialize/serwnd.cpp
 	utils/serialize/serwnd.h
 ----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-19 07:09:58 +00:00
Vadim Zeitlin
6788ecb8a9 applied patch 444915 (warning fixes for gcc 2.95.4)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-01 15:00:33 +00:00
Gilles Depeyrot
f11bdd03b9 modified configure to allow configuration of wxMotif under Darwin/Mac OS X
wxWindows can be configured as wxMac or wxMotif under Mac OS X
replaced __WXMAC_X__ define by __DARWIN__ (general Darwin related issues)
moved dlopen/dlerror code to dynlib.cpp to make it available for wxMotif


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-15 18:47:13 +00:00
Julian Smart
788722ac5c Fixes for 16-bit compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 16:13:12 +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
Vadim Zeitlin
6108b321fc fix for wxList copy ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-04 18:46:53 +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
Julian Smart
0d3a69ec70 Added project files for STC; fixed wxStringList memory leaks; small doc changes;
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-12 15:04:12 +00:00
Vadim Zeitlin
bcaa23de09 WX_DECLARE_HASH() macro for type safe hashes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-25 19:23:11 +00:00
Vadim Zeitlin
d899618714 added wxList::Insert(size_t); updated wxList documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-13 19:30:09 +00:00
Vadim Zeitlin
d5d63453b1 LINKAGEMODE moved to defs.h - string.cpp actually compiles now...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-03 11:31:47 +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
Vadim Zeitlin
ba059d80b4 wxList::SortFunc prototype corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-03 21:13:47 +00:00
Robert Roebling
385bcb3545 Install AFMs as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 11:27:46 +00:00
Robert Roebling
279338910f Added semicolon to macro in list.h - I just read that
Vadim doesn't want it there - oh well.
 Added check for XKBext.h
 Made BMP loader BIGENDIAN safe.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 22:53:14 +00:00
Vadim Zeitlin
f03fc89fff wxWindow split into wxWindowBase and wxWindow (wxGTK part)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 22:17:03 +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
Vadim Zeitlin
e146b8c8bf wxTopLevelWindows is now a wxWindowList, better compatibility with the old
wxList in list.h


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 09:43:29 +00:00
Julian Smart
ce3ed50dbe Some changes in a vain attempt to make Salford C++ work; added FAQ files;
started wxTime documentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-19 11:00:22 +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
Julian Smart
2432b92dd7 Doc & Symantec C++ fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-07 08:43:47 +00:00
Vadim Zeitlin
e2a3cc0c34 added wx<TemplateListName>::Node typedef for the node corresponding to this list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-05 22:52:22 +00:00
Julian Smart
6244848856 Changes for 16-bit BC++ (not there yet), GnuWin32; typetest sample
fixed; some documentation fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-28 12:35:49 +00:00