Skip to main content

TableJSONWidget

TableJSONWidget

Widget to view/edit a JSON template for table creation. More…

#include <TableJSONWidget.hpp>

Inherits from QWidget

Public Signals

Name
void updateRequested(QString const & jsonText)
Emitted when user clicks Update Table. Carries current JSON text.

Public Functions

Name
TableJSONWidget(QWidget * parent =[nullptr])
~TableJSONWidget() override
void setJsonText(QString const & text)
Set JSON text in the editor.
QString getJsonText() const
Get JSON text from the editor.
void setForcedLoadPathForTests(QString const & path)
Force the next Load JSON action to use this path.

Detailed Description

class TableJSONWidget;

Widget to view/edit a JSON template for table creation.

Provides:

  • A text area for JSON content
  • A button to load JSON from a file
  • A button to apply the JSON to update the table UI

Public Signals Documentation

signal updateRequested

void updateRequested(
    QString const & jsonText
)

Emitted when user clicks Update Table. Carries current JSON text.

Public Functions Documentation

function TableJSONWidget

explicit TableJSONWidget(
    QWidget * parent =nullptr
)

function ~TableJSONWidget

~TableJSONWidget() override

function setJsonText

void setJsonText(
    QString const & text
)

Set JSON text in the editor.

function getJsonText

QString getJsonText() const

Get JSON text from the editor.

function setForcedLoadPathForTests

void setForcedLoadPathForTests(
    QString const & path
)

Force the next Load JSON action to use this path.

Useful for testing or when the caller wants to control the file selection.


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