Vadim Zeitlin
d98a58c543
Use __WINDOWS__ for OS kind checks and reserve __WXMSW__ for GUI toolkit.
...
This change prepares the way for using wxGTK under Windows as this would
still define __WINDOWS__ but use __WXGTK__ instead of __WXMSW__.
Closes #14064 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:31 +00:00
Vadim Zeitlin
bd362275b8
Remove Palm OS port.
...
The platform targeted by this port doesn't exist any more and the port never
achieved really working state so remove the code to avoid having to maintain
it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 01:05:28 +00:00
Vadim Zeitlin
fb7ce3e8cc
No changes, just moved wxLocaltime_r() and wxGmtime_r() to wx/time.h.
...
These functions are used by wxGetTimeZone() defined in time.cpp and so need to
be available from wx/time.h. This is also the most logical place for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-27 20:28:43 +00:00
Dimitri Schoolwerth
4c51a665c6
Fixed various typos.
...
Applied patch by snowleopard2 fixing a bunch of typos such as misspellings and double words in the documentation. Combined the patch with some local queued typos waiting to be committed as well as adding new typo fixes inspired by the patch.
Function names with American spelling were not changed nor was third-party code touched. The only code changes involve some changes in strings that are translated ("Can not" -> "Cannot").
Closes #13063 (again).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-22 14:17:38 +00:00
Vadim Zeitlin
5ed8879eaf
Make wxDateTime::Tm::yday public and document it.
...
There doesn't seem any reason to allow access to all the other struct Tm
fields but not yday so make it public, fill it in correctly when creating Tm
without using its ctor from struct tm and document struct Tm itself including
its yday field.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-09-26 22:11:21 +00:00
Vadim Zeitlin
10acc3ef6a
Ignore time component of SYSTEMTIME in wxCalendarCtrl.
...
Native month calendar functions doesn't always return correct values in the
time part of SYSTEMTIME so ignore it and use just the date component.
To simplify doing it, add helper (MSW-specific) SetFromMSWSysDate() and
GetAsMSWSysDate() functions which convert between wxDateTime and SYSTEMTIME
but take only date component into account.
This commit partially replaces changes of r63560 and closes #11276 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-04 21:59:17 +00:00
Paul Cornett
a243da29c8
make array data fully const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-02 17:28:45 +00:00
Vadim Zeitlin
e9670814f5
Use UTF-8 for all non-ASCII characters in the sources.
...
Avoid mixing Latin-1, UTF-8 and Mac Roman (?) encodings in different source
files, use UTF-8 everywhere.
See #11116 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-18 16:16:12 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
57563c712b
Use wxINT32_MAX instead of LONG_MAX as the upper bound in wxDateTime::IsInStdRange().
...
Under Debian Linux 64 bit time_t is 64 bit long but libc doesn't seem to handle values beyond 2^32
correctly, e.g. wrong results are returned from localtime() for them. And it would seem that platforms
where sizeof(long) > sizeof(time_t) might exist too so it seems safer to only work with 32 bit time_t
values until we can reliably detect platforms which support 64 bit ones.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 17:56:35 +00:00
Vadim Zeitlin
dd36b5a3e5
don't redefine HAVE_STRFTIME as it can already be defined by configure ( closes #10861 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-31 18:57:20 +00:00
Vadim Zeitlin
89a7e1ff98
Added wxLOCALE_DATE/TIME_FMT support to wxLocale::GetInfo().
...
- Implement for POSIX and Win32, TODO for OS X
- Use this instead of ad hoc code in wxDateTime::ParseFormat()
- Remove HAVE_STRPTIME, we don't need nor use strptime() any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 17:15:43 +00:00
Vadim Zeitlin
c398434d92
abandon attempts to make wxAnyStrPtr behave as bool: user-defined logical operators don't short circuit silently breaking existing code so it is better to not provide them at all; instead simply return bool from the new versions taking wxString::const_iterator; advise to use the new versions in the new code and so in our own files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 09:54:10 +00:00
Vadim Zeitlin
c5e8b33639
compilation fixes for wxAnyStrPtr for VC6
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 00:44:25 +00:00
Vadim Zeitlin
254696bb8f
return a wxAnyStrPtr covnertible to either narrow or wide char pointer from wxDateTime::ParseXXX() methods to improve compatibility with wx 2.8 and also simplify the code ( closes #9560 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 23:21:29 +00:00
Vadim Zeitlin
e538985edc
added GetEnglish{Month,WeekDay}Name()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 16:51:10 +00:00
Francesco Montorsi
48fd6e9dd7
build fix (part of r59673, r59656)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 21:42:43 +00:00
Vadim Zeitlin
d3b9f782ef
don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-19 13:55:27 +00:00
Vadim Zeitlin
7929902d65
no real changes, just fixed all occurences of 'occurence' typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 12:10:58 +00:00
Vadim Zeitlin
425eee4164
correct some compatibility problems with the existing Unicode-mode code ( #9513 ), more remains to be done ( #9560 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-09 22:50:55 +00:00
Vadim Zeitlin
f7541d4807
corrected bug in wxTimeSpan::IsShorterThan() for equal time spans (ticket #9539 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-05 23:51:04 +00:00
Vadim Zeitlin
154014d681
added wxDateTime::SetFrom/GetAsMSWSysTime() ( #9161 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-22 00:49:27 +00:00
Vadim Zeitlin
9b4da62701
PalmOS compilation fixes (wx-trunk-out.diff part of patch 1894861)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-02 00:43:06 +00:00
Vadim Zeitlin
a0bcd61bbc
compilation fix for wchar_t-based builds after ParseISOXXX() additions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:38:11 +00:00
Vadim Zeitlin
f3f2e255b4
added wxDateTime::FormatISOCombined() and ParseISODate/Time/Combined()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 13:04:56 +00:00
Vadim Zeitlin
fcd47970b8
correct wrong last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 01:36:24 +00:00
Vadim Zeitlin
3371873669
added another ParseFormat() overload for better backwards compatibility
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 01:35:28 +00:00
Vadim Zeitlin
71ebd60b06
make wxDateTime::ParseXXX() functions char*-friendly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 00:17:45 +00:00
Vadim Zeitlin
75a29ef15c
added configure option for wxUSE_AUTOID_MANAGEMENT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-06 21:01:38 +00:00
Vadim Zeitlin
1cf57808cb
fix bug with parsing negative time zones in ParseRfc822Date()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-30 23:35:40 +00:00
Stefan Csomor
92f89387a8
cleanup mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-20 07:19:33 +00:00
Julian Smart
135d1ad065
Applied patch [ 1764987 ] fix localtime link error using wm5 SDK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 12:14:09 +00:00
Vadim Zeitlin
d3c58c7ec0
use wxLongLong::ToLong() and not GetLo() to extract time_t value in GetTicks(): they are very different on 64 bit platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 13:43:57 +00:00
Václav Slavík
b5dbe15d0b
added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +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
Vadim Zeitlin
4bd5322403
use wxINT32_MIN, not LONG_MIN, in wxDateTime default ctor to fix it under LP64 platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-05 15:01:48 +00:00
Vadim Zeitlin
a56a1234a5
removed wxABI_TESTS, they're irrelvant in 2.9
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-31 03:40:59 +00:00
Vadim Zeitlin
bc94d944d0
use LLONG_MIN instead of -1 (which is a valid time value corresponding to 1ms before Epoch) for the invalid wxDateTime m_time value
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-24 17:37:54 +00:00
Vadim Zeitlin
fb96cf856e
added wxDateTime::GetDateOnly()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-18 14:06:37 +00:00
Vadim Zeitlin
18c7af7e80
suppress a CodeWarrior warning about long to int conversion (bug 1616948)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-17 15:49:46 +00:00
Robin Dunn
56560c387f
Add DLL export macros
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-05 21:20:51 +00:00
Vadim Zeitlin
34f90a1cfe
added NZST and NZDT time zones (request 617912)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 00:05:56 +00:00
Vadim Zeitlin
a333edbddf
added non-static GetCentury(), removed default value for static GetCentury() parameter which didn't make any sense at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-20 13:40:11 +00:00
Vadim Zeitlin
bd35ed323f
added wxTimeSpan::Millisecond[s]() for consistency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 00:58:44 +00:00
Vadim Zeitlin
9c21e80bb0
seconds and milliseconds in wxTimeSpan ctor should be long long, not long
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 00:52:57 +00:00
Włodzimierz Skiba
ca3e85cfa8
Better backward compatibility and deprecation markup for interface deprecated in comments.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 14:04:17 +00:00
Włodzimierz Skiba
740af654d1
Watcom does not accept #warning but supports more than MSW port.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-10 19:39:28 +00:00
Stefan Neis
5b52a68426
No obnoxious warnings if threading is disabled.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-31 18:56:32 +00:00
Stefan Neis
cf44a61c24
Added implementation for wxLocaltime_r/wxGmtime_r.
...
Improved handling of windows compilers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-18 19:24:11 +00:00
Vadim Zeitlin
33d5c15653
blatant compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-18 16:03:26 +00:00