Commit Graph

45381 Commits

Author SHA1 Message Date
Vadim Zeitlin
10a4531d1d more grid folding: got rid of duplicate version of methods for finding the closest row/column edge, appending/inserting/deleting rows/columns, and moving cursor vertically/horizontally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 16:31:44 +00:00
Vadim Zeitlin
5039f140c4 document wxGridTableBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 16:18:39 +00:00
Jaakko Salli
938593c00a Removed some test code left in a long time ago
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 16:00:42 +00:00
Jaakko Salli
0372d42ea5 Eliminated C++ RTTI (typeid etc) use. Eliminated wxPGVariantData (default default value for new types is now Null variant). Re-created variantdata creator macros based on those found in variant.h. Using DECLARE/IMPLEMENT_VARIANT_OBJECT whenever possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 15:55:53 +00:00
Michael Wetherell
e8443ddaa5 Fix -- in comment.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 14:03:34 +00:00
Stefan Csomor
3c45c73dbf rollback just in case it was me. ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 13:37:10 +00:00
Stefan Csomor
dfe4440a86 different build dirs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 13:33:14 +00:00
Stefan Csomor
7d605004a2 expanding builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 13:21:22 +00:00
Stefan Csomor
3c775ea690 buildbot test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 12:47:56 +00:00
Robert Roebling
946954d3bf Added reverse iterator to wxVector<T>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 12:43:11 +00:00
Julian Smart
5cb0b827f1 Switched off some buggy optimisation that caused caret positioning/drawn text mismatch.
Fixed defragmentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 10:58:32 +00:00
Vadim Zeitlin
bec7026270 start of the great grid folding: introduce wxGridOperations class and use it to avoid duplicating the same code for rows and columns in a couple of methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 08:32:12 +00:00
Vadim Zeitlin
d41f34403c disable AUI (and also MDI in 2.8) under CE, it doesn't make much sense there and doesn't currently compile anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 08:03:55 +00:00
Vadim Zeitlin
1372f8ccd0 use wxSwap()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 16:13:06 +00:00
Vadim Zeitlin
dac8712fcf document wxDELETE() and wxDELETEA() (now committing the right file, please disregard comment of r55648)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 16:12:07 +00:00
Vadim Zeitlin
6ebd2716cf document wxDELETE() and wxDELETEA()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 16:06:36 +00:00
Julian Smart
6a8e61e0f6 Fixed Freeze problem that rendered control invisible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 14:43:29 +00:00
Vadim Zeitlin
6b992f7df1 implement CreateGrid() in terms of SetTable() instead of duplicating its code and confusing the issue
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 14:09:26 +00:00
Vadim Zeitlin
ff72f628bb more cleanup (removed some TODOs/FIXMEs); use native header drawing for the corner window too if it is enabled at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 14:06:28 +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
02f3ee3d10 remove the now unused GetScroll[XY]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 13:36:28 +00:00
Vadim Zeitlin
d438037152 WinCE compilation fix: don't use FNERR_INVALIDFILENAME
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 13:33:35 +00:00
Vadim Zeitlin
bf2c8b318e take old (wx 2.2? older?) wxGrid compatibility functions inside WXWIN_COMPATIBILITY_2_8; rearrange some declarations order but no real changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 12:18:07 +00:00
Vadim Zeitlin
08dd9b5aed reviewed, updated and corrected wxGrid docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 12:07:25 +00:00
Vadim Zeitlin
d8210cd1b3 remove automatic selection of the current row/column in row/column selection mode when the current cell is changed using the mouse, this is inconsitent with both cell selection mode and the keyboard behaviour in row/column selection mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 08:45:29 +00:00
Vadim Zeitlin
32b4e9ecd7 select current column when Ctrl-Space is pressed; the current row when Shift-Space is and everything on Shift-Ctrl-Space
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 08:25:47 +00:00
Jouk Jansen
b3c60740bb Update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 07:49:38 +00:00
Vadim Zeitlin
87c819f9c9 improve display of hints during column move (#9884)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:33:39 +00:00
Vadim Zeitlin
7d277ac0f9 don't steal focus back to wxGrid when it hides an editor in the result of losing it (#9844)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:28:15 +00:00
Vadim Zeitlin
1eab965913 fix drawing of the column move hint when the grid is scrolled to the right (#9776)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:19:41 +00:00
Vadim Zeitlin
54181a3329 fix repaining of highlight for merged cells (#9718)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:11:49 +00:00
Vadim Zeitlin
72b0a1deec we don't need to round up the best/fitting grid size to a multiple of scroll units any more now that scrollbars behaviour is really correct
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 23:10:23 +00:00
Vadim Zeitlin
ace8d849d4 need to AdjustScrollbars() after changing the virtual size in CalcDimensions()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 23:06:36 +00:00
Vadim Zeitlin
69367c566e move the grid-specific workaround for scrollbar hysteresis to wxScrollHelper itself, the scrollbars now should not only appear but also disappear correctly during resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 22:44:08 +00:00
Vadim Zeitlin
801a964104 no changes, just removed the unnecessary wxGrid:: qualifiers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 21:28:44 +00:00
Vadim Zeitlin
f1ff7df032 don't use SetScrollbars() as this forces the grid virtual size to always be the multiple of scroll line size which is simply wrong, the grid doesn't need to be that big (#3800)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 21:09:31 +00:00
Vadim Zeitlin
4c81144ce3 no changes, just clarified a comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 21:05:41 +00:00
Vadim Zeitlin
d9f4cc1060 make the simple canvas larger as otherwise the simple frame couldn't be resized to make the horizontal scrollbar appear in it because of the title string width; some small cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 20:43:13 +00:00
Vadim Zeitlin
55ab5200fb delete the old labels when recreating the spin controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 19:53:31 +00:00
Vadim Zeitlin
242ec2f7e9 really, really fix handling Enter in spin controls: only request it for the control if wxTE_PROCESS_ENTER is used to avoid breaking the use of Enter for the default item activation if it isn't; also document wxTE_PROCESS_ENTER style for wxSpinCtrl and add it to the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 19:50:30 +00:00
Vadim Zeitlin
a6aa377bb3 use transparent icons and clear the DC before drawing them to fix the background of state icons appearance (part of #9591)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 19:15:19 +00:00
Jaakko Salli
f379342915 Have support for both char* and wchar_t* in wxPGPropArg. Moved wxPGPropArgCls member function to propgridiface.cpp which is more logical location since class is in propgridiface.h. Added char* test cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 16:48:20 +00:00
Jaakko Salli
8f18b25245 Fixed bug: Setting property value string did not update children of composed parent (ported from wxPG SVN trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 16:20:48 +00:00
Jaakko Salli
9b5d2f3fae Removed remnant use of wxCHECK_VERSION
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 14:59:47 +00:00
Jaakko Salli
258ccb95f5 Updated documentation to acknowledge the fact that properties can have identical labels, and that they must have non-empty name that is unique under parent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 13:53:21 +00:00
Vadim Zeitlin
55f0bf1ff1 some wxGrid docs cleanup, it's still a huge mess though
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 13:53:20 +00:00
Jaakko Salli
d665918bd2 wxVariant list used to translate between list of property child values and composite value string now maps values by names instead of labels. Naturally this means properties can no longer have empty name (this change allows using identical labels under same parent property. Ported from wxpropgrid SVN trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 13:14:32 +00:00
Michael Wetherell
1fb72f6116 New dev.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 10:07:30 +00:00
Jaakko Salli
dce297343e Adapt to 'premature' events being sent from editor controls (fixes datepicker editor crash)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 09:47:58 +00:00
Jaakko Salli
ac5760384a Fixed ambiguity with bitwise operators
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 09:02:26 +00:00