Changeset 1c55b8 for src/UIElements
- Timestamp:
- Aug 27, 2012, 11:36:59 AM (13 years ago)
- Branches:
- 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, Candidate_v1.7.0, 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
- Children:
- 852ea3
- Parents:
- a55e6f
- git-author:
- Michael Ankele <ankele@…> (08/14/12 14:52:25)
- git-committer:
- Michael Ankele <ankele@…> (08/27/12 11:36:59)
- Location:
- src/UIElements
- Files:
-
- 21 deleted
- 69 edited
-
CommandLineUI/Query/AtomCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/AtomsCommandLineQuery.cpp (modified) (2 diffs)
-
CommandLineUI/Query/BooleanCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/CommandLineQuery.hpp (modified) (21 diffs)
-
CommandLineUI/Query/DoubleCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/DoublesCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/ElementCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/ElementsCommandLineQuery.cpp (modified) (2 diffs)
-
CommandLineUI/Query/FileCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/FilesCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/IntCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/IntsCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/MoleculeCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/MoleculesCommandLineQuery.cpp (modified) (2 diffs)
-
CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/StringCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/StringsCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/VectorCommandLineQuery.cpp (modified) (1 diff)
-
CommandLineUI/Query/VectorsCommandLineQuery.cpp (modified) (2 diffs)
-
Dialog.cpp (modified) (1 diff)
-
Dialog.hpp (modified) (3 diffs)
-
Makefile.am (modified) (1 diff)
-
Qt4/Query/AtomQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/AtomsQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/BooleanQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/DoubleQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/DoublesQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/ElementQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/ElementsQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/FileQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/FilesQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/IntQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/IntsQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/MoleculeQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/MoleculesQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/QtQuery.hpp (modified) (21 diffs)
-
Qt4/Query/RandomNumberDistribution_ParametersQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/RealSpaceMatrixQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/StringQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/StringsQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/UnsignedIntQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/UnsignedIntsQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/VectorQtQuery.cpp (modified) (1 diff)
-
Qt4/Query/VectorsQtQuery.cpp (modified) (1 diff)
-
Query/AtomQuery.cpp (deleted)
-
Query/AtomsQuery.cpp (deleted)
-
Query/BooleanQuery.cpp (deleted)
-
Query/DoubleQuery.cpp (deleted)
-
Query/DoublesQuery.cpp (deleted)
-
Query/ElementQuery.cpp (deleted)
-
Query/ElementsQuery.cpp (deleted)
-
Query/FileQuery.cpp (deleted)
-
Query/FilesQuery.cpp (deleted)
-
Query/IntQuery.cpp (deleted)
-
Query/IntsQuery.cpp (deleted)
-
Query/MoleculeQuery.cpp (deleted)
-
Query/MoleculesQuery.cpp (deleted)
-
Query/RandomNumberDistribution_ParametersQuery.cpp (deleted)
-
Query/RealSpaceMatrixQuery.cpp (deleted)
-
Query/StringQuery.cpp (deleted)
-
Query/StringsQuery.cpp (deleted)
-
Query/UnsignedIntQuery.cpp (deleted)
-
Query/UnsignedIntsQuery.cpp (deleted)
-
Query/VectorQuery.cpp (deleted)
-
Query/VectorsQuery.cpp (deleted)
-
TextUI/Query/AtomTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/AtomsTextQuery.cpp (modified) (2 diffs)
-
TextUI/Query/BooleanTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/DoubleTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/DoublesTextQuery.cpp (modified) (2 diffs)
-
TextUI/Query/ElementTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/ElementsTextQuery.cpp (modified) (2 diffs)
-
TextUI/Query/FileTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/FilesTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/IntTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/IntsTextQuery.cpp (modified) (2 diffs)
-
TextUI/Query/MoleculeTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/MoleculesTextQuery.cpp (modified) (2 diffs)
-
TextUI/Query/RandomNumberDistribution_ParametersTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/RealSpaceMatrixTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/StringTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/StringsTextQuery.cpp (modified) (2 diffs)
-
TextUI/Query/TextQuery.hpp (modified) (21 diffs)
-
TextUI/Query/UnsignedIntTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/UnsignedIntsTextQuery.cpp (modified) (2 diffs)
-
TextUI/Query/VectorTextQuery.cpp (modified) (1 diff)
-
TextUI/Query/VectorsTextQuery.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp
ra55e6f r1c55b8 34 34 35 35 CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description) : 36 Dialog:: AtomQuery(_param, title, _description)36 Dialog::TQuery<const atom*>(_param, title, _description) 37 37 {} 38 38 -
src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description) : 31 Dialog:: AtomsQuery(_param, title, _description)31 Dialog::TQuery<std::vector<const atom *> >(_param, title, _description) 32 32 {} 33 33 … … 38 38 if (CommandLineParser::getInstance().vm.count(getTitle())) { 39 39 IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >(); 40 const atom *temp_element; 40 41 for (std::vector<int>::iterator iter = IdxOfAtom.begin(); iter != IdxOfAtom.end(); ++iter) { 41 42 temp_element = World::getInstance().getAtom(AtomById(*iter)); -
src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description) : 28 Dialog:: BooleanQuery(_param, title, _description)28 Dialog::TQuery<bool>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp
ra55e6f r1c55b8 24 24 }; 25 25 26 class CommandLineDialog::IntCommandLineQuery : public Dialog:: IntQuery{26 class CommandLineDialog::IntCommandLineQuery : public Dialog::TQuery<int> { 27 27 public: 28 28 IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description = ""); … … 31 31 }; 32 32 33 class CommandLineDialog::IntsCommandLineQuery : public Dialog:: IntsQuery{33 class CommandLineDialog::IntsCommandLineQuery : public Dialog::TQuery<std::vector<int> > { 34 34 public: 35 35 IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description = ""); … … 38 38 }; 39 39 40 class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog:: UnsignedIntQuery{40 class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::TQuery<unsigned int> { 41 41 public: 42 42 UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description = ""); … … 45 45 }; 46 46 47 class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog:: UnsignedIntsQuery{47 class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::TQuery<std::vector<unsigned int> > { 48 48 public: 49 49 UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description = ""); … … 52 52 }; 53 53 54 class CommandLineDialog::BooleanCommandLineQuery : public Dialog:: BooleanQuery{54 class CommandLineDialog::BooleanCommandLineQuery : public Dialog::TQuery<bool> { 55 55 public: 56 56 BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description = ""); … … 59 59 }; 60 60 61 class CommandLineDialog::DoubleCommandLineQuery : public Dialog:: DoubleQuery{61 class CommandLineDialog::DoubleCommandLineQuery : public Dialog::TQuery<double> { 62 62 public: 63 63 DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description = ""); … … 66 66 }; 67 67 68 class CommandLineDialog::DoublesCommandLineQuery : public Dialog:: DoublesQuery{68 class CommandLineDialog::DoublesCommandLineQuery : public Dialog::TQuery<std::vector<double> > { 69 69 public: 70 70 DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description = ""); … … 73 73 }; 74 74 75 class CommandLineDialog::StringCommandLineQuery : public Dialog:: StringQuery{75 class CommandLineDialog::StringCommandLineQuery : public Dialog::TQuery<std::string> { 76 76 public: 77 77 StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description = ""); … … 80 80 }; 81 81 82 class CommandLineDialog::StringsCommandLineQuery : public Dialog:: StringsQuery{82 class CommandLineDialog::StringsCommandLineQuery : public Dialog::TQuery<std::vector<std::string> > { 83 83 public: 84 84 StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description = ""); … … 87 87 }; 88 88 89 class CommandLineDialog::AtomCommandLineQuery : public Dialog:: AtomQuery{89 class CommandLineDialog::AtomCommandLineQuery : public Dialog::TQuery<const atom *> { 90 90 public: 91 91 AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description = ""); … … 94 94 }; 95 95 96 class CommandLineDialog::AtomsCommandLineQuery : public Dialog:: AtomsQuery{96 class CommandLineDialog::AtomsCommandLineQuery : public Dialog::TQuery<std::vector<const atom*> > { 97 97 public: 98 98 AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description = ""); … … 101 101 }; 102 102 103 class CommandLineDialog::MoleculeCommandLineQuery : public Dialog:: MoleculeQuery{103 class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::TQuery<const molecule *> { 104 104 public: 105 105 MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description = ""); … … 108 108 }; 109 109 110 class CommandLineDialog::MoleculesCommandLineQuery : public Dialog:: MoleculesQuery{110 class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::TQuery<std::vector<const molecule*> > { 111 111 public: 112 112 MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description = ""); … … 115 115 }; 116 116 117 class CommandLineDialog::VectorCommandLineQuery : public Dialog:: VectorQuery{117 class CommandLineDialog::VectorCommandLineQuery : public Dialog::TQuery<Vector> { 118 118 public: 119 119 VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description = ""); … … 122 122 }; 123 123 124 class CommandLineDialog::VectorsCommandLineQuery : public Dialog:: VectorsQuery{124 class CommandLineDialog::VectorsCommandLineQuery : public Dialog::TQuery<std::vector<Vector> > { 125 125 public: 126 126 VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description = ""); … … 129 129 }; 130 130 131 class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog:: RealSpaceMatrixQuery{131 class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::TQuery<RealSpaceMatrix> { 132 132 public: 133 133 RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description = ""); … … 136 136 }; 137 137 138 class CommandLineDialog::ElementCommandLineQuery : public Dialog:: ElementQuery{138 class CommandLineDialog::ElementCommandLineQuery : public Dialog::TQuery<const element *> { 139 139 public: 140 140 ElementCommandLineQuery(Parameter<const element *> &_param, std::string title, std::string _description = ""); … … 143 143 }; 144 144 145 class CommandLineDialog::ElementsCommandLineQuery : public Dialog:: ElementsQuery{145 class CommandLineDialog::ElementsCommandLineQuery : public Dialog::TQuery<std::vector<const element *> > { 146 146 public: 147 147 ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string _description = ""); … … 150 150 }; 151 151 152 class CommandLineDialog::FileCommandLineQuery : public Dialog:: FileQuery{152 class CommandLineDialog::FileCommandLineQuery : public Dialog::TQuery<boost::filesystem::path> { 153 153 public: 154 154 FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description = ""); … … 157 157 }; 158 158 159 class CommandLineDialog::FilesCommandLineQuery : public Dialog:: FilesQuery{159 class CommandLineDialog::FilesCommandLineQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > { 160 160 public: 161 161 FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, std::string title, std::string _description = ""); … … 164 164 }; 165 165 166 class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog:: RandomNumberDistribution_ParametersQuery{166 class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> { 167 167 public: 168 168 RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description = ""); -
src/UIElements/CommandLineUI/Query/DoubleCommandLineQuery.cpp
ra55e6f r1c55b8 27 27 28 28 CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description) : 29 Dialog:: DoubleQuery(_param, title, _description)29 Dialog::TQuery<double>(_param, title, _description) 30 30 {} 31 31 -
src/UIElements/CommandLineUI/Query/DoublesCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description) : 28 Dialog:: DoublesQuery(_param, title, _description)28 Dialog::TQuery<std::vector<double> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &_param, std::string title, std::string _description) : 31 Dialog:: ElementQuery(_param, title, _description)31 Dialog::TQuery<const element *>(_param, title, _description) 32 32 {} 33 33 -
src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &_param, std::string title, std::string _description) : 31 Dialog:: ElementsQuery(_param, title, _description)31 Dialog::TQuery<std::vector<const element *> >(_param, title, _description) 32 32 {} 33 33 … … 40 40 if (CommandLineParser::getInstance().vm.count(getTitle())) { 41 41 vector<int> AllElements = CommandLineParser::getInstance().vm[getTitle()].as< vector<int> >(); 42 const element *temp_element; 42 43 for (vector<int>::iterator ZRunner = AllElements.begin(); ZRunner != AllElements.end(); ++ZRunner) { 43 44 temp_element = periode->FindElement(*ZRunner); -
src/UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description) : 28 Dialog:: FileQuery(_param, title, _description)28 Dialog::TQuery<boost::filesystem::path>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &_param, std::string title, std::string _description) : 28 Dialog:: FilesQuery(_param, title, _description)28 Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description) : 28 Dialog:: IntQuery(_param, title, _description)28 Dialog::TQuery<int>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description) : 28 Dialog:: IntsQuery(_param, title, _description)28 Dialog::TQuery<std::vector<int> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp
ra55e6f r1c55b8 29 29 30 30 CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description) : 31 Dialog:: MoleculeQuery(_param, title, _description)31 Dialog::TQuery<const molecule *>(_param, title, _description) 32 32 {} 33 33 -
src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp
ra55e6f r1c55b8 30 30 31 31 CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description) : 32 Dialog:: MoleculesQuery(_param, title, _description)32 Dialog::TQuery<std::vector<const molecule *> >(_param, title, _description) 33 33 {} 34 34 … … 40 40 IdxOfMol = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >(); 41 41 for (std::vector<int>::iterator iter = IdxOfMol.begin(); iter != IdxOfMol.end(); ++iter) { 42 temp_element = World::getInstance().getMolecule(MoleculeById(*iter));42 const molecule *temp_element = World::getInstance().getMolecule(MoleculeById(*iter)); 43 43 if (temp_element) 44 44 temp.push_back(temp_element); -
src/UIElements/CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp
ra55e6f r1c55b8 32 32 33 33 CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description) : 34 Dialog:: RandomNumberDistribution_ParametersQuery(_param, title, _description)34 Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, title, _description) 35 35 {} 36 36 -
src/UIElements/CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp
ra55e6f r1c55b8 28 28 29 29 CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description) : 30 Dialog:: RealSpaceMatrixQuery(_param, title, _description)30 Dialog::TQuery<RealSpaceMatrix>(_param, title, _description) 31 31 {} 32 32 -
src/UIElements/CommandLineUI/Query/StringCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description) : 28 Dialog:: StringQuery(_param, title, _description)28 Dialog::TQuery<std::string>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/StringsCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description) : 28 Dialog:: StringsQuery(_param, title, _description)28 Dialog::TQuery<std::vector<std::string> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description) : 28 Dialog:: UnsignedIntQuery(_param, title, _description)28 Dialog::TQuery<unsigned int>(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp
ra55e6f r1c55b8 26 26 27 27 CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description) : 28 Dialog:: UnsignedIntsQuery(_param, title, _description)28 Dialog::TQuery<std::vector<unsigned int> >(_param, title, _description) 29 29 {} 30 30 -
src/UIElements/CommandLineUI/Query/VectorCommandLineQuery.cpp
ra55e6f r1c55b8 30 30 31 31 CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description) : 32 Dialog:: VectorQuery(_param, title, _description)32 Dialog::TQuery<Vector>(_param, title, _description) 33 33 {} 34 34 -
src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp
ra55e6f r1c55b8 30 30 31 31 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description) : 32 Dialog:: VectorsQuery(_param, title, _description)32 Dialog::TQuery<std::vector<Vector> >(_param, title, _description) 33 33 {} 34 34 … … 41 41 temporary = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<VectorValue> >(); 42 42 for(std::vector<VectorValue>::iterator iter = temporary.begin(); iter != temporary.end(); ++iter) { 43 temp_element = (*iter).toVector();43 Vector temp_element = (*iter).toVector(); 44 44 temp.push_back(temp_element); 45 45 } -
src/UIElements/Dialog.cpp
ra55e6f r1c55b8 99 99 } 100 100 101 template <> void Dialog::query<void *>(Parameter<void *> ¶m, const char *token, std::string description)102 { 103 queryEmpty( token, description);104 } 101 /*template <> void Dialog::query<Dialog::EmptyType>(Parameter<Dialog::EmptyType> ¶m, const char *token, std::string description) 102 { 103 queryEmpty(param, token, description); 104 }*/ 105 105 106 106 template <> void Dialog::query<bool>(Parameter<bool> ¶m, const char *token, std::string description) -
src/UIElements/Dialog.hpp
ra55e6f r1c55b8 156 156 virtual ~Dialog(); 157 157 158 // Used as type for empty queries. 159 //class EmptyType{}; 160 158 161 template <class T> void query(Parameter<T> &, const char *, std::string = ""); 159 162 … … 256 259 }; 257 260 261 262 template<class T> 263 class TQuery : public Query { 264 public: 265 TQuery(Parameter<T> &_param, std::string title, std::string _description = "") : 266 Query(title, _description), param(_param) {} 267 virtual ~TQuery(){} 268 virtual bool handle()=0; 269 virtual void setResult(){} 270 protected: 271 T temp; 272 Parameter<T> ¶m; 273 }; 274 258 275 // Empty Query is just meant for showing text, such as version, help, initial message or alike 259 276 class EmptyQuery : public Query { … … 265 282 }; 266 283 267 //Specialized classes for certain types. GUI-Types are not specialized at this time268 class BooleanQuery : public Query {269 public:270 BooleanQuery(Parameter<bool> &_param, std::string title, std::string _description = "");271 virtual ~BooleanQuery();272 virtual bool handle()=0;273 virtual void setResult();274 protected:275 bool temp;276 Parameter<bool> ¶m;277 };278 279 class IntQuery : public Query {280 public:281 IntQuery(Parameter<int> &_param, std::string title, std::string _description = "");282 virtual ~IntQuery();283 virtual bool handle()=0;284 virtual void setResult();285 protected:286 int temp;287 Parameter<int> ¶m;288 };289 290 class IntsQuery : public Query {291 public:292 IntsQuery(Parameter<std::vector<int> > &, std::string title, std::string _description = "");293 virtual ~IntsQuery();294 virtual bool handle()=0;295 virtual void setResult();296 protected:297 int temp_element;298 std::vector<int> temp;299 Parameter<std::vector<int> > ¶m;300 };301 302 class UnsignedIntQuery : public Query {303 public:304 UnsignedIntQuery(Parameter<unsigned int> &, std::string title, std::string _description = "");305 virtual ~UnsignedIntQuery();306 virtual bool handle()=0;307 virtual void setResult();308 protected:309 unsigned int temp;310 Parameter<unsigned int> ¶m;311 };312 313 class UnsignedIntsQuery : public Query {314 public:315 UnsignedIntsQuery(Parameter<std::vector<unsigned int> > &, std::string title, std::string _description = "");316 virtual ~UnsignedIntsQuery();317 virtual bool handle()=0;318 virtual void setResult();319 protected:320 unsigned int temp_element;321 std::vector<unsigned int> temp;322 Parameter<std::vector<unsigned int> > ¶m;323 };324 325 class DoubleQuery : public Query {326 public:327 DoubleQuery(Parameter<double> &, std::string title, std::string _description = "");328 virtual ~DoubleQuery();329 virtual bool handle()=0;330 virtual void setResult();331 protected:332 double temp;333 Parameter<double> ¶m;334 };335 336 class DoublesQuery : public Query {337 public:338 DoublesQuery(Parameter<std::vector<double> > &, std::string title, std::string _description = "");339 virtual ~DoublesQuery();340 virtual bool handle()=0;341 virtual void setResult();342 protected:343 double temp_element;344 std::vector<double> temp;345 Parameter<std::vector<double> > ¶m;346 };347 348 class StringQuery : public Query {349 public:350 StringQuery(Parameter<std::string> &_param, std::string title, std::string _description = "");351 virtual ~StringQuery();352 virtual bool handle()=0;353 virtual void setResult();354 protected:355 std::string temp;356 Parameter<std::string> ¶m;357 };358 359 class StringsQuery : public Query {360 public:361 StringsQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description = "");362 virtual ~StringsQuery();363 virtual bool handle()=0;364 virtual void setResult();365 protected:366 std::string temp_element;367 std::vector<std::string> temp;368 Parameter<std::vector<std::string> > ¶m;369 };370 371 class MoleculeQuery : public Query {372 public:373 MoleculeQuery(Parameter<const molecule *> &_param, std::string title, std::string _description = "");374 virtual ~MoleculeQuery();375 virtual bool handle()=0;376 virtual void setResult();377 protected:378 const molecule * temp;379 Parameter<const molecule *> ¶m;380 };381 382 class MoleculesQuery : public Query {383 public:384 MoleculesQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description = "");385 virtual ~MoleculesQuery();386 virtual bool handle()=0;387 virtual void setResult();388 protected:389 const molecule * temp_element;390 std::vector<const molecule *> temp;391 Parameter<std::vector<const molecule *> > ¶m;392 };393 394 class AtomQuery : public Query {395 public:396 AtomQuery(Parameter<const atom *> &_param, std::string title, std::string _description = "");397 virtual ~AtomQuery();398 virtual bool handle()=0;399 virtual void setResult();400 protected:401 const atom *temp;402 Parameter<const atom *> ¶m;403 };404 405 class AtomsQuery : public Query {406 public:407 AtomsQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description = "");408 virtual ~AtomsQuery();409 virtual bool handle()=0;410 virtual void setResult();411 protected:412 const atom *temp_element;413 std::vector<const atom *> temp;414 Parameter<std::vector<const atom *> > ¶m;415 };416 417 class VectorQuery : public Query {418 public:419 VectorQuery(Parameter<Vector> &_param, std::string title, std::string _description = "");420 virtual ~VectorQuery();421 virtual bool handle()=0;422 virtual void setResult();423 protected:424 Vector temp;425 Parameter<Vector> ¶m;426 };427 428 class VectorsQuery : public Query {429 public:430 VectorsQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description = "");431 virtual ~VectorsQuery();432 virtual bool handle()=0;433 virtual void setResult();434 protected:435 Vector temp_element;436 std::vector<Vector> temp;437 Parameter<std::vector<Vector> > ¶m;438 };439 440 class RealSpaceMatrixQuery : public Query {441 public:442 RealSpaceMatrixQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description = "");443 virtual ~RealSpaceMatrixQuery();444 virtual bool handle()=0;445 virtual void setResult();446 protected:447 RealSpaceMatrix temp;448 Parameter<RealSpaceMatrix> ¶m;449 };450 451 class ElementQuery : public Query {452 public:453 ElementQuery(Parameter<const element*> &_param, std::string title, std::string _description = "");454 virtual ~ElementQuery();455 virtual bool handle()=0;456 virtual void setResult();457 protected:458 const element *temp;459 Parameter<const element *> ¶m;460 };461 462 class ElementsQuery : public Query {463 public:464 ElementsQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string _description = "");465 virtual ~ElementsQuery();466 virtual bool handle()=0;467 virtual void setResult();468 protected:469 const element *temp_element;470 std::vector<const element *> temp;471 Parameter<std::vector<const element *> > ¶m;472 };473 474 class FileQuery : public Query {475 public:476 FileQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description = "");477 virtual ~FileQuery();478 virtual bool handle()=0;479 virtual void setResult();480 protected:481 boost::filesystem::path temp;482 Parameter<boost::filesystem::path> ¶m;483 };484 485 class FilesQuery : public Query {486 public:487 FilesQuery(Parameter<std::vector<boost::filesystem::path> > &_param, std::string title, std::string _description = "");488 virtual ~FilesQuery();489 virtual bool handle()=0;490 virtual void setResult();491 protected:492 boost::filesystem::path temp_element;493 std::vector<boost::filesystem::path> temp;494 Parameter<std::vector<boost::filesystem::path> > ¶m;495 };496 497 class RandomNumberDistribution_ParametersQuery : public Query {498 public:499 RandomNumberDistribution_ParametersQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description = "");500 virtual ~RandomNumberDistribution_ParametersQuery();501 virtual bool handle()=0;502 virtual void setResult();503 protected:504 RandomNumberDistribution_Parameters temp;505 Parameter<RandomNumberDistribution_Parameters> ¶m;506 };507 508 284 void registerQuery(Query* query); 509 285 -
src/UIElements/Makefile.am
ra55e6f r1c55b8 122 122 ${TEXTUISOURCE} \ 123 123 ${VIEWSOURCE} \ 124 UIElements/Query/AtomQuery.cpp \125 UIElements/Query/AtomsQuery.cpp \126 UIElements/Query/BooleanQuery.cpp \127 UIElements/Query/DoubleQuery.cpp \128 UIElements/Query/DoublesQuery.cpp \129 UIElements/Query/ElementQuery.cpp \130 UIElements/Query/ElementsQuery.cpp \131 124 UIElements/Query/EmptyQuery.cpp \ 132 UIElements/Query/FileQuery.cpp \133 UIElements/Query/FilesQuery.cpp \134 UIElements/Query/IntQuery.cpp \135 UIElements/Query/IntsQuery.cpp \136 UIElements/Query/MoleculeQuery.cpp \137 UIElements/Query/MoleculesQuery.cpp \138 125 UIElements/Query/Query.cpp \ 139 UIElements/Query/RandomNumberDistribution_ParametersQuery.cpp \140 UIElements/Query/RealSpaceMatrixQuery.cpp \141 UIElements/Query/StringQuery.cpp \142 UIElements/Query/StringsQuery.cpp \143 UIElements/Query/UnsignedIntQuery.cpp \144 UIElements/Query/UnsignedIntsQuery.cpp \145 UIElements/Query/VectorQuery.cpp \146 UIElements/Query/VectorsQuery.cpp \147 126 UIElements/Dialog.cpp \ 148 127 UIElements/MainWindow.cpp -
src/UIElements/Qt4/Query/AtomQtQuery.cpp
ra55e6f r1c55b8 30 30 31 31 QtDialog::AtomQtQuery::AtomQtQuery(Parameter<const atom *> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 32 Dialog:: AtomQuery(_param, _title),32 Dialog::TQuery<const atom *>(_param, _title), 33 33 parent(_parent), 34 34 dialog(_dialog) -
src/UIElements/Qt4/Query/AtomsQtQuery.cpp
ra55e6f r1c55b8 29 29 30 30 QtDialog::AtomsQtQuery::AtomsQtQuery(Parameter<std::vector<const atom *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 31 Dialog:: AtomsQuery(_param, _title),31 Dialog::TQuery<std::vector<const atom *> >(_param, _title), 32 32 QtQueryList<const atom *>(_parent, _dialog, temp) 33 33 { -
src/UIElements/Qt4/Query/BooleanQtQuery.cpp
ra55e6f r1c55b8 28 28 29 29 QtDialog::BooleanQtQuery::BooleanQtQuery(Parameter<bool> &_param, std::string _title, QBoxLayout *_parent, Dialog *_dialog) : 30 Dialog:: BooleanQuery(_param, _title),30 Dialog::TQuery<bool>(_param, _title), 31 31 parent(_parent), 32 32 dialog(_dialog) -
src/UIElements/Qt4/Query/DoubleQtQuery.cpp
ra55e6f r1c55b8 28 28 29 29 QtDialog::DoubleQtQuery::DoubleQtQuery(Parameter<double> &_param, std::string title,QBoxLayout *_parent,Dialog *_dialog) : 30 Dialog:: DoubleQuery(_param, title),30 Dialog::TQuery<double>(_param, title), 31 31 parent(_parent), 32 32 dialog(_dialog) -
src/UIElements/Qt4/Query/DoublesQtQuery.cpp
ra55e6f r1c55b8 29 29 30 30 QtDialog::DoublesQtQuery::DoublesQtQuery(Parameter<std::vector<double> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 31 Dialog:: DoublesQuery(_param, _title),31 Dialog::TQuery<std::vector<double> >(_param, _title), 32 32 QtQueryList<double>(_parent, _dialog, temp) 33 33 { -
src/UIElements/Qt4/Query/ElementQtQuery.cpp
ra55e6f r1c55b8 31 31 32 32 QtDialog::ElementQtQuery::ElementQtQuery(Parameter<const element *> &_param, std::string _title, QBoxLayout *_parent, Dialog *_dialog) : 33 Dialog:: ElementQuery(_param, _title),33 Dialog::TQuery<const element *>(_param, _title), 34 34 parent(_parent), 35 35 dialog(_dialog) -
src/UIElements/Qt4/Query/ElementsQtQuery.cpp
ra55e6f r1c55b8 30 30 31 31 QtDialog::ElementsQtQuery::ElementsQtQuery(Parameter<std::vector<const element *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 32 Dialog:: ElementsQuery(_param, _title),32 Dialog::TQuery<std::vector<const element *> >(_param, _title), 33 33 QtQueryList<const element *>(_parent, _dialog, temp) 34 34 { -
src/UIElements/Qt4/Query/FileQtQuery.cpp
ra55e6f r1c55b8 30 30 31 31 QtDialog::FileQtQuery::FileQtQuery(Parameter<boost::filesystem::path> &_param, std::string _title, QBoxLayout *_parent, Dialog *_dialog) : 32 Dialog:: FileQuery(_param, _title),32 Dialog::TQuery<boost::filesystem::path>(_param, _title), 33 33 parent(_parent), 34 34 dialog(_dialog) -
src/UIElements/Qt4/Query/FilesQtQuery.cpp
ra55e6f r1c55b8 30 30 31 31 QtDialog::FilesQtQuery::FilesQtQuery(Parameter<std::vector<boost::filesystem::path> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 32 Dialog:: FilesQuery(_param, _title),32 Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, _title), 33 33 QtQueryList<boost::filesystem::path>(_parent, _dialog, temp) 34 34 { -
src/UIElements/Qt4/Query/IntQtQuery.cpp
ra55e6f r1c55b8 28 28 29 29 QtDialog::IntQtQuery::IntQtQuery(Parameter<int> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 30 Dialog:: IntQuery(_param, _title),30 Dialog::TQuery<int>(_param, _title), 31 31 parent(_parent), 32 32 dialog(_dialog) -
src/UIElements/Qt4/Query/IntsQtQuery.cpp
ra55e6f r1c55b8 29 29 30 30 QtDialog::IntsQtQuery::IntsQtQuery(Parameter<std::vector<int> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 31 Dialog:: IntsQuery(_param, _title),31 Dialog::TQuery<std::vector<int> >(_param, _title), 32 32 QtQueryList<int>(_parent, _dialog, temp) 33 33 { -
src/UIElements/Qt4/Query/MoleculeQtQuery.cpp
ra55e6f r1c55b8 31 31 32 32 QtDialog::MoleculeQtQuery::MoleculeQtQuery(Parameter<const molecule *> &_param, std::string _title, QBoxLayout *_parent,Dialog *_dialog) : 33 Dialog:: MoleculeQuery(_param, _title),33 Dialog::TQuery<const molecule *>(_param, _title), 34 34 parent(_parent), 35 35 dialog(_dialog) -
src/UIElements/Qt4/Query/MoleculesQtQuery.cpp
ra55e6f r1c55b8 29 29 30 30 QtDialog::MoleculesQtQuery::MoleculesQtQuery(Parameter<std::vector<const molecule *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 31 Dialog:: MoleculesQuery(_param, _title),31 Dialog::TQuery<std::vector<const molecule *> >(_param, _title), 32 32 QtQueryList<const molecule *>(_parent, _dialog, temp) 33 33 { -
src/UIElements/Qt4/Query/QtQuery.hpp
ra55e6f r1c55b8 35 35 class QFileDialog; 36 36 37 class QtDialog::AtomQtQuery : public QWidget, public Dialog:: AtomQuery{37 class QtDialog::AtomQtQuery : public QWidget, public Dialog::TQuery<const atom *> { 38 38 Q_OBJECT 39 39 public: … … 53 53 }; 54 54 55 class QtDialog::AtomsQtQuery : public QWidget, public Dialog:: AtomsQuery, public QtQueryList<const atom *> {55 class QtDialog::AtomsQtQuery : public QWidget, public Dialog::TQuery<std::vector<const atom *> >, public QtQueryList<const atom *> { 56 56 Q_OBJECT 57 57 public: … … 71 71 }; 72 72 73 class QtDialog::BooleanQtQuery : public QWidget, public Dialog:: BooleanQuery{73 class QtDialog::BooleanQtQuery : public QWidget, public Dialog::TQuery<bool> { 74 74 Q_OBJECT 75 75 public: … … 89 89 }; 90 90 91 class QtDialog::RealSpaceMatrixQtQuery : public QWidget, public Dialog:: RealSpaceMatrixQuery{91 class QtDialog::RealSpaceMatrixQtQuery : public QWidget, public Dialog::TQuery<RealSpaceMatrix> { 92 92 Q_OBJECT 93 93 public: … … 107 107 }; 108 108 109 class QtDialog::DoubleQtQuery : public QWidget, public Dialog:: DoubleQuery{109 class QtDialog::DoubleQtQuery : public QWidget, public Dialog::TQuery<double> { 110 110 Q_OBJECT 111 111 public: … … 125 125 }; 126 126 127 class QtDialog::DoublesQtQuery : public QWidget, public Dialog:: DoublesQuery, public QtQueryList<double> {127 class QtDialog::DoublesQtQuery : public QWidget, public Dialog::TQuery<std::vector<double> >, public QtQueryList<double> { 128 128 Q_OBJECT 129 129 public: … … 143 143 }; 144 144 145 class QtDialog::ElementQtQuery : public QWidget, public Dialog:: ElementQuery{145 class QtDialog::ElementQtQuery : public QWidget, public Dialog::TQuery<const element *> { 146 146 Q_OBJECT 147 147 public: … … 161 161 }; 162 162 163 class QtDialog::ElementsQtQuery : public QWidget, public Dialog:: ElementsQuery, public QtQueryList<const element *> {163 class QtDialog::ElementsQtQuery : public QWidget, public Dialog::TQuery<std::vector<const element *> >, public QtQueryList<const element *> { 164 164 Q_OBJECT 165 165 public: … … 191 191 }; 192 192 193 class QtDialog::FileQtQuery : public QWidget, public Dialog:: FileQuery{193 class QtDialog::FileQtQuery : public QWidget, public Dialog::TQuery<boost::filesystem::path> { 194 194 Q_OBJECT 195 195 public: … … 212 212 }; 213 213 214 class QtDialog::FilesQtQuery : public QWidget, public Dialog:: FilesQuery, public QtQueryList<boost::filesystem::path> {214 class QtDialog::FilesQtQuery : public QWidget, public Dialog::TQuery<std::vector<boost::filesystem::path> >, public QtQueryList<boost::filesystem::path> { 215 215 Q_OBJECT 216 216 public: … … 230 230 }; 231 231 232 class QtDialog::IntQtQuery : public QWidget, public Dialog:: IntQuery{232 class QtDialog::IntQtQuery : public QWidget, public Dialog::TQuery<int> { 233 233 Q_OBJECT 234 234 public: … … 248 248 }; 249 249 250 class QtDialog::IntsQtQuery : public QWidget, public Dialog:: IntsQuery, public QtQueryList<int> {250 class QtDialog::IntsQtQuery : public QWidget, public Dialog::TQuery<std::vector<int> >, public QtQueryList<int> { 251 251 Q_OBJECT 252 252 public: … … 266 266 }; 267 267 268 class QtDialog::MoleculeQtQuery : public QWidget, public Dialog:: MoleculeQuery{268 class QtDialog::MoleculeQtQuery : public QWidget, public Dialog::TQuery<const molecule *> { 269 269 Q_OBJECT 270 270 public: … … 284 284 }; 285 285 286 class QtDialog::MoleculesQtQuery : public QWidget, public Dialog:: MoleculesQuery, public QtQueryList<const molecule *> {286 class QtDialog::MoleculesQtQuery : public QWidget, public Dialog::TQuery<std::vector<const molecule *> >, public QtQueryList<const molecule *> { 287 287 Q_OBJECT 288 288 public: … … 302 302 }; 303 303 304 class QtDialog::StringQtQuery : public QWidget, public Dialog:: StringQuery{304 class QtDialog::StringQtQuery : public QWidget, public Dialog::TQuery<std::string> { 305 305 Q_OBJECT 306 306 public: … … 320 320 }; 321 321 322 class QtDialog::StringsQtQuery : public QWidget, public Dialog:: StringsQuery, public QtQueryList<std::string> {322 class QtDialog::StringsQtQuery : public QWidget, public Dialog::TQuery<std::vector<std::string> >, public QtQueryList<std::string> { 323 323 Q_OBJECT 324 324 public: … … 338 338 }; 339 339 340 class QtDialog::UnsignedIntQtQuery : public QWidget, public Dialog:: UnsignedIntQuery{340 class QtDialog::UnsignedIntQtQuery : public QWidget, public Dialog::TQuery<unsigned int> { 341 341 Q_OBJECT 342 342 public: … … 356 356 }; 357 357 358 class QtDialog::UnsignedIntsQtQuery : public QWidget, public Dialog:: UnsignedIntsQuery, public QtQueryList<unsigned int> {358 class QtDialog::UnsignedIntsQtQuery : public QWidget, public Dialog::TQuery<std::vector<unsigned int> >, public QtQueryList<unsigned int> { 359 359 Q_OBJECT 360 360 public: … … 374 374 }; 375 375 376 class QtDialog::VectorQtQuery : public QWidget, public Dialog:: VectorQuery{376 class QtDialog::VectorQtQuery : public QWidget, public Dialog::TQuery<Vector> { 377 377 Q_OBJECT 378 378 public: … … 399 399 }; 400 400 401 class QtDialog::VectorsQtQuery : public QWidget, public Dialog:: VectorsQuery, public QtQueryList<Vector> {401 class QtDialog::VectorsQtQuery : public QWidget, public Dialog::TQuery<std::vector<Vector> >, public QtQueryList<Vector> { 402 402 Q_OBJECT 403 403 public: … … 417 417 }; 418 418 419 class QtDialog::RandomNumberDistribution_ParametersQtQuery : public QWidget, public Dialog:: RandomNumberDistribution_ParametersQuery{419 class QtDialog::RandomNumberDistribution_ParametersQtQuery : public QWidget, public Dialog::TQuery<RandomNumberDistribution_Parameters> { 420 420 Q_OBJECT 421 421 public: -
src/UIElements/Qt4/Query/RandomNumberDistribution_ParametersQtQuery.cpp
ra55e6f r1c55b8 31 31 32 32 QtDialog::RandomNumberDistribution_ParametersQtQuery::RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 33 Dialog:: RandomNumberDistribution_ParametersQuery(_param, _title),33 Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, _title), 34 34 parent(_parent), 35 35 dialog(_dialog) -
src/UIElements/Qt4/Query/RealSpaceMatrixQtQuery.cpp
ra55e6f r1c55b8 30 30 31 31 QtDialog::RealSpaceMatrixQtQuery::RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 32 Dialog:: RealSpaceMatrixQuery(_param, _title),32 Dialog::TQuery<RealSpaceMatrix>(_param, _title), 33 33 parent(_parent), 34 34 dialog(_dialog) -
src/UIElements/Qt4/Query/StringQtQuery.cpp
ra55e6f r1c55b8 28 28 29 29 QtDialog::StringQtQuery::StringQtQuery(Parameter<std::string> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 30 Dialog:: StringQuery(_param, _title),30 Dialog::TQuery<std::string>(_param, _title), 31 31 parent(_parent), 32 32 dialog(_dialog) -
src/UIElements/Qt4/Query/StringsQtQuery.cpp
ra55e6f r1c55b8 29 29 30 30 QtDialog::StringsQtQuery::StringsQtQuery(Parameter<std::vector<std::string> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 31 Dialog:: StringsQuery(_param, _title),31 Dialog::TQuery<std::vector<std::string> >(_param, _title), 32 32 QtQueryList<std::string>(_parent, _dialog, temp) 33 33 { -
src/UIElements/Qt4/Query/UnsignedIntQtQuery.cpp
ra55e6f r1c55b8 28 28 29 29 QtDialog::UnsignedIntQtQuery::UnsignedIntQtQuery(Parameter<unsigned int> &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 30 Dialog:: UnsignedIntQuery(_param, _title),30 Dialog::TQuery<unsigned int>(_param, _title), 31 31 parent(_parent), 32 32 dialog(_dialog) -
src/UIElements/Qt4/Query/UnsignedIntsQtQuery.cpp
ra55e6f r1c55b8 29 29 30 30 QtDialog::UnsignedIntsQtQuery::UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 31 Dialog:: UnsignedIntsQuery(_param, _title),31 Dialog::TQuery<std::vector<unsigned int> >(_param, _title), 32 32 QtQueryList<unsigned int>(_parent, _dialog, temp) 33 33 { -
src/UIElements/Qt4/Query/VectorQtQuery.cpp
ra55e6f r1c55b8 29 29 30 30 QtDialog::VectorQtQuery::VectorQtQuery(Parameter<Vector> &_param, std::string title, QBoxLayout *_parent,Dialog *_dialog) : 31 Dialog:: VectorQuery(_param, title),31 Dialog::TQuery<Vector>(_param, title), 32 32 parent(_parent), 33 33 dialog(_dialog) -
src/UIElements/Qt4/Query/VectorsQtQuery.cpp
ra55e6f r1c55b8 30 30 31 31 QtDialog::VectorsQtQuery::VectorsQtQuery(Parameter<std::vector<Vector> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 32 Dialog:: VectorsQuery(_param, _title),32 Dialog::TQuery<std::vector<Vector> >(_param, _title), 33 33 QtQueryList<Vector>(_parent, _dialog, temp) 34 34 { -
src/UIElements/TextUI/Query/AtomTextQuery.cpp
ra55e6f r1c55b8 31 31 32 32 TextDialog::AtomTextQuery::AtomTextQuery(Parameter<const atom *> &_param, std::string title, std::string _description) : 33 Dialog:: AtomQuery(_param, title,_description)33 Dialog::TQuery<const atom *>(_param, title,_description) 34 34 {} 35 35 -
src/UIElements/TextUI/Query/AtomsTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::AtomsTextQuery::AtomsTextQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description) : 34 Dialog:: AtomsQuery(_param, title,_description)34 Dialog::TQuery<std::vector<const atom *> >(_param, title,_description) 35 35 {} 36 36 … … 43 43 getline(std::cin,line); 44 44 // dissect by " " 45 const atom *temp_element; 45 46 std::string::iterator olditer = line.begin(); 46 47 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { -
src/UIElements/TextUI/Query/BooleanTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::BooleanTextQuery::BooleanTextQuery(Parameter<bool> &_param, std::string title, std::string _description) : 31 Dialog:: BooleanQuery(_param, title,_description)31 Dialog::TQuery<bool>(_param, title,_description) 32 32 {} 33 33 -
src/UIElements/TextUI/Query/DoubleTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::DoubleTextQuery::DoubleTextQuery(Parameter<double> &_param, std::string title, std::string _description) : 31 Dialog:: DoubleQuery(_param, title,_description)31 Dialog::TQuery<double>(_param, title,_description) 32 32 {} 33 33 -
src/UIElements/TextUI/Query/DoublesTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::DoublesTextQuery::DoublesTextQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description) : 31 Dialog:: DoublesQuery(_param, title,_description)31 Dialog::TQuery<std::vector<double> >(_param, title,_description) 32 32 {} 33 33 … … 39 39 getline(std::cin,line); 40 40 // dissect by " " 41 double temp_element; 41 42 std::string::iterator olditer = line.begin(); 42 43 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { -
src/UIElements/TextUI/Query/ElementTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::ElementTextQuery::ElementTextQuery(Parameter<const element *> &_param, std::string title, std::string _description) : 34 Dialog:: ElementQuery(_param, title,_description)34 Dialog::TQuery<const element *>(_param, title,_description) 35 35 {} 36 36 -
src/UIElements/TextUI/Query/ElementsTextQuery.cpp
ra55e6f r1c55b8 36 36 37 37 TextDialog::ElementsTextQuery::ElementsTextQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string _description) : 38 Dialog:: ElementsQuery(_param, title,_description)38 Dialog::TQuery<std::vector<const element *> >(_param, title,_description) 39 39 {} 40 40 … … 49 49 getline(std::cin,line); 50 50 // dissect by " " 51 const element *temp_element; 51 52 std::string::iterator olditer = line.begin(); 52 53 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { -
src/UIElements/TextUI/Query/FileTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::FileTextQuery::FileTextQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description) : 34 Dialog:: FileQuery(_param, title,_description)34 Dialog::TQuery<boost::filesystem::path>(_param, title,_description) 35 35 {} 36 36 -
src/UIElements/TextUI/Query/FilesTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::FilesTextQuery::FilesTextQuery(Parameter<std::vector< boost::filesystem::path> > &_param, std::string title, std::string _description) : 34 Dialog:: FilesQuery(_param, title,_description)34 Dialog::TQuery<std::vector<boost::filesystem::path> >(_param, title,_description) 35 35 {} 36 36 -
src/UIElements/TextUI/Query/IntTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::IntTextQuery::IntTextQuery(Parameter<int> &_param, std::string title, std::string _description) : 31 Dialog:: IntQuery(_param, title,_description)31 Dialog::TQuery<int>(_param, title,_description) 32 32 {} 33 33 -
src/UIElements/TextUI/Query/IntsTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::IntsTextQuery::IntsTextQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description) : 31 Dialog:: IntsQuery(_param, title,_description)31 Dialog::TQuery<std::vector<int> >(_param, title,_description) 32 32 {} 33 33 … … 39 39 getline(std::cin,line); 40 40 // dissect by " " 41 int temp_element; 41 42 std::string::iterator olditer = line.begin(); 42 43 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { -
src/UIElements/TextUI/Query/MoleculeTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::MoleculeTextQuery::MoleculeTextQuery(Parameter<const molecule *> &_param, std::string title, std::string _description) : 34 Dialog:: MoleculeQuery(_param, title,_description)34 Dialog::TQuery<const molecule *>(_param, title,_description) 35 35 {} 36 36 -
src/UIElements/TextUI/Query/MoleculesTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::MoleculesTextQuery::MoleculesTextQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description) : 34 Dialog:: MoleculesQuery(_param, title,_description)34 Dialog::TQuery<std::vector<const molecule *> >(_param, title,_description) 35 35 {} 36 36 … … 43 43 getline(std::cin,line); 44 44 // dissect by " " 45 const molecule *temp_element; 45 46 std::string::iterator olditer = line.begin(); 46 47 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { -
src/UIElements/TextUI/Query/RandomNumberDistribution_ParametersTextQuery.cpp
ra55e6f r1c55b8 31 31 32 32 TextDialog::RandomNumberDistribution_ParametersTextQuery::RandomNumberDistribution_ParametersTextQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description) : 33 Dialog:: RandomNumberDistribution_ParametersQuery(_param, title,_description)33 Dialog::TQuery<RandomNumberDistribution_Parameters>(_param, title,_description) 34 34 {} 35 35 -
src/UIElements/TextUI/Query/RealSpaceMatrixTextQuery.cpp
ra55e6f r1c55b8 30 30 31 31 TextDialog::RealSpaceMatrixTextQuery::RealSpaceMatrixTextQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description) : 32 Dialog:: RealSpaceMatrixQuery(_param, title,_description)32 Dialog::TQuery<RealSpaceMatrix>(_param, title,_description) 33 33 {} 34 34 -
src/UIElements/TextUI/Query/StringTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::StringTextQuery::StringTextQuery(Parameter<std::string> &_param, std::string title, std::string _description) : 31 Dialog:: StringQuery(_param, title,_description)31 Dialog::TQuery<std::string>(_param, title,_description) 32 32 {} 33 33 -
src/UIElements/TextUI/Query/StringsTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::StringsTextQuery::StringsTextQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description) : 31 Dialog:: StringsQuery(_param, title,_description)31 Dialog::TQuery<std::vector<std::string> >(_param, title,_description) 32 32 {} 33 33 … … 36 36 bool TextDialog::StringsTextQuery::handle() { 37 37 std::cout << getDescription() << ": "; 38 std::string temp_element; 38 39 getline(std::cin,temp_element); 39 40 // dissect by " " -
src/UIElements/TextUI/Query/TextQuery.hpp
ra55e6f r1c55b8 17 17 #include "TextUI/TextDialog.hpp" 18 18 19 class TextDialog::AtomTextQuery : public Dialog:: AtomQuery{19 class TextDialog::AtomTextQuery : public Dialog::TQuery<const atom *> { 20 20 public: 21 21 AtomTextQuery(Parameter<const atom *> &, std::string title, std::string _description = NULL); … … 24 24 }; 25 25 26 class TextDialog::AtomsTextQuery : public Dialog:: AtomsQuery{26 class TextDialog::AtomsTextQuery : public Dialog::TQuery<std::vector<const atom *> > { 27 27 public: 28 28 AtomsTextQuery(Parameter<std::vector<const atom *> > &, std::string title, std::string _description = NULL); … … 31 31 }; 32 32 33 class TextDialog::BooleanTextQuery : public Dialog:: BooleanQuery{33 class TextDialog::BooleanTextQuery : public Dialog::TQuery<bool> { 34 34 public: 35 35 BooleanTextQuery(Parameter<bool> &, std::string title, std::string _description = NULL); … … 38 38 }; 39 39 40 class TextDialog::RealSpaceMatrixTextQuery : public Dialog:: RealSpaceMatrixQuery{40 class TextDialog::RealSpaceMatrixTextQuery : public Dialog::TQuery<RealSpaceMatrix> { 41 41 public: 42 42 RealSpaceMatrixTextQuery(Parameter<RealSpaceMatrix> &, std::string title, std::string _description = NULL); … … 45 45 }; 46 46 47 class TextDialog::DoubleTextQuery : public Dialog:: DoubleQuery{47 class TextDialog::DoubleTextQuery : public Dialog::TQuery<double> { 48 48 public: 49 49 DoubleTextQuery(Parameter<double> &, std::string title, std::string _description = NULL); … … 52 52 }; 53 53 54 class TextDialog::DoublesTextQuery : public Dialog:: DoublesQuery{54 class TextDialog::DoublesTextQuery : public Dialog::TQuery<std::vector<double> > { 55 55 public: 56 56 DoublesTextQuery(Parameter<std::vector<double> > &, std::string title, std::string _description = NULL); … … 59 59 }; 60 60 61 class TextDialog::ElementTextQuery : public Dialog:: ElementQuery{61 class TextDialog::ElementTextQuery : public Dialog::TQuery<const element *> { 62 62 public: 63 63 ElementTextQuery(Parameter<const element *> &, std::string title, std::string _description = NULL); … … 66 66 }; 67 67 68 class TextDialog::ElementsTextQuery : public Dialog:: ElementsQuery{68 class TextDialog::ElementsTextQuery : public Dialog::TQuery<std::vector<const element *> > { 69 69 public: 70 70 ElementsTextQuery(Parameter<std::vector<const element *> > &, std::string title, std::string _description = NULL); … … 80 80 }; 81 81 82 class TextDialog::FileTextQuery : public Dialog:: FileQuery{82 class TextDialog::FileTextQuery : public Dialog::TQuery<boost::filesystem::path> { 83 83 public: 84 84 FileTextQuery(Parameter<boost::filesystem::path> &, std::string title, std::string _description = NULL); … … 87 87 }; 88 88 89 class TextDialog::FilesTextQuery : public Dialog:: FilesQuery{89 class TextDialog::FilesTextQuery : public Dialog::TQuery<std::vector<boost::filesystem::path> > { 90 90 public: 91 91 FilesTextQuery(Parameter<std::vector< boost::filesystem::path> > ¶m, std::string title, std::string _description = NULL); … … 94 94 }; 95 95 96 class TextDialog::IntTextQuery : public Dialog:: IntQuery{96 class TextDialog::IntTextQuery : public Dialog::TQuery<int> { 97 97 public: 98 98 IntTextQuery(Parameter<int> &, std::string title, std::string _description = NULL); … … 101 101 }; 102 102 103 class TextDialog::IntsTextQuery : public Dialog:: IntsQuery{103 class TextDialog::IntsTextQuery : public Dialog::TQuery<std::vector<int> > { 104 104 public: 105 105 IntsTextQuery(Parameter<std::vector<int> > &, std::string title, std::string _description = NULL); … … 108 108 }; 109 109 110 class TextDialog::MoleculeTextQuery : public Dialog:: MoleculeQuery{110 class TextDialog::MoleculeTextQuery : public Dialog::TQuery<const molecule *> { 111 111 public: 112 112 MoleculeTextQuery(Parameter<const molecule *> &, std::string title, std::string _description = NULL); … … 115 115 }; 116 116 117 class TextDialog::MoleculesTextQuery : public Dialog:: MoleculesQuery{117 class TextDialog::MoleculesTextQuery : public Dialog::TQuery<std::vector<const molecule *> > { 118 118 public: 119 119 MoleculesTextQuery(Parameter<std::vector<const molecule *> > &, std::string title, std::string _description = NULL); … … 122 122 }; 123 123 124 class TextDialog::StringTextQuery : public Dialog:: StringQuery{124 class TextDialog::StringTextQuery : public Dialog::TQuery<std::string> { 125 125 public: 126 126 StringTextQuery(Parameter<std::string> &, std::string title, std::string _description = NULL); … … 129 129 }; 130 130 131 class TextDialog::StringsTextQuery : public Dialog:: StringsQuery{131 class TextDialog::StringsTextQuery : public Dialog::TQuery<std::vector<std::string> > { 132 132 public: 133 133 StringsTextQuery(Parameter<std::vector<std::string> > &, std::string title, std::string _description = NULL); … … 136 136 }; 137 137 138 class TextDialog::UnsignedIntTextQuery : public Dialog:: UnsignedIntQuery{138 class TextDialog::UnsignedIntTextQuery : public Dialog::TQuery<unsigned int> { 139 139 public: 140 140 UnsignedIntTextQuery(Parameter<unsigned int> &, std::string title, std::string _description = NULL); … … 143 143 }; 144 144 145 class TextDialog::UnsignedIntsTextQuery : public Dialog:: UnsignedIntsQuery{145 class TextDialog::UnsignedIntsTextQuery : public Dialog::TQuery<std::vector<unsigned int> > { 146 146 public: 147 147 UnsignedIntsTextQuery(Parameter<std::vector<unsigned int> > &, std::string title, std::string _description = NULL); … … 150 150 }; 151 151 152 class TextDialog::VectorTextQuery : public Dialog:: VectorQuery{152 class TextDialog::VectorTextQuery : public Dialog::TQuery<Vector> { 153 153 public: 154 154 VectorTextQuery(Parameter<Vector> &, std::string title, std::string _description = NULL); … … 157 157 }; 158 158 159 class TextDialog::VectorsTextQuery : public Dialog:: VectorsQuery{159 class TextDialog::VectorsTextQuery : public Dialog::TQuery<std::vector<Vector> > { 160 160 public: 161 161 VectorsTextQuery(Parameter<std::vector<Vector> > &, std::string title, std::string _description = NULL); … … 164 164 }; 165 165 166 class TextDialog::RandomNumberDistribution_ParametersTextQuery : public Dialog:: RandomNumberDistribution_ParametersQuery{166 class TextDialog::RandomNumberDistribution_ParametersTextQuery : public Dialog::TQuery<RandomNumberDistribution_Parameters> { 167 167 public: 168 168 RandomNumberDistribution_ParametersTextQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title, std::string _description = NULL); -
src/UIElements/TextUI/Query/UnsignedIntTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::UnsignedIntTextQuery::UnsignedIntTextQuery(Parameter<unsigned int> &_param, std::string title, std::string _description) : 31 Dialog:: UnsignedIntQuery(_param, title,_description)31 Dialog::TQuery<unsigned int>(_param, title,_description) 32 32 {} 33 33 -
src/UIElements/TextUI/Query/UnsignedIntsTextQuery.cpp
ra55e6f r1c55b8 29 29 30 30 TextDialog::UnsignedIntsTextQuery::UnsignedIntsTextQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description) : 31 Dialog:: UnsignedIntsQuery(_param, title,_description)31 Dialog::TQuery<std::vector<unsigned int> >(_param, title,_description) 32 32 {} 33 33 … … 39 39 getline(std::cin,line); 40 40 // dissect by " " 41 unsigned int temp_element; 41 42 std::string::iterator olditer = line.begin(); 42 43 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { -
src/UIElements/TextUI/Query/VectorTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::VectorTextQuery::VectorTextQuery(Parameter<Vector> &_param, std::string title, std::string _description) : 34 Dialog:: VectorQuery(_param, title,_description)34 Dialog::TQuery<Vector>(_param, title,_description) 35 35 {} 36 36 -
src/UIElements/TextUI/Query/VectorsTextQuery.cpp
ra55e6f r1c55b8 32 32 33 33 TextDialog::VectorsTextQuery::VectorsTextQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description) : 34 Dialog:: VectorsQuery(_param, title,_description)34 Dialog::TQuery<std::vector<Vector> >(_param, title,_description) 35 35 {} 36 36 … … 53 53 std::string::iterator olditercomma = line.begin(); 54 54 int counter = 0; 55 Vector temp_element; 55 56 for(std::string::iterator vectoriter = line.begin(); vectoriter != line.end(); ++vectoriter) { 56 57 if (*vectoriter == ',')
Note:
See TracChangeset
for help on using the changeset viewer.
