Commit Graph

10539 Commits

Author SHA1 Message Date
Václav Slavík
90a77e6484 make wxSetEnv compatible with ANSI and Unicode, deprecate passing NULL to it in favour of wxUnsetEnv()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 20:02:49 +00:00
Václav Slavík
00711afdd6 return wxString from wxDynamicLibrary::GetDllExt()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 19:29:07 +00:00
Václav Slavík
593177c566 use wxString in wxFileSystem::FindFileInPath()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 17:39:27 +00:00
Václav Slavík
d993e05b2d wxLog::Get/Settimestamp() now use wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 14:51:10 +00:00
Václav Slavík
a5398eb9c4 return wxString from wxTextBuffer::GetName()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 13:54:23 +00:00
Václav Slavík
dc65c743e5 changed wxFFileOutput/InputStream ctor 'mode' argument to wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 11:57:48 +00:00
Václav Slavík
35f1f4f7ea changed wxGLContext::SetColour() argument from wxChar* to wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 11:54:36 +00:00
Václav Slavík
c5d7b81ecf improve XRC loading performance on Unix by avoiding MIME database loading
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 18:43:34 +00:00
Václav Slavík
300b44a933 fixed wxString iterators linked list corruption
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 08:55:11 +00:00
Václav Slavík
69cce15178 determine wxFSFile's MIME type when wxFSFile::GetMimeType() is called instead of creating it; this dramatically improves startup times of XRC applications on Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-17 10:59:01 +00:00
Vadim Zeitlin
b01204c942 fix unused parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 23:57:25 +00:00
Václav Slavík
994f04a3f2 wxUSE_STL compilation fixes for wxGenericFontDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 17:32:09 +00:00
Václav Slavík
410390cf09 removed code for compatibility with OS X <= 10.2, 10.3 is the minimum since wx-2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 17:15:16 +00:00
Vadim Zeitlin
80820772ad changed wxIsxxx() to return bool, not int, to avoid int->bool conversion warnings from VC++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 14:45:01 +00:00
Václav Slavík
f966a73d40 fixed FromUTF8() to accept NULL as well as len==npos; this fixes crashes when loading XML files in UTF-8 build with wxUSE_STL=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 14:29:52 +00:00
Vadim Zeitlin
1663c65500 show the unhandled exceptions in debug build instead of silently eating them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 14:20:16 +00:00
Vadim Zeitlin
724b119a15 replace wxDocument::GetPrintableName(wxString&) and wxDocManager::MakeDefaultName(wxString&) with GetUserReadableName() and MakeNewDocumentName() which return wxStrings directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 12:49:56 +00:00
Václav Slavík
6ae3ead6f0 always compile at least a minimal version of wxStandardPaths class, it's used too often
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:21:57 +00:00
Václav Slavík
c560da981a use char* instead of wxChar* for XRC IDs to save space; GetXRCID() takes wxString argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:12:51 +00:00
Vadim Zeitlin
5d88a6b579 added wxDEPRECATED_BUT_USED_INTERNALLY macro and use it for the old wxLog::DoLog() overloads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:08:51 +00:00
Jouk Jansen
28ffb1f22f Committing in .
Changes to make OpenVMS compile WX

 Modified Files:
 	wxWidgets/include/wx/wxcrt.h wxWidgets/include/wx/wxcrtbase.h
 	wxWidgets/src/common/wxcrt.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 12:52:25 +00:00
