Commit Graph

44 Commits

Author SHA1 Message Date
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
4b6a582bef replace more __WXDEBUG__ occurrences with wxDEBUG_LEVEL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 12:53:48 +00:00
Vadim Zeitlin
5c33522fca replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:39:52 +00:00
Vadim Zeitlin
8a18ea3f03 improve best size calculation; notably account for wxDP_ALLOWNONE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 17:50:16 +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
9c2b4cab93 removed (unused) occurrences of _WX_DEFINE_DATE_EVENTS_ (part of patch 1927817)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-06 15:41:47 +00:00
Vadim Zeitlin
5131749617 initial native implementation of wxCalendarCtrl for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-04 04:17:03 +00:00
Václav Slavík
937013e0fd 1. added wxEvtHandler::SafelyProcessEvent() and wxWindow::HandleWindowEvent() to correctly handle exceptions in even handlers in wxGTK
2. use HandleWindowEvent() everywhere as more obvious and convenient shortcut for GetEventHandler()->ProcessEvent(); also for consistency with wxGTK where it's required

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-29 17:00:58 +00:00
Vadim Zeitlin
a236aa2058 many wxItemContainer-related changes:
1. the main function for item insertion is now DoInsertItems() which allows
   for much more efficient addition of many new items at once
2. the items client data management is done entirely in wxItemContainer
   itself, the derived classes don't have to distinguish between void and
   object client data
3. many fixes for sorted controls, in particular implemented wxCB_SORT support
   in wxGTK combobox


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-26 13:54:14 +00:00
Vadim Zeitlin
0bdd807424 fix assert when the control doesn't have a valid date initially (bug 1648192)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-02 23:41:54 +00:00
Vadim Zeitlin
5541976c17 discard time part of m_date, otherwise comparisons with other dates fail
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-17 23:31:05 +00:00
Vadim Zeitlin
0c8433d097 fix for assert which happened if the checkbox was cleared in a control with wxDP_ALLOWNONE style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-03 21:31:32 +00:00
Vadim Zeitlin
280399077a don't use wxFromSystemTime() with possibly invalid date (closes bug 1596606)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-19 13:06:03 +00:00
Robin Dunn
4d5364211d Alwayas use SetValue in Create so m_date will be in sync
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 18:00:48 +00:00
Robin Dunn
82ec1f7035 Fix for always failing assert in GetValue. Save the same value that
will be tested for there (the date without any time set.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 07:09:21 +00:00
Vadim Zeitlin
e4164aa980 filter out duplicate date changed events sent by the native control (part of bug 1482773)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 16:29:33 +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
6e0f4664cc Correct dll usage for wxDatePickerCtrl under WinCE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-26 23:58:39 +00:00
Włodzimierz Skiba
b4446c2447 Fixed OpenWatcom (strange) scope related crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-26 14:56:11 +00:00
Włodzimierz Skiba
02e05e7e40 wxTinderbox build fix (!PCH support).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 13:03:40 +00:00
Vadim Zeitlin
c01359d9d5 more accurate best size calculation logic (use the current date format)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 01:22:43 +00:00
Julian Smart
64c288fa47 Compile with wxUSE_DYNLIB_CLASS and wxUSE_WXDIB set to 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-21 16:47:30 +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
Robin Dunn
31582e4e11 Patch #1203934: enable best size caching for MSW widgets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-18 02:23:01 +00:00
Julian Smart
bab3f3eac4 Applied patch [ 1184295 ] wxDateTimePickerCtrl Create() fix for wxDP_ALLOWNONE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-17 13:17:32 +00:00
Julian Smart
2a1f999faf Applied patch [ 1171542 ] access static class members via scoping operator
Paul Cornett: A static class member can be accessed as X::member,
there is no need for an object or pointer (s.member or
p->member). There are also a few bugs with incorrect
usage of wxString::Format and wxString::FromAscii.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-30 16:49:41 +00:00
Chris Elliott
8318f30f10 fix missing defines with DMC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 16:13:59 +00:00
Vadim Zeitlin
a69e2a0ac7 corrected wxRTTI macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-17 23:17:30 +00:00
Vadim Zeitlin
3200f37d25 added support for wxDP_ALLOWNONE in wxMSW; documented it; added test for it in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-13 12:57:38 +00:00
Włodzimierz Skiba
f31a409829 .empty() string decorations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-09 14:19:49 +00:00
Julian Smart
30b1153d64 Correction to previous fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-03 09:54:02 +00:00
Julian Smart
65ab10020b Fix for GCC compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-03 09:45:32 +00:00
Włodzimierz Skiba
3a0c618112 Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-24 16:41:35 +00:00
Robert Roebling
dc2e913348 Probably a bug in the MINGW32 header.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-22 19:16:43 +00:00
Vadim Zeitlin
2cfbeac814 added and implemented for MSW wxDP_SHOWCENTURY flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-20 16:22:48 +00:00
Vadim Zeitlin
0aa7cb54a9 call InitCommonControlsEx() when using comtl32.dll <= 4.72; check for date picker availability for even earlier versions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-20 11:44:10 +00:00
Vadim Zeitlin
5385747ec6 use wxDP_SPIN by default under Win32
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-19 19:39:33 +00:00
Vadim Zeitlin
29c8694822 added wxDP_SPIN/DROPDOWN styles (only Win32 native version implements the former)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-19 19:31:40 +00:00
Włodzimierz Skiba
9b877d1846 Fix for limited build required by headers of free DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 21:20:07 +00:00
Vadim Zeitlin
5bb52a5ff0 removed #ifndef __WXUNIVERSAL__ added in last commit, shouldn't be necessary any more after files.bkl to exclude this file from wxUniv builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 18:52:46 +00:00
Włodzimierz Skiba
dbd9b4dbf2 Check wxMSWUniv condition earlier.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 14:35:05 +00:00
Włodzimierz Skiba
635465c3e3 wxMSWUniv build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 14:20:52 +00:00
Włodzimierz Skiba
4510fc80f2 Missing include.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 13:45:43 +00:00
Vadim Zeitlin
feb72429e8 added API, docs and Win32 implementation of wxDatePickerCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-15 01:31:10 +00:00