ncssar / radiolog

SAR radio log program
Other
13 stars 3 forks source link

search for text / 'find' in current log #664

Closed caver456 closed 1 year ago

caver456 commented 1 year ago

implement a standard Ctrl-F feature

caver456 commented 1 year ago

QAbstractItemModel.match is probably useful

caver456 commented 1 year ago

Probably easier than QAbstractItemModel.match: use a completer (like the sartopo_address project). This will list all the possible matches on-the-fly (as the user types) in a lineEdit. This is already working in preliminary code.

It would be good to show the team number and time on-the-fly as well, but even if not, selecting a line from the completer can select that team's tab, and scroll the main log and the team log to that entry.

Still need to build the list (or model) to be searched - preliminary code just uses a simple list.

Also need to see if this is fast enough to search a huge radiolog. If not, one option is to not start the completer until some minimum number of characters have been typed.

caver456 commented 1 year ago