|
ACAV f0ba4b7c9529
Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C
|
Panel displaying declaration context hierarchy for selected AST node. More...
#include <DeclContextView.h>
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) | |
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.
|
explicit |
Definition at line 32 of file DeclContextView.cpp.
|
slot |
Propagate font to all internal widgets (labels + trees).
Definition at line 115 of file DeclContextView.cpp.
References applyFont().
Referenced by applyFont().
|
slot |
Clear the display.
Definition at line 102 of file DeclContextView.cpp.
References clear().
Referenced by clear(), and setSelectedNode().
|
slot |
Set focus to lexical context tree.
Definition at line 111 of file DeclContextView.cpp.
References focusLexicalTree().
Referenced by focusLexicalTree().
|
slot |
Set focus to semantic context tree.
Definition at line 107 of file DeclContextView.cpp.
References focusSemanticTree().
Referenced by focusSemanticTree().
|
slot |
Update display for selected node.
| node | The selected AST node (may be nullptr) |
Definition at line 92 of file DeclContextView.cpp.
References clear(), and setSelectedNode().
Referenced by setSelectedNode().