5 #ifndef BALL_VIEW_WIDGETS_TESTFRAMEWORK_H
6 #define BALL_VIEW_WIDGETS_TESTFRAMEWORK_H
8 #ifndef BALL_VIEW_WIDGETS_DOCKWIDGET_H
12 #ifndef BALL_SYSTEM_FILE_H
16 #ifndef BALL_SYSTEM_TIMER_H
20 #include <QtCore/QThread>
69 MyMouseEvent(Type type,
const QPoint & position, Qt::MouseButton button,
70 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
71 :
QMouseEvent(type, position, button, buttons, modifiers) {}
87 friend class MyEventThread;
100 virtual
void initializeWidget(
MainControl& main_control);
103 void setFilename(const
String& filename);
109 virtual
bool canHandle(const
String& fileformat) const;
112 virtual
bool openFile(const
String& filename);
138 virtual
void timeOut();
141 void switchRecordMove();
145 virtual
bool event(
QEvent* e);
147 void storeEvent(
QEvent& e);
149 void processEvent_();
151 QAction* start_recording, *stop_recording, *run_test, *abort_test,
152 *save_file, *load_file, *switch_move;
164 int modifiers_, type_, our_type_, button_, buttons_;
165 bool test_running_, recording_;
166 String last_event_string_, last_names_, shortcut_;
169 MyEventThread thread_;
172 bool is_command_line_;
179 #endif // BALL_VIEW_WIDGETS_TESTFRAMEWORK_H
#define BALL_EMBEDDABLE(TYPE, BASE)