wxWidgets/tests/controls
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
..
auitest.cpp
bitmapcomboboxtest.cpp
bitmaptogglebuttontest.cpp
bookctrlbasetest.cpp
bookctrlbasetest.h
buttontest.cpp
checkboxtest.cpp
checklistboxtest.cpp
choicebooktest.cpp
choicetest.cpp Fix GetBestSize() for hidden controls in wxGTK 2019-10-09 14:56:49 +02:00
comboboxtest.cpp Replace a single function with a class in Enter processing tests 2019-09-10 18:48:20 +02:00
dataviewctrltest.cpp Merge branch 'dataview_cocoa' of https://github.com/thesiv/wxWidgets 2019-11-01 00:49:29 +01:00
datepickerctrltest.cpp
dialogtest.cpp
frametest.cpp
gaugetest.cpp
gridtest.cpp Fix Shift-Ctrl-arrows handling 2020-04-13 00:49:22 +02:00
headerctrltest.cpp
htmllboxtest.cpp
hyperlinkctrltest.cpp
itemcontainertest.cpp
itemcontainertest.h
label.cpp
listbasetest.cpp
listbasetest.h
listbooktest.cpp
listboxtest.cpp
listctrltest.cpp Add a test case for wxListCtrl::GetSubItemRect() 2019-08-27 17:12:47 +02:00
listviewtest.cpp
markuptest.cpp
notebooktest.cpp
ownerdrawncomboboxtest.cpp
pickerbasetest.cpp
pickerbasetest.h
pickertest.cpp
radioboxtest.cpp
radiobuttontest.cpp Make wxRadioButton focus test MSW-specific 2019-07-18 17:45:20 +02:00
rearrangelisttest.cpp
richtextctrltest.cpp Fix initial value returned from wxRichTextCtrl::IsModified() 2019-11-17 17:04:15 +01:00
searchctrltest.cpp Provide more information for failures involving FindFocus() 2019-07-18 17:45:20 +02:00
simplebooktest.cpp
slidertest.cpp
spinctrldbltest.cpp
spinctrltest.cpp
styledtextctrltest.cpp Fix checking WXUSINGDLL in conditional block 2019-09-10 22:52:23 +02:00
textctrltest.cpp Add a unit test for wxTextCtrl event generation on creation 2020-04-02 09:10:36 -07:00
textentrytest.cpp Don't activate default button on Enter in multiline wxTextCtrl 2019-09-10 18:48:20 +02:00
textentrytest.h Don't send EVT_TEXT_ENTER to controls without wxTE_PROCESS_ENTER 2019-09-10 18:48:20 +02:00
togglebuttontest.cpp
toolbooktest.cpp
treebooktest.cpp
treectrltest.cpp Keep children of collapsed item selected in wxGenericTreeCtrl 2019-10-05 15:03:20 +02:00
treelistctrltest.cpp
virtlistctrltest.cpp
webtest.cpp Add a test for C++ comments in code passed to RunScript() 2020-02-05 15:55:50 +01:00
windowtest.cpp Add unit test for wxWindow::IsThisEnabled() 2019-10-27 01:31:21 +02:00