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

Panel displaying declaration context hierarchy for selected AST node. More...

#include <DeclContextView.h>

Inheritance diagram for acav::DeclContextView:
[legend]

Public Slots

void setSelectedNode (AstViewNode *node)
 Update display for selected node.
void clear ()
 Clear the display.
void focusSemanticTree ()
 Set focus to semantic context tree.
void focusLexicalTree ()
 Set focus to lexical context tree.
void applyFont (const QFont &font)
 Propagate font to all internal widgets (labels + trees).

Signals

void contextNodeClicked (AstViewNode *node)
 Emitted when user clicks a context entry to navigate to that node.

Public Member Functions

 DeclContextView (QWidget *parent=nullptr)

Detailed Description

Panel displaying declaration context hierarchy for selected AST node.

This widget shows semantic and lexical declaration contexts for the currently selected AST node. Context chains are stored on Decl nodes and displayed on demand.

Definition at line 43 of file DeclContextView.h.

Constructor & Destructor Documentation

◆ DeclContextView()

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

Definition at line 32 of file DeclContextView.cpp.

Member Function Documentation

◆ applyFont

void acav::DeclContextView::applyFont ( const QFont & font)
slot

Propagate font to all internal widgets (labels + trees).

Definition at line 115 of file DeclContextView.cpp.

References applyFont().

Referenced by applyFont().

◆ clear

void acav::DeclContextView::clear ( )
slot

Clear the display.

Definition at line 102 of file DeclContextView.cpp.

References clear().

Referenced by clear(), and setSelectedNode().

◆ focusLexicalTree

void acav::DeclContextView::focusLexicalTree ( )
slot

Set focus to lexical context tree.

Definition at line 111 of file DeclContextView.cpp.

References focusLexicalTree().

Referenced by focusLexicalTree().

◆ focusSemanticTree

void acav::DeclContextView::focusSemanticTree ( )
slot

Set focus to semantic context tree.

Definition at line 107 of file DeclContextView.cpp.

References focusSemanticTree().

Referenced by focusSemanticTree().

◆ setSelectedNode

void acav::DeclContextView::setSelectedNode ( AstViewNode * node)
slot

Update display for selected node.

Parameters
nodeThe selected AST node (may be nullptr)

Definition at line 92 of file DeclContextView.cpp.

References clear(), and setSelectedNode().

Referenced by setSelectedNode().


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