Skip to main content

TimeFrame_Table_Widget

TimeFrame_Table_Widget

Widget displaying all TimeFrame objects registered in the DataManager. More…

#include <TimeFrame_Table_Widget.hpp>

Inherits from QWidget

Public Signals

Name
void timeFrameSelected(QString const & time_key)
Emitted when a TimeFrame row is clicked in the table.

Public Functions

Name
TimeFrame_Table_Widget(QWidget * parent =[nullptr])
~TimeFrame_Table_Widget() override
void setDataManager(std::shared_ptr< DataManager > data_manager)
Set the DataManager and subscribe to its observer notifications.
void populateTable()
Rebuild the table from the current DataManager state.

Protected Functions

Name
void resizeEvent(QResizeEvent * event) override

Detailed Description

class TimeFrame_Table_Widget;

Widget displaying all TimeFrame objects registered in the DataManager.

Shows a two-column table with the TimeFrame name and its sample count. Automatically refreshes when the DataManager notifies observers (e.g. when new TimeFrames are added or existing ones are updated).

Public Signals Documentation

signal timeFrameSelected

void timeFrameSelected(
    QString const & time_key
)

Emitted when a TimeFrame row is clicked in the table.

Parameters:

  • time_key The TimeFrame key that was selected

Public Functions Documentation

function TimeFrame_Table_Widget

explicit TimeFrame_Table_Widget(
    QWidget * parent =nullptr
)

function ~TimeFrame_Table_Widget

~TimeFrame_Table_Widget() override

function setDataManager

void setDataManager(
    std::shared_ptr< DataManager > data_manager
)

Set the DataManager and subscribe to its observer notifications.

Parameters:

function populateTable

void populateTable()

Rebuild the table from the current DataManager state.

Protected Functions Documentation

function resizeEvent

void resizeEvent(
    QResizeEvent * event
) override

Updated on 2026-11-13 at 20:25:39 +0000