LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::qt::CanSignalTreePanel Class Reference

#include <CanSignalTreePanel.hpp>

Inheritance diagram for ui::qt::CanSignalTreePanel:
Inheritance graph
Collaboration diagram for ui::qt::CanSignalTreePanel:
Collaboration graph

Signals

void SignalSelectionChanged ()
 Emitted whenever the checked signal set changes.
 

Public Member Functions

 CanSignalTreePanel (QWidget *parent=nullptr)
 
void SetDatabase (const parser::dbc::DbcDatabase &db)
 
std::vector< std::string > GetSelectedSignals () const
 Return the full "SIG:xxx" keys of all currently checked signals.
 

Private Member Functions

void BuildLayout ()
 
void RebuildTree ()
 

Private Attributes

parser::dbc::DbcDatabase m_db
 
QTreeWidget * m_tree {nullptr}
 
QLabel * m_placeholder {nullptr}
 

Detailed Description

Read/write tree panel showing the CAN message/signal structure from a loaded DBC file. Checkboxes let the user select which signals to plot; checking a frame checks or unchecks all its signals.

Lives in its own dock widget tabbed alongside the main Filters dock. Call SetDatabase() whenever a new DBC file is loaded. Emits SignalSelectionChanged() whenever the checked set changes.

Constructor & Destructor Documentation

◆ CanSignalTreePanel()

ui::qt::CanSignalTreePanel::CanSignalTreePanel ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ BuildLayout()

void ui::qt::CanSignalTreePanel::BuildLayout ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSelectedSignals()

std::vector< std::string > ui::qt::CanSignalTreePanel::GetSelectedSignals ( ) const

Return the full "SIG:xxx" keys of all currently checked signals.

Here is the caller graph for this function:

◆ RebuildTree()

void ui::qt::CanSignalTreePanel::RebuildTree ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDatabase()

void ui::qt::CanSignalTreePanel::SetDatabase ( const parser::dbc::DbcDatabase &  db)

Replace the displayed DBC structure. Rebuilds the tree immediately, preserving any signal selections that still exist in the new database.

Here is the call graph for this function:

◆ SignalSelectionChanged

void ui::qt::CanSignalTreePanel::SignalSelectionChanged ( )
signal

Emitted whenever the checked signal set changes.

Here is the caller graph for this function:

Member Data Documentation

◆ m_db

parser::dbc::DbcDatabase ui::qt::CanSignalTreePanel::m_db
private

◆ m_placeholder

QLabel* ui::qt::CanSignalTreePanel::m_placeholder {nullptr}
private

◆ m_tree

QTreeWidget* ui::qt::CanSignalTreePanel::m_tree {nullptr}
private

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