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

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Added_ParseSaveFragmentResults AddingActions_SaveParseParticleParameters Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_ParticleName_to_Atom Adding_StructOpt_integration_tests AtomFragments Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator CombiningParticlePotentialParsing Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_BoundInBox_CenterInBox_MoleculeActions Fix_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_PopActions Fix_QtFragmentList_sorted_selection Fix_Restrictedkeyset_FragmentMolecule Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns Fix_fitting_potentials Fixes ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion FragmentAction_writes_AtomFragments FragmentMolecule_checks_bonddegrees GeometryObjects Gui_Fixes Gui_displays_atomic_force_velocity ImplicitCharges IndependentFragmentGrids IndependentFragmentGrids_IndividualZeroInstances IndependentFragmentGrids_IntegrationTest IndependentFragmentGrids_Sole_NN_Calculation JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix MoreRobust_FragmentAutomation ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PdbParser_setsAtomName PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks Rewrite_FitPartialCharges RotateToPrincipalAxisSystem_UndoRedo SaturateAtoms_findBestMatching SaturateAtoms_singleDegree StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg Switchable_LogView ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps TremoloParser_setsAtomName Ubuntu_1604_changes stable
Last change on this file since 136842 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
RevLine 
[ea94a8]1/*
[4cf323d]2 * QtUIFactory.hpp
[ea94a8]3 *
4 * Created on: Jan 14, 2010
5 * Author: crueger
6 */
7
8#ifndef QTUIFACTORY_HPP_
9#define QTUIFACTORY_HPP_
10
[56f73b]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
[ea94a8]17#include "UIElements/UIFactory.hpp"
18
[15e197]19#include <boost/thread.hpp>
20#include <string>
21#include <vector>
22
[8f67e2]23class QApplication;
24
[4cf323d]25class QtUIFactory : public UIFactory
[ea94a8]26{
27 friend class UIFactory;
28
29public:
[4cf323d]30 virtual ~QtUIFactory();
[ea94a8]31
[163110]32 virtual Dialog* makeDialog(const std::string &_title);
[257c77]33 virtual MainWindow* makeMainWindow();
[ea94a8]34
[82b71a]35 struct description : public UIFactory::factoryDescription {
[15e197]36 description(int _argc, char **_argv);
[82b71a]37 virtual ~description();
38
39 virtual UIFactory* makeFactory();
[15e197]40
41 private:
42 int argc;
43 char **argv;
44 };
[462201]45 virtual std::string getUIName(){ return "Qt4"; }
[82b71a]46
[3054689]47 static bool isTestMode(const char *_argument);
48
[ea94a8]49protected:
[15e197]50 QtUIFactory(int _argc, char **_argv);
51
52private:
53
[08d042]54 void testrun(const std::vector<std::string> _scripts, const bool _singleLineStepping = false) const;
[15e197]55
56 void testlauncher_sleep(const boost::posix_time::time_duration& _period) const;
[8f67e2]57
58private:
[15e197]59 QApplication *app;
60
[6a661c]61 int argc;
62 char **argv;
[15e197]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;
[ea94a8]69};
70
71#endif /* QTUIFACTORY_HPP_ */
Note: See TracBrowser for help on using the repository browser.