ACAV f0ba4b7c9529
Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C
Loading...
Searching...
No Matches
acav::NodeCycleWidget Class Reference

Popup widget for cycling through multiple matching nodes. More...

#include <NodeCycleWidget.h>

Inheritance diagram for acav::NodeCycleWidget:
[legend]

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ NodeCycleWidget()

acav::NodeCycleWidget::NodeCycleWidget ( QWidget * parent = nullptr)
explicit

Definition at line 30 of file NodeCycleWidget.cpp.

Member Function Documentation

◆ showMatches()

void acav::NodeCycleWidget::showMatches ( const std::vector< AstViewNode * > & matches,
const QPoint & clickPos )

Show widget with list of matches.

Parameters
matchesNodes at clicked position (deepest first)
clickPosGlobal screen position where user clicked

Definition at line 61 of file NodeCycleWidget.cpp.

References nodeSelected(), and showMatches().

Referenced by showMatches().


The documentation for this class was generated from the following files: