Commit Graph

46711 Commits

Author SHA1 Message Date
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
Vadim Zeitlin
11393d2900 add support for sorting to grid columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 00:02:30 +00:00
Vadim Zeitlin
2b1f9fa062 explain EVT_GRID/EVT_GRID_CMD difference and don't duplicate the events documentation for both of them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 22:08:18 +00:00
Kevin Ollivier
97bd2a50f5 Hopefully the right fix this time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 20:46:47 +00:00
Kevin Ollivier
cc9370b7e4 HDC() fix was wrong, may have been just a problem with mismatched parens.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 20:11:31 +00:00
Paul Cornett
7e71773004 fix build, remove unused parameter from wxGetGdkWindowForDC()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 18:56:25 +00:00
Kevin Ollivier
509675f86b MSW compile fixes.
M    src/msw/renderer.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 18:23:39 +00:00
Kevin Ollivier
e413198572 Forward port new wxRenderer methods in 2.8 to trunk.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 17:36:27 +00:00
Vadim Zeitlin
476768356c update the size of the wxGridSizer as items are added to wxGBSizer to avoid asserts in AddGrowableRow/Col()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 12:27:33 +00:00
Vadim Zeitlin
5fa51d09eb don't compute the columns/rows from the number of items if both were explicitly set by user
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 12:26:27 +00:00
Vadim Zeitlin
cd68daf58a support column reordering using drag and drop when using wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 00:24:39 +00:00
Francesco Montorsi
baa4a96705 extend the range of glib versions for which the GTK+ standard options can be passed to wxWidgets program since the _GOptionGroup structure never changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 23:00:06 +00:00
Francesco Montorsi
7881f83bed fix command line parsing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 21:30:22 +00:00
Francesco Montorsi
6c7f094959 modernize the sample removing global C-style functions; partially fix loading of the .dat.gz file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 20:42:51 +00:00
Francesco Montorsi
0801f345c0 put zlib streams in the archive category, too; fix some typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 19:34:42 +00:00
Francesco Montorsi
dbbca9fdea link class groups with macro groups and provide a brief description for all groups
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 18:51:54 +00:00
Vadim Zeitlin
cd4f6f5f8f fix compuation of dirty cells when the columns are reordered, this didn't work at all before
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 17:34:13 +00:00
Vadim Zeitlin
8ad170cb85 STL build: fix missing const which results in Insert(int, T) being called instead of Insert(iterator, T) via iterator->bool conversion (this fixes at least one test failure)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 16:57:11 +00:00
Vadim Zeitlin
7bf5be6b56 fix best size caching
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 16:31:39 +00:00
Vadim Zeitlin
3246a508ab don't test for best size not being 0, this doesn't pass under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 16:29:11 +00:00
Vadim Zeitlin
497c7dffd1 compilation fixes for Unix build _with_ PCH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 16:21:49 +00:00
Francesco Montorsi
e2c4ccaf8a fix doxygen warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 16:10:08 +00:00
Francesco Montorsi
3e23102435 don't assert at startup because of the static initialization of a wxLocale object requires a valid wxAppTraits object; init the locale later, in TestDefaultLang()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 15:58:03 +00:00
Francesco Montorsi
fa7e10a43f document wxInitializer and wxInitialize and wxUninitialize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 15:56:19 +00:00
Francesco Montorsi
ea53cb4abf fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 15:41:22 +00:00
Francesco Montorsi
a0a4c5aa14 split AddCatalog docs for the two overloads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 15:40:54 +00:00
Vadim Zeitlin
e5182b1bc5 really fix STL compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 15:06:15 +00:00
Vadim Zeitlin
71d8948f12 add unit test for column reordering functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-12 14:16:06 +00:00
Vadim Zeitlin
1bb7462687 don't duplicate the column reordering in generic wxHeaderCtrl and wxGrid, extract it into a (public) helper function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 22:27:02 +00:00