visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
443 stars 116 forks source link

Allow user to type into the SIL Set selection combo box. #19927

Closed biagas closed 1 month ago

biagas commented 1 month ago

Description

Resolves #19920.

Affects OnionPeel and IndexSelect operators.

Modified QvisSILSetSelector subsetName combobox to fill its entries from a QStringListModel. This facilitates using the same model for a QCompleter now attached to the subsetName combobox. Modified the subsetName combobox to be editable with a 'NoInsert' policy. This allows the user to type their option without changing the values stored. The QCompleter filters the available options to match what the user has typed so far. This allows easier selection. The user can also simply fully type their option and hit enter or move the mouse out of the text editor when finished. If user enters text that doesn't match an available option, a Warning message will pop up and the selection will be reset to that last used valid option.

Type of change

How Has This Been Tested?

I opened a multi-domain file and ensure I could type into the Set option in OnionPeel and IndexSelect windows. I also tried a file with multiple SIL categories, and ensure the Completer still worked after changing categories.

Checklist: