-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Interactive/progressive checklist #3564
Conversation
Great! Thx for rebasing + other fixes :) One of a long opened PR... really interesting new feature. There are more form @piotrva |
c77db8f
to
112691b
Compare
112691b
to
432e358
Compare
Model setup menu on B&W radios is broken. There are blank lines and the scrolling is not consistent. |
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.
Needs to be done for 212x64 as well.
Indeed, was asked to fix 128, but yes, 212 was broken in several ways. Fixed it (but havent tested the feature itself at all on either platform) |
A couple of things;
I wonder if there should be a 'Close' button somewhere on the screen for color radios. It was not immediately obvious to me how to close the text viewer on a radio without hardware keys (NV14). This could trip up new users. A 'Close' button that only shows when the list is complete would also give something to focus on for the ENTER key to close the checklist. Update: the issue with the checklist not loading on B&W radio startup is a simulator bug. |
I've made some changes to the color checklist code in PR #3787 |
In PR #3787 I've indented the checkboxes for easier touch activation and also kept the 'RTN' button visible so the last checkbox is further away from the bottom of the screen. |
10d4662
to
c5a6a13
Compare
Maybe some graphic separation between check boxes when you use longer text? |
Keeping in mind the list used to generate it was
it may be better to first check what happens if there is a blank line. If that is correctly rendered, IMO it would be better to leave the formatting up to the checklist author. |
Yes, because when you have more lines and tge check box is aligned to the middle...it could be confusing. |
This can be controlled by the checklist author... I added a blank line in the checklist file - at line 10, and it was correctly displayed. So if you want spaces, add them. And if you don't, don't put them in? |
@gagarinlg @pfeerick what is the status of this PR? Can we engage into the merge train? |
Should be OK after a rebase |
will you? |
Not this week |
cannot exit menu from menuTextView as level above there is while loop that cannot be stopped from thic place in code
This is also crucial when it comes to analyse non-checkable items on a checklist, as in this way there is no need to load non-visible items from SD-card
… radios currently no automatic line wrapping and you can always exit the checklist, even when it is not fully done
* Move checklist logic to sub-class. Show model name instead of file name in title, show 'Preflight checks' in title2 for checklist. Handle long line wrapping of text. Don't indent lines without checkbox. Add 'RTN' button when done. * Code cleanup. * Simplify code by storing a list of checkboxes instead of scanning LVGL object hierarchy. * Indent checkboxes to make touch activation easier. Keep 'RTN' button visible so last checkbox is further from bottom of screen (for touch activation). 'RTN' button is disabled until checklist complete.
3254b72
to
4292b2c
Compare
@philmoz Did something change in the checkbox handling recently? When I did the rebase, I only needed to make two changes in preflight_checks.cpp due to the CheckBox -> ToggleSwitch name changing... i.e. new CheckBox(line, rect_t{}, GET_SET_DEFAULT(g_model.checklistInteractive)); to auto interactiveChkList = new ToggleSwitch(line, rect_t{}, GET_SET_DEFAULT(g_model.checklistInteractive)); But the checkboxes in the preflight checks text viewer are now not visible on TX16S 🤔 |
Needed a class constructor for the LVGL checkbox (for the libopenui refactor stuff).
|
Thanking you so much! :) I'll try and look at this in the morning, otherwise, it'll be tomorrow evening I'll be hoping to merge this in. |
Ok, is working good again. TX16S and TPro seem ok on repeat testing. |
* initial version of clickable checklist * do not display checkboxes for empty lines if checklist is shorter than screen size * remove checklist exit after completing it cannot exit menu from menuTextView as level above there is while loop that cannot be stopped from thic place in code * menu entry to enable and disable interactive checklist * only when complete interactive checklist is closed * config updated & not display checkboxes when entered from "View Notes" * add setup entry for colorlcd * do not make interactive checkist when loaded from menu * fix datastruct size after merge * Companion support for interactive checklist * mark checklist lines as non-checkable with '=' for B&W radios * Process only items visible on screen This is also crucial when it comes to analyse non-checkable items on a checklist, as in this way there is no need to load non-visible items from SD-card * WIP fix merge problems * update yaml datastructs * restore most functionalities for interactive check lists on color LCD radios currently no automatic line wrapping and you can always exit the checklist, even when it is not fully done * finalise interactive checklists for color LCD * fix: rebase/merge issues * fix: model setup checklist section * fix: fix 212 model setup * Re-work of the some of the color lcd checklist code (#3787) * Move checklist logic to sub-class. Show model name instead of file name in title, show 'Preflight checks' in title2 for checklist. Handle long line wrapping of text. Don't indent lines without checkbox. Add 'RTN' button when done. * Code cleanup. * Simplify code by storing a list of checkboxes instead of scanning LVGL object hierarchy. * Indent checkboxes to make touch activation easier. Keep 'RTN' button visible so last checkbox is further from bottom of screen (for touch activation). 'RTN' button is disabled until checklist complete. * Add checkbox class constructor for preflight checks. * Fix checkbox size. --------- Co-authored-by: Piotr Rzeszut <[email protected]> Co-authored-by: 3djc <[email protected]> Co-authored-by: philmoz <[email protected]> Co-authored-by: Phil Mitchell <[email protected]>
rebased, fixed and LVGL converted replacement for #1417
copied from #1417:
Summary of changes:
Adds an option to display check-boxes at the beginning of each checklist / model notes line.
=
sign as a first character in a lineFixes #133
example checklist file