#include <testModuleInterface.h>
Public Member Functions | |
virtual QString | getName () |
Get the name of the module. | |
virtual void | loadPlot (QwtPlot *) |
Load the Qwt plot. | |
virtual void | loadUi (QWidget *) |
Load the user interface. | |
virtual void | loadUiDataXML (QDomDocument *) |
Load data into the user interface from an XML file using the Qt DOM classes. | |
virtual void | saveUiDataXML (QDomDocument *) |
Save data from the user interface to an XML file using the Qt DOM classes. |
This class implements the interface between Test and TRANTOO.
QString TestModuleInterface::getName | ( | ) | [virtual] |
Get the name of the module.
The module must provide its name to TRANTOO.
Implements ModuleInterface.
void TestModuleInterface::loadPlot | ( | QwtPlot * | plot | ) | [virtual] |
Load the Qwt plot.
This method is called by TRANTOO when it loads the module with the argument being a pointer to the QwtPlot widget (owned by the TRANTOO class MainWindow) which is to be used to plot the data generated by the module.
plot | pointer to plot widget |
Implements ModuleInterface.
void TestModuleInterface::loadUi | ( | QWidget * | parent | ) | [virtual] |
Load the user interface.
This method is called by TRANTOO when it loads the module with the argument being a pointer to the widget (owned by the TRANTOO class MainWindow) which is to be the parent of the module's user interface.
parent | pointer to parent widget |
Implements ModuleInterface.
void TestModuleInterface::loadUiDataXML | ( | QDomDocument * | ) | [virtual] |
Load data into the user interface from an XML file using the Qt DOM classes.
This method is called by TRANTOO when the user wants to load data into the user interface from an xml file. The file is opened and a QDomDocument is created. A pointer to this document is passed to the module which will then attempt to load data from it.
* | pointer to QDomDocument |
Implements ModuleInterface.
void TestModuleInterface::saveUiDataXML | ( | QDomDocument * | ) | [virtual] |
Save data from the user interface to an XML file using the Qt DOM classes.
This method is called by TRANTOO when the user wants to save data from the user interface to an xml file. The file is opened and a QDomDocument is created. A pointer to this document is passed to the module which will then attempt to save data to it.
* | pointer to QDomDocument |
Implements ModuleInterface.