Refactor wxGridSelection to store selection as blocks only

Store all types of selection with an array of blocks instead of arrays of
cells, blocks, rows and columns.

It (hopefully) simplifies the code and allows us to implement editing of
the last selection block much easier.
This commit is contained in:
Ilya Sinitsyn
2020-03-03 00:09:50 +07:00
committed by Vadim Zeitlin
parent d1c8bba2b6
commit 02509cbc39
3 changed files with 381 additions and 946 deletions

View File

@@ -1904,7 +1904,7 @@ public:
wxGridBlockCoords Canonicalize() const;
/**
Whether the blocks intersects.
Whether the blocks intersect.
@return
@true, if the block intersects with the other, @false, otherwise.