CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Classes | Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Attributes | List of all members
ctkEventTranslatorPlayerWidget Class Reference

#include <Libs/QtTesting/ctkEventTranslatorPlayerWidget.h>

Inheritance diagram for ctkEventTranslatorPlayerWidget:
Inheritance graph
[legend]
Collaboration diagram for ctkEventTranslatorPlayerWidget:
Collaboration graph
[legend]

Public Types

typedef QMainWindow Superclass
 

Public Slots

void play ()
 

Signals

void playerDone (QWidget *widget)
 
void recordDone (QWidget *widget)
 
void startPlayerBack (QWidget *widget)
 

Public Member Functions

void addTestCase (QDialog *dialog, QString fileName, void(*newCallback)(void *data))
 
void addTestCase (QWidget *widget, QString fileName, void(*newCallback)(void *data))
 
void addWidgetEventPlayer (pqWidgetEventPlayer *player)
 
void addWidgetEventTranslator (pqWidgetEventTranslator *translator)
 
 ctkEventTranslatorPlayerWidget ()
 
void setTestUtility (pqTestUtility *newTestUtility)
 
pqTestUtility * testUtility () const
 
 ~ctkEventTranslatorPlayerWidget ()
 

Static Public Member Functions

static bool compare (const double &actual, const double &expected, const char *actualName, const char *expectedName, const char *function, int line)
 
static bool compare (const int &actual, const int &expected, const char *actualName, const char *expectedName, const char *function, int line)
 
static bool compare (const QColor &actual, const QColor &expected, const char *actualName, const char *expectedName, const char *function, int line)
 
static bool compare (const QDateTime &actual, const QDateTime &expected, const char *actualName, const char *expectedName, const char *function, int line)
 
static bool compare (const QImage &actual, const QImage &expected, const char *actualName, const char *expectedName, const char *function, int line)
 
static bool compare (const QString &actual, const QString &expected, const char *actualName, const char *expectedName, const char *function, int line)
 
static bool compare (const QStringList &actual, const QStringList &expected, const char *actualName, const char *expectedName, const char *function, int line)
 
static const char * enumValueToKey (QObject *object, const char *enumName, int value)
 

Protected Slots

void onClickedPlayback (bool)
 
void onClickedRecord (bool)
 
bool play (int currentTestCase)
 
void popupDialog ()
 
void record (int currentTestCase)
 
void switchTestCase (int testCase)
 

Protected Attributes

QScopedPointer< ctkEventTranslatorPlayerWidgetPrivate > d_ptr
 

Detailed Description

Definition at line 52 of file ctkEventTranslatorPlayerWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 57 of file ctkEventTranslatorPlayerWidget.h.

Constructor & Destructor Documentation

◆ ctkEventTranslatorPlayerWidget()

ctkEventTranslatorPlayerWidget::ctkEventTranslatorPlayerWidget ( )

◆ ~ctkEventTranslatorPlayerWidget()

ctkEventTranslatorPlayerWidget::~ctkEventTranslatorPlayerWidget ( )

Member Function Documentation

◆ addTestCase() [1/2]

void ctkEventTranslatorPlayerWidget::addTestCase ( QDialog *  dialog,
QString  fileName,
void(*)(void *data)  newCallback 
)

◆ addTestCase() [2/2]

void ctkEventTranslatorPlayerWidget::addTestCase ( QWidget *  widget,
QString  fileName,
void(*)(void *data)  newCallback 
)

◆ addWidgetEventPlayer()

void ctkEventTranslatorPlayerWidget::addWidgetEventPlayer ( pqWidgetEventPlayer *  player)

◆ addWidgetEventTranslator()

void ctkEventTranslatorPlayerWidget::addWidgetEventTranslator ( pqWidgetEventTranslator *  translator)

◆ compare() [1/7]

static bool ctkEventTranslatorPlayerWidget::compare ( const double &  actual,
const double &  expected,
const char *  actualName,
const char *  expectedName,
const char *  function,
int  line 
)
static

◆ compare() [2/7]

static bool ctkEventTranslatorPlayerWidget::compare ( const int &  actual,
const int &  expected,
const char *  actualName,
const char *  expectedName,
const char *  function,
int  line 
)
static

◆ compare() [3/7]

static bool ctkEventTranslatorPlayerWidget::compare ( const QColor &  actual,
const QColor &  expected,
const char *  actualName,
const char *  expectedName,
const char *  function,
int  line 
)
static

◆ compare() [4/7]

static bool ctkEventTranslatorPlayerWidget::compare ( const QDateTime &  actual,
const QDateTime &  expected,
const char *  actualName,
const char *  expectedName,
const char *  function,
int  line 
)
static

◆ compare() [5/7]

static bool ctkEventTranslatorPlayerWidget::compare ( const QImage &  actual,
const QImage &  expected,
const char *  actualName,
const char *  expectedName,
const char *  function,
int  line 
)
static

◆ compare() [6/7]

static bool ctkEventTranslatorPlayerWidget::compare ( const QString &  actual,
const QString &  expected,
const char *  actualName,
const char *  expectedName,
const char *  function,
int  line 
)
static

◆ compare() [7/7]

static bool ctkEventTranslatorPlayerWidget::compare ( const QStringList &  actual,
const QStringList &  expected,
const char *  actualName,
const char *  expectedName,
const char *  function,
int  line 
)
static

◆ enumValueToKey()

static const char* ctkEventTranslatorPlayerWidget::enumValueToKey ( QObject *  object,
const char *  enumName,
int  value 
)
static

◆ onClickedPlayback

void ctkEventTranslatorPlayerWidget::onClickedPlayback ( bool  )
protectedslot

◆ onClickedRecord

void ctkEventTranslatorPlayerWidget::onClickedRecord ( bool  )
protectedslot

◆ play [1/2]

void ctkEventTranslatorPlayerWidget::play ( )
slot

◆ play [2/2]

bool ctkEventTranslatorPlayerWidget::play ( int  currentTestCase)
protectedslot

◆ playerDone

void ctkEventTranslatorPlayerWidget::playerDone ( QWidget *  widget)
signal

◆ popupDialog

void ctkEventTranslatorPlayerWidget::popupDialog ( )
protectedslot

◆ record

void ctkEventTranslatorPlayerWidget::record ( int  currentTestCase)
protectedslot

◆ recordDone

void ctkEventTranslatorPlayerWidget::recordDone ( QWidget *  widget)
signal

◆ setTestUtility()

void ctkEventTranslatorPlayerWidget::setTestUtility ( pqTestUtility *  newTestUtility)

◆ startPlayerBack

void ctkEventTranslatorPlayerWidget::startPlayerBack ( QWidget *  widget)
signal

◆ switchTestCase

void ctkEventTranslatorPlayerWidget::switchTestCase ( int  testCase)
protectedslot

◆ testUtility()

pqTestUtility* ctkEventTranslatorPlayerWidget::testUtility ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer< ctkEventTranslatorPlayerWidgetPrivate > ctkEventTranslatorPlayerWidget::d_ptr
protected

Definition at line 104 of file ctkEventTranslatorPlayerWidget.h.


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