Václav Slavík
049908c573 make wxFrame a wxControlContainer too, so that it behaves in the same way as wxDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 16:29:23 +00:00
Vadim Zeitlin
105260e89f overload wxStrpbrk() for more types and add tests for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 15:31:09 +00:00
Václav Slavík
1757c449c4 removed redundant #include <dynarray.h>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 15:09:41 +00:00
Vadim Zeitlin
7c37eb10fd added wxNullPtr and use it instead of just 0 with wxFileTypeInfo vararg ctor to fix crashes under 64 bit architectures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 11:32:44 +00:00
Václav Slavík
e9c7391947 added missing #includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 10:52:10 +00:00
Václav Slavík
12e8247795 use wxString in wxDateTime methods (only partially done)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-12 18:41:27 +00:00
Václav Slavík
a007b626a7 wxUSE_UNICODE_MSLU compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-12 17:08:23 +00:00
Václav Slavík
541aa82180 fixed VC6 warnings about non-dllexported members in dllexported classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 19:59:11 +00:00
Václav Slavík
ae51cebbe6 compilation fix for gcc 3.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 19:57:01 +00:00
Julian Smart
f728025eae Added a new overload of wxDecToHex and used it in wxRichTextImageBlock::WriteHex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 17:16:59 +00:00
Václav Slavík
4e5b3a4eb5 added long int operators to wxUniChar (fixes wxMac compilation)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 12:16:14 +00:00
Václav Slavík
5bce3e6feb use wxString argument and not wxChar* in wxHtmlParser::AddText(), for compatibility with STL build without implicit wxString conversions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 12:11:15 +00:00
Václav Slavík
01c0981e75 added wchar_t, wxUniChar overloads for wxStrchr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 12:00:09 +00:00
Václav Slavík
ec74e45971 gcc on OS X has problems with compiling empty files on SMB shares, added a comment to make macsock.h non-empty
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 07:49:10 +00:00
Václav Slavík
8728cae3bf OS X compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 07:12:37 +00:00
Václav Slavík
872ef9434a ATTRIBUTE_PRINTF doesn't work with wchar_t* format strings in gcc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 06:34:45 +00:00
Václav Slavík
3a3dde0d44 use wx/crt.h as the 'official' header for wxCRT wrappers instead of wxchar.h; add comments explaining that users should include wx/crt.h to implementation headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 06:08:13 +00:00
Václav Slavík
eb9524ca66 1. made CRT wrappers definitions indepenent of wxUSE_UNICODE: both ANSI and Unicode variants are now defined
2. split wxcrt.h into wxcrtbase.h with lowlevel compiler-specific definitions and wxcrt.h with ANSI- and Unicode-compatible wx wrappers


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 20:44:27 +00:00
Václav Slavík
8650108199 don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Václav Slavík
52de37c78f 1. made CRT wrappers definitions indepenent of wxUSE_UNICODE: both ANSI and Unicode variants are now defined
2. split wxcrt.h into wxcrtbase.h with lowlevel compiler-specific definitions and wxcrt.h with ANSI- and Unicode-compatible wx wrappers


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:14:14 +00:00
Vadim Zeitlin
c475be6dfa make PositionTextCtrl() virtual (patch 1734405)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 16:32:06 +00:00
Václav Slavík
1fc10687bf added wxUniChar::AsUTF8() for easy conversion in UTF8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-08 20:17:34 +00:00
Julian Smart
125892b804 Init fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-07 20:28:50 +00:00
Robert Roebling
c0a66d9237 Added initial OS X implementation of the wxDataViewCtrl
in its current tabular form.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-06 23:40:24 +00:00
Václav Slavík
aec1621e4f marked WinCE implementations of wxOpen etc. functions as dllexported
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-06 15:56:44 +00:00
Václav Slavík
eb6cb20793 fixed wxScanf() etc. to compile with Visual C++ again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-06 13:48:24 +00:00
Vadim Zeitlin
4c2a8d899d compilation fix after last commit: make wxAppConsole a class, not typedef, under non-Unix as we can't forward declare a typedef
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-05 17:31:10 +00:00
Vadim Zeitlin
e0954e729d rename old wxAppConsole to wxAppConsoleBase and wxAppConsoleUnix to wxAppConsole for consistency with wxAppBase/wxApp and to fix the bug 1729377 (crash when using timers under Unix in console app); also #define wxApp as wxAppConsole instead of declaring it as a real class in console build to avoid problems with ODR violation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-04 13:39:23 +00:00
Vadim Zeitlin
74e10fcc6a reset one shot timer internal state instead of leaving it thinking that it's still running (mdified patch 1730597)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-04 13:34:54 +00:00