#include <BALL/VIEW/WIDGETS/testFramework.h>
Class for recording mouse and keyboard inputs, storing them in a line based file and replaying them. This can be used to
This widget will create it's own menu with the name ''Macros''. The ''Pause'' key can be used to stop the recording or pause the replay of a macro. If a mouse key is pressed in replay mode this will also cause a pause.
The file format is line based and its fields are separated with the degree sign (°). The first field consists of only one letter and defines the line's meaning:
The last two lines are only processed if a test is opened through a command line argument. Then comes the time in secs to wait before performing the action.
BALL::VIEW::TestFramework::TestFramework | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
virtual BALL::VIEW::TestFramework::~TestFramework | ( | ) | [virtual] |
void BALL::VIEW::TestFramework::abortTest | ( | ) | [slot] |
Test if this ModularWidget can handle a given file format
fileform | short string with the file extension (e.g. PDB) |
Reimplemented from BALL::VIEW::ModularWidget.
void BALL::VIEW::TestFramework::checkMenu | ( | MainControl & | main_control | ) | [virtual] |
Menu checking method. This method is called MainControl::checkMenus before a popup menu is shown. It should be used to update the state of menu entries (e.g. disable or enable entries).
main_control | the MainControl object whose menus should be checked |
Reimplemented from BALL::VIEW::ModularWidget.
virtual void BALL::VIEW::TestFramework::initializeWidget | ( | MainControl & | main_control | ) | [virtual] |
Initialize the widget. This method is called automatically immediately before the main application is started. It should add the widget's menu entries and connections (if required). This method will be called by MainControl::show.
main_control | the MainControl object to be initialized with this ModularWidget |
Reimplemented from BALL::VIEW::ModularWidget.
void BALL::VIEW::TestFramework::loadFile | ( | ) | [slot] |
Tell this ModularWidget to open a given file.
Reimplemented from BALL::VIEW::ModularWidget.
void BALL::VIEW::TestFramework::processEvent_ | ( | ) | [protected] |
void BALL::VIEW::TestFramework::runTest | ( | ) | [slot] |
void BALL::VIEW::TestFramework::saveFile | ( | ) | [slot] |
void BALL::VIEW::TestFramework::setFilename | ( | const String & | filename | ) |
void BALL::VIEW::TestFramework::startTest | ( | ) | [slot] |
void BALL::VIEW::TestFramework::stopTest | ( | ) | [slot] |
void BALL::VIEW::TestFramework::storeEvent | ( | QEvent & | e | ) | [protected] |
void BALL::VIEW::TestFramework::switchRecordMove | ( | ) | [slot] |
virtual void BALL::VIEW::TestFramework::timeOut | ( | ) | [virtual, slot] |
friend class MyEventThread [friend] |
QAction * BALL::VIEW::TestFramework::abort_test [protected] |
QAction* BALL::VIEW::TestFramework::action_ [protected] |
int BALL::VIEW::TestFramework::button_ [protected] |
int BALL::VIEW::TestFramework::buttons_ [protected] |
Size BALL::VIEW::TestFramework::errors_ [protected] |
bool BALL::VIEW::TestFramework::event_busy_ [protected] |
String BALL::VIEW::TestFramework::expected_result_ [protected] |
String BALL::VIEW::TestFramework::filename_ [protected] |
File BALL::VIEW::TestFramework::infile_ [protected] |
bool BALL::VIEW::TestFramework::is_command_line_ [protected] |
QEvent* BALL::VIEW::TestFramework::last_event_ [protected] |
String BALL::VIEW::TestFramework::last_event_string_ [protected] |
String BALL::VIEW::TestFramework::last_names_ [protected] |
QWidget * BALL::VIEW::TestFramework::last_widget_ [protected] |
Position BALL::VIEW::TestFramework::line_nr_ [protected] |
list<String> BALL::VIEW::TestFramework::lines_ [protected] |
QAction * BALL::VIEW::TestFramework::load_file [protected] |
float BALL::VIEW::TestFramework::max_run_time_ [protected] |
int BALL::VIEW::TestFramework::modifiers_ [protected] |
int BALL::VIEW::TestFramework::our_type_ [protected] |
File BALL::VIEW::TestFramework::outfile_ [protected] |
String BALL::VIEW::TestFramework::python_line_ [protected] |
bool BALL::VIEW::TestFramework::recording_ [protected] |
QAction * BALL::VIEW::TestFramework::run_test [protected] |
Timer BALL::VIEW::TestFramework::runtime_ [protected] |
QAction * BALL::VIEW::TestFramework::save_file [protected] |
String BALL::VIEW::TestFramework::shortcut_ [protected] |
QAction* BALL::VIEW::TestFramework::start_recording [protected] |
QAction * BALL::VIEW::TestFramework::stop_recording [protected] |
QAction * BALL::VIEW::TestFramework::switch_move [protected] |
bool BALL::VIEW::TestFramework::test_running_ [protected] |
MyEventThread BALL::VIEW::TestFramework::thread_ [protected] |
float BALL::VIEW::TestFramework::time_ [protected] |
Timer BALL::VIEW::TestFramework::timer_ [protected] |
int BALL::VIEW::TestFramework::type_ [protected] |
QWidget* BALL::VIEW::TestFramework::widget_ [protected] |
Index BALL::VIEW::TestFramework::x_ [protected] |
Index BALL::VIEW::TestFramework::y_ [protected] |