|
ACAV f0ba4b7c9529
Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C
|
Popup widget for cycling through multiple matching nodes. More...
#include <NodeCycleWidget.h>
Signals | |
| void | nodeSelected (AstViewNode *node) |
| Emitted when user navigates to a node. | |
| void | closed () |
| Emitted when widget is closed. | |
Public Member Functions | |
| NodeCycleWidget (QWidget *parent=nullptr) | |
| void | showMatches (const std::vector< AstViewNode * > &matches, const QPoint &clickPos) |
| Show widget with list of matches. | |
Popup widget for cycling through multiple matching nodes.
Displayed when multiple AST nodes overlap at a source position. Shows list of matches with node kinds and allows cycling.
Definition at line 40 of file NodeCycleWidget.h.
|
explicit |
Definition at line 30 of file NodeCycleWidget.cpp.
| void acav::NodeCycleWidget::showMatches | ( | const std::vector< AstViewNode * > & | matches, |
| const QPoint & | clickPos ) |
Show widget with list of matches.
| matches | Nodes at clicked position (deepest first) |
| clickPos | Global screen position where user clicked |
Definition at line 61 of file NodeCycleWidget.cpp.
References nodeSelected(), and showMatches().
Referenced by showMatches().