Commit Graph

46605 Commits

Author SHA1 Message Date
Robert Roebling
5fb2ea66c6 Added missing g to file name of headerctrlg.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-18 20:27:05 +00:00
Robert Roebling
13499080f0 Recalculate display (and scrollbars etc) before calling EnsureVisible()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-18 16:38:23 +00:00
Robert Roebling
673453e26a Minor stream class changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 22:42:05 +00:00
Robert Roebling
10ab6d4f65 Correct wxDataViewCtrl::IsExpanded and add test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 22:26:40 +00:00
Vadim Zeitlin
5a9379d7b0 implement wxLoadedDLL, a safer alternative to wxDL_GET_LOADED (closes #10208)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 22:19:41 +00:00
Vadim Zeitlin
834c8ade28 VC6 SDK doesn't define INVALID_FILE_ATTRIBUTES, do it ourselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 15:22:16 +00:00
Vadim Zeitlin
888e963843 don't scroll to the child which gets focus if it is already fully visible; more importantly, don't do anything if we can't make it fully visible anyhow (fixes bug in the comment 13 of #9563)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 14:46:09 +00:00
Chris Elliott
824eec7e59 add u to file and lib path
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 14:34:11 +00:00
Chris Elliott
fd5ed78ca0 cast both ints to doubles for the X and Y scale factors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 14:21:57 +00:00
Vadim Zeitlin
c9c023ddeb use GetFileAttributes() to check for readonly files under Win9x, the NT method doesn't seem to work there (see #4111)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 14:19:43 +00:00
Vadim Zeitlin
627e6ccd2c another header for PCH-less compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 13:25:36 +00:00
Vadim Zeitlin
d169fa6aef fix unused variable warning in release build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 11:30:31 +00:00
Vadim Zeitlin
3a492e5c91 PCH-less compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 11:29:36 +00:00
Vadim Zeitlin
62a6f21a9a fix WinCE compilation: it doesn't know about SW_SHOWDEFAULT (#10216)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 10:21:05 +00:00
Vadim Zeitlin
c0a91b519d don't hard code the menu bar height under WinCE (closes #10248)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 10:17:23 +00:00
Vadim Zeitlin
64accea5fa added .c_str() to wxStrlcpy() calls to fix wxUSE_STL build (closes #10252)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 09:49:42 +00:00
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