-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactored VMenu::ShowMenu
and its vicinity.
#767
Refactored VMenu::ShowMenu
and its vicinity.
#767
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks way too complex for a thorough review :)
I trust you spent quite some time debugging it and know what you're doing, so the comments will likely be only about technical details & style.
05e4c72
to
976304e
Compare
I addressed all comments so far. Could you please check them and resolve whatever looks good?
Well, yes, but... Thorough testing is difficult and time consuming. @rohitab, if by any chance you can spend some time testing this change, I would hugely appreciate it. The change affects all kinds of vertical lists: menus, histories, Find All, comboboxes... The bugs are expected with vertical layout (irregular movement of selection or items, unexpected empty lines, etc.) and with drawing list borders. I will of course test more during the long weekend. Just now, I noticed one glitch. Find File -> Code Page Combobox may appear something like this (note the mangled left border; if there is no scrollbar, the right border should look similar):
I guess I know how to fix this one (even two ways). Will do during the weekend as well. |
cb954e7
to
4fb379e
Compare
Fixed everything, including the bug with vertical borders. Not squashing yet to make verification of the comments easier. Also, I want to test a bit more. Please let me know if everything is OK. |
The change looks good, although I haven't tested it.
Indeed. We're not in a hurry, so if you'd like to have another look or play more with it, please take your time, we can get back to it next year :) |
4fb379e
to
2bbb515
Compare
Thank you for the approval. I have been playing with it today for an hour or so and could not find any new issues. Let's call it a day. I rebased and squashed. Please merge. |
Ok. Thank you. |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 14 New issues |
@MKadaner sorry I wasn't able to respond sooner. I am going to upgrade to this version and will let you know if I come across any issues. |
@rohitab, no problem at all. Your feedback is welcome at any time. When you upgrade, please pick the latest version. I pushed one more refactoring in the same area, drawing of the vertical lists to be more specific. The behavior should not be affected. |
Summary
Refactoring in preparation for #711.
References
AlignAnnotations
toVMemu
. #711Checklist
If not checked, I accept that this work might be rejected in favor of a different great big ineffable plan.
Details
Sorry, it is large, but I believe overall the code is cleaner and easier to understand.
CodeFactor is complaining, and probably rightfully so. On the positive side, one issue is fixed.