source: src/UIElements/Qt4/QtUIFactory.hpp@ cb98f1

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes stable
Last change on this file since cb98f1 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
23class QApplication;
24
25class QtUIFactory : public UIFactory
26{
27 friend class UIFactory;
28
29public:
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
49protected:
50 QtUIFactory(int _argc, char **_argv);
51
52private:
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
58private:
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.