commontk/CTK — Issue #108: QtTesting - Merge Libs/QtTesting -> Libs/Testings
Author: jcfr
Created: 2011-12-02 01:21:52+00:00
State: open

The library Libs/Testing/Widgets and Libs/Testing/Utility should be created.

Their respective content would be:

Libs/Testing/Widgets:

* ctkEventTranslatorPlayerWidget.cpp
* ctkEventTranslatorPlayerWidget.h
* ctkXMLEventObserver.cpp
* ctkXMLEventObserver.h
* ctkXMLEventSource.cpp
* ctkXMLEventSource.h

Libs/Testing/Utility:

* ctkQtTestingUtility.cpp.in
* ctkQtTestingUtility.h

Note also that each Widgets library (CTKWidgets, CTKVisualizationVTKWidgets, ...) should contain an object named **ctk[LIBNAME]EventPlayersTranslators.h** with a content similar to:

#ifndef __ctk[LIBNAME]EventPlayersTranslators_h
#define __ctk[LIBNAME]EventPlayersTranslators_h
class ctk[LIBNAME]EventPlayersTranslators
{
public:
static void addPlayers(pqEventPlayer* eventPlayer);
static void addPlayers(pqEventTranslator* eventTranslator);
};
#endif

The list of *players* and *translators* added within their respective *addPlayers* function could either **hardcoded** or **generated using CMake macro**.