TableDesignerWidget
TableDesignerWidget
Widget for designing and creating table views. More…
#include <TableDesignerWidget.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | tableCreated(QString const & table_id) Emitted when a table is successfully created or updated. |
| void | tableDeleted(QString const & table_id) Emitted when a table is deleted. |
Public Functions
| Name | |
|---|---|
| TableDesignerWidget(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) | |
| ~TableDesignerWidget() override | |
| void | setState(std::shared_ptr< TableDesignerState > state) Set the TableDesignerState for this widget. |
| std::shared_ptr< TableDesignerState > | getState() const Get the current TableDesignerState. |
| void | refreshAllDataSources() Refresh all data sources (useful if data is loaded after widget creation). |
| std::vector< ColumnInfo > | getEnabledColumnInfos() const Get enabled column infos from the computers tree (for testing). |
| bool | buildTableFromTree() Build table from enabled computers in the tree. |
Friends
| Name | |
|---|---|
| class | TableDesignerWidgetJSONTestAccessor |
Detailed Description
class TableDesignerWidget;Widget for designing and creating table views.
This widget provides an interface for users to:
- Create new tables or modify existing ones
- Select row data sources (TimeFrame, DigitalEventSeries, DigitalIntervalSeries)
- Add columns by selecting data sources and computers
- Build and store the resulting TableView
Public Signals Documentation
signal tableCreated
void tableCreated(
QString const & table_id
)Emitted when a table is successfully created or updated.
Parameters:
- table_id The ID of the created/updated table
signal tableDeleted
void tableDeleted(
QString const & table_id
)Emitted when a table is deleted.
Parameters:
- table_id The ID of the deleted table
Public Functions Documentation
function TableDesignerWidget
explicit TableDesignerWidget(
std::shared_ptr< DataManager > data_manager,
QWidget * parent =nullptr
)function ~TableDesignerWidget
~TableDesignerWidget() overridefunction setState
void setState(
std::shared_ptr< TableDesignerState > state
)Set the TableDesignerState for this widget.
Parameters:
- state Shared pointer to the state object
The state manages all serializable settings including table selection, row source settings, group mode, and computer states.
When state is set:
- UI will be updated to reflect state values
- UI changes will propagate to state
- State changes will update UI (bidirectional binding)
function getState
inline std::shared_ptr< TableDesignerState > getState() constGet the current TableDesignerState.
Return: Shared pointer to the state object, or nullptr if not set
function refreshAllDataSources
void refreshAllDataSources()Refresh all data sources (useful if data is loaded after widget creation).
function getEnabledColumnInfos
std::vector< ColumnInfo > getEnabledColumnInfos() constGet enabled column infos from the computers tree (for testing).
Return: Vector of ColumnInfo for enabled computers
function buildTableFromTree
bool buildTableFromTree()Build table from enabled computers in the tree.
Return: True if build was successful
Friends
friend TableDesignerWidgetJSONTestAccessor
friend class TableDesignerWidgetJSONTestAccessor(
TableDesignerWidgetJSONTestAccessor
);Updated on 2026-11-13 at 20:25:39 +0000