-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Quickview customization #2919
base: master
Are you sure you want to change the base?
Quickview customization #2919
Conversation
ok, so you seem to have lost the isNumeric check. ie cs can have arrays, datetime's etc. and currently your not filtering the arrays out etc. likerly to cause exceptions |
Ah, are you talking about the section where I populate the combobox with the field names? I pulled that snippet straight over from the preflight checklist editor ( |
|
yes, and doesnt support the customfields either ie
|
I see now. I'll work to bring that section in line with how it used to work. Is there an easy way to test customfields in SITL? |
This restores it to more-or-less how it was previously handled in FlightData.cs. One thing that might look weird is my explicit use of |
3386205
to
4ede965
Compare
4ede965
to
4bd50f8
Compare
4bd50f8
to
4452d2f
Compare
945bdc0
to
95cce0a
Compare
95cce0a
to
1db8637
Compare
1db8637
to
0135edf
Compare
Rebased and tested. I still believe this PR is a good improvement. |
0135edf
to
621da9d
Compare
Can customize - Display label - Color - Number-to-String format (including time formats) - Expected number width (for consistent font sizing) - Scale and offset - customfield can be selected by name instead of index
621da9d
to
b0a5a8b
Compare
I wanted to be able to edit the colors of the quickview fields (this addresses issue #2026), and to be able to adjust the precision as well. While I was at it, I decided to overhaul the quickview editing dialog. The massive window of checkboxes has always been hard to use.
I went about this in a slightly weird way. I'm using the config.xml to control the colors instead of the theme manager. Adding the ability to individually color an arbitrary number of quickviews seemed too cumbersome for the theme manager, unless you wanted to stick to a single color for all. I was afraid that too many people might be attached to the multi-color look, or that there might be an ease-of-use justification for that. The config.xml route was much easier to handle arbitrary numbers of quickview items.
The way I have implemented this leaves everything exactly the same as it is now by default. If you want to change the color for a single box, you can.
Additionally, you can set the precision to any level you desire. In theory, we could also modify this to have more advanced formatting options. It would be nice to implement arbitrary expressions to control formatting and even math operations (say to convert a centimeter rangefinder reading to meters).
The variable to display is now controlled by a combobox that you can type and autocomplete in. This makes it way easier to find variables.