Vadim Zeitlin
24973882e4
removed small and tabular grid tests which didn't seem to do anything useful (will replace the latter with a test of column reodering soon)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-30 21:13:46 +00:00
Vadim Zeitlin
8a3e536cd5
- Main change is the addition of wxGridSelectRowsOrColumns selection mode
...
(which is still probably buggy, wxGridSelection needs to be reviewed)
- Add XYToCell() overloads returning wxGridCellCoords (instead of modifying the
argument passed by reference -- where did this come from?) and document them.
- Added GoToCell() which does make the new current cell visible unlike
SetGridCursor() (which was documented as doing it, but wasn't)
- Changed SetCurrentCell() to only not change the cell if wxEVT_GRID_SELECT_CELL
it generates is vetoed, not just processed as this seems to make more sense
- Split jumbo (~400 lines) ProcessGridCellMouseEvent() function into chunks
- Add many more comments to make reading this code seem less like puzzle
solving for the next unfortunate soul to do it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 23:33:04 +00:00
Vadim Zeitlin
4a25320b90
add SetUseNativeColLabels() test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 14:05:16 +00:00
Vadim Zeitlin
1bf55f4cda
use wxString::Format() instead of hardcoding floating point numbers string representation, this doesn't work in locales using decimal comma ( #9714 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 16:33:19 +00:00
Vadim Zeitlin
4f6c80fecd
add a numeric column test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-06 02:20:21 +00:00
Vadim Zeitlin
6f292345cf
fix reference counting problems with wxGridCellWithAttr (re-#9567)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-13 21:37:58 +00:00
Vadim Zeitlin
92c01615ec
remove/replace redundant SetAutoLayout() and Fit() calls, leave just SetSizer[AndFit]() ones (patch 1905759)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:08:02 +00:00
Robert Roebling
71cf399ff0
Playing with wxgrid, adding optionnally native columns labels
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-20 15:05:03 +00:00
Chris Elliott
1583600031
fixes as per http://thread.gmane.org/gmane.comp.lib.wxwidgets.devel/92325
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-10 07:44:34 +00:00
Vadim Zeitlin
de38156422
don't set incorrect initial value of '0' for the bool cell (replaces patch 1774557)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 10:43:41 +00:00
Vadim Zeitlin
7b1bf3ad2d
added wxLog::DisableTimestamp() to be used as a synonym for SetTimestamp(wxEmptyString)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-27 12:09:55 +00:00
Vadim Zeitlin
733f486aac
added support for wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 17:44:41 +00:00
Vadim Zeitlin
b62f94ff48
added wxGridUpdateLocker helper class wrapping Begin/EndBatch() calls in a more convenient and safe way
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 17:25:15 +00:00
Vadim Zeitlin
ba4c4fc6b5
removed explicit initial size for BugsGridFrame, it's not needed as its size is set to fit to the grid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 10:47:02 +00:00
Vadim Zeitlin
15f99569c1
removed unneeded SetMargins(0, 0) call (this is the default) in BugsGridFrame ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 10:44:20 +00:00
Vadim Zeitlin
7d7ec3cfb9
slightly better fix for missing c_str() in OnCellValueChanged
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 11:07:37 +00:00
Julian Smart
740325df7f
Eliminate POD warning/error
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 09:23:52 +00:00
Vadim Zeitlin
5b313974cd
don't use unneeded logBuf member variable; show the changed cell value in OnCellValueChanged()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 13:46:18 +00:00
Vadim Zeitlin
d417574519
added possibility to reorder columns by dragging them (patch 1409677)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-01 00:13:19 +00:00
Vadim Zeitlin
1ecf2613d0
added a test command to show the current selection
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-07 00:31:32 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Włodzimierz Skiba
bfd84575a2
[1231183] 'cleanup: mismatched indentation' and other cleanings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 17:56:31 +00:00
Julian Smart
75285e227a
Name correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-16 17:13:54 +00:00
Julian Smart
91b073576e
Use standard ids
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 12:04:48 +00:00
Vadim Zeitlin
e9a67fc247
fixed asserts when clicking on bugs table priority and opened columns; updated copyrights
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 11:30: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
Włodzimierz Skiba
925e9792d3
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:54:57 +00:00
Robin Dunn
79dbea2146
Patch from Jed Burgess that optionally allows the grid to notify when
...
a drag event happens on a cell.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-25 22:25:28 +00:00
Włodzimierz Skiba
f07941fc73
wxUSE_LOG fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-20 19:11:34 +00:00
Václav Slavík
fb12998e98
don't force excessively large minsize, it makes the sample nearly unusable on X11
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-01 17:45:08 +00:00
Dimitri Schoolwerth
dabbc6a5a1
removed SetAutoLayout(true) calls when a corresponding SetSizer() was also called (the latter already calls SetAutoLayout(true) in case of a non-NULL window); usual cleanup: removing tabs and end of line whitespace, TRUE->true, FALSE->false, -1->wxID_ANY, Enable(false)->Disable(), ""->wxEmptyString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-12 23:44:08 +00:00
Włodzimierz Skiba
af870ed80f
-1->wxID_ANY, TRUE->true and FALSE->false replacements.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 19:25:01 +00:00
Julian Smart
be5a51fb59
More name changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Mattia Barbon
87728739f2
Various warning and Unicode fixes from ABX.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-09 20:24:34 +00:00
David Elliott
a7166b34c8
Don't use pragma interface/implemenation for __APPLE__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 17:56:33 +00:00
Julian Smart
f7556ff05f
Removed old grid code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-24 18:50:10 +00:00