SimCenterCommon
Common functionality used within different SimCenter projects
SimCenterComboBox Class Reference

#include <SimCenterComboBox.h>

Inheritance diagram for SimCenterComboBox:
Collaboration diagram for SimCenterComboBox:

Public Member Functions

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

Protected Attributes

QLabel * theComboBoxLabel
 
QComboBox * theComboBox
 

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 47 of file SimCenterComboBox.h.

Constructor & Destructor Documentation

SimCenterComboBox::SimCenterComboBox ( const QJsonValue &  inputObject,
QWidget *  parent = nullptr 
)

Create new SimCenterComboBox

Parameters
[in]inputObjectInput JSON object
[in]parentParent widget. Defaults to null pointer

Definition at line 48 of file SimCenterComboBox.cpp.

virtual SimCenterComboBox::~SimCenterComboBox ( )
inlinevirtual

Default destructor

Definition at line 61 of file SimCenterComboBox.h.

Member Function Documentation

bool SimCenterComboBox::inputFromJSON ( QJsonObject &  jsonObject)
overridevirtual

Instantiate the combo box 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 69 of file SimCenterComboBox.cpp.

bool SimCenterComboBox::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 78 of file SimCenterComboBox.cpp.

Member Data Documentation

QComboBox* SimCenterComboBox::theComboBox
protected

Definition at line 79 of file SimCenterComboBox.h.

QLabel* SimCenterComboBox::theComboBoxLabel
protected

Definition at line 78 of file SimCenterComboBox.h.


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