Commit Graph

67 Commits

Author SHA1 Message Date
Julian Smart
98080d5c19 wxFileName size patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 20:56:34 +00:00
Vadim Zeitlin
ab9a58f424 include volume in path returned by GetPathWithSep()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 13:11:18 +00:00
Michael Wetherell
20ceebaa87 Fixes for include guards, patch 1256967 Paul Cornett
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 20:49:40 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Włodzimierz Skiba
27b2dd53f6 Fixed strange situation when we had wxPathExists and wxDirExists with the same finctionality. Using wxPathExists instead wxFileExists (fixes bug #865628). Minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 17:46:32 +00:00
Robert Roebling
0b40f3d80b Changed wxFileName::SetExt() as per the discussion, added
ClearExt() and SetEmptyExt() and documented it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-04 17:31:18 +00:00
Robert Roebling
4d4edca33b Adapt SetExt() to new availability of m_hasExt. I also
added SetNoExt() as there needs to be a way to remove
   the extension. One wonders what SetExt( "" ) is supposed
   to do. Maybe adding SetEmptyExt() would be better and
   backwards compatible.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-03 19:45:24 +00:00
Vadim Zeitlin
1a6255e664 trying to fix dmc warning about potential overload ambiguity
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 17:23:19 +00:00
Vadim Zeitlin
dfecbee579 support filenames with empty extension (foo.) (bug 1078200)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 00:18:37 +00:00
Włodzimierz Skiba
683510536f Next step on bringing PalmOS build to the same filelist as in bakefiles: adjustements in file related wxAPI.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-24 18:01:42 +00:00
Vadim Zeitlin
2458d90b1d changed Remove/InsertDir() parameter type to size_t from int; added RemoveLastDir()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-13 00:55:27 +00:00
Vadim Zeitlin
4c2deb19e0 handle volume part of the path correctly in wxFileName(path, name, ext) ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-07 20:11:42 +00:00
Włodzimierz Skiba
a62848fdba Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxDefaultCoord, TRUE/true, FALSE/false, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-14 12:08:28 +00:00
Vadim Zeitlin
f1e7793361 added and documented SplitVolume() and GetPathTerminators(); corrected SetPath() to treat the volume part properly (patch 970580)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 13:59:47 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
a96b8d39fb fixed IsOk() for root directory paths
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-16 18:30:18 +00:00
Václav Slavík
ff95fdbb31 don't include GetShortcutTarget if OLE is not available; removed fake noop implementation from WinCE, it's better to let the user know it doesn't work by not providing it in the first place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-26 12:44:14 +00:00
Julian Smart
21f6094583 Added wxPATH_NORM_SHORTCUT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 13:59:13 +00:00
Vadim Zeitlin
5bb9aeb266 check directories passed to Append/Insert/PrependDir(); don't terminate string returned from GetPath() with wxPATH_GET_SEPARATOR flag with slash for the paths which don't have any path at all under DOS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-08 23:15:16 +00:00
Vadim Zeitlin
ef92f44097 wxPATH_NORM_ALL shouldn't include wxPATH_NORM_CASE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 22:04:53 +00:00
Václav Slavík
1202890513 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Vadim Zeitlin
93fa67c0e6 GetPath() now has wxPATH_GET_COLUME by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-27 22:53:23 +00:00
Vadim Zeitlin
f363e05c6d added GetForbiddenChars() and TRUE -> true (patch 757777)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 17:06:29 +00:00
Vadim Zeitlin
520200fd10 added format parameter to File/DirName()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 23:39:28 +00:00
Julian Smart
fda7962d02 Applied patch [ 761138 ] Replaces references to wxT("") and _T("") with wxEmptyString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 08:36:14 +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
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
Chris Elliott
4ce1efe123 update to make digitalmars compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-19 18:15:17 +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
Vadim Zeitlin
e2b87f38d9 allow compilation with wxUSE_DATETIME == 0 (patch 679822)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-06 00:53:46 +00:00
Vadim Zeitlin
8e41796c6c File/DirExists() are const now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-25 12:01:57 +00:00
Václav Slavík
0894707e7c added wxFileName::MakeAbsolute
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-18 00:01:18 +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
fb96947585 fixed m_relative initialization in wxFileName default ctor and Clear() (patch 597736)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 13:28:51 +00:00
Vadim Zeitlin
1527281edb fixed several bugs in Mkdir() and also modified its API to be more user friendly (based on the patch 541033 from Chris Elliott)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 16:28:50 +00:00
Vadim Zeitlin
33b97389e5 added GetPath(flags) version to allow retrieving the volume as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 16:15:43 +00:00
Vadim Zeitlin
2db991f457 minor fix to wxFileName::MakeRelativeTo(), removed broken and misleading IsWild() method, added IsDir() one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-05 11:14:09 +00:00
Vadim Zeitlin
6d3d1c2e04 committing the file which I forgot to commit yesterday (sorry)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-28 11:44:30 +00:00
Robert Roebling
a315cec968 Compile fix for wxFileName.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-28 09:08:08 +00:00
Vadim Zeitlin
6dbb903bb9 wxFileName::Get/SetTimes() finally seem to work under Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-27 23:17:41 +00:00
Václav Slavík
32a0d013e9 changed wxFileName::Normalize signature to allow or-combination of flags and reverted Julian's hack-fix to wxTextFile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-02 23:14:45 +00:00
Stefan Csomor
4dfbcdd53d added type and creator routines for mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-13 17:38:55 +00:00
Robert Roebling
a7b51bc869 Removed warning for Darwin compilation from datetime.inl
Added wxFileName::SetPath() and set m_relative if no dir is given
  Corrected wxFrame::Enable() in wxMac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-23 15:52:29 +00:00
Vadim Zeitlin
df22f86063 1. fixed file descriptors leak in wxFileName::CreateTempFileName()
2. really made it race-safe (provided we have mkstemp())


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-18 17:47:27 +00:00
Robert Roebling
353f41cb3b Reimplemented wxFileName with m_relative field.
Adapted wxFileDialog to trailing slashes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-16 12:07:44 +00:00
Vadim Zeitlin
f7d886af3a added wxFileName::MakeRelativeTo() and the tests/docs for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-04 15:13:56 +00:00
Vadim Zeitlin
81f256328c fixed Assign(fullpath, fullname)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-04 01:14:09 +00:00