Vadim Zeitlin
e5a573a28b
don't treat filenames starting with dot as having empty name and extension equal to the full name without dot (was done like this only for Unix and VMS before, now do it for all platforms)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-22 21:56:44 +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
54bcff35e0
let wxFileName::GetModificationTime() work with files already opened [maybe in another application]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-28 10:48:34 +00:00
Vadim Zeitlin
55268a3aa0
normalize the case of the volume names too (patch 925887)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 22:15:02 +00:00
Vadim Zeitlin
3a5bcc4db0
removed Win16 code (patch 905241), last version with remains of Win16 support tagged with BEFORE_WIN16_REMOVAL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 13:10:14 +00:00
Václav Slavík
6bda7391c1
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@25382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-26 12:53:39 +00:00
Stefan Csomor
5974c3cf06
extensions management unified
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-25 15:12:02 +00:00
Julian Smart
5671b3b68f
Added comments for WinCE shortcut suggestion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 10:02:08 +00:00
Julian Smart
00cb0756b4
Correction for gcc
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-21 13:19:44 +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
Julian Smart
9b3a382041
Applied patch [ 850594 ] wxFileName(_T("/fred")).GetFullPath() asserts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 11:10:15 +00:00
Stefan Neis
5a3912f2ab
Fixed & improved file handling on OS/2.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-23 22:29:46 +00:00
Dimitri Schoolwerth
3e778e3bde
Fixed gcc compiler warning (size_t was assumed to equal an unsigned int).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-20 18:18:58 +00:00
Vadim Zeitlin
034742fcd6
fix for mistakenly prepending slash to the filenames without paths (bug introduced by last check in)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-21 22:45:28 +00:00
Vadim Zeitlin
05e1201cb5
wxFileName::Normalize(wxPATH_NORM_ENV_VARS) now works
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-08 23:22:00 +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
Stefan Neis
5d66debfce
Minor correction for OS/2.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 09:52:09 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Mattia Barbon
de564874d6
Use wxStringBuffer[Length] instead of explicit calls to
...
wxString::get/UngetWriteBuffer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 09:41:26 +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
Vadim Zeitlin
cef9731ad9
treat the string passed to MakeRelativeTo() as directory even if it doesn't have a trailing slash
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 21:22:39 +00:00
Václav Slavík
9ed0d735d5
added <windows.h> wrapper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-15 18:52:32 +00:00
Julian Smart
1c193821a9
More WinCE mods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 11:21:47 +00:00
Stefan Csomor
e0ebbbd9e9
pid removed from temp file name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-04 19:54:31 +00:00
Mattia Barbon
ba8c160144
Moved some methods/classes inside COMPATIBILITY_2_4.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-03 21:59:55 +00:00
Stefan Csomor
31907d0307
unicode and __MACH__ additions for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-29 15:50:13 +00:00
Stefan Csomor
44c44c82a3
wxMac Unicode support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-27 20:21:51 +00:00
Julian Smart
55d99c7a77
Fixed copyrights and licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:28:33 +00:00
Stefan Csomor
6b9eeef230
applied fix to MkDir for mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-01 21:09:23 +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
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
Julian Smart
b5b62eea2d
Applied patch [ 601072 ] wxFileName::GetLongPath error & fix
...
By Michael Fielding (mfielding)
When using wxFileName::MakeRelativeTo with a new base of "x:\", the result is incorrect. It works fine when there is a subdirectory after x:\. I tracked this to a bug in GetLongPath; here is the fix.
Also, GetLongPath will now try and get as much long path as it can, failing only when part of the path cannot be found. eg
x:\existi~1\file not existing.new becomes
x:\existing directory\filenotexisting.new
instead of just staying the same.
Also, MakeRelative no longer makes filenames lowercase when it normalises them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:42:12 +00:00
Stefan Neis
01c9a906d7
EMX (OS/2) defines _MAX_PATH only
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:26:31 +00:00
Stefan Csomor
79654e256b
getting rid of warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 18:34:24 +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
Stefan Csomor
a397f85cd7
const char correction for mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-19 19:34:13 +00:00
Robert Roebling
ca11abde11
Lots more Unicode fixes.
...
wxClipboard fixes for GTK2 and UTF8.
wxFileConfig now uses wxConvLocal to convert text
and doesn't crash anymore..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-19 17:02:10 +00:00
Vadim Zeitlin
74cf9763b4
Fixed size buffers are not a good thing. Period.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 23:16:25 +00:00
Robert Roebling
aed08d7967
(char*)(const char*)xxx.mb_str() is not a good
...
thing under Unicode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-10 14:41:37 +00:00
Robert Roebling
92980e9076
Changed wxStat, wxAccess and wxOpen to no longer
...
being just a define so that the signature is
using wxChar under Unicode under Unix just as
it does under Unicode under Mac. This required
some modification in various places, but should
make debugging a little easier, among others.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 21:44:50 +00:00
Robert Roebling
401eb3dec2
Lots of Unix/Unicode compile fixes, some of which
...
are just #ifdef 0 such as the wxExecute calls
in gdcps.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-05 18:04:08 +00:00
Vadim Zeitlin
e83ecba968
fixedb ug with normalization of UNC paths (patch 558701)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-23 22:01:36 +00:00
Vadim Zeitlin
2361ce822f
no, we shouldn't inconditionally add the separator at the end even if wxPATH_GET_SEPARATOR was specified -- this is wrong for file names without path at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-22 22:47:15 +00:00
Stefan Csomor
0ca4ae936b
filename workaround CW bug in debug builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-08 22:52:40 +00:00
Vadim Zeitlin
81be7e075d
fixed wxFileName::GetModificationTime()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-27 11:05:42 +00:00
Julian Smart
54905eba2a
Fixed my sloppy fix for redundant path separators
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-26 09:52:10 +00:00
Julian Smart
4e1c35f810
In GetPath(), don't append separator if there's already one at the end
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-25 10:25:45 +00:00