Commit Graph

47425 Commits

Author SHA1 Message Date
Vadim Zeitlin
29cd57f79b use margin width after updating it in OnMeasureItem() (see #10452)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 18:20:58 +00:00
Vadim Zeitlin
37ddd6ea64 don't use built-in support for menu bitmaps if they are too big, they don't come out correctly then (see #10452)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 18:12:14 +00:00
Vadim Zeitlin
3d45718de5 use SetMenuItemInfo() to update the item label to avoid reseting its bitmap and so use the same code for the desktop and CE versions (see #10452)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 17:51:02 +00:00
Vadim Zeitlin
4863e55108 don't list SetSelection() as being deprecated, it isn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 17:14:41 +00:00
Francesco Montorsi
ca164e2337 better define what an ASCII character is considered to be in IsAscii()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 15:57:45 +00:00
Vadim Zeitlin
0580ddb24f no real changes, just remove unnecessary code; use wxScopedArray instead of raw one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 14:04:23 +00:00
Francesco Montorsi
8f182e0a3c document only char* variant of all string utility functions (don't use wxChar nor templates; they're only confusing; add a note for the funcmacro_string group that all functions documented also have wchar_t variants; document wxStrnlen()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:58:45 +00:00
Francesco Montorsi
6ac7ddd334 say that use of _T() is discouraged in new code, just like wxT() is
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:57:05 +00:00
Vadim Zeitlin
ddc170523c don't override the toolbar height with too small value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:53:50 +00:00
Robert Roebling
dc8928439f Fixes #10437 (wxDataObjectComposite::Add may add objects having data formats that already exist in the composite object)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:41:11 +00:00
Robert Roebling
0dd48109b4 Fixes #10432 (wxDataObjectComposite::GetAllFormats() does not work)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:36:32 +00:00
Robert Roebling
4a3d495c0c Commit Hartwig's patch for DnD in wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:29:21 +00:00
Chris Elliott
a0c800ed14 http://trac.wxwidgets.org/ticket/10457 fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:28:51 +00:00
Vadim Zeitlin
b3eb776ad6 include errno.h to fix buildbot compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 13:22:49 +00:00
Francesco Montorsi
00666804a7 remove anchor colouring not only for H2 but also for H3 and H4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 12:52:51 +00:00
Jaakko Salli
94b8ecf1cd Fixed broken 'hidden categories' mode (aka. alphabetic mode); Added distinct names and labels for the two root properties (to help with debugging); Refactored wxPropertyGridState::DoInsert()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 11:48:28 +00:00
Václav Slavík
3f8cdda485 don't include private headers from wx/unix/evtloop.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 10:58:10 +00:00
Robert Roebling
7499628f59 Explain reasoning behind using wxSIZE_FORCE_EVENT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 23:23:31 +00:00
Robert Roebling
fcdb954037 Don't call SetMinSize() on the pane as this prevents GetBestSize() from ever calling DoGetBestSize() again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 23:04:17 +00:00
Robert Roebling
8a150a2430 Remove debug code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 23:03:01 +00:00
Robert Roebling
b53aea81d2 Reorganize wxCollapsiblePane event and layout code under GTK+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 22:40:42 +00:00
Vadim Zeitlin
9966c62b28 DisableSaving/Restoring() should be void, not bool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 22:10:14 +00:00
Vadim Zeitlin
0fa541e870 add support for persistent controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 21:38:29 +00:00
Stefan Csomor
b69470e4ee workaround for crashes in release builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 20:58:08 +00:00
Robert Roebling
e47e063af2 Add wxSIZE_FORCE_EVENT and use is from wxSizerItem::SetDimension
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 20:10:44 +00:00
Robert Roebling
26f7724c4b Don't use a cached best size if the window has a sizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 20:08:14 +00:00
Francesco Montorsi
10b0f4894b cleanup code and reorganize it to reuse the same switch() for both OnChar() and Validate()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 17:22:05 +00:00
Jaakko Salli
253b70f1aa Let's make sure embedded wxPropertyGrid does not get negative size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 17:07:18 +00:00
Francesco Montorsi
398e314854 document the wxIntXX/wxFloatXX/wxCharXX types; add some comments to wxKeyCode docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 16:10:38 +00:00
Francesco Montorsi
d29505ac70 fix typo (missing closing brackets); add some comments to wxKeyCode; no real change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 16:07:19 +00:00
Václav Slavík
86e9b8f28f wxDFB: use Unix event loop and timers (fixes #10408)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 15:21:47 +00:00
Stefan Csomor
3143722d5a use native conversions that are close to the native storage of wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 15:14:38 +00:00
Václav Slavík
fada8bef05 handle EINTR when reading data from the wakeup pipe
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 14:56:08 +00:00
Francesco Montorsi
f2335ba564 s/wxUsleep/wxMilliSleep
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 11:22:19 +00:00
Robert Roebling
e81c715586 Move body of SetMinSize and SetMaxSize from header to cpp file for easier debugging. The methods are virtual anyway.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 09:49:29 +00:00
Robert Roebling
04443021bc Give wxCollapsiblePane's pane a name for easier debugging
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 09:44:50 +00:00
Robert Roebling
a20a357d92 Make GetEffectiveMinSize virtual as not being able to override the method, which the sizer system depends on, is inflexible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 09:37:14 +00:00
Vadim Zeitlin
fc50ab9081 include wx/generic/gridctrl.h too for compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 09:08:37 +00:00
Francesco Montorsi
de1ac181f2 fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 23:52:47 +00:00
Robert Roebling
55ca41b1ea Store pointer to owning wxWindow in wxPizza widget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 22:32:25 +00:00
Jaakko Salli
c12822fec7 Do not propagate key events from child controls unless they have modifiers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 17:43:35 +00:00
Vadim Zeitlin
8a012034c8 use HandleWindowEvent() instead of ProcessEvent() to avoid crashes if the toolbar left click handler throws under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 16:27:21 +00:00
Jaakko Salli
3cfde7c049 Fixed wxPropertyGridManager::CreatePropertyGrid(), corrected documentation about its use
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 16:09:46 +00:00
Vadim Zeitlin
575e4cd670 don't fall back to the only currently existing document in wxDocManager::GetCurrentView() as it breaks activation logic (#9518)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 13:04:40 +00:00
Vadim Zeitlin
f92ec19302 no changes, just corrected/completed a comment truncated in the last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 12:52:55 +00:00
Vadim Zeitlin
89d94e046d no real changes, just minor refactoring and cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 12:52:17 +00:00
Vadim Zeitlin
e61f95ea78 don't crash if we have no accelerators for the "Window" menu items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 12:51:38 +00:00
Vadim Zeitlin
26078494a0 add wxHAS_MULTIPLE_FILEDLG_FILTERS symbol to be used instead of explicit tests for the platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 12:50:06 +00:00
Václav Slavík
cd720f7e16 wxEpollDispatcher is in wxBase, not wxCore - fixed to use WXDLLIMPEXP_BASE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-29 00:26:40 +00:00
Vadim Zeitlin
6b522db5c8 correct wxDateTime DST begin/end computations for years > 2006 in USA (closes #10425)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-28 21:52:37 +00:00