TestModuleInterface Class Reference
[Test Module]

Interface to TRANTOO. More...

#include <testModuleInterface.h>

Inheritance diagram for TestModuleInterface:

Inheritance graph
[legend]
Collaboration diagram for TestModuleInterface:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Interface to TRANTOO.

This class implements the interface between Test and TRANTOO.


Member Function Documentation

QString TestModuleInterface::getName (  )  [virtual]

Get the name of the module.

The module must provide its name to TRANTOO.

Returns:
QString name = "Test"

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.

Parameters:
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.

Parameters:
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.

Parameters:
* 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.

Parameters:
* pointer to QDomDocument

Implements ModuleInterface.


Generated on Mon Feb 23 16:42:01 2009 for Dragon Wings by  doxygen 1.5.5