grc: implement search for blocks in flow graph #7211
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
it is getting harder to search for blocks in flowgraph once the flow graph getting bigger,
this PR will Implement quick search for blocks in flowgraph,
matched block will be set as selected, just like when you click or block some blocks in flowgraph
search shortcut: Ctrl+g
a window will pop to ask user to input the block they want to search
you can press enter or click the ok button to begin search
the searching process is done by using simple substring matching with each block.name in flow graph
Related Issue
Fixes #5983
Which blocks/areas does this affect?
grc/gui/Actions.py: add a new action to search for blocks in flow graph with gtk
grc/gui/Application.py: select all searched blocks
grc/gui/Dialogs.py: make a new EntryDialog class to take user input for block search
grc/gui_qt/components/window.py: register action for block search in flowgraph
Testing Done
UI Test on gtk and qt gui
Checklist