wxWidgets/include/wx/generic/private
Vadim Zeitlin bc3c6fea70 Fix Shift-Ctrl-arrows handling
Extending the selection with Ctrl-arrows is different from all the other
cases, as we need to combine both the selection anchor and the current
cell coordinates when doing it.

This means that we can't reuse the same PrepareForSelectionExpansion()
helper for this case, so this function is not useful finally and this
commit removes it entirely. It also replaces GetCurrentBlockCornerRow()
and GetCurrentBlockCornerCol() functions with GetExtensionAnchor() which
combines both of them.

Finally, it adds wxGridDirectionOperations::TryToAdvance() helper to
avoid repeating the IsAtBoundary() check which was previously part of
PrepareForSelectionExpansion() in multiple places.

And because the "extending" and normal parts of DoMoveCursorByBlock()
are so different now, it also factors out AdvanceByBlock() helper which
can be used to keep these parts well separate from each other instead of
intermixing them together.

With all these preparatory changes, it's finally possible to implement
the "extending selection by block" logic relatively easily, with the
bulk of this branch actually taken by comments explaining why do we have
to do what we do.

Add unit tests verifying that the functions used by Shift-Ctrl-arrow
work as expected.
2020-04-13 00:49:22 +02:00
..
addremovectrl.h
grid.h Fix Shift-Ctrl-arrows handling 2020-04-13 00:49:22 +02:00
listctrl.h Add support for icon/label rectangles to generic wxListCtrl 2019-08-27 17:12:14 +02:00
markuptext.h Fix missing virtual dtor warning for wxMarkupText 2017-04-11 15:34:50 +02:00
notifmsg.h
richtooltip.h
rowheightcache.h fixed memory leak 2019-01-08 00:12:51 +01:00
textmeasure.h More use of wxOVERRIDE 2019-04-05 11:08:53 -07:00
timer.h Fix wxGenericTimerImpl DLL declaration in wxX11 build 2019-07-16 02:06:01 +02:00
widthcalc.h