Public Slots | Public Member Functions | Static Public Member Functions

ctkTestApplication Class Reference

#include <Libs/Widgets/ctkTestApplication.h>

List of all members.

Public Slots

void runTestSlot ()

Public Member Functions

 ctkTestApplication (int _argc, char **_argv)
virtual void runTest ()
 ~ctkTestApplication ()

Static Public Member Functions

static void delay (int ms)
static int exec (bool reportErrorsOnExit=false)
static void keyClick (QWidget *w, Qt::Key key, Qt::KeyboardModifiers mod, int ms)
static void keyDown (QWidget *w, Qt::Key key, Qt::KeyboardModifiers mod, int ms)
static void keyUp (QWidget *w, Qt::Key key, Qt::KeyboardModifiers mod, int ms)
static void messageHandler (QtMsgType type, const char *msg)
static void mouseClick (QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static void mouseDClick (QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static void mouseDown (QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static void mouseMove (QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static void mouseUp (QWidget *w, QPoint pos, Qt::MouseButton btn, Qt::KeyboardModifiers mod, int ms)
static bool simulateEvent (QWidget *w, QEvent *e)

Detailed Description

Definition at line 82 of file ctkTestApplication.h.


Constructor & Destructor Documentation

ctkTestApplication::ctkTestApplication ( int  _argc,
char **  _argv 
)

Definition at line 55 of file ctkTestApplication.cpp.

ctkTestApplication::~ctkTestApplication (  ) 

Definition at line 75 of file ctkTestApplication.cpp.


Member Function Documentation

void ctkTestApplication::delay ( int  ms  )  [static]

Definition at line 135 of file ctkTestApplication.cpp.

int ctkTestApplication::exec ( bool  reportErrorsOnExit = false  )  [static]

If reportErrorsOnExit is true, then the return value will be the number of warning messages plus the number of error messages produced by QDebug during execution.

Definition at line 93 of file ctkTestApplication.cpp.

void ctkTestApplication::keyClick ( QWidget *  w,
Qt::Key  key,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 195 of file ctkTestApplication.cpp.

void ctkTestApplication::keyDown ( QWidget *  w,
Qt::Key  key,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 174 of file ctkTestApplication.cpp.

void ctkTestApplication::keyUp ( QWidget *  w,
Qt::Key  key,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 153 of file ctkTestApplication.cpp.

void ctkTestApplication::messageHandler ( QtMsgType  type,
const char *  msg 
) [static]

Definition at line 113 of file ctkTestApplication.cpp.

void ctkTestApplication::mouseClick ( QWidget *  w,
QPoint  pos,
Qt::MouseButton  btn,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 239 of file ctkTestApplication.cpp.

void ctkTestApplication::mouseDClick ( QWidget *  w,
QPoint  pos,
Qt::MouseButton  btn,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 248 of file ctkTestApplication.cpp.

void ctkTestApplication::mouseDown ( QWidget *  w,
QPoint  pos,
Qt::MouseButton  btn,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 203 of file ctkTestApplication.cpp.

void ctkTestApplication::mouseMove ( QWidget *  w,
QPoint  pos,
Qt::MouseButton  btn,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 227 of file ctkTestApplication.cpp.

void ctkTestApplication::mouseUp ( QWidget *  w,
QPoint  pos,
Qt::MouseButton  btn,
Qt::KeyboardModifiers  mod,
int  ms 
) [static]

Definition at line 215 of file ctkTestApplication.cpp.

void ctkTestApplication::runTest (  )  [virtual]

This function could be overloaded to implement test that required an active event loop

Definition at line 88 of file ctkTestApplication.cpp.

void ctkTestApplication::runTestSlot (  )  [slot]

Slot responsible to invoke the virtual function 'runTest'. The typical use case consists in calling that slot using a singleShot QTimer

Definition at line 82 of file ctkTestApplication.cpp.

bool ctkTestApplication::simulateEvent ( QWidget *  w,
QEvent *  e 
) [static]

Definition at line 145 of file ctkTestApplication.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines