#include <JsonConfiguredWidget.h>
|
void | sendFatalMessage (QString message) |
| sendFatalMessage signal to be emitted when object needs to shut program down More...
|
|
void | sendErrorMessage (QString message) |
| sendErrorMessage signal to be emitted when object needs to communicate error with user More...
|
|
void | sendStatusMessage (QString message) |
| sendStatusMessage signal to be emitted when object needs to communicate status with user More...
|
|
Definition at line 54 of file JsonConfiguredWidget.h.
Create new JsonConfiguredWidget
- Parameters
-
[in,out] | random_variables | Widget to store random variables to |
[in] | configFile | String specifying config file location |
[in] | parent | Parent widget. Defaults to null pointer |
Definition at line 60 of file JsonConfiguredWidget.cpp.
virtual JsonConfiguredWidget::~JsonConfiguredWidget |
( |
| ) |
|
|
inlinevirtual |
void JsonConfiguredWidget::chooseConfigFile |
( |
| ) |
|
SimCenterWidget * JsonConfiguredWidget::generateComboBox |
( |
const QJsonValue & |
inputValue | ) |
const |
|
protected |
Generate combo box based on input JSON object
- Parameters
-
[in] | inputObject | JSON value describing combo box to be generated |
- Returns
- Pointer to generated combo box
Definition at line 206 of file JsonConfiguredWidget.cpp.
SimCenterWidget * JsonConfiguredWidget::generateFileInput |
( |
const QJsonValue & |
inputValue | ) |
const |
|
protected |
Generate line edit for opening input files based on input JSON value
- Parameters
-
[in] | inputValue | JSON value describing file line edit to be generated |
- Returns
- Pointer to generated file line edit
Definition at line 216 of file JsonConfiguredWidget.cpp.
SimCenterWidget * JsonConfiguredWidget::generateRVLineEdit |
( |
const QJsonValue & |
inputValue | ) |
const |
|
protected |
Generate random variable line edit based on input JSON value
- Parameters
-
[in] | inputValue | JSON value describing random variable line edit to be generated |
- Returns
- Pointer to generated random variable line edit
Definition at line 211 of file JsonConfiguredWidget.cpp.
QWidget * JsonConfiguredWidget::generateWidgetLayout |
( |
const QJsonArray & |
inputArray, |
|
|
bool |
set = false |
|
) |
| const |
|
protected |
Generate widget based on input JSON object
- Parameters
-
[in] | inputArray | JSON array describing widget to be generated |
[in] | set | Flag indicating whether to set values of widgets |
- Returns
- Pointer to generated widget
Definition at line 157 of file JsonConfiguredWidget.cpp.
JsonWidget::Type JsonConfiguredWidget::getEnumIndex |
( |
const QString & |
inputString | ) |
const |
Get enum based on input string
- Parameters
-
[in] | inputString | String that should be converted to enum |
- Returns
- Enum corresponding to input string
Definition at line 117 of file JsonConfiguredWidget.cpp.
void JsonConfiguredWidget::initialize |
( |
const QString & |
configFile | ) |
|
|
protectedvirtual |
Initialize the widget based on configuration specified in input config file
- Parameters
-
[in] | configFile | JSON configuration file specifying widget layout |
Definition at line 135 of file JsonConfiguredWidget.cpp.
bool JsonConfiguredWidget::inputFromJSON |
( |
QJsonObject & |
rvObject | ) |
|
|
overridevirtual |
Instantiate widget generator from input JSON object
- Parameters
-
[in] | rvObject | JSON object containing input information |
- Returns
- Returns true if successful, false otherwise
Reimplemented from SimCenterWidget.
Definition at line 89 of file JsonConfiguredWidget.cpp.
bool JsonConfiguredWidget::outputToJSON |
( |
QJsonObject & |
rvObject | ) |
|
|
overridevirtual |
Write all current class data to JSON required to reconstruct class
- Parameters
-
[in,out] | rvObject | JSON object to write output to |
- Returns
- Returns true if successful, false otherwise
Reimplemented from SimCenterWidget.
Definition at line 102 of file JsonConfiguredWidget.cpp.
QJsonArray JsonConfiguredWidget::widgetToJson |
( |
QWidget * |
inputWidget | ) |
|
|
protected |
Write the input widget to JSON. Assumes that widget contains only other widgets or SimCenter widgets
- Parameters
-
[in] | inputWidget | Input widget to write to JSON object |
- Returns
- JSON object of widget
Definition at line 221 of file JsonConfiguredWidget.cpp.
QLineEdit* JsonConfiguredWidget::theConfigFile |
|
protected |
QWidget* JsonConfiguredWidget::theWidget |
|
protected |
The documentation for this class was generated from the following files: