Commit Graph

284 Commits

Author SHA1 Message Date
Vadim Zeitlin
5ab9534bc6 fix GetSize() for large files (patch 1680876)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 00:18:05 +00:00
Václav Slavík
49a70977b3 constructing a sentence dynamically is not i18n-friendly, fixed to use two separate translatable strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-14 12:04:26 +00:00
Vadim Zeitlin
9e1c7236e0 don't treat foo in c:\\foo\bar as network share
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-17 14:52:10 +00:00
Vadim Zeitlin
698581160d for for initializing wxFileName with empty string returning true from IsOk() and tests for the correct behaviour (patch 1617156)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-16 23:11:48 +00:00
Vadim Zeitlin
b517351bc5 GetLongPath() should just do nothing under CE as there are no short/long paths there (patch 1612271)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-10 15:35:41 +00:00
Robert Roebling
51cb1a6587 Restore correct behaviour of GetTimes() wrt to
directories.
  Add some (hopefully) clarifying docs about
    dealing with dir names vs. file names.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-18 17:34:40 +00:00
Michael Wetherell
693bfcafb6 Fix for CreateTempFileName with wxFFile for Windows. Also _open_osfhandle
requires O_BINARY on Borland, and the others don't seem to mind it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-07 23:48:24 +00:00
Julian Smart
d5a0a2bcf8 IsDir() test is pretty useless, use DirExists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 15:30:38 +00:00
Robert Roebling
bf7f7793e9 [ 1585253 ] Various important bugfixes to wxFileName::Normalize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 21:08:21 +00:00
Julian Smart
8d7d6deac6 Added GetTempDir
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-23 17:47:02 +00:00
Michael Wetherell
b70a2866d5 wxFileName::CreateTempFileName changes. Open the tempfiles read/write. Allow
self delting temp files to be created, where the OS supports it. Add support
for opening wxFFile temp files.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-23 13:10:12 +00:00
Włodzimierz Skiba
57bd4c6031 Include wx/msw/wrap*.h according to pch support (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 19:01:45 +00:00
Włodzimierz Skiba
cdbce971ec Keep wxPalmOS buildable - missing functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 14:27:41 +00:00
Vadim Zeitlin
cea0869cdf fixed a crash and a leak in GetShortcutTarget() (closes bug 1541321)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-22 12:21:24 +00:00
Julian Smart
23b8a26299 Applied patch [ 1531615 ] size support for wxFileName
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 15:30:28 +00:00
Vadim Zeitlin
db759dde87 use GetPath() instead of GetFullPath() in the directory-oriented functions (patch 1482016)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 22:44:04 +00:00
Włodzimierz Skiba
de6185e212 Include wx/utils.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-02 10:39:23 +00:00
Włodzimierz Skiba
ad9835c97c Include wx/dynarray.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-19 14:18:39 +00:00
Julian Smart
dd28209328 Use temp directory and don't prepend two backslashes, on WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-02 12:46:06 +00:00
Julian Smart
6091caf088 Applied patch [ 1381016 ] wxFileName should use TMPDIR
Paul Cornett


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 09:44:03 +00:00
Włodzimierz Skiba
bcfa2b3184 Minor cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-17 18:26:28 +00:00
Julian Smart
d8a832f38f Applied patch [ 1370718 ] WinCE does not support drive letters
Mike Wolfram


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-17 09:28:52 +00:00
Stefan Neis
bf58daba38 Some OS/2 specific improvements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-15 22:16:02 +00:00
Stefan Csomor
53a410d1b2 add reasonable default TEMP for __WXMAC__ when running under __DARWIN__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-10 13:18:18 +00:00
Vadim Zeitlin
17a1ebd101 first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +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
7a893a3152 wxOS2 with Open Watcom: correct PCH usage, missing headers, warning fixes, source cleaning and other Watcom adjustements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-21 16:22:28 +00:00
Julian Smart
f05ba7ff38 Applied patch to fix silly filenames in CreateTempFileName
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-30 08:30:43 +00:00
Włodzimierz Skiba
4377d3abc8 Build fix (Watcom).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-06 18:01:08 +00:00
Vadim Zeitlin
2f3d9587ab fixed GetLongPath(): it never used ::GetLongPath() before and didn't work at all when called for the first time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-04 19:36:25 +00:00
Włodzimierz Skiba
da865fdd32 Deprecate wxPathExists, make wxDirExists used everywhere, minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 16:10:48 +00:00
Włodzimierz Skiba
489f6cf713 Fix for ambiguities which happen in STL=1 mode under DigitalMars C++.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-24 20:01:55 +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
Vadim Zeitlin
284be59b10 compilation fix for non-debug build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 10:53:55 +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
Stefan Csomor
1a183bb1d3 NULL warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-06 16:28:03 +00:00
Włodzimierz Skiba
b494c48b31 .empty() string cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-01 19:37:36 +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
Vadim Zeitlin
2fb5a4ce63 made IsPathSeparator(NUL) work (by returning false)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-07 20:06:37 +00:00
Włodzimierz Skiba
86dd82baf9 Oups :-( incomplete previous undo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 01:25:38 +00:00
Włodzimierz Skiba
1c6f24145e Correct fix to the compile time assert under OW. Kudos to Vadim to the tip.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 01:20:58 +00:00
Włodzimierz Skiba
7da60d7c18 OW warning fix. Our compile time asserts warns when used within function and dedicated #pragma seems not influence it so they are moved from functions into global space as near as possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 21:00:17 +00:00
Włodzimierz Skiba
ad81647631 Warning fix for wxDateTime_t <-> MSW data exchange.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 17:42:33 +00:00
Julian Smart
59ba321bca Workaround for incorrect header in some versions of Mingw32
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-09 13:39:57 +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
Stefan Csomor
a2b772607a FSRef transition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-24 19:39:50 +00:00
Dimitri Schoolwerth
ba623ba295 doc typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 14:38:41 +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