SimCenterCommon
Common functionality used within different SimCenter projects
SimCenterRVLineEdit Class Reference

#include <SimCenterRVLineEdit.h>

Inheritance diagram for SimCenterRVLineEdit:
Collaboration diagram for SimCenterRVLineEdit:

Public Member Functions

 SimCenterRVLineEdit (RandomVariablesContainer *random_variables, const QJsonValue &inputObject, QWidget *parent=nullptr)
 
virtual ~SimCenterRVLineEdit ()
 
bool inputFromJSON (QJsonObject &jsonObject) override
 
bool outputToJSON (QJsonObject &jsonObject) override
 
- Public Member Functions inherited from SimCenterWidget
 SimCenterWidget (QWidget *parent=0)
 
virtual ~SimCenterWidget ()
 

Protected Attributes

LineEditRVtheRVLineEdit
 
QLabel * theRVLabel
 

Additional Inherited Members

- Signals inherited from SimCenterWidget
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...
 

Detailed Description

Definition at line 48 of file SimCenterRVLineEdit.h.

Constructor & Destructor Documentation

SimCenterRVLineEdit::SimCenterRVLineEdit ( RandomVariablesContainer random_variables,
const QJsonValue &  inputObject,
QWidget *  parent = nullptr 
)

Create new SimCenterRVLineEdit widget

Parameters
[in,out]random_variablesWidget to store random variables to
[in]inputObjectInput JSON object
[in]parentParent widget. Defaults to null pointer

Definition at line 50 of file SimCenterRVLineEdit.cpp.

virtual SimCenterRVLineEdit::~SimCenterRVLineEdit ( )
inlinevirtual

Default destructor

Definition at line 64 of file SimCenterRVLineEdit.h.

Member Function Documentation

bool SimCenterRVLineEdit::inputFromJSON ( QJsonObject &  jsonObject)
overridevirtual

Instantiate the random variable line edit from from input JSON object

Parameters
[in]jsonObjectJSON object containing input information
Returns
Returns true if successful, false otherwise

Reimplemented from SimCenterWidget.

Definition at line 66 of file SimCenterRVLineEdit.cpp.

bool SimCenterRVLineEdit::outputToJSON ( QJsonObject &  jsonObject)
overridevirtual

Write all current class data to JSON required to reconstruct class

Parameters
[in,out]jsonObjectJSON object to write output to
Returns
Returns true if successful, false otherwise

Reimplemented from SimCenterWidget.

Definition at line 75 of file SimCenterRVLineEdit.cpp.

Member Data Documentation

QLabel* SimCenterRVLineEdit::theRVLabel
protected

Definition at line 82 of file SimCenterRVLineEdit.h.

LineEditRV* SimCenterRVLineEdit::theRVLineEdit
protected

Definition at line 81 of file SimCenterRVLineEdit.h.


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