SimCenterCommon
Common functionality used within different SimCenter projects
InputWidgetExistingEvent Class Reference

#include <InputWidgetExistingEvent.h>

Inheritance diagram for InputWidgetExistingEvent:
Collaboration diagram for InputWidgetExistingEvent:

Public Slots

void clear (void)
 
void chooseFileName1 (void)
 

Public Member Functions

 InputWidgetExistingEvent (RandomVariablesContainer *theRandomVariableIW, QWidget *parent=0)
 
 ~InputWidgetExistingEvent ()
 
bool outputToJSON (QJsonObject &rvObject) override
 outputToJSON method to write all objects data neeed to reconstruct object to JsonObject More...
 
bool inputFromJSON (QJsonObject &rvObject) override
 inputFromJSON method to instantiate itself from a JSON object More...
 
bool outputAppDataToJSON (QJsonObject &rvObject) override
 outputAppDataToJSON method to write the application data to json object. More...
 
bool inputAppDataFromJSON (QJsonObject &rvObject) override
 inputFromJSON method to read applications specific data from a JSON object More...
 
bool copyFiles (QString &dirName) override
 copyFiles method invoked to copy all files aapplication will need to run directory More...
 
QString getMainInput ()
 
void specialCopyMainInput (QString fileName, QStringList varNamesAndValues)
 
void setFilename1 (QString filename1)
 
- Public Member Functions inherited from SimCenterAppWidget
 SimCenterAppWidget (QWidget *parent=0)
 
virtual ~SimCenterAppWidget ()
 
virtual bool supportsLocalRun ()
 returns a boolean indicating whether or not this app can run locally More...
 
- Public Member Functions inherited from SimCenterWidget
 SimCenterWidget (QWidget *parent=0)
 
virtual ~SimCenterWidget ()
 

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...
 
- Static Public Member Functions inherited from SimCenterAppWidget
static bool copyPath (QString sourceDir, QString destinationDir, bool overWriteDirectory)
 
static bool copyFile (QString filename, QString destinationDir)
 

Detailed Description

Definition at line 52 of file InputWidgetExistingEvent.h.

Constructor & Destructor Documentation

InputWidgetExistingEvent::InputWidgetExistingEvent ( RandomVariablesContainer theRandomVariableIW,
QWidget *  parent = 0 
)
explicit

Definition at line 56 of file InputWidgetExistingEvent.cpp.

InputWidgetExistingEvent::~InputWidgetExistingEvent ( )

Definition at line 92 of file InputWidgetExistingEvent.cpp.

Member Function Documentation

void InputWidgetExistingEvent::chooseFileName1 ( void  )
slot

Definition at line 199 of file InputWidgetExistingEvent.cpp.

void InputWidgetExistingEvent::clear ( void  )
slot

Definition at line 98 of file InputWidgetExistingEvent.cpp.

bool InputWidgetExistingEvent::copyFiles ( QString &  destDir)
overridevirtual

copyFiles method invoked to copy all files aapplication will need to run directory

Parameters
destDirthe directory to put files in
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterAppWidget.

Definition at line 210 of file InputWidgetExistingEvent.cpp.

QString InputWidgetExistingEvent::getMainInput ( )

Definition at line 205 of file InputWidgetExistingEvent.cpp.

bool InputWidgetExistingEvent::inputAppDataFromJSON ( QJsonObject &  jsonObject)
overridevirtual

inputFromJSON method to read applications specific data from a JSON object

Parameters
rvObjectthe JSON object contaiing data to instantiate the object
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterAppWidget.

Definition at line 146 of file InputWidgetExistingEvent.cpp.

bool InputWidgetExistingEvent::inputFromJSON ( QJsonObject &  jsonObject)
overridevirtual

inputFromJSON method to instantiate itself from a JSON object

Parameters
jsonObjectthe JSON object contaiing data to instantiate the object
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterWidget.

Definition at line 116 of file InputWidgetExistingEvent.cpp.

bool InputWidgetExistingEvent::outputAppDataToJSON ( QJsonObject &  jsonObject)
overridevirtual

outputAppDataToJSON method to write the application data to json object.

Parameters
rvObjectthe JSON object to be written to
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterAppWidget.

Definition at line 125 of file InputWidgetExistingEvent.cpp.

bool InputWidgetExistingEvent::outputToJSON ( QJsonObject &  jsonObject)
overridevirtual

outputToJSON method to write all objects data neeed to reconstruct object to JsonObject

Parameters
rvObjectthe JSON object to be written to
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterWidget.

Definition at line 106 of file InputWidgetExistingEvent.cpp.

void InputWidgetExistingEvent::setFilename1 ( QString  filename1)

Definition at line 180 of file InputWidgetExistingEvent.cpp.

void InputWidgetExistingEvent::specialCopyMainInput ( QString  fileName,
QStringList  varNamesAndValues 
)

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