score icon indicating copy to clipboard operation
score copied to clipboard

Values in a limited set should be shown in combo boxes in the device explorer

Open jcelerier opened this issue 9 years ago • 5 comments

instead of allowing to type anything

jcelerier avatar Oct 26 '16 13:10 jcelerier

we can use the range attribute for this (with a list of values instead of a range)

bltzr avatar May 17 '17 15:05 bltzr

yes, that's already the case, but the problem is to only allow the user to select what's in the range. e.g. if the range is ["foo", "bar", "baz"] instead of a text input there should be a combo box where you can only choose the correct values.

jcelerier avatar May 17 '17 15:05 jcelerier

(in case this was not clear, I'm referring to the input here in value: range )

jcelerier avatar May 17 '17 15:05 jcelerier

To do :

In the DeviceExplorer{Model,View} (and certainly also the StateInspectorWidget), delegates that match the various data types should be created, following this tutorial : http://doc.qt.io/qt-5/model-view-programming.html#a-simple-delegate

This could also be used to make a specific delegate for the boolean type that would fix #89 and special delegates for the range that would fix #87.

jcelerier avatar May 31 '17 09:05 jcelerier

Adding this one to you @RobinMontferme as it touches some fun Qt stuff and the device explorer to change you of the central view woes ;p

jcelerier avatar Jul 22 '22 15:07 jcelerier

done in addressitemmodel - leaving the device explorer free for any input as sometimes it may make sense to control the values outside of the set

jcelerier avatar Feb 24 '23 01:02 jcelerier