Commit Graph

46589 Commits

Author SHA1 Message Date
Vadim Zeitlin
6124b13407 replace CPPUNIT_ASSERTs with CPPUNIT_ASSERT_EQUALs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 09:47:39 +00:00
Vadim Zeitlin
cece89a494 don't crash if the extra controls are not used in the file dialog (closes #10260)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 09:40:40 +00:00
Vadim Zeitlin
90dea0376a don't change the value of the hash element if insert() didn't add it (closes #10261)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 09:34:48 +00:00
Chris Elliott
5953e7c7d6 fix for Borland compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 09:26:58 +00:00
Vadim Zeitlin
69e037ac39 many improvements and corrections from Charles (see #10276)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 09:03:50 +00:00
Vadim Zeitlin
1d9301a914 PCH-less build fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 08:47:30 +00:00
Vadim Zeitlin
482d06f8b5 made wxHeaderCtrl::GetColumn() const to get rid of the const_cast<>s
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 00:11:57 +00:00
Vadim Zeitlin
af67f39da8 added wxRearrange{List,Ctrl,Dialog} and use it in wxHeaderCtrl and wxGrid to provide a way to interactively customize the columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 23:56:56 +00:00
Robert Roebling
74a98b9938 Fixes #10246: wxDataViewCtrl - first row does not react on return-key
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 22:02:40 +00:00
Robert Roebling
5179bc0bca Fixes #10247: wxDataViewCtrl - event is generated when clicking on a non existing row
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 21:57:40 +00:00
Chris Elliott
ddabd45b61 same as r57054 in 2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 21:46:21 +00:00
Chris Elliott
053025ac94 same as r57053 in 2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 21:26:55 +00:00
Robert Roebling
739a839903 Added wxDataViewCtrl::IsExpanded(item)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 21:23:55 +00:00
Francesco Montorsi
4ce846b17c typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 20:42:12 +00:00
Francesco Montorsi
9eab0f6c3a don't remove docs for wxThreadHelper::Create; list it in deprecated methods changelog section
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 19:44:49 +00:00
Vadim Zeitlin
31ec8b4e15 added wxGrid::SetColumnsOrder() too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 15:53:38 +00:00
Robert Roebling
5801b3ec87 Mention header control in Category page
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 15:27:04 +00:00
Vadim Zeitlin
92dbce737d mention that mouse events carry position in window coordinates of the window which generated the event (#10274)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 14:52:29 +00:00
Vadim Zeitlin
f022dc238a fix initial best size of (check) list boxes under MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 13:59:04 +00:00
Bryan Petty
d9a092733d Moved wxWeakRef template docs from the misc category to the smart pointers category.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 07:15:44 +00:00
Vadim Zeitlin
a1e62aaaa6 the dialogs documented here are defined in wxcore, not wxbase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 22:54:29 +00:00
Vadim Zeitlin
613de0e89e handle actions of the columns popup menu in wxHeaderCtrl itself (but the derived class must implement UpdateColumnVisibility()); also renamed wxHD_DRAGDROP to wxHD_ALLOW_REORDER as it will be possible to reorder columns interactively using a customization dialog and not just by dragging them soon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 22:42:37 +00:00
Bryan Petty
c2ee27612a Fixed the incorrectly placed parenthesis so ScrollWindow is always called if there are window children.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 19:14:07 +00:00
Vadim Zeitlin
c4789bf6d1 PCH compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 12:22:54 +00:00
Vadim Zeitlin
e8f25dbbce added a helper function to show the popup menu allowing to configure the columns in header control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 11:03:59 +00:00
Vadim Zeitlin
565382de29 disable UI updating during GetPopupMenuSelectionFromUser() execution to avoid unexpected clashes between the ids used in it and the update UI handlers elsewhere in the program
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 11:02:49 +00:00
Vadim Zeitlin
fe79f76ba9 added helper Is{Col,Row}Shown()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 10:44:29 +00:00
Vadim Zeitlin
3039ade95d renamed GetColHeader() to GetGridColHeader() for consistency with the other existing accessors (even if this is redundant) and made it public/documented (also documented the others)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 10:34:04 +00:00
Vadim Zeitlin
22f4180e59 return correct (false) value in onSeparator from FindColumnAtPoint() when the position is beyond the last column
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 10:08:50 +00:00
Vadim Zeitlin
6115b1b5d9 don't leave nrows/ncols uninitialized in wxGridSizer::CalcRowsCols()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 09:49:57 +00:00
Vadim Zeitlin
59704b49c2 don't mistake a simple click on a column for a reordering drag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 23:12:30 +00:00
Vadim Zeitlin
2e733ec74c fix several bugs in index/position translation code between wx and MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 22:54:34 +00:00
Vadim Zeitlin
3b367af8cd added a button to reset the column order and the display of hidden columns to the tabular grid frame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 22:07:44 +00:00
Vadim Zeitlin
040b9528d1 don't use the hack with adding hidden columns to the native control because it doesn't play well with resizing; maintain the mapping between wx and MSW column indices internally even if this is much more work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 22:06:58 +00:00
Vadim Zeitlin
f665539195 no changes, just refactoring: extracted the code to update the column indices array when the number of columns changes to the common code to be able to reuse it from the MSW version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 21:56:38 +00:00
Vadim Zeitlin
4797b0145c refresh the grid after resetting the columns positions to the default order
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 20:45:39 +00:00
Vadim Zeitlin
7280c8281d compilation fix after latest changes (missing header)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 20:27:35 +00:00
Vadim Zeitlin
da5a641fc8 added wxHeaderCtrl::ResetColumnsOrder() function; use it from wxGrid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 20:02:44 +00:00
Vadim Zeitlin
009c72169f add support for hiding columns when using native header control in wxGrid; also added convenient Hide/ShowCol() methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 17:28:57 +00:00
Francesco Montorsi
0c1c1c714a fix the loading of the isosurf data; it was not loaded correctly on my system because isosurf.dat uses dots as decimal separators and my locale requires commas; fixed instancing a wxLocale with wxLANGUAGE_ENGLISH)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 16:13:29 +00:00
Francesco Montorsi
d5c8403a37 force doxygen autolink wrt wxLanguage enum
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 16:11:22 +00:00
Francesco Montorsi
72dc02c6a7 document wxFileOffset
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 15:05:18 +00:00
Francesco Montorsi
eb63011d3f reformat stream overview and provide a description hopefully correct, even if very short, for wxStreamBuffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 14:51:42 +00:00
Francesco Montorsi
3d46a376b1 distribute in the right places documentations for the overloads/structs used with wxCmdLineParser; mention wxAppConsole::OnInitCmdLine and wxAppConsole::OnCmdLineParsed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 14:06:47 +00:00
Francesco Montorsi
991fca2485 remove old file not compiled/used anymore since at least 6 years
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 14:05:25 +00:00
Francesco Montorsi
ebfa01338b fix note about OpenGL-enabling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 14:03:48 +00:00
Vadim Zeitlin
a06072d026 no changes, just replaced SF bug number in a comment with Trac one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 12:43:45 +00:00
Vadim Zeitlin
53698f1db2 removed testing code leftovers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 10:08:49 +00:00
Paul Cornett
50bedb7b44 don't call size_request to get best size of a non-native control, it will probably return (0,0)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 07:39:17 +00:00
Vadim Zeitlin
5ddfa0748f don't close all unused descriptors in the child, this seems unnecessary and breaks some (admittedly buggy) children (e.g. xboard)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 00:10:07 +00:00