Commit Graph

276 Commits

Author SHA1 Message Date
Robert Roebling
03b5e90b0e Fix mem leak.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-19 12:08:29 +00:00
Vadim Zeitlin
e44d5a5892 fix memory leak in wxGetTempFileName(const wxString&, wxString&) overload; also define wxGetTempFileName(const wxString&, wxChar *) overload in terms of the other one and not vice versa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-19 11:58:48 +00:00
Stefan Csomor
fb743cab53 cleanup for 10.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-14 15:15:00 +00:00
Włodzimierz Skiba
a8b6a1b1cd Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 08:11:10 +00:00
Robert Roebling
3ff07edb0b [ 1560785 ] wxFileName::IsReadable/Writable/Executable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-05 17:28:31 +00:00
Robert Roebling
31a8bf3fbf [ 1521481 ] wxPathList modernization
Applied part II.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-17 11:58:12 +00:00
Paul Cornett
406d283a64 build fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-17 03:02:15 +00:00
Václav Slavík
2c5e5cbdb4 wxFileModificationTime() needs wxDateTime, put it inside wxUSE_DATETIME
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-31 12:03:22 +00:00
Vadim Zeitlin
8daf3c3664 wxPathList cleanup by Francesco (patch 1521481)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 00:16:55 +00:00
Vadim Zeitlin
a8d69700fc add default value for the encoding parameter of wxMacCFStringHolder() instead of passing wxLocale::GetSystemEncoding() which doesn't work when wxUSE_INTL == 0 to it in many places (replaces 2nd part of patch 1501724)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-24 18:01:39 +00:00
Stefan Csomor
739cb14a31 making sure mac filenames are always decomposed D Unicode UTF8 and the internal wxStrings are using composed D Unicode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-30 14:24:14 +00:00
Michael Wetherell
27d98837f3 Use the posix S_ISREG instead of S_IFREG if it is defined. Fixes wxFileExists
on DJGPP where S_IFREG is defined as 0.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 18:58:12 +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
e4db172a3b Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Włodzimierz Skiba
8898456df4 wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 07:24:35 +00:00
Vadim Zeitlin
2936a6b18c implement wxFileModificationTime() in terms of wxFileName::GetTimes() (replaces broken patch 1468592)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:24:22 +00:00
Vadim Zeitlin
57e988b8ef added overwrite parameter to wxRenameFile (patch 1467041)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:14:00 +00:00
Vadim Zeitlin
b931e275f5 remove dead code from wxMatchWild (patch 1445809)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 13:39:41 +00:00
Vadim Zeitlin
e2fb71bc85 fix for wxPathList::FindValidPath() for wxUSE_STL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-27 15:14:27 +00:00
Vadim Zeitlin
3cf545c76c don't always find the file if it's in the current directory (even if it's not in the search path) (patch 1411994 closing bug 1214987)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-08 22:24:29 +00:00
Włodzimierz Skiba
13ff248506 Watcom fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-16 20:10:17 +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 Neis
fe1f34f82e Fixed wxDirExists implementation for OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-11 15:25:02 +00:00
Włodzimierz Skiba
6d3d756a6a Macros for simplified testing Open Watcom version and required tweaks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-10 16:16:05 +00:00
Włodzimierz Skiba
cdc059191b Fixed #1338966.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-07 13:47:44 +00:00
Włodzimierz Skiba
ce045aed58 wxGetWorkingDirectory() deprecated. Fixed #1338966.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-07 13:27:09 +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
Vadim Zeitlin
7682e22edb blind compilation fix for cygwin Unicode build (bug 1296144)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-20 09:52:14 +00:00
Michael Wetherell
217e77c3c0 Let wxGetFileKind(FILE*) return wxFILE_KIND_UNKNOWN for NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-13 21:08:10 +00:00
Włodzimierz Skiba
c40158e40b Corrections for future OW 1.4. Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-26 09:05:27 +00:00
Włodzimierz Skiba
7448de8d8d [1231183] 'cleanup: mismatched indentation' and other cleanings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 17:08:42 +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
Włodzimierz Skiba
7bea7b9148 Helpers in disabling warnings for unused params.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-30 15:31:20 +00:00
Vadim Zeitlin
41cc03ddff reimplemented wxFileModificationTime() for CE without using wxDateTime (it also should be more efficient like this)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-19 23:50:11 +00:00
Włodzimierz Skiba
963ad140d0 Second part of '[ 1216148 ] cleanup: unused variables and declarations'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-08 14:32:16 +00:00
Włodzimierz Skiba
b0c5cd0ff3 Reuse wxTempFile and wxFile in wxConcatFiles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 18:46:10 +00:00
Julian Smart
3103e8a97e Typo correction patch [ 1208110 ] Lots of typo corrections
Olly Betts


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Michael Wetherell
8df9a8a047 No wxGetOSFHandle for Wine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-25 16:05:22 +00:00
Julian Smart
80b1db47a6 Wine fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-17 12:09:01 +00:00
Julian Smart
e55a0db6cd Winelib fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-17 09:56:22 +00:00
Chris Elliott
aac71f4f44 get the path in windows format for cygwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-02 10:22:41 +00:00
David Webster
18ed8e0032 Unicode fixes for OS/2 (all inside #ifdef __WXPM__ blocks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-27 01:17:45 +00:00
Włodzimierz Skiba
9843873049 Build fix for wxUSE_FILE=0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-15 16:49:36 +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
Michael Wetherell
9af00f5f79 OpenWatcom fixed the problem of fileno being missing, and so it should be
there in OW 1.4 when it comes out.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-03 20:39:44 +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
Michael Wetherell
74fe675195 The DLL version of Watcom's C runtime doesn't have fileno, but the static
version does


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 01:24:40 +00:00
Vadim Zeitlin
abf912c5a1 harmless warning fixes for WinCE (mostly unused parameters)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 19:26:51 +00:00
Michael Wetherell
9802983f15 Fix for problem with wxGetFileKind on WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-05 23:24:17 +00:00