ForceAnnealing_goodresults
ForceAnnealing_tocheck
|
Last change
on this file since adbeca was 08d042, checked in by Frederik Heber <heber@…>, 10 years ago |
|
Added "--testsingle" switch for line-by-line execution.
- QTUIFactory checks for additional "single" and activates then a special
mode which uses the newly split executePythonScript.
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * QtUIFactory.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Jan 14, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef QTUIFACTORY_HPP_
|
|---|
| 9 | #define QTUIFACTORY_HPP_
|
|---|
| 10 |
|
|---|
| 11 | // include config.h
|
|---|
| 12 | #ifdef HAVE_CONFIG_H
|
|---|
| 13 | #include <config.h>
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | #include "UIElements/UIFactory.hpp"
|
|---|
| 18 |
|
|---|
| 19 | #include <boost/thread.hpp>
|
|---|
| 20 | #include <string>
|
|---|
| 21 | #include <vector>
|
|---|
| 22 |
|
|---|
| 23 | class QApplication;
|
|---|
| 24 |
|
|---|
| 25 | class QtUIFactory : public UIFactory
|
|---|
| 26 | {
|
|---|
| 27 | friend class UIFactory;
|
|---|
| 28 |
|
|---|
| 29 | public:
|
|---|
| 30 | virtual ~QtUIFactory();
|
|---|
| 31 |
|
|---|
| 32 | virtual Dialog* makeDialog(const std::string &_title);
|
|---|
| 33 | virtual MainWindow* makeMainWindow();
|
|---|
| 34 |
|
|---|
| 35 | struct description : public UIFactory::factoryDescription {
|
|---|
| 36 | description(int _argc, char **_argv);
|
|---|
| 37 | virtual ~description();
|
|---|
| 38 |
|
|---|
| 39 | virtual UIFactory* makeFactory();
|
|---|
| 40 |
|
|---|
| 41 | private:
|
|---|
| 42 | int argc;
|
|---|
| 43 | char **argv;
|
|---|
| 44 | };
|
|---|
| 45 | virtual std::string getUIName(){ return "Qt4"; }
|
|---|
| 46 |
|
|---|
| 47 | static bool isTestMode(const char *_argument);
|
|---|
| 48 |
|
|---|
| 49 | protected:
|
|---|
| 50 | QtUIFactory(int _argc, char **_argv);
|
|---|
| 51 |
|
|---|
| 52 | private:
|
|---|
| 53 |
|
|---|
| 54 | void testrun(const std::vector<std::string> _scripts, const bool _singleLineStepping = false) const;
|
|---|
| 55 |
|
|---|
| 56 | void testlauncher_sleep(const boost::posix_time::time_duration& _period) const;
|
|---|
| 57 |
|
|---|
| 58 | private:
|
|---|
| 59 | QApplication *app;
|
|---|
| 60 |
|
|---|
| 61 | int argc;
|
|---|
| 62 | char **argv;
|
|---|
| 63 |
|
|---|
| 64 | //!> internal flag to tell testlauncher_thread to stop
|
|---|
| 65 | mutable bool testlauncher_Interrupted;
|
|---|
| 66 |
|
|---|
| 67 | //!> internal thread to call Actions
|
|---|
| 68 | boost::thread *testlauncher_thread;
|
|---|
| 69 | };
|
|---|
| 70 |
|
|---|
| 71 | #endif /* QTUIFACTORY_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